# 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 ::1/128
    vrf-table auto

auto eth0
iface eth0
    address 192.168.0.15/24
    gateway 192.168.0.2
    ip-forward off
    ip6-forward off
    vrf mgmt

auto swp4
iface swp4
    link-speed 10000
    link-autoneg off

auto swp5
iface swp5
    link-speed 10000
    link-autoneg off

auto swp1
iface swp1
    address 20.0.1.1/24
    link-speed 10000
    link-autoneg off

auto swp2
iface swp2
    address 20.0.2.1/24
    link-speed 10000
    link-autoneg off

auto swp3
iface swp3
    address 20.0.3.1/24
    link-speed 10000
    link-autoneg off

auto swp6
iface swp6
    bridge-vids 201 202 203
    link-speed 10000
    link-autoneg off

auto swp7
iface swp7
    bridge-vids 200 201
    link-speed 10000
    link-autoneg off

auto swp8
iface swp8
    bridge-vids 200
    link-speed 10000
    link-autoneg off

auto vlan200
iface vlan200
    address 20.0.0.1/24
    vlan-raw-device br_default
    vlan-id 200

auto br_default
iface br_default
    bridge-ports swp4 swp5 swp6 swp7 swp8
    bridge-vlan-aware yes
    bridge-vids 200 201 202 203 204
    bridge-pvid 1
    bridge-stp no
    bridge-mcsnoop no
