LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Can't change IP address in Centos (https://www.linuxquestions.org/questions/linux-newbie-8/cant-change-ip-address-in-centos-4175492297/)

rcmonroig 01-23-2014 10:07 AM

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?

custangro 01-23-2014 10:25 AM

Hello

(First off...please use code tags)

Is eth0 being managed by NetworkManager?

Whats the contents of /etc/sysconfig/network-scripts/ifcfg-eth0 ?

--C

michaelk 01-23-2014 10:42 AM

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.