show bgp evpn l2route

Displays BGP EVPN Layer 2 route information in the MAC VRF table.

Syntax

show bgp evpn l2route type { arp |igmp-join-sync | igmp-leave-sync | inclusive-multicast | mac | nd}

Parameters

type { arp |igmp-join-sync | igmp-leave-sync | inclusive-multicast | mac | nd}
Specifies the type of route.

Modes

Privileged EXEC mode

Examples

The following example shows routes in the VPN table.

device# show bgp evpn l2route
Total number of BGP EVPN Routes : 5
Status codes: s suppressed, d damped, h history, * valid, > best, i internal, S stale
Origin codes: i - IGP, e - EGP, ? - incomplete
    Network            Next Hop        MED        LocPrf     Weight Path
Route Distinguisher: 3.3.100.3:1
*>  IMR:[50][IPv4:3.3.100.3]
                          0.0.0.0         0          100        0      ?
*>i IMR:[50][IPv4:4.4.100.4]
                          4.4.100.4       0          100        0      ?
*>i IMR:[50][IPv4:5.5.100.5]
                          5.5.100.5       0          100        0      ?
*>  MAC:[50][0000.0300.0050]
                          0.0.0.0         0          100        0      ?
*>i MAC:[50][0000.0400.0050]
                          4.4.100.4       0          100        0      ?

The following example displays details for inclusive-multicast routes. In this example, the EVPN instance is configured with route-targets configured automatically.

device# show bgp evpn l2route type inclusive-multicast detail
Total number of BGP EVPN IMR Routes : 3
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED 
       E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
       S:SUPPRESSED F:FILTERED s:STALE
Route Distinguisher: 3.3.100.3:1
1       Prefix: IMR:[50][IPv4:3.3.100.3],  Status: BL,  Age: 0h8m46s
         NEXT_HOP: 0.0.0.0, Learned from Peer: Local Router
          LOCAL_PREF: 100,  MED: 0,  ORIGIN: incomplete,  Weight: 0
         AS_PATH: 
            Extended Community: ExtCom:03:0c:00:00:00:00:00:08 
            PMSI Attribute Flags: 0x00000000  Label-Stack: 0x00000032 Tunnel-Type: 0x00000006 Tunnel-IP: 3.3.100.3
            Extended Community: ExtCom: Tunnel Encapsulation (Type Vxlan)
            L2_vni: 50 
            RD: 3.3.100.3:1
2       Prefix: IMR:[50][IPv4:4.4.100.4],  Status: BI,  Age: 0h2m43s
         NEXT_HOP: 4.4.100.4, Learned from Peer: 4.4.100.4 (100)
          LOCAL_PREF: 100,  MED: 0,  ORIGIN: incomplete,  Weight: 0
         AS_PATH: 
            Extended Community: ExtCom:03:0c:00:00:00:00:00:08 RT 25600:838860816 RT 100:50 
            PMSI Attribute Flags: 0x00000000  Label-Stack: 0x00000032 Tunnel-Type: 0x00000006 Tunnel-IP: 4.4.100.4
            Extended Community: ExtCom: Tunnel Encapsulation (Type Vxlan)
            L2_vni: 50 
            RD: 3.3.100.3:1
3       Prefix: IMR:[50][IPv4:5.5.100.5],  Status: BI,  Age: 0h2m37s
         NEXT_HOP: 5.5.100.5, Learned from Peer: 5.5.100.5 (100)
          LOCAL_PREF: 100,  MED: 0,  ORIGIN: incomplete,  Weight: 0
         AS_PATH: 
            Extended Community: ExtCom:03:0c:00:00:00:00:00:08 RT 25600:838860816 RT 100:50 
            PMSI Attribute Flags: 0x00000000  Label-Stack: 0x00000032 Tunnel-Type: 0x00000006 Tunnel-IP: 5.5.100.5
            Extended Community: ExtCom: Tunnel Encapsulation (Type Vxlan)
            L2_vni: 50 
            RD: 3.3.100.3:1


The following example displays details for inclusive-multicast routes. In this example, the EVPN instance is configured with route-targets configured explicitly.

device# show bgp evpn l2route type inclusive-multicast detail
Total number of BGP EVPN IMR Routes : 2
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
       E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
       S:SUPPRESSED F:FILTERED s:STALE
Route Distinguisher: 3.3.100.3:1
1       Prefix: IMR:[50][IPv4:3.3.100.3],  Status: BL,  Age: 0h4m17s
         NEXT_HOP: 0.0.0.0, Learned from Peer: Local Router
          LOCAL_PREF: 100,  MED: 0,  ORIGIN: incomplete,  Weight: 0
         AS_PATH: 
            Extended Community: ExtCom:03:0c:00:00:00:00:00:08 
            PMSI Attribute Flags: 0x00000000  Label-Stack: 0x00000032 Tunnel-Type: 0x00000006 Tunnel-IP: 3.3.100.3
            Extended Community: ExtCom: Tunnel Encapsulation (Type Vxlan)
            L2_vni: 50 
            RD: 3.3.100.3:1
2       Prefix: IMR:[50][IPv4:4.4.100.4],  Status: BI,  Age: 0h3m31s
         NEXT_HOP: 4.4.100.4, Learned from Peer: 4.4.100.4 (100)
          LOCAL_PREF: 100,  MED: 0,  ORIGIN: incomplete,  Weight: 0
         AS_PATH: 
            Extended Community: ExtCom:03:0c:00:00:00:00:00:08 RT 50:1 
            PMSI Attribute Flags: 0x00000000  Label-Stack: 0x00000032 Tunnel-Type: 0x00000006 Tunnel-IP: 4.4.100.4
            Extended Community: ExtCom: Tunnel Encapsulation (Type Vxlan)
            L2_vni: 50 
            RD: 3.3.100.3:1


The following example displays details for MAC routes. BI indicates that the route is "Best" and "Installed." This ensures that it is downloaded into the system.

device# show bgp evpn l2route type mac detail
Total number of BGP EVPN MAC Routes : 1
Status A:AGGREGATE B:BEST b:NOT-INSTALLED-BEST C:CONFED_EBGP D:DAMPED
       E:EBGP H:HISTORY I:IBGP L:LOCAL M:MULTIPATH m:NOT-INSTALLED-MULTIPATH
       S:SUPPRESSED F:FILTERED s:STALE
Route Distinguisher: 01:00:04:03:02:01:01:00
1       Prefix: MAC:[100][1111.2222.3333],  Status: BI,  Age: 0h6m17s
         NEXT_HOP: 10.20.30.40, Learned from Peer: 10.0.0.2 (100)
          LOCAL_PREF: 100,  MED: 0,  ORIGIN: incomplete,  Weight: 0
         AS_PATH:
            Extended Community: ExtCom:03:0c:00:00:00:00:08:00 RT 25600:1677721600
            Extended Community: ExtCom: Tunnel Encapsulation (Type Vxlan)
            L2_vni: 100
            ESI : 00.000000000000000000
            RD: 01:00:04:03:02:01:01:00