< Home

display bgp evpn routing-table

Function

The display bgp evpn routing-table command displays information about BGP EVPN routes.

Format

display bgp evpn all routing-table statistics

display bgp evpn all routing-table [ inclusive-route [ inclusive-route ] | mac-route [ mac-route ] | prefix-route [ prefix-route ] ]

display bgp evpn route-distinguisher route-distinguisher routing-table { inclusive-route [ inclusive-route ] | mac-route [ mac-route ] | prefix-route [ prefix-route ] }

Parameters

Parameter Description Value
all Displays all route information. -
statistics Displays route statistics. -
route-distinguisher route-distinguisher Displays information about EVPN routes with a specified RD.
RD has the following four formats:
  • 16-bit AS number:32-bit user-defined number. For example, 101:3. The AS number is an integer ranging from 0 to 65535, and the user-defined number is an integer ranging from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295, and a user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that both range from 0 to 65535. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.

  • 32-bit IP address:16-bit user-defined number. For example, 192.168.122.15:1. The IP address ranges from 0.0.0.0 to 255.255.255.255, and the user-defined number ranges from 0 to 65535.

inclusive-route Displays the information about inclusive multicast routes. -
inclusive-route Specifies an inclusive multicast route.
The format is M:L:X.X.X.X:
  • M: 0 (fixed)

  • L: mask length of the source address of the device originating the route

  • X.X.X.X: source address of the device originating the route

mac-route Displays the information about MAC advertisement routes. -
mac-route Specifies a MAC advertisement route.
The format is E:M:H-H-H:L:X.X.X.X or E:M:H-H-H:L:[X:X::X:X]:
  • E: ID of the VLAN to which the MAC address belongs

  • M: 48 (MAC address length)

  • H-H-H: MAC address. H is a 4-digit hexadecimal number, such as 00e0 and fc01. If you enter fewer than four alphanumeric characters, 0s are added before the input digits. For example, if e0 is entered, 00e0 is specified.

  • L: mask length of the IP address corresponding to the MAC address

  • X.X.X.X: IP address corresponding to the MAC address

  • X:X::X:X indicates the IPv6 address corresponding to the MAC address.

prefix-route Displays the information about an IP prefix route. -
prefix-route Specifies an IP prefix route.
The format is L:X.X.X.X:M or L:[X:X::X:X]:M:
  • L: 0 (fixed)

  • X.X.X.X: host IP address

  • M: host IP address and mask

  • X:X::X:X indicates the IPv6 address of host routes.

statistics Displays route statistics. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

In the scenario where VXLAN is deployed through BGP EVPN, you can run this command to view EVPN route information and statistics on the device.

Example

# Display all BGP EVPN routing information.

<HUAWEI> display bgp evpn all routing-table
Local AS number :100

 BGP Local router ID is 10.35.99.225
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 EVPN address family:
 Number of Mac Routes : 2
 Route Distinguisher: 1:1


        Network(EthTagId/MacAddrLen/MacAddr/IpAddrLen/IpAddr)  NextHop
 *>     0:48:a4dc-be0f-99a6:0:0.0.0.0                          9.9.9.9
 *>     0:48:a4dc-be0f-99a6:32:9.9.9.9                         9.9.9.9

 VPN-Instance vpn1, Router ID 10.35.99.225:

 Total Number of Routes: 1
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  9.9.9.9/32         9.9.9.9                    100        0      ?

 EVPN address family:
 Number of Inclusive Multicast Routes : 1
 Route Distinguisher: 1:1


        Network(EthTagId/IpAddrLen/OriginalIp)                 NextHop
 *>     0:32:9.9.9.9                                           9.9.9.9

 EVPN address family:
 Number of Ip Prefix Routes : 2
 Route Distinguisher: 1:1


        Network(EthTagId/IpPrefix/IpPrefixLen)                 NextHop
 *>     0:9.9.9.0:24                                           9.9.9.9
 *>     0:[2018::]:64                                          9.9.9.9 

 VPN-Instance vpn1, Router ID 10.35.99.225:

 Total Number of Routes: 1
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  9.9.9.0/24         9.9.9.9         0          100         0         ?

 VPN-Instance vpn1, Router ID 10.35.99.225:

 Total Number of Routes: 1

 *>  Network   : 2018::                          PrefixLen  : 64 
     NextHop   : ::FFFF:9.9.9.9                  LocPrf     : 
     MED       :                                 PrefVal    : 0 
     Label     : 5010 
     Path/Ogn  :200 100 ? 
Table 1 Description of the display bgp evpn all routing-table command output

Item

Description

Local AS number

Local AS number

BGP Local router ID

Router ID of the local device

Number of Mac Routes

Number of MAC advertisement routes

Route Distinguisher

Route distinguisher

Network

Reachable address

NextHop

Next hop

VPN-Instance

VPN instance name

Router ID

Router ID

Total Number of Routes

Total number of routes

EVPN address family

BGP EVPN address family

MED

Multi-exit discriminator of route

LocPrf

Local priority

PrefVal

Value preferred by the protocol

Path/Ogn

AS path attribute and origin attribute of the route

Number of Inclusive Multicast Routes

Number of inclusive multicast routes

Number of Ip Prefix Routes

Number of IP prefix routes

PrefixLen

Mask length

Label

Label value

# Display statistics information about all BGP EVPN routes.

<HUAWEI> display bgp evpn all routing-table statistics
Total number of routes from all PE: 4
Number of Mac Routes: 2
Number of Inclusive Multicast Routes: 1
Number of Ip Prefix Routes: 1
Table 2 Description of the display bgp evpn all routing-table statistics command output

Item

Description

Total number of routes from all PE

Total number of routes

Number of Mac Routes

Number of MAC routes

Number of Inclusive Multicast Routes

Number of inclusive multicast routes

Number of Ip Prefix Routes

Number of IP prefix routes

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >