Q: howto for 2.1.4 on SuSE11.1 NAT with multiple IP

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Ralf H
Posts: 9
Joined: 11. Feb 2009, 21:28

Q: howto for 2.1.4 on SuSE11.1 NAT with multiple IP

Post by Ralf H »

Heho,

due to the situation with my provider (http://forums.virtualbox.org/viewtopic.php?t=14769) i am looking for a howto or some tips.

i have a server, one physical interface connected (eth0) with multiple IPs.
i want to run multiple virtual machines with own IPs.
Usage of own MAC per virtual machine is restricted.

what is the best way ?

maybe use privat fiex ip´s in the virtual machines, enable NAT on the host ?

or is vbox not able to run in that situation ?

cheers,
Ralf
--
visit me:

osgrid: Sharkland Tropical 1 SL: Great white shark

German opensim HowTo: http://www.ralf-haifisch.biz/Opensim%20HowTo.shtml

opensource 3d web: http://www.maxping.org/
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Since you can't use HIF, you have to forward ports for each VM service.

You can also buy a router and use that. But if the VMs need to be accessible from the outside, you're practically at the same point as with the VB NAT option.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Ralf H
Posts: 9
Joined: 11. Feb 2009, 21:28

Post by Ralf H »

Solution is:

use a tap device
assign this tap an IP for the host
don´t use a bridge
in vbox, use hostinface and the tap as the interface

that way, you have a ethernet broadcast domain - the tap acts as a hub.

host and vbox guest cann communicatn

and: you can NAT/MASQ the traffic so use your official IP´s and have 2-way internet traffic.

german how to: http://www.ralf-haifisch.biz/DE-vbox_auf_suse_11.shtml

cheers,
Ralf
--
visit me:

osgrid: Sharkland Tropical 1 SL: Great white shark

German opensim HowTo: http://www.ralf-haifisch.biz/Opensim%20HowTo.shtml

opensource 3d web: http://www.maxping.org/
Post Reply