Celestica Documentation Portal

Find your product documents here

Show bgp l2vpn evpn route vni

Displays the BGP EVPN VNI specific route information with filters such as vtep-ip, mac, mac and ip, source router ip, route type, etc.

Syntaxshow bgp l2vpn evpn route [vni <vnid> [mac <mac-address> [ip <ip-address>]]|[multicast <src-router-ip>]|[type <route-type>]|[vtep <vtep-ip>][json]]|[vni all [vtep <vtep-ip>][json]]
Command modeEXEC
Parameters
  • vnid – VNI number. Range: 1 – 16777215.

  • mac-address – MAC address to be filtered in format xx:xx:xx:xx:xx.

  • ip-address – IP address learned as part of type-2 route in format A:B:C:D.

  • src-router-ip – Originating Router IP address (A:B:C:D).

  • route-type – Type of the route queried. It can any one of the values among 1 or EAD, 2 or macip, 3 or multicast.

  • vtep-ip – Remote VTEP IP address (A:B:C:D).

  • json – To get output in JavaScript Object Notation.

UsageUse different filters to get more granular output available in both all vni and specific vni subcommands.
Supported Releases 1.1.0 or later
Click commandNone
Example
1) sonic# show bgp l2vpn evpn route vni 100010
BGP table version is 309, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP]
EVPN type-2 prefix: [2]:[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]:[EthTag]:[IPlen]:[IP]

   Network          Next Hop            Metric LocPrf Weight Path
*> [2]:[0]:[48]:[00:00:01:10:01:01]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100010
*> [2]:[0]:[48]:[00:00:01:10:01:02]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100010
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100010
*>i[3]:[0]:[32]:[3.3.3.3]
                    3.3.3.3                       100      0 i
                    RT:65100:100010 ET:8

Displayed 4 prefixes (4 paths)
sonic#

2) sonic# show bgp l2vpn evpn route vni 100010 mac 00:00:01:10:01:01
BGP routing table entry for [2]:[0]:[48]:[00:00:01:10:01:01]
Paths: (1 available, best<span id="md-transform-replacement-39"></span>)
  Not advertised to any peer
  Route [2]:[0]:[48]:[00:00:01:10:01:01] VNI 100010
  Local
    2.2.2.2 from 0.0.0.0 (2.2.2.2)
      Origin IGP, weight 32768, valid, sourced, local, best (First path received)
      Extended Community: ET:8 RT:65100:100010
      Last update: Fri Nov 17 15:26:15 2023

Displayed 1 paths for requested prefix
sonic#

3)sonic# show bgp l2vpn evpn route vni all

VNI: 100020

BGP table version is 1, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP]
EVPN type-2 prefix: [2]:[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]:[EthTag]:[IPlen]:[IP]

   Network          Next Hop            Metric LocPrf Weight Path
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100020

Displayed 1 prefixes (1 paths)


VNI: 100010

BGP table version is 383, local router ID is 2.2.2.2
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
EVPN type-1 prefix: [1]:[ESI]:[EthTag]:[IPlen]:[VTEP-IP]
EVPN type-2 prefix: [2]:[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]:[EthTag]:[IPlen]:[IP]

   Network          Next Hop            Metric LocPrf Weight Path
*> [2]:[0]:[48]:[00:00:01:10:01:01]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100010
*> [2]:[0]:[48]:[00:00:01:10:01:02]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100010
*> [3]:[0]:[32]:[2.2.2.2]
                    2.2.2.2                            32768 i
                    ET:8 RT:65100:100010
*>i[3]:[0]:[32]:[3.3.3.3]
                    3.3.3.3                       100      0 i
                    RT:65100:100010 ET:8

Displayed 4 prefixes (4 paths)

sonic#