# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*.intf

auto lo
iface lo inet loopback

auto mgmt
iface mgmt
    address 127.0.0.1/8
    address 127.0.1.1/8
    address ::1/128
    vrf-table auto

auto eth0
iface eth0 inet dhcp
    ip-forward off
    ip6-forward off
    vrf mgmt

auto swp6
iface swp6

auto vlan500
iface vlan500
    address 192.0.2.252/24
    address 2001:db8::1/32
    address-virtual 00:00:5e:50:00:01 192.0.2.254/24 2001:db8::f/32
    vlan-raw-device br_default
    vlan-id 500

auto vlan200
iface vlan200
    address 10.104.16.2/22
    disable-ipv6 yes
    address-virtual 00:00:5e:50:01:12 10.104.16.1/22
    vlan-raw-device br_default
    vlan-id 200

auto vlan300
iface vlan300
    address 10.104.17.2/22
    disable-ipv6 yes
    vlan-raw-device br_default
    vlan-id 300

auto br_default
iface br_default
    bridge-ports swp6
    bridge-vlan-aware yes
    bridge-vids 1 200 500
    bridge-pvid 1
    bridge-stp yes
    bridge-mcsnoop no
    mstpctl-forcevers rstp
