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

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

 



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.

Regards,
Simon.
--
Simon Tneoh Chee-Boon     Gen-X Technology Sdn. Bhd.
http://www.gen-x.com.my    http://www.tneoh.zoneit.com/simon/
 
 

[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