-
Notifications
You must be signed in to change notification settings - Fork 1
/
cumulus_interfaces
48 lines (42 loc) · 1 KB
/
cumulus_interfaces
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# The loopback network interface, mirrored by SRL2
auto lo
iface lo inet loopback
address 1.1.1.2/32
auto swp12
iface swp12
bridge-access 1 # Native VLAN 1 untagged
# Shared bridge: Underlay native VLAN 1 untagged for VXLAN traffic
auto bridge
iface bridge
bridge-ports swp12 vni-10
bridge-pvid 1
bridge-vids 1 10
bridge-vlan-aware yes
auto vlan1
iface vlan1
address 10.0.0.1/31
vlan-id 1
vlan-raw-device bridge
post-up ip route add 1.1.1.1/32 via 10.0.0.0
# Overlay VRF
auto ipvrf
iface ipvrf
vrf-table auto
# Use VLAN 10 for overlay
auto vni-10
iface vni-10
bridge-access 10
mstpctl-bpduguard yes
mstpctl-portbpdufilter yes
vxlan-id 10
vxlan-local-tunnelip 1.1.1.2
vxlan-remoteip 1.1.1.1 # srl1 on swp12
bridge-learning on
#Tenant SVIs - optional anycast GW
auto vlan10
iface vlan10
address 10.10.10.2/24 # Same as irb0.1 interface SRL2
# address-virtual 44:39:39:ff:00:13 10.1.3.1/24
vlan-id 10
vlan-raw-device bridge
vrf ipvrf