VXLAN Journey - Part 04 - rt-2 (mac+ip), rt-5 (prefix-route), router-mac, symmetric irb and intra-vrf packet walkthrough
In Part 03 - we have covered a lot of things related to single-site VXLAN implementation. But several things we have not explained. Let's explain them now.
Network Topology
Our topology is the same as previous blog -
We already know about rt-2 with which contains mac address of our connected hosts. Now we are seeing another type of rt-2 (mac+ip) which contains both mac and ip address of our connected hosts. This type of rt-2 will be generated if we have VRF/L3VNI only. Vlan 101 is configured on both Leaf-Sw-01 and Leaf-Sw-02. But Vlan 102 is configured on Leaf-Sw-02 only. Leaf-Sw-02 will send both combinations of rt-2 (mac) and rt-2 (mac+ip) to Leaf-Sw-01 for both the vlans.
Leaf-Sw-02# show bgp l2vpn evpn neighbors 10.81.0.1 advertised-routes
Peer 10.81.0.1 routes for address family L2VPN EVPN:
BGP table version is 426, Local Router ID is 10.81.0.2
Status: s-suppressed, x-deleted, S-stale, d-dampened, h-history, *-valid, >-best
Path type: i-internal, e-external, c-confed, l-local, a-aggregate, r-redist, I-injected
Origin codes: i - IGP, e - EGP, ? - incomplete, | - multipath, & - backup, 2 - best2
Network Next Hop Metric LocPrf Weight Path
!!! rt-2 routes for Vlan-101-Pc-02.
Route Distinguisher: 10.81.0.2:32868 (L2VNI 100101)
*>l[2]:[0]:[0]:[48]:[5077.ae00.0500]:[0]:[0.0.0.0]/216
10.81.1.2 100 32768 i
*>l[2]:[0]:[0]:[48]:[5077.ae00.0500]:[32]:[10.85.101.12]/272
10.81.1.2 100 32768 i
!!! rt-2 routes for Vlan-102-Pc-01.
Route Distinguisher: 10.81.0.2:32869 (L2VNI 100102)
*>l[2]:[0]:[0]:[48]:[5017.2e00.2b00]:[0]:[0.0.0.0]/216
10.81.1.2 100 32768 i
*>l[2]:[0]:[0]:[48]:[5017.2e00.2b00]:[32]:[10.85.102.11]/272
10.81.1.2 100 32768 i
Upon receiving those routes - Leaf-Sw-01, will check its VNI-database and find out vlan 102/L2VNI 100102 is not defined locally. It will install both types of rt-2 for vlan 101/L2VNI 100101. But for vlan 102/L2VNI 100102 - it will reject the rt-2 (mac) route; only install the rt-2 (mac+ip) route. The rt-2 (mac+ip) BGP-Update includes both the L2VNI and L3VNI. It also contains a BGP extended community called Router-Mac (RMAC) - more about that later in this blog. Below is a capture of BGP update for rt-2 (mac+ip) -
![]() |
| 02 - BGP Update RT-2 (MAC+IP) |
With rt-5 (IP Prefix Route) - the switch basically advertises the IP subnets for which it is Anycast-Gateway in a VRF. Another use case is - if we receive routes/prefixes from another router which is not part of the fabric (for-example - vrf-lite handoff), those prefixes learned from external routers will be announced as rt-5 towards the vxlan fabric.
RT-5 routes are available when we have configured Vrf/L3VNI in the switches. In NLRI information it carries subnet and mask in two different fields. Also it carries the RMAC (router mac). Below is a capture of BGP update for rt-5 (prefix route) -

.png)
.png)





Comments
Post a Comment