Map external IPs to internal IP's to access GuestOS

Discussions related to using VirtualBox on Linux hosts.
Post Reply
samuel3jackson
Posts: 1
Joined: 24. Jul 2009, 17:58
Primary OS: Linux other
VBox Version: OSE other
Guest OSses: Centos
Location: New York
Contact:

Map external IPs to internal IP's to access GuestOS

Post by samuel3jackson »

Hi,

I have several IP addresses assigned to us by our ISP, on a Red Hat Entreprise 5 dedicated server. There is one Ip, one backup IP and 20 virtual IP's.

I am trying to figure out a way to map one of the virtual IP's to my guestOS which is running inside the redhat server. Its a Centos 5.3.

I want to be able to access it from the outside using the virtual IP.

Is this possible? I tried several iptable rules to do IP forwarding but it did not work.

Thanks for your help

Sam
vbox4me2
Volunteer
Posts: 5218
Joined: 21. Nov 2008, 20:27
Location: Rotterdam
Contact:

Re: Map external IPs to internal IP's to access GuestOS

Post by vbox4me2 »

It all depends how these vIP's are coming in, via a router? then its easy, via something else? then we need more info how this is coming in and how you are expected to manage them.
parmando
Posts: 5
Joined: 23. Jul 2009, 20:11
Primary OS: Debian Lenny
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Debian - Windows

Re: Map external IPs to internal IP's to access GuestOS

Post by parmando »

Use bridged networking when configuring your guest and assign one of those IPs (with mask, default gw, etc.) to your guest as if it where a normal ‘fisical’ server.
Post Reply