Can someone please post a working example of a working VLAN aware bridge configuration?
I would like to have one bridge and then define the VLAN in the VM configuration.
I made it working with Open vSwitch and traditional VLAN devices (enclosed code).
But not with the VLAN aware example in the documenation. Mostly the devices are not recognized in the GUI.
Traditional VLAN devices:
Open vSwitch:
I would like to have one bridge and then define the VLAN in the VM configuration.
I made it working with Open vSwitch and traditional VLAN devices (enclosed code).
But not with the VLAN aware example in the documenation. Mostly the devices are not recognized in the GUI.
Traditional VLAN devices:
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual
iface enp1 inet manual
iface enp1.100 inet manual
iface enp1.200 inet manual
iface enp1.300 inet manual
iface enp1.400 inet manual
iface enp1.500 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.0.8/20
gateway 10.0.0.1
dns-nameservers 10.0.0.1
dns-domain intra
bridge-ports enp1
bridge-stp off
bridge-fd 5
iface vmbr0 inet6 auto
address fd00::8/64
# gateway fd00::1
dns-nameservers fd00::1
dns-domain intra
up sysctl -w net.ipv6.conf.$IFACE.autoconf=1
up sysctl -w net.ipv6.conf.$IFACE.accept_ra=2
up ip token set ::8 dev $IFACE
auto vmbr1
iface vmbr1 inet manual
bridge-ports enp1.100
bridge-stp off
bridge-fd 5
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1
auto vmbr2
iface vmbr2 inet manual
bridge-ports enp1.200
bridge-stp off
bridge-fd 5
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1
auto vmbr3
iface vmbr3 inet manual
bridge-ports enp1.300
bridge-stp off
bridge-fd 5
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1
auto vmbr4
iface vmbr4 inet manual
bridge-ports enp1.400
bridge-stp off
bridge-fd 5
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1
auto vmbr5
iface vmbr5 inet manual
bridge-ports enp1.500
bridge-stp off
bridge-fd 5
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1
Open vSwitch:
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
iface eno2 inet manual
iface eno3 inet manual
iface eno4 inet manual
allow-vmbr0 enp1s0
iface enp1s0 inet manual
ovs_type OVSPort
ovs_bridge vmbr0
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1
auto lan
allow-vmbr0 lan
iface lan inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
address 10.0.0.8/20
gateway 10.0.0.1
dns-nameservers 10.0.0.1
dns-domain intra
iface lan inet6 auto
address fd00::8/64
gateway fd00::1
dns-nameservers fd00::1
dns-domain intra
up ip token set ::8 dev $IFACE
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports enp1s0 lan
up sysctl -w net.ipv6.conf.$IFACE.disable_ipv6=1