-   Linux - Newbie (
-   -   Can't assign static IP (

BuhRock 05-18-2013 03:42 AM

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...

ali.abry 05-18-2013 06:37 AM

try ifdown and ifup command to bring down network and bring it up then check if static ip assigned .

Satyaveer Arya 05-18-2013 06:46 AM

Give a try with GUI.

BuhRock 05-18-2013 02:38 PM

Was resolved with the ifdown and ifup command. Thanks!

All times are GMT -5. The time now is 11:27 PM.