Virtual server Ubuntu Guest *bridged* what gateway?

Discussions about using Linux guests in VirtualBox.
Post Reply
Yopster
Posts: 2
Joined: 1. Jun 2011, 11:14
Primary OS: MS Windows 2008
VBox Version: OSE other
Guest OSses: Ubuntu Server x64

Virtual server Ubuntu Guest *bridged* what gateway?

Post by Yopster »

Hi there

I have a dedicated Windows 2008 R2 server with this main IP:
Address: xxx.xxx.125.146
Gateway: xxx.xxx.125.129

the server has been given additional IP addresses like this:

Address: xxx.xxx.101.228, xxx.xxx.101.229, xxx.xxx.101.230

I am trying to assign an IP address and Gateway to my Ubuntu guest in bridged mode.
I assume the Gateway is meant to be the main IP of the Windows machine, but the assigned IP addresses are not in the same subnet as this. This, I suspect is why I cannot get it to work.

Do I need to ask for a public IP address in the same subnet as the main Ip of the Windows machine or can I use a special Subnet Mask to route these IPs?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Virtual server Ubuntu Guest *bridged* what gateway?

Post by BillG »

No. If you are using bridged mode, the gateway is certainly not anything to do with the host. In bridged mode, the guest should be on the same network as the host, and the gateway should be the same IP as the host uses for its gateway. The guest should have an IP of xxx.xxx.125.xyz and gateway zzz.zzz.125.129 .
Bill
Yopster
Posts: 2
Joined: 1. Jun 2011, 11:14
Primary OS: MS Windows 2008
VBox Version: OSE other
Guest OSses: Ubuntu Server x64

Re: Virtual server Ubuntu Guest *bridged* what gateway?

Post by Yopster »

BillG wrote:No. If you are using bridged mode, the gateway is certainly not anything to do with the host. In bridged mode, the guest should be on the same network as the host, and the gateway should be the same IP as the host uses for its gateway. The guest should have an IP of xxx.xxx.125.xyz and gateway zzz.zzz.125.129 .
Thanks BillG

The problem I have now is the IPs that have been assigned to the host are not in the same subnet as the host gateway e.g xxx.xxx.101.xyz is not in the same subnet as xxx.xxx.125.129

So how would I connect the Linux box to this gateway? I've been told we cannot change the main IP of the Host Windows server nor can we get any more IPs. So I'm stuck with useless IPs?

What ya think?
Martin
Volunteer
Posts: 2562
Joined: 30. May 2007, 18:05
Primary OS: Fedora other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: XP, Win7, Win10, Linux, OS/2

Re: Virtual server Ubuntu Guest *bridged* what gateway?

Post by Martin »

If you got additional IP addresses from a different subnet they need to tell you the gateway address for that subnet.
Post Reply