VXLAN Journey - Part 13 - Multi-Site VXLAN Anycast Border Gateway - fabric-advertise-pip
In part - 12, we have changed the next-hop announced by anycast border-gateways over the dci-links (inter-site). In this blog we will change the next-hop announced by anycast bgws over fabric-links (intra-site) from vip (loopback 100) to pip (loopback 1). This change will be valid for type-5 routes only; type-2 routes towards the site-internal vteps will still be announced with vip as next-hop. I am neutral in my recommendation to enable this feature. Enablement of this feature requires change in all the switches in the fabric - Bgw, Spine and Leaf.
Disclaimer: The feature increases the memory consumption in Leaf and Spine switches 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. This feature is only valid for type-5 routes only.
Our topology looks below -
01 - Network Topology
We have Vrf_Blue (l3vni - 100000) which is extended over multisite. Then vlan 102 (l2vni - 100102) and 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 "fabric-advertise-pip" over two different data-center fabrics. Also we are showing only 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 fabric-advertise-pip Verification
Vlan-102 (10.91.102.0/24 - L2VNI 100102) is located in Dc-01 and Vlan-103 (10.91.103.0/24 - L2VNI 100103) is located in Dc-02. None of the vlans is extended over dci-links; only their belonging vrf - Vrf_Blue (L3VNI - 100000) is extended over the dci-links. If we inspect the relevant routes in site-local vteps - all the next-hop are site-local bgws shared vip - loopback 100.
!!! Remote-Site's Vlan - 103 prefix route is announced by site-local bgws.
Dc-01-Leaf-06# 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 bgw's vip - loopback 100.
10.91.103.0/24, ubest/mbest: 1/0
*via 10.83.100.1%default, [200/1], 00:05:31, bgp-4200000001, internal, tag 4200000002, segid: 100000 tunnelid: 0xa53
6401 encap: VXLAN
!!! Remote-Site's Vlan - 102 prefix route is announced by site-local bgws.
Dc-02-Leaf-07# show ip route 10.91.102.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 bgw's vip - loopback 100.
10.91.102.0/24, ubest/mbest: 1/0
*via 10.83.100.2%default, [200/1], 00:13:47, bgp-4200000002, internal, tag 4200000001, segid: 100000 tunnelid: 0xa53
6402 encap: VXLAN
fabric-advertise-pip l3 configuration
This feature requires changes in all the switches in the fabric - Bgw, Spine and Leaf. Also Spine and Leaf switches needs to enable bgp additional-paths capability - RFC 7911. We will show configuration changes required in one Bgw, one Spine and one Leaf switch only. But in reality the configuration changes are applied in all the bgws, spines and leafs.
Anycast Bgw Configuration
!!! Use correct BGP ASN number.
router bgp 4200000001
address-family l2vpn evpn
!!! Increase ebgp maximum paths for l2vpn-evpn address family.
maximum-paths 2
evpn multisite border-gateway 4200000001
!!! Enable remote type-5 prefixes will be announce to site-local vteps using PIP.
fabric-advertise-pip l3
Spine Configuration
!!! Route-map to select which additional paths will be reflected by the spine.
!!! We are allowing the reflection of all the additional paths for a prefix.
route-map Rmap_L2VPN_Additional_Paths_Send permit 10
set path-selection all advertise
!!! Use correct BGP ASN number.
router bgp 4200000001
address-family l2vpn evpn
!!! Enable additional-paths send capability for l2vpn-evpn address family.
additional-paths send
!!! Select the additional paths for a prefix using the route-map.
additional-paths selection route-map Rmap_L2VPN_Additional_Paths_Send
Leaf Configuration
!!! Use correct BGP ASN number.
router bgp 4200000001
address-family l2vpn evpn
!!! Enable additional-paths receive capability for l2vpn-evpn address family.
additional-paths receive
!!! Increase ibgp maximum paths for l2vpn-evpn address family.
maximum-paths ibgp 2
Post fabric-advertise-pip Verification
We are enabling a bgp capability called - additional-paths between Spine and Leaf switch. We can verify if the capability has been successfully negotiated -
Dc-01-Leaf-06# show bgp l2vpn evpn neighbors 10.81.0.1
BGP neighbor is 10.81.0.1, remote AS 4200000001, ibgp link, Peer index 3
Description: Dc-01-Spine-01_Evpn
BGP version 4, remote router ID 10.81.0.1
Neighbor previous state = OpenConfirm
BGP state = Established, up for 02:41:22
Neighbor vrf: default
Using loopback0 as update source for this peer
Neighbor capabilities:
Dynamic capability: advertised (mp, refresh, gr) received (mp, refresh, gr)
Dynamic capability (old): advertised received
Route refresh capability (new): advertised received
Route refresh capability (old): advertised received
4-Byte AS capability: advertised received
Address family L2VPN EVPN: advertised received
Graceful Restart capability: advertised received
Graceful Restart Parameters:
Address families advertised to peer:
L2VPN EVPN
Address families received from peer:
L2VPN EVPN
Additional Paths capability: advertised received
Additional Paths Capability Parameters:
!!! Leaf announces only receive capability to Spine.
Receive capability advertised to Peer for AF:
L2VPN EVPN
!!! Spine announces only send capability to Leaf.
Send capability received from Peer for AF:
L2VPN EVPN
Extended Next Hop Encoding Capability: advertised received
Receive IPv6 next hop encoding Capability for AF:
IPv4 Unicast VPNv4 Unicast
At this time type-5 prefixes we have verified before their next-hop should be changed from vip to pip.
!!! Remote-Site's Vlan - 103 prefix route is announced by site-local bgws.
Dc-01-Leaf-06# 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 bgw's pip - loopback 1.
10.91.103.0/24, ubest/mbest: 2/0
*via 10.81.1.3%default, [200/1], 02:47:33, bgp-4200000001, internal, tag 4200000002, segid: 100000 tunnelid: 0xa5101
03 encap: VXLAN
*via 10.81.1.4%default, [200/1], 02:47:33, bgp-4200000001, internal, tag 4200000002, segid: 100000 tunnelid: 0xa5101
04 encap: VXLAN
!!! Remote-Site's Vlan - 102 prefix route is announced by site-local bgws.
Dc-02-Leaf-07# show ip route 10.91.102.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 bgw's pip - loopback 1.
10.91.102.0/24, ubest/mbest: 2/0
*via 10.82.1.3%default, [200/1], 02:47:51, bgp-4200000002, internal, tag 4200000001, segid: 100000 tunnelid: 0xa5201
03 encap: VXLAN
*via 10.82.1.4%default, [200/1], 02:47:48, bgp-4200000002, internal, tag 4200000001, segid: 100000 tunnelid: 0xa5201
04 encap: VXLAN
That's it for today. In part - 14, we will implement external routing for our multisite fabric using vrf-lite.

Comments
Post a Comment