To view the EVPN routes in the BGP routing table, use the show bgp l2vpn evpn command in privileged EXEC mode. The output lists both best and non-best paths to each EVPN route. The route-type filter option shows it's specific type EVPN routes. By passing the IP address and prefixLen argument corresponding to the overlay end-host's IP, it displays the best and non-best paths for the end-host along with the Path attributes. This IP address and it's length argument is available only for Type-2 EVPN routes. By passing the specific Rd value, it displays the best and non-best paths for the end-host along with the Path attributes.
| Format | show bgp l2vpn evpn [[route-type type-1 - type-5] prefix/len || [rd rd-value]] |
| Mode | Privileged EXEC |
| Field | Description |
|---|---|
| Network | Destination EVPN route. It is displayed in the respective formats for EVPN type-2 or type-3 prefixes, as mentioned in the header of the command output. |
| Next Hop | The route's BGP NEXT HOP. |
| Metric | Multi Exit Descriminator |
| LocPref | The local preference |
| Path | The AS path The value of the ORIGIN attribute follows immediately after the AS PATH. |
Example:
(Routing) #show bgp l2vpn evpn
BGP table version is 0, local router ID is 2.2.2.3
Status Codes: s suppressed, * valid, > best, i - internal, S - stale
Origin Codes: i - IGP, e - EGP, ? - incomplete
EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[Label]
EVPN type-2 prefix: [2]:[ESI]:[EthTag]:[MAClen]:[MAC]:[IPlen]:[IP]
EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP]
EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP]
EVPN type-5 prefix: [5]:[ESI]:[EthTag]:[IPlen]:[IP]:[GatewayIP]
Network Next Hop Metric LocPref Path
------------------- ---------------- ---------- ------- ----
Route Distinguisher : 192.168.10.2:0
*> [1]:[0:0x12340]:[0]:[0]
192.168.10.2 100 200 i
*> [4]:[0:0x0]:[32]:[192.168.10.2]
192.168.10.2 100 200 i
*> [4]:[0:0x12340]:[32]:[192.168.10.2]
192.168.10.2 100 200 i
Route Distinguisher : 192.168.10.2:10
*> [2]:[0:0x0]:[1]:[48]:[00:00:00:01:02:03]:[32]:[11.11.11.1]
192.168.10.2 100 200 i
*> [3]:[1]:[32]:[192.168.10.2]
192.168.10.2 100 200 i
Route Distinguisher : 192.168.10.2:131
*> [3]:[1]:[32]:[192.168.10.2]
192.168.10.2 100 200 i
Route Distinguisher : 192.168.30.2:0
*> [4]:[0:0x0]:[32]:[192.168.30.2]
192.168.30.2 100 200 i
Example:
(Routing) #show bgp l2vpn evpn route-type type-2
BGP table version is 7, local router ID is 1.1.1.1
Status Codes: s suppressed, * valid, > best, i - internal, S - stale
Origin Codes: i - IGP, e - EGP, ? - incomplete
EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[Label]
EVPN type-2 prefix: [2]:[ESI]:[EthTag]:[MAClen]:[MAC]:[IPlen]:[IP]
EVPN type-3 prefix: [3]:[EthTag]:[IPlen]:[OrigIP]
EVPN type-4 prefix: [4]:[ESI]:[IPlen]:[OrigIP]
EVPN type-5 prefix: [5]:[ESI]:[EthTag]:[IPlen]:[IP]:[GatewayIP]
Network Next Hop Metric LocPref Path
------------------- ---------------- ---------- ------- ----
Route Distinguisher : 192.168.10.2:10
*> [2]:[0:0x0]:[1]:[48]:[00:00:00:01:02:03]:[32]:[11.11.11.1]
192.168.10.2 100 200 i
(Routing) #show bgp l2vpn evpn route-type 2 11.11.11.1/32
Route Distinguisher ........................... 192.168.10.2:10
Route Table Entry .............................
[2]:[0:0x0]:[1]:[48]:[00:00:00:01:02:03]:[32]:[11.11.11.1]
Generation ID ................................. 1
Forwarding .................................... No
Advertised to Update Groups ................... 0 1
Best Path:
Local Preference .............................. 100
AS Path ....................................... 200
Origin ........................................ IGP
Type .......................................... External
IGP Cost ...................................... 0
Peer (Peer ID) ................................ 192.168.10.2 (9.5.0.1)
BGP Next Hop .................................. 192.168.10.2
Received Labels ............................... 16
20
Extended Communities .......................... RT:192.168.10.2:10
(Routing) #show bgp l2vpn evpn rd 192.168.10.2:10
Route Distinguisher ........................... 192.168.10.2:10
Route Table Entry .............................
[2]:[0:0x0]:[1]:[48]:[00:00:00:01:02:03]:[32]:[11.11.11.1]
Generation ID ................................. 1
Forwarding .................................... No
Advertised to Update Groups ................... 0 1
Best Path:
Local Preference .............................. 100
AS Path ....................................... 200
Origin ........................................ IGP
Type .......................................... External
IGP Cost ...................................... 0
Peer (Peer ID) ................................ 192.168.10.2 (9.5.0.1)
BGP Next Hop .................................. 192.168.10.2
Received Labels ............................... 16
20
Extended Communities .......................... RT:192.168.10.2:10
Generation ID ................................. 1
Forwarding .................................... No
Advertised to Update Groups ................... None
-----------------------------------------------------------------------------
Route Distinguisher ........................... 192.168.10.2:10
Route Table Entry ............................. [3]:[1]:[32]:[192.168.10.2]
Generation ID ................................. 1
Forwarding .................................... No
Advertised to Update Groups ................... 0 1
Best Path:
Local Preference .............................. 100
AS Path ....................................... 200
Origin ........................................ IGP
Type .......................................... External
IGP Cost ...................................... 0
Peer (Peer ID) ................................ 192.168.10.2 (9.5.0.1)
BGP Next Hop .................................. 192.168.10.2
Extended Communities .......................... RT:192.168.10.2:10