Dear list admin:

I am sorry for inadvertently creating a new thread. Please feel free to delete 
that one. I pasted its content to this thread, but couldn't delete that myself.

Thanks!

I was able to achieve what I wanted to do by the /etc/network/interfaces file 
posted below on the host. KVM/QEMU does not accept the bridge notation with 
dots in it, such as bridge0.20. Instead, one needs to create a separate vlan 
definition and a bridge on top of that vlan. This would create an access port 
for the VMs that use that bridge. What I was trying to do was to create a trunk 
port on a bridge, and by the static IP chosen for VMs, let each VM claim their 
VLANs. In this working
version, the access ports claim the VLAN that the VM would belong to instead. I 
hope that this would help people avoid the suffering Iendured during the last 
week to achieve this, lol!

[code]
auto lo
iface lo inet loopback

# bond interface
auto bond0
iface bond0 inet manual
        bond-slaves enp5s0 enp6s0
        bond-mode 802.3ad
        bond-xmit-hash-policy layer2+3
        bond-miimon 100
        bond-lacp-rate 1

# vlan 20
auto vlan20
iface vlan20 inet manual
        vlan-id 20
        vlan-raw-device bridge0

auto bridge20
iface bridge20 inet manual
        bridge-ports vlan20

# bridge interface
auto bridge0
iface bridge0 inet manual
        bridge-ports bond0
        bridge_stp on
        bridge_fd 2
        bridge_maxwait 0
        bridge-vlan-aware yes
        bridge-vids 1-500

auto bridge0.1
iface bridge0.1 inet static
        address 192.168.1.130/24
        gateway 192.168.1.1
[/code]
_______________________________________________
Users mailing list -- users@lists.libvirt.org
To unsubscribe send an email to users-le...@lists.libvirt.org

Reply via email to