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.

I have VirtualBox running on a Ubuntu 12.04 server. On this host, I created eth2, which has an IP of 14.0.0.4 and connects to a router for access to the internet.

In addition, I created eth2.15, eth2.16, and eth2.17 with VLAN. For example:

auto eth2
iface eth2 inet static
address 14.0.0.4
netmask 255.255.255.0

auto eth2.15
iface eth2.15 inet static
    vlan-raw-device eth2
    address 14.0.1.4
    netmask 255.255.255.0

auto eth2.16
iface eth2.16 inet static
    vlan-raw-device eth2
    address 14.0.2.4
    netmask 255.255.255.0

auto eth2.17
iface eth2.17 inet static
    vlan-raw-device eth2
    address 14.0.3.4
    netmask 255.255.255.0

The router using switchport trunk interface that allows VLANs 14, 15, 16, and 17. There are interface VLANs set up for each of the VLANs and IPs of 14.0.0.1, 14.0.1.1, 14.0.2.1, and 14.0.3.1.

Now, I created a guest OS (Ubuntu 12.04) and set adapter 1 to NAT and adapter 2 to bridged eth2.17. On the VM, I set eth1 to static IP 14.0.3.5. From this guest, I can ping 14.0.3.5, and the router 14.0.3.1 and get out on the internet. There are several Ubuntu servers that are on this 14.0.3.x network and they are all accessible.

I created a second guest OS (Ubuntu 12.04) and did the same thing, only using eth2.15 and an IP of 14.0.1.5 for eth1. With this VM, though, I cannot ping 14.0.1.4, nor any other IP.

I'm at a loss as to why it doesn't work for this second guest. Any suggestions on how to troubleshoot this issue, or what I may have done wrong?

Note: goal here is to have a third guest for 14.0.2.x net. So I'll have three VMs with three networks. These build server VMs are being used to configure multiple machines on each of the networks.

share|improve this question
add comment

Your Answer

 
discard

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

Browse other questions tagged or ask your own question.