VXLAN Journey - Part 12 - Multi-Site VXLAN Anycast Border Gateway - dci-advertise-pip
In previous two blogs; part - 10 and part - 11, we have extended our data-centers Dc-01 and Dc-02 using anycast bgws. The bgws were announcing the type-2 (mac and mac+ip) and type-5 (prefix) routes across dci-links using their shared vip (loopback 100) as next-hop. In this blog we will change that behavior. The bgws will announce type-2 and type-5 routes using their PIP (loopback 1) as next-hop across dci-links. This feature is called - "dci-advertise-pip". With this we can achieve more utilization of our dci-links using ecmp - because now traffic is load-shared using individual pip address; it is not load-shared using the vip address. My recommendation is to enable this feature in anycast border-gateways.
Disclaimer: The feature increases the memory consumption in the border-gateways because BGP's rib and routing tables need to install more routes. So, enable this feature cautiously following the Nexus switch's hardware scalability guide.
Let's start configuring. Our topology looks like below -
We have Vrf_Blue (l3vni - 100000) which is extended over multisite. Then vlan 101 (l2vni - 100101) is also extended. But vlan 103 (l2vni - 100103) is not extended across multi-site.
For Spine, Leaf and Border-Gateway configurations have a look in the previous blogs. We will only show new configurations required of "dci-advertise-pip" over two different data-center fabrics. Also we are only showing the relevant Leaf switches which has an end-host relevant for our configuration. Other Leaf switches are still there; they are not just relevant for this blog.
Pre dci-advertise-pip Verification
Vlan-101-Pc-01 (10.91.101.11 - 50:da:22:00:39:00) is located in Dc-01 and vlan 101 is extended over the dci-links. If we inspect the relevant routes in remote-site Dc-02's bgws - all the next-hop is Dc-01's bgws shared vip - loopback 100.
!!! Vlan-101-Pc-01's host-route.
Dc-02-Border-Gateway-04# show ip route 10.91.101.11 vrf vrf_Blue
IP Route Table for VRF "Vrf_Blue"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
!!! Next-hop is 10.83.100.1 - Dc-01 bgw's shared-vip.
10.91.101.11/32, ubest/mbest: 1/0
*via 10.83.100.1%default, [20/2000], 00:00:43, bgp-4200000002, external, tag 4200000001, segid: 100000 tunnelid: 0xa
536401 encap: VXLAN
!!! Vlan-101-Pc-01's mac-route.
Dc-02-Border-Gateway-04# show mac address-table address 50:da:22:00:39:00
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link,
(T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan,
(NA)- Not Applicable A - ESI Active Path, S - ESI Standby Path
TL - True Learned, PS - Peer Sync, RO - Re-originate
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
!!! Next-hop is 10.83.100.1 - Dc-01 bgw's shared-vip.
C 101 50da.2200.3900 dynamic NA F F nve1(10.83.100.1)
Vlan 103 is configured in vrf Vrf_Blue in Dc-02 only; not extended over the dci-links. If we inspect the relevant routes in remote-site Dc-01's bgws - all the next-hop is Dc-02's bgws shared vip - loopback 100.
!!! Vlan-103 prefix-route.
Dc-01-Border-Gateway-04# show ip route 10.91.103.0 vrf Vrf_Blue
IP Route Table for VRF "Vrf_Blue"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
!!! Next-hop is 10.83.100.2 - Dc-02 bgw's shared-vip.
10.91.103.0/24, ubest/mbest: 1/0
*via 10.83.100.2%default, [20/1], 00:02:31, bgp-4200000001, external, tag 4200000002, segid: 100000 tunnelid: 0xa536
Border-Gateway dci-advertise-pip Configuration
Dc-01-Border-Gateway-03 & Dc-01-Border-Gateway-04 Configuration
router bgp 4200000001
address-family l2vpn evpn
!!! Enable ebgp multipath for l2vpn-evpn family.
!!! We will allow ecmp between 2-paths because remote-site has 2 bgws.
maximum-paths 2
vrf Vrf_Blue
address-family ipv4 unicast
!!! Route-leaking between l2vpn-evpn and vrf.
!!! Import two ebgp learned l2vpn-evpn multipath routes into vrf's table.
maximum-paths 2
evpn multisite border-gateway 4200000001
!!! Change next-hop from shred vip to pip over dci-links for l2vpn-evpn peering.
dci-advertise-pip
Dc-02-Border-Gateway-03 & Dc-02-Border-Gateway-04 Configuration
router bgp 4200000002
address-family l2vpn evpn
maximum-paths 2
vrf Vrf_Blue
address-family ipv4 unicast
maximum-paths 2
evpn multisite border-gateway 4200000001
dci-advertise-pip
Post dci-advertise-pip Verification
With dci-advertise-pip - all the border-gateways will announce next-hop as their PIP (loopback 1) for type-2 and type-5 routes.
Let's do the same verification now after the change - dci-advertise-pip.
!!! Vlan-101-Pc-01's host-route.
Dc-02-Border-Gateway-04# show ip route 10.91.101.11 vrf vrf_Blue
IP Route Table for VRF "Vrf_Blue"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
!!! Next-hop is changed to pip.
!!! 10.81.1.3 - Dc-01-Border-Gateway-03 pip.
!!! 10.81.1.4 - Dc-01-Border-Gateway-04 pip.
10.91.101.11/32, ubest/mbest: 2/0
*via 10.81.1.3%default, [20/2000], 00:19:04, bgp-4200000002, external, tag 4200000001, segid: 100000 tunnelid: 0xa51
0103 encap: VXLAN
*via 10.81.1.4%default, [20/2000], 00:19:01, bgp-4200000002, external, tag 4200000001, segid: 100000 tunnelid: 0xa51
0104 encap: VXLAN
!!! Vlan-101-Pc-01's mac-route.
Dc-02-Border-Gateway-04# show mac address-table address 50:da:22:00:39:00
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link,
(T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan,
(NA)- Not Applicable A - ESI Active Path, S - ESI Standby Path
TL - True Learned, PS - Peer Sync, RO - Re-originate
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
!!! Next-hop is changed to pip.
!!! 10.81.1.3 - Dc-01-Border-Gateway-03 pip.
!!! 10.81.1.4 - Dc-01-Border-Gateway-04 pip.
C 101 50da.2200.3900 dynamic NA F F nve1(10.81.1.3 10.81.1.4)
!!! Vlan-103 prefix-route.
Dc-01-Border-Gateway-04# show ip route 10.91.103.0 vrf Vrf_Blue
IP Route Table for VRF "Vrf_Blue"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
!!! Next-hop is changed to pip.
!!! 10.82.1.3 - Dc-02-Border-Gateway-03 pip.
!!! 10.82.1.4 - Dc-02-Border-Gateway-04 pip.
10.91.103.0/24, ubest/mbest: 2/0
*via 10.82.1.3%default, [20/1], 00:19:48, bgp-4200000001, external, tag 4200000002, segid: 100000 tunnelid: 0xa52010
3 encap: VXLAN
*via 10.82.1.4%default, [20/1], 00:19:46, bgp-4200000001, external, tag 4200000002, segid: 100000 tunnelid: 0xa52010
4 encap: VXLAN
With "dci-advertise-pip" we have changed the next-hop from vip to pip over the dci-links. But routes from site-local bgws to site-local vteps over the fabric-links is still announced using the vip.
!!! Vlan-101-Pc-01's host-route.
Dc-02-Leaf-06# show ip route 10.91.101.11 vrf Vrf_Blue
IP Route Table for VRF "Vrf_Blue"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
!!! Next-hop is site-local bgws (Dc-02) vip.
10.91.101.11/32, ubest/mbest: 1/0
*via 10.83.100.2%default, [200/2000], 02:35:31, bgp-4200000002, internal, tag 4200000001, segid: 100000 tunnelid: 0x
a536402 encap: VXLAN
!!! Vlan-101-Pc-01's mac-route.
Dc-02-Leaf-06# show mac address-table address 50:da:22:00:39:00
Legend:
* - primary entry, G - Gateway MAC, (R) - Routed MAC, O - Overlay MAC
age - seconds since last seen,+ - primary entry using vPC Peer-Link,
(T) - True, (F) - False, C - ControlPlane MAC, ~ - vsan,
(NA)- Not Applicable A - ESI Active Path, S - ESI Standby Path
TL - True Learned, PS - Peer Sync, RO - Re-originate
VLAN MAC Address Type age Secure NTFY Ports
---------+-----------------+--------+---------+------+----+------------------
!!! Next-hop is site-local bgws (Dc-02) vip.
C 101 50da.2200.3900 dynamic NA F F nve1(10.83.100.2)
!!! Vlan-103 prefix-route.
Dc-01-Leaf-08# show ip route 10.91.103.0 vrf Vrf_Blue
IP Route Table for VRF "Vrf_Blue"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>
!!! Next-hop is site-local bgws (Dc-01) vip.
10.91.103.0/24, ubest/mbest: 1/0
*via 10.83.100.1%default, [200/1], 02:46:57, bgp-4200000001, internal, tag 4200000002, segid: 100000 tunnelid: 0xa53
6401 encap: VXLAN
That's it for today. In part - 13, we will change the next-hop announced by the site-local bgws to site-local vteps over the fabric-links for type-5 routes with "fabric-advertise-pip".

Comments
Post a Comment