LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 01-23-2014, 11:07 AM   #1
rcmonroig
Member
 
Registered: Mar 2007
Location: Chandler, AZ
Distribution: Fedora 10,12,and 14
Posts: 60
Blog Entries: 1

Rep: Reputation: 15
Question 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?
 
Old 01-23-2014, 11:25 AM   #2
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,969
Blog Entries: 1

Rep: Reputation: 208Reputation: 208Reputation: 208
Hello

(First off...please use code tags)

Is eth0 being managed by NetworkManager?

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

--C
 
Old 01-23-2014, 11:42 AM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 14,930

Rep: Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520Reputation: 1520
Duplicate thread. Reported for closure

Continue here:
http://www.linuxquestions.org/questi...-a-4175492249/
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't change ip address in Centos 6 rcmonroig Linux - Newbie 5 01-24-2014 09:33 PM
How to change IP address on CentOS ? gaankdoank Linux - Server 3 01-10-2010 06:14 PM
CentOS 3.5 Enterprise Server -- I need to change my Local Static IP address. kexpert Red Hat 12 11-08-2009 06:33 AM
CentOS command-line Program to Randomly change my MAC address? kexpert Linux - Newbie 3 11-08-2009 01:18 AM


All times are GMT -5. The time now is 12:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration