Can't change IP address in Centos
Trying to change my ip address from 10.0.2.23 to 192.168.105.22 on my centos 6 system.
I run ifconfig and see that eth0 has an IP address of 10.0.2.23 with a subnet mask of 255.255.255.0 I then run: ip link set eth0 down ip addr add 192.168.105.22/24 dev eth0 ip link set eth0 up service network restart Then I run ifconfig and the ip address is still 10.0.2.23 same as before -- no change This should be pretty straight forward. Am I missing something here? |
Hello
(First off...please use code tags) Is eth0 being managed by NetworkManager? Whats the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ? --C |
Duplicate thread. Reported for closure
Continue here: http://www.linuxquestions.org/questi...-a-4175492249/ |
All times are GMT -5. The time now is 03:14 PM. |