Take the 2-minute tour ×

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 serverfault.com Dec 3 '09 at 19:07


add comment

2 Answers

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: ubuntugeek.com/… –  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
add comment

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 rc.network. 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
add comment

Your Answer


