Connecting bridge to internal network for internet access

Discussions about using Linux guests in VirtualBox.
Post Reply
Bill12345
Posts: 1
Joined: 28. Nov 2015, 07:39

Connecting bridge to internal network for internet access

Post by Bill12345 »

I was hoping someone could help me with a virtualbox networking question. I've searched many places for the answer but so far no luck.

I have two CentOS instances in virtualbox setup called A and B.

A is the gateway with the first network adapter as a bridge and a second as an internal network. The bridge ip is 192.168.1.113 and the internal network adapter is 10.0.3.2

B is attached to the internal network at an ip of 10.0.3.3.

The internet router is 192.168.1.1

A can access the internet and ping B just fine.

B can ping A successfully at both ip address (192.168.1.113 and 10.0.3.3).

The ips on the machines are static.

The problem arises when trying to ping the internet gateway from B. It cannot ping the router at all (it just sits there). I looked in the router settings and there's nothing unusual there nor any specific rules disallowing access. I've disabled the firewalls temporarily on both VMs.

The hosting operating system is Windows 7. I've tried temporarily disabling the firewall to make sure that wasn't the problem, but still no dice.

I'm hoping someone here can help me out because this is driving me crazy. I'm sure it is something simple too....

If any additional info is needed, I will gladly provide it

Thank you
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Connecting bridge to internal network for internet acces

Post by Perryg »

Assuming that you are using the internal network mode, it sounds like you have not setup your routing on A to allow it to accept B which in on a different subnet.

http://www.techrepublic.com/article/und ... x-routing/

http://www.thegeekstuff.com/2012/04/route-examples/
Post Reply