Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

My problem is how to access guest VM from outside network. I am going to describe my problem in details.

I have single machine with Ubuntu Server 12.04 LTS contains two NICs. One NIC is connected to my gateway(i.e. 10.0.0.1) and 10.0.0.3 is IP address of this interface. Another NIC has IP 192.168.0.3 but this is a part of Bridge(i.e. br0).

I created two guest Ubuntu 12.04 LTS Desktop VMs with IP address 192.168.0.100 and 192.168.0.110.

My /etc/network/interfaces file is as following:

The loopback network interface

auto lo
iface lo inet loopback

The primary network interface

auto eth2
iface eth2 inet manual

auto eth1
iface eth1 inet dhcp

auto br0
iface br0 inet static
    address 192.168.0.3
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 10.0.0.1
    bridge_ports eth2
    bridge_fd 9
    bridge_hello 2
    bridge_maxage 12
    bridge_stp off

I am able to ping to 10.0.0.3 from guest VM. But I am unable to ping gateway (i.e. 10.0.0.1). I already had a IP forwarding enable in /etc/sysctl.conf. But I am able to access the Internet from by host OS.

Can I get help to access 10.0.0.1 and other networks from guest VMs?

share|improve this question
1  
What VM manager are you using? This may be specific to your router, which we are unable to help with. –  hexafraction Sep 17 '12 at 17:02

1 Answer 1

Did you restart your network to make your changes active?

Use this:

sudo /etc/init.d/networking restart

so that your bridges become active.

share|improve this answer
    
I tried setting "Bridged adapter" and restarting the networking service. ifconfig command displays a ip address for the guest machine as 10.210.x.x, but I can not connect to the guest vm from my host machine through putty. What could be wrong? –  Andy Dufresne Sep 24 at 6:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.