Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

1 Answer 1

The simple manual way looks like this:

ip address add 192.168.0.200/24 broadcast + dev eth0

If you want to make this a permanent configuration in /etc/network/interfaces you will have to use the older alias interface syntax (e.g., eth0:1), because that configuration file doesn't support multiple addresses per (primary) interface yet. Add something like this:

auto eth0:1
iface eth0:1 inet static
    address 192.168.0.200
    network 192.168.0.0
    netmask 255.255.255.0
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.