# 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
    address 10.0.0.11/32
    vxlan-local-tunnelip 10.0.0.11

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

auto BLUE
iface BLUE
    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 vlan10
iface vlan10
    address 192.168.10.1/24
    address-virtual 00:00:5e:00:01:01 192.168.10.254/24
    vrf BLUE
    vlan-raw-device br_default
    vlan-id 10

auto vxlan48
iface vxlan48
    bridge-vlan-vni-map 42=42
    bridge-learning off

auto vlan3607_l3
iface vlan3607_l3
    vrf BLUE
    vlan-raw-device br_l3vni
    vlan-id 3607

auto vxlan99
iface vxlan99
    bridge-vlan-vni-map 3607=104001
    bridge-learning off

auto br_default
iface br_default
    bridge-ports vxlan48
    bridge-vlan-aware yes
    bridge-vids 42
    bridge-pvid 1
    bridge-stp yes
    bridge-mcsnoop no
    mstpctl-forcevers rstp

auto br_l3vni
iface br_l3vni
    bridge-ports vxlan99
    bridge-vlan-aware yes
