Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have window server 2008 installed.

Inside that ihave installed ubuntu using VMware

Now i want that ubuntu should always have local ip of 10.0.11.5.

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

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

2 Answers 2

up vote 7 down vote accepted
  1. Edit /etc/network/interfaces.
  2. Add lines similar to these:
    auto eth0
    iface eth0 inet static
    address 192.168.0.100
    netmask 255.255.255.0
    gateway 192.168.0.1
    
  3. Save file.
  4. /etc/init.d/networking restart
share|improve this answer
1  
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

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 192.168.0.100 netmask 255.255.255.0 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 192.168.0.100 Bcast 192.168.0.255 Mask 255.255.255.0
          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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.