Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 05-18-2013, 02:42 AM   #1
LQ Newbie
Registered: Mar 2011
Posts: 12

Rep: Reputation: 0
Can't assign static IP

I'm in VMplayer using two ubuntu machines. One is a server, one is a client. I want to set a static for the server, and have edited the /etc/network/interfaces file to where it looks like this:

auto lo eth0
iface lo inet loopback
iface eth0 inet static
Then I edited the /etc/resolv.conf file and restarted the services with:
 sudo /etc/init.d/networking restart
When I do an ifconfig, it's still the old IP though. I'm not sure why...
Old 05-18-2013, 05:37 AM   #2
Registered: Feb 2013
Posts: 74

Rep: Reputation: Disabled
try ifdown and ifup command to bring down network and bring it up then check if static ip assigned .
1 members found this post helpful.
Old 05-18-2013, 05:46 AM   #3
Satyaveer Arya
Senior Member
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Give a try with GUI.
Old 05-18-2013, 01:38 PM   #4
LQ Newbie
Registered: Mar 2011
Posts: 12

Original Poster
Rep: Reputation: 0
Was resolved with the ifdown and ifup command. Thanks!


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
How to assign a static IP freak_vss Linux - Networking 4 08-26-2008 08:03 PM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 10:51 AM
How To Assign Static Ip? betrussell23 Linux - Networking 5 09-27-2006 01:25 AM
assign static ip allelopath Linux - Software 1 04-27-2005 07:04 PM
assign static IP to the server ashley75 Linux - General 2 03-10-2005 03:47 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:03 PM.

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