Skip to contentSkip to conversation

unable to get guests network working ( VLAN 802.1q )

DISCUSSION Frank Bonnet 1 participant 1 message Feb 28, 2013 KVM

lore
Share & tools
lore
#0 lore raw

Hello

I'm new to KVM ...

I've setup an hypervisor on a Debian server (7.0 RC1 ) and I have followed usual tutorial to do so.

Everything seems work well except I am unable to connect the first guest I've build to my LAN.

I use 802.1q VLAN , the Cisco switch is configured to use it and transport the VLANs on the connected port to the server the 8021q module is loaded.

------------------------------------------------------------
interface GigabitEthernet1/0/6
description HYPVM
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 2,30,110,150
switchport mode trunk
spanning-tree portfast trunk
------------------------------------------------------------

the /etc/network/interfaces of the server is pretty simple

------------------------------------------------------------
auto lo eth0 br-110 br-30
iface lo inet loopback
iface eth0 inet manual

iface br-30 inet static
bridge_ports eth0.30
bridge_maxwait 0
bridge_stp off
bridge_fd 0
address 147.215.1.25
netmask 255.255.255.0
broadcast 147.215.1.255
network 147.215.1.0
gateway 147.215.1.1

iface br-110 inet static

      bridge_ports eth0.110
      bridge_maxwait 0
      bridge_stp off
      bridge_fd 0

-------------------------------------------------------------

VLAN numbers are 30 and 110 , I can connect to the br-30 interface from the LAN.

the guest host is supposed to have an IP address in the 147.215.110.0 network ( VLAN 110 ).

I can build it with virt-manager but when it try to access to the LAN it fails ...

If someone could help ...
thanks in advance