Ask Ubuntu is a question and answer site for Ubuntu users and developers. 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've requested my ISP to dedicate me a second Internet IP address and have got it. Now I need to configure it (I've never had any experience with using multiple IP addresses on one network interface) on my Ubuntu 10.04 server so that it will be a public address of a VirtualBox (VBoxHeadless) machine (running Ubuntu 10.04 Server as well). Would you be so kind to tell me how can I do so, or at least what docs to read and what specific subjects to google for?

share|improve this question
up vote 3 down vote accepted

The easiest way would be to set the virtual machine to use ‘bridged’ networking on the host's normal eth0 interface. Then set up the guest OS to use the second IP address as a static IP, whilst the host OS continues to the the first static IP.

With this approach, you don't have to set up multiple interfaces on the host OS or NAT rules to map the guest to a particular external IP. The guest and the host use different interfaces on the same shared network adapter.

share|improve this answer

Just to add, in my case ( I had to set the same MAC address in the guess as the one in the host, also check the route configuration of the host.

share|improve this answer

Your Answer


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.