I try to configure my VMs to get access to a VLAN attached to the server, and fail.
My config looks like this:
Code: Select all
S11-Server ------ Network switch ----- more devices on VLAN 2 (192.168.0.x)
\------ more devices on VLAN 0 (192.168.94.x)
Code: Select all
root@infra1:~# modinfo |grep vbox
208 fffffffff7ee95b8 ce0 304 1 vboxnet (VirtualBox NetAdp 4.3.6r91406)
210 fffffffff807a000 380b0 303 1 vboxdrv (VirtualBox HostDrv 4.3.6r91406)
274 fffffffff8d7c000 3838 305 1 vboxbow (VirtualBox NetBow 4.3.6r91406)
275 fffffffff8d80000 45b0 306 1 vboxusbmon (VirtualBox USBMon 4.3.6r91406)
276 fffffffff8d85000 7528 307 1 vboxusb (VirtualBox USB 4.3.6r91406)
Code: Select all
root@infra1:~# dladm show-link
LINK CLASS MTU STATE OVER
net1 phys 1500 up --
net2 phys 1500 down --
net0 phys 1500 up --
net3 phys 1500 down --
vboxnet0 phys 1500 up --
vlan2 vlan 1500 up net0
vboxvnic0 vnic 1500 up net0
vboxvnic1 vnic 1500 up net0
vboxvnic2 vnic 1500 up net1
vboxvnic3 vnic 1500 up net0
vboxvnic4 vnic 1500 up net0
vboxvnic5 vnic 1500 up net0
vboxvnic6 vnic 1500 up net1
Code: Select all
root@infra1:~# dladm show-vlan
LINK VID OVER FLAGS
vlan2 2 net0 -----
Code: Select all
root@infra1:~# ipadm
NAME CLASS/TYPE STATE UNDER ADDR
lo0 loopback ok -- --
lo0/v4 static ok -- 127.0.0.1/8
lo0/v6 static ok -- ::1/128
net0 ip ok -- --
net0/v4 static ok -- 192.168.94.111/24
net0/v4a static ok -- 192.168.94.123/24
net1 ip ok -- --
net1/v4 static ok -- 192.168.1.111/24
vlan2 ip ok -- --
vlan2/v4 static ok -- 192.168.0.71/24
Next, I build VMs that use bridged networking utilizing the vlan2 device. On the networking tab in VBox, the interface is shown as "vlan2 - Virtual LAN Ethernet". The VMs can communicate with each other over this link, but I cannot reach the outside world.
Any idea what I might do wrong?