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.

how would I assign 3 ips to one instance of a Virtualbox machine (Ubuntu 10.04)? I need to for development purposes.

share|improve this question
3  
... the same way you would assign more than one IP to any other kind of machine (disable DHCP in the guest OS and assign the addresses manually. I'm not sure what you're asking here. –  voretaq7 Feb 17 '11 at 22:30
add comment

2 Answers

up vote 1 down vote accepted

Virtual box allows you to assign 4 network adapters to a particular machine. In virtual Box Manager go to the machine and in the settings pane click on networking. You should be able to attach 2 more adapters from there.

share|improve this answer
    
Thanks this is what I was wondering about. –  Darren Feb 17 '11 at 23:04
2  
@Darren - your comment indicates that what you asked and what you wanted are two different things. Adding more network adapters gives you more IP addresses, but network adapters and IP addresses are two different things when it comes to assigning more of them. You can assign more IP addresses without assigning more adapters. –  Mark Henderson Feb 17 '11 at 23:30
add comment

Inside Ubuntu, you can use the ip command to add IP addresses to an interface. Example: assign IP address 10.0.0.2 to the network interface eth0:

sudo ip addr add 10.0.0.2 dev eth0

If you decide to remove it:

sudo ip addr del 10.0.0.2 dev eth0
share|improve this answer
add comment

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.