Page 1 of 1
Host Networks and multi-IP config / aliases
Posted: 12. Feb 2009, 16:30
by Ralf H
Hi there,
i have some server with 2 NIC´s but several IP´s configured as
eth0:0
eth0:1
or
eth0:blabla
I would like to assign IPs to virtual machines.
Is there any prefered way ?
cheers
Ralf
Posted: 18. Feb 2009, 18:08
by Ralf H
second shot... maybe question is unclear..
i have a host (Linux) with 1 physical interface and several IP´s boudn to that.
i want to redirect some IP´s to a virtual box (all ports, dedicatet, only the virtual guest makes use of the IP).
wich would be the best method to do that, speaking about 2.14 ?
cheers,
Ralf
Posted: 19. Feb 2009, 00:37
by Sasquatch
That's a simple one. Use HIF (Host Interface). With that, your VM will become part of the network, so it can be reached using it's own IP address. See the manual for how to set it up (really easy actually).
Posted: 19. Feb 2009, 01:46
by Ralf H
maybe i am blond...
but as i understand the manual and the vbox GUI, host interface means:
take this physical piece of network adapter and redirect alle traffic to the virtual guest.
that is not what i want. i have only 1 physical interface and several ips to be distributet to several wirtual guests, so each one has an unfiltered dedicated ip.
that way:
take that physical interface and just keep an eye on all traffic to the IP x.y.z.a , that is configured in the virtual guest.
or did i get it wrong and the setting just means: connect (like a hub) to this interface and do whatever the virtual guest configuration tells you - leave all other traffic on that interface untouched ??
cheers,
Ralf
--
visit me:
osgrid: Sharkland Tropical 1 SL: Great white shark
German opensim HowTo:
http://www.ralf-haifisch.biz/Opensim%20HowTo.shtml
Cybertechnews blog:
http://opensim.cybertechnews.org/
Posted: 19. Feb 2009, 03:47
by klingoncowboy4
Having played with "interface" modes in both virtual box and vmwares's ESX I have a fairly clear idea of how it runs.
With this mode you will get the interface shared between the host and and guest you have configured to use it. They will appear on the network as separt devices with their own MACs. You should be able to run in interface mode and reassign one of the ip addresses to the MAC address virtual box gives to your VM. That is how I am running mine. I have 2 VMs on my comp each using the same interface (however due to memory constraints I only run one at a time). On my brothers comp he runs one VM in this mode. All of them hosts and VMs have addresses assigned to their respective MACs in the router.
Posted: 21. Feb 2009, 15:54
by Ralf H
thanks a lot, works great...
cheers,
Ralf