-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathleaf-r202
171 lines (171 loc) · 3.71 KB
/
leaf-r202
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
! Command: show running-config
! device: leaf-r202 (vEOS, EOS-4.18.5M)
!
! boot system flash:/vEOS-lab.swi
!
transceiver qsfp default-mode 4x10G
!
service routing protocols model multi-agent
!
hostname leaf-r202
!
spanning-tree mode mstp
no spanning-tree vlan 4000
!
no aaa root
!
vlan 100
name GROUP1
!
vlan 200
!
vlan 4000
name mlag-control
trunk group mlag-control
!
vlan 4001
name iBGP_LOCAL_PEER
trunk group iBGP_LOCAL_PEER
!
interface Port-Channel1
description node-r201
switchport access vlan 100
mlag 1
!
interface Port-Channel2
description node-r202
switchport access vlan 200
mlag 2
!
interface Port-Channel2000
description mlag-peerlink
switchport mode trunk
switchport trunk group iBGP_LOCAL_PEER
switchport trunk group mlag-control
!
interface Ethernet1
description SPINE1
no switchport
ip address 172.18.121.2/30
!
interface Ethernet2
description SPINE2
no switchport
ip address 172.18.122.2/30
!
interface Ethernet3
description SPINE3
no switchport
ip address 172.18.123.2/30
!
interface Ethernet4
!
interface Ethernet5
description node-r201
channel-group 1 mode active
!
interface Ethernet6
description node-r202
channel-group 2 mode active
!
interface Ethernet7
description mlag-peerlink
channel-group 2000 mode active
!
interface Loopback0
description VTEP
ip address 172.17.20.1/32
!
interface Loopback255
description MGMT
ip address 10.255.255.22/32
!
interface Management1
!
interface Vlan100
ip address 10.1.100.5/24
ip virtual-router address 10.1.100.1
!
interface Vlan200
ip address 10.1.200.5/24
ip virtual-router address 10.1.200.1
!
interface Vlan4000
ip address 192.168.2.2/30
!
interface Vlan4001
description iBGP_LOCAL_PEER
ip address 172.16.20.2/30
!
interface Vxlan1
vxlan source-interface Loopback0
vxlan udp-port 4789
vxlan vlan 100 vni 1100
vxlan vlan 200 vni 1200
!
ip virtual-router mac-address 50:00:43:21:12:34
!
ip routing
!
ip prefix-list LOOPBACKS
seq 10 permit 172.17.20.1/32
seq 20 permit 10.255.255.22/32
!
mlag configuration
domain-id MLAG1
heartbeat-interval 1000
local-interface Vlan4000
peer-address 192.168.2.1
peer-link Port-Channel2000
reload-delay 200
!
route-map LOOPBACKS permit 10
match ip address prefix-list LOOPBACKS
!
router bgp 65100
router-id 10.255.255.22
maximum-paths 3
neighbor LOCAL_PEER peer-group
neighbor LOCAL_PEER remote-as 65100
neighbor LOCAL_PEER next-hop-self
neighbor LOCAL_PEER maximum-routes 12000
neighbor SPINE peer-group
neighbor SPINE remote-as 65000
neighbor SPINE allowas-in 1
neighbor SPINE route-map LOOPBACKS out
neighbor SPINE send-community
neighbor SPINE maximum-routes 12000
neighbor SPINE-EVPN peer-group
neighbor SPINE-EVPN remote-as 65000
neighbor SPINE-EVPN update-source Loopback255
neighbor SPINE-EVPN allowas-in 1
neighbor SPINE-EVPN ebgp-multihop 5
neighbor SPINE-EVPN send-community extended
neighbor SPINE-EVPN maximum-routes 12000
neighbor 10.255.255.1 peer-group SPINE-EVPN
neighbor 10.255.255.2 peer-group SPINE-EVPN
neighbor 10.255.255.3 peer-group SPINE-EVPN
neighbor 172.16.20.1 peer-group LOCAL_PEER
neighbor 172.18.121.1 peer-group SPINE
neighbor 172.18.122.1 peer-group SPINE
neighbor 172.18.123.1 peer-group SPINE
redistribute connected route-map LOOPBACKS
!
vlan 100
rd 10.255.255.22:1100
route-target both 1100:1100
redistribute learned
!
vlan 200
rd 10.255.255.22:1200
route-target both 1200:1200
redistribute learned
!
address-family evpn
no neighbor SPINE activate
neighbor SPINE-EVPN activate
!
address-family ipv4
no neighbor SPINE-EVPN activate
!
end