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?