Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have window server 2008 installed.

Inside that ihave installed ubuntu using VMware

Now i want that ubuntu should always have local ip of

How can i configue that.

I am using Netgear router and i have not found any option in there

share|improve this question

migrated from Dec 3 '09 at 19:07

This question came from our site for system and network administrators.

up vote 7 down vote accepted
  1. Edit /etc/network/interfaces.
  2. Add lines similar to these:
    auto eth0
    iface eth0 inet static
  3. Save file.
  4. /etc/init.d/networking restart
share|improve this answer
Sheesh, that formatting got messed up and for some reason, I'm unable to re-format correctly. Anyway, details on how it's supposed to look are here:… – EEAA Dec 3 '09 at 4:58
add more spaces to the front of the lines ... i think you need to indent each line with 8 spaces (instead of 4) for it to show up right. essentially, markdown's reading it as a continuation of the "2." block. – quack quixote Dec 3 '09 at 5:47

You can remove the rc.networking or change the permissions to make it non-executable or rename it so that the boot process cannot find the You can put this into rc.local which is the script that loads when the boot up has finished.

ifconfig eth0 netmask up

This will force your eth0 adapter to be set. No need to issue auto eth0 as the kernel should have detected your eth0 adapter anyway. Then to confirm it issue ifconfig eth0 to check your ip address which should match what is in the example above. See below for an example

# ifconfig eth0
eth0      Link encap 100Mbps Ethernet  HWaddr 00:00:C0:90:B3:42
          inet addr Bcast Mask
          UP BROADCAST RUNNING  MTU 1500  Metric 0
          RX packets 3136 errors 217 dropped 7 overrun 26
          TX packets 1752 errors 25 dropped 0 overrun 0

Look at the UP indicator, that tells you the nic's ip address is active and running.

Hope this helps, Best regards, Tom.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .