# 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 swp1
iface swp1

auto swp2
iface swp2
    mstpctl-portautoedge no

auto swp3
iface swp3
    mstpctl-portbpdufilter yes
    mstpctl-bpduguard yes
    mstpctl-portadminedge yes
    mstpctl-portnetwork yes
    mstpctl-portrestrrole yes

auto br_default
iface br_default
    bridge-ports swp1 swp2 swp3
    bridge-vlan-aware yes
    bridge-vids 1
    bridge-pvid 1
    bridge-stp yes
    bridge-mcsnoop no
    mstpctl-forcevers rstp
