Re: /etc/init.d/network restart still get old IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You have to change the ip adress not in /etc/sysconfig/network-scripts, but
change ip form /etc/sysconfig/networking/devices....
Afte You change, do /etc/init.d/network restart .

Regards,
Rudolf


----- Original Message ----- 
From: "Benjamin J. Weiss" <benjamin@xxxxxxxxxx>
To: <redhat-list@xxxxxxxxxx>
Sent: Friday, January 02, 2004 6:14 PM
Subject: Re: /etc/init.d/network restart still get old IP


> ----- Original Message -----
> From: "Simon Tneoh Chee-Boon" <tneohcb@xxxxxxxxxxxx>
> To: <redhat-list@xxxxxxxxxx>
> Sent: Friday, January 02, 2004 12:41 AM
> Subject: /etc/init.d/network restart still get old IP
>
>
> > Hello all,
> >    Thanks in advance for any help.
> >    Because of IP changes, I added an alias (eth0:1) for new IP to my
> server's eth0 to
> > avoid any error due to DNS' caching. The two IP on different network
> subnets.
> >    Now after I removed eth0:1, moved the new IP to eth0, execute
> "/etc/init.d/network restart",
> > I still get the old IP from "ifconfig eth0".
> >    I have done and tried the methods below and yet still get the old IP
> address in eth0:
> > 1) Delete /etc/sysconfig/network-scripts/ifcfg-eth0:1.
> > 2) Setup new IP in /etc/sysconfig/network-scripts/ifcfg-eth0.
> > 3) Execute /etc/init.d/network restart.
> > 4) Reboot machine.
> > 5) Shutdown and power off the server.
> > 6) Unplug the network cable to restart the network init script.
> >
> >   I wonder what have I missed out here? Anyone encountered this problem
> before?
> >    Thanks.
>
> Okay, this may be a stupid question, but:  How are you getting your eth0
IP?
> Are you manually setting it, or are you getting it from DHCP?  While my
home
> box has a dynamic IP from my ISP via DHCP, I still maintain the same IP
for
> months at a time.  I *think* (I'm not a DHCP guru by any means) that this
is
> because the DHCP server has a preference for giving the same host the same
> IP, if it's still available after the reboot/restart/etc.
>
> Ben
>
>
> -- 
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux