display bgp evpn routing-table (prefix)

Function

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

Format

display bgp evpn all routing-table [ peer ip-address { advertised-routes | received-routes } ] { ad-route | es-route | inclusive-route | mac-route | prefix-route | smet-route | join-route | leave-route } prefix

display bgp evpn route-distinguisher route-distinguisher routing-table { ad-route | es-route | inclusive-route | mac-route | prefix-route | smet-route | join-route | leave-route } prefix

display bgp evpn vpn-instance vpn-instance-name routing-table { ad-route | es-route | inclusive-route | mac-route | prefix-route | smet-route | join-route } prefix

display bgp evpn all routing-table mac-route backbone-source-mac prefix

display bgp evpn all routing-table peer ipv6-address { advertised-routes | received-routes } { ad-route | es-route | inclusive-route | mac-route | prefix-route } prefix

Parameters

Parameter Description Value
peer

Specifies the EVPN peer.

-

ip-address

Specifies a peer IPv4 address.

The value is in dotted decimal notation.

advertised-routes

Displays the routes advertised to the peer.

-

received-routes

Displays the routes received by the peer.

-

ad-route

Displays information about all Ethernet auto-discovery routes.

-

es-route

Displays information about Ethernet segment routes.

-

inclusive-route

Displays information about inclusive multicast routes.

-

mac-route

Displays information about MAC advertisement routes.

-

prefix-route

Displays information about prefix routes.

-

smet-route

Displays information about Selective Multicast Ethernet Tag (SMET) routes.

-

join-route

Displays information about IGMP Join Synch routes.

-

leave-route

Displays information about IGMP Leave Synch routes.

-

prefix

Specifies the prefix of an EVPN route.

An EVPN route prefix has the following formats:

Ethernet auto-discovery route. The value is in the format of xxxx.xxxx.xxxx.xxxx.xxxx:M, where:

  • xxxx.xxxx.xxxx.xxxx.xxxx indicates the ESI configured for the device originating this route.
  • M is form 0 to 4294967295.

Ethernet segment route. The value is in the format of xxxx.xxxx.xxxx.xxxx.xxxx, where x is a hexadecimal integer ranging from 0 to F. The value equals the ESI configured for the device originating this route.

Inclusive multicast route. The value is in the format of M:L:X.X.X.X, where:

  • M is fixed at 0.
  • X.X.X.X indicates the source address configured for the device originating the route.
  • L indicates the mask length of the source address configured for the device originating the route.

MAC advertisement route. The value is in the format of E:M:H-H-H:L:X.X.X.X or E:M:H-H-H:L: [X:X::X:X], where:

  • E indicates the ID of the VLAN to which the MAC address belongs.
  • M is fixed at 48, indicating the length of the MAC address.
  • H-H-H indicates the MAC address. The value is a 12-digit hexadecimal number, in the format of H-H-H. Each H is 4 digits. If an H contains fewer than 4 digits, the left-most digits are padded with zeros.
  • L is fixed at 0, indicating the mask length of the IP address corresponding to the MAC address.
  • X.X.X.X indicates the IP address corresponding to the MAC address. Currently, this part can only be displayed as 0.0.0.0.
  • X:X::X:X indicates the IPv6 address corresponding to the MAC address.

IP Prefix route. The value is in the format of L:X.X.X.X:M or L:[X:X::X:X]:M, where:

  • L is fixed at 0.
  • X.X.X.X indicates the ip address of host routes.
  • M indicates the mask length of host routes.
  • X:X::X:X indicates the ipv6 address of host routes.

SMET route. The value is in the format of T:SL:SX.SX.SX.SX:GL:GX.GX.GX.GX:OL:OX.OX.OX.OX:

  • T indicates an Ethernet tag ID, which is the BD tag specified when an EVPN instance is bound to a BD. If no BD tag is specified, the Ethernet tag ID is 0.
  • SL indicates the mask of a multicast source address.
  • SX.SX.SX.SX indicates a multicast source address.
  • GL indicates the mask of a multicast group address.
  • GX.GX.GX.GX indicates a multicast group address.
  • OL indicates the mask of an EVPN source address.
  • OX.OX.OX.OX indicates an EVPN source address.

IGMP Join Synch route. The value is in the format of ESI:T:SL:SX.SX.SX.SX:GL:GX.GX.GX.GX:OL:OX.OX.OX.OX:

  • ESI indicates the ESI of an EVPN.
  • T indicates an Ethernet tag ID, which is the BD tag specified when an EVPN instance is bound to a BD. If no BD tag is specified, the Ethernet tag ID is 0.
  • SL indicates the mask of a multicast source address.
  • SX.SX.SX.SX indicates a multicast source address.
  • GL indicates the mask of a multicast group address.
  • GX.GX.GX.GX indicates a multicast group address.
  • OL indicates the mask of an EVPN source address.
  • OX.OX.OX.OX indicates an EVPN source address.

IGMP Leave Synch route. The value is in the format of ESI:T:SL:SX.SX.SX.SX:GL:GX.GX.GX.GX:OL:OX.OX.OX.OX:SY:

  • ESI indicates the ESI of an EVPN.
  • T indicates an Ethernet tag ID, which is the BD tag specified when an EVPN instance is bound to a BD. If no BD tag is specified, the Ethernet tag ID is 0.
  • SL indicates the mask of a multicast source address.
  • SX.SX.SX.SX indicates a multicast source address.
  • GL indicates the mask of a multicast group address.
  • GX.GX.GX.GX indicates a multicast group address.
  • OL indicates the mask of an EVPN source address.
  • OX.OX.OX.OX indicates an EVPN source address.
  • SY indicates a synchronization sequence number.
all

Displays information about EVPN routes of all EVPN instances.

-

route-distinguisher route-distinguisher

Displays information about EVPN routes with the specified RD.

An RD can be in either of the following formats:

  • 2-byte AS number: 4-byte user-defined number, such as 1:3. The AS number ranges from 0 to 65535, and the user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0:0.
  • 4-byte AS number: 2-byte user-defined number, such as 65537:3. The AS number ranges from 65536 to 4294967295, and the user-defined number ranges from 0 to 65535.
  • 4-byte AS number in dotted notation: 2-byte user-defined number, such as 0.0:3 or 0.1:0. The AS number is in the format of x.y, where x and y are integers ranging from 0 to 65535. The user-defined number also ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. Specifically, an RD cannot be 0.0:0.
  • 4-byte IP address: 2-byte user-defined number, such as 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.
vpn-instance vpn-instance-name

Displays information about EVPN routes of a specified EVPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

backbone-source-mac

Displays MAC advertisement routes about B-MAC addresses.

-

ipv6-address

Specifies a peer IPv6 address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

You can specify different parameters to view the specific routing information.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about all EVPN routes.
<HUAWEI> display bgp evpn all routing-table
 Local AS number : 100

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


 EVPN address family:
 Number of A-D Routes: 1

 Route Distinguisher: 1:1
       Network(ESI/EthTagId)                                  NextHop
 *>    0010.1010.1010.1010.1010:0                             127.0.0.1       
   

 EVPN-Instance c1:
 Number of A-D Routes: 1
       Network(ESI/EthTagId)                                  NextHop
 *>    0010.1010.1010.1010.1010:0                             127.0.0.1      

 EVPN address family:
 Number of Inclusive Multicast Routes: 1

 Route Distinguisher: 1:1
       Network(EthTagId/IpAddrLen/OriginalIp)                 NextHop
 *>    0:32:1.1.1.1                                           127.0.0.1       
   

 EVPN-Instance c1:
 Number of Inclusive Multicast Routes: 1
       Network(EthTagId/IpAddrLen/OriginalIp)                 NextHop
 *>    0:32:1.1.1.1                                           127.0.0.1      

 EVPN address family:
 Number of ES Routes: 1

 Route Distinguisher: 1.1.1.1:0
       Network(ESI)                                           NextHop
 *>    0010.1010.1010.1010.1010                               127.0.0.1       
   

 EVPN-Instance c1:
 Number of ES Routes: 1
       Network(ESI)                                           NextHop
 *>    0010.1010.1010.1010.1010                               127.0.0.1
# Display information about the IP prefix route with the prefix of 0:22.22.22.22:32.
<HUAWEI> display bgp evpn all routing-table prefix-route 0:22.22.22.22:32
 BGP local router ID : 2.2.2.2
 Local AS number : 100
 Total routes of Route Distinguisher(1:1): 1
 BGP routing table entry information of 0:22.22.22.22:32:
 Label information (Received/Applied): 1/NULL
 From: 0.0.0.0 (0.0.0.0) 
 Route Duration: 0d00h15m16s
 Direct Out-interface: GigabitEthernet0/1/0.1 
 Original nexthop: 2.2.2.2
 Effective nexthop: 192.168.1.1
 Qos information : 0
 Ext-Community: RT <1 : 1>, Tunnel Type <VxLan>, Router's MAC <00e0-fc00-0002>
 AS-path Nil, origin igp, MED 0, pref-val 0, valid, local, best, select, pre 255
 Received path-id: 0
 Route Type: 5 (Ip Prefix Route)
 Ethernet Tag ID: 0, IP Prefix/Len: 22.22.22.22/32, ESI: 0000.0000.0000.0000.0000, GW IP Address: 0.0.0.0
 Advertised to such 1 peers:
    1.1.1.1
# Display information about the inclusive multicast route with the prefix 0:32:4.4.4.4.
<HUAWEI> display bgp evpn all routing-table inclusive-route 0:32:4.4.4.4
 
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Total routes of Route Distinguisher(100:1): 1
 BGP routing table entry information of 0:32:1.1.1.1:
 From: 0.0.0.0 (0.0.0.0) 
 Route Duration: 0d01h50m28s
 Direct Out-interface:  
 Original nexthop: 127.0.0.1
 Qos information : 0x0            
 Ext-Community: RT <1 : 1>
 AS-path Nil, origin incomplete, pref-val 0, valid, local, best, select, pre 255
 PMSI: Flags 0, Ingress Replication, Label 0:0:0(0), Tunnel Identifier:1.1.1.1
 Route Type: 3 (Inclusive Multicast Route)
 Ethernet Tag ID: 0, Originator IP:1.1.1.1/32
 Advertised to such 1 peers:
    3.3.3.3

    

 EVPN-Instance evpna:
 Number of Inclusive Multicast Routes: 1
 BGP routing table entry information of 0:32:1.1.1.1:
 Route Distinguisher: 100:1
 From: 0.0.0.0 (0.0.0.0) 
 Route Duration: 0d01h50m28s
 Relay IP Nexthop: 0.0.0.0
 Original nexthop: 127.0.0.1
 Qos information : 0x0            
 AS-path Nil, origin incomplete, pref-val 0, valid, local, best, select, pre 255
 PMSI: Flags 0, Ingress Replication, Label 0:0:0(0), Tunnel Identifier:1.1.1.1
 Route Type: 3 (Inclusive Multicast Route)
 Ethernet Tag ID: 0, Originator IP:1.1.1.1/32
 Not advertised to any peer yet
# Display information about the Ethernet auto-discovery route with the prefix 0138.ba2f.3cdb.0201.2100:0.
<HUAWEI> display bgp evpn all routing-table ad-route 0138.ba2f.3cdb.0201.2100:0
 
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Total routes of Route Distinguisher(200:1): 1
 BGP routing table entry information of 0138.ba2f.3cdb.0201.2100:0:
 Label information (Received/Applied): 32904/NULL
 From: 3.3.3.3 (10.1.1.2) 
 Route Duration: 0d01h42m19s
 Relay IP Nexthop: 10.1.1.2
 Relay Tunnel Out-Interface: GigabitEthernet0/1/1
 Original nexthop: 2.2.2.2
 Qos information : 0x0            
 Ext-Community: RT <1 : 1>
 AS-path Nil, origin incomplete, localpref 100, pref-val 0, valid, internal, best, select, pre 255, IGP cost 2
 Originator: 10.2.1.1
 Cluster list: 10.1.1.2
 Route Type: 1 (Ethernet Auto-Discovery (A-D) route)
 ESI: 0138.ba2f.3cdb.0201.2100, Ethernet Tag ID: 0
 Not advertised to any peer yet
 
 EVPN-Instance 1:
 Number of A-D Routes: 1
 BGP routing table entry information of 0138.ba2f.3cdb.0201.2100:0:
 Route Distinguisher: 200:1
 Remote-Cross route
 Label information (Received/Applied): 32904/NULL
 From: 3.3.3.3 (10.1.1.2) 
 Route Duration: 0d01h42m19s
 Relay Tunnel Out-Interface: GigabitEthernet0/1/1
 Original nexthop: 2.2.2.2
 Qos information : 0x0            
 Ext-Community: RT <1 : 1>
 AS-path Nil, origin incomplete, localpref 100, pref-val 0, valid, internal, best, select, pre 255, IGP cost 2
 Originator: 10.2.1.1
 Cluster list: 10.1.1.2
 Route Type: 1 (Ethernet Auto-Discovery (A-D) route)
 ESI: 0138.ba2f.3cdb.0201.2100, Ethernet Tag ID: 0
 Not advertised to any peer yet
# Display information about the EVPN routes with the MAC address 0:48:00e0-fc00-0009:32:10.0.1.7.
<HUAWEI> display bgp evpn vpn-instance VPN1 routing-table mac-route 0:48:00e0-fc00-0009:32:10.0.1.7
BGP local router ID : 33.33.33.33
Local AS number : 58519

EVPN-Instance VPN1:
Number of Mac Routes: 1
BGP routing table entry information of 0:48:00e0-fc00-0009:32:10.0.1.7:
Route Distinguisher: 10001:7
Remote-Cross route
Label information (Received/Applied): 10001 200001/NULL
From: 7.7.7.7 (7.7.7.7) 
Route Duration: 0d01h19m42s
Relay Tunnel Out-Interface: VXLAN
Original nexthop: 7.7.7.7
Qos information : 0x0 
Ext-Community:RT <10001 : 1>, Tunnel Type <VxLan(8)>, Router's MAC <00e0-fc00-0004>
AS-path Nil, origin incomplete, localpref 100, pref-val 0, valid, internal, best, select, pre 255, reoriginated
Route Type: 2 (MAC Advertisement Route)
Ethernet Tag ID: 0, MAC Address/Len: 00e0-fc00-0009/48, IP Address/Len: 10.0.1.7/32, ESI:0000.0000.0000.0000.0000
Not advertised to any peer yet
# Display information about the ES routes with the prefix 0000.1111.1111.4444.5555.
<HUAWEI> display bgp evpn all routing-table es-route 0000.1111.1111.4444.5555
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Total routes of Route Distinguisher(1.1.1.1:0): 1
 BGP routing table entry information of 0000.1111.1111.4444.5555:
 From: 0.0.0.0 (0.0.0.0) 
 Route Duration: 0d14h55m56s
 Relay IP Nexthop: 0.0.0.0
 Original nexthop: 127.0.0.1
 Qos information : 0x0            
 Ext-Community: RT <00e0-fc00-0005>,DF Election<2:0:200>
 AS-path Nil, origin incomplete, pref-val 0, valid, local, best, select, pre 255
 Route Type: 4 (Ethernet Segment Route)
 ESI: 0000.1111.1111.4444.5555, Originating IP:1.1.1.1/32
 Advertised to such 1 peers:
    3.3.3.3

 EVPN-Instance evrf1:
 Number of ES Routes: 1
 BGP routing table entry information of 0000.1111.1111.4444.5555:
 Route Distinguisher: 1.1.1.1:0
 Local-Cross route
 Route Duration: 0d14h55m57s
 Relay IP Nexthop: 0.0.0.0
 Original nexthop: 127.0.0.1
 Qos information : 0x0            
 Ext-Community: RT <00e0-fc00-0005>,DF Election<2:0:200>
 AS-path Nil, origin incomplete, pref-val 0, valid, local, best, select, pre 255
 Route Type: 4 (Ethernet Segment Route)
 ESI: 0000.1111.1111.4444.5555, Originating IP:1.1.1.1/32
 Not advertised to any peer yet
Table 1 Description of the display bgp evpn routing-table (prefix) command output
Item Description
Local AS number

Local AS number of the EVPN routes.

BGP Local router ID

Router ID of the local BGP device.

BGP routing table entry information of

Routing entry information.

best

Optimal route.

EVPN address family

EVPN address family.

Number of A-D Routes

Number of Ethernet auto-discovery routes.

Number of Mac Routes

Number of MAC advertisement routes.

Number of Inclusive Multicast Routes

Number of inclusive multicast routes.

Number of ES Routes

Number of Ethernet segment routes.

Route Distinguisher

RD of the EVPN routes.

Route Duration

Duration for route advertisement.

Route Type

EVPN route type:

  • Ethernet Auto-Discovery route.
  • MAC advertisement route.
  • Inclusive Multicast Route.
  • Ethernet Segment Route.
  • Ip Prefix Route.
NextHop

Next hop address.

EVPN-Instance evrf1

EVPN instance name.

local

Local route.

Total routes of Route Distinguisher

Total number of EVPN routes with a specified RD.

Label information (Received/Applied)

Information about labels, including received and sent labels.

Label 0:0:0(0)

Label 0:0:0(0) indicates an MPLS label value. Value 0:0:0 is fixed and is not used. Value (0) indicates the label value of BUM traffic.

Direct Out-interface

Direct outbound interface.

Original nexthop

Original next hop.

Effective nexthop

Actual next hop of the IP prefix route.

Qos information

QoS information.

Tunnel Type

Tunnel type.

Tunnel Identifier

Tunnel Identifier indicates a tunnel ID, which is the source address of the existing node.

Router's MAC

MAC address received from an EVPN peer.

MAC Address/Len

MAC address and length in a MAC route.

AS-path

AS_Path attribute (Nil indicates that the attribute value is null).

origin

Origin attribute of an EVPN BGP route.

origin incomplete

Other attribute.

MED

MED value of route.

pref-val

Preferred value of an EVPN BGP route.

pre

Route preference.

Received path-id

ID of the receive path.

Ethernet Tag ID

VLAN ID, which is fixed at 0.

IP Address/Len

IP address and length in a host route.

GW IP Address

IP address of gate way.

Advertised to such 1 peers

Peers to which routes are advertised.

Flags 0

Flags indicates whether leaf node information is required for the tunnel. The value is only 0 currently.

Ingress Replication

Ingress Replication indicates the BUM packets to be transmitted in ingress replication mode.

Originator

IP address of the device that has originated routes.

Relay IP Nexthop

Recursive next hop.

Relay Tunnel Out-Interface

Outbound interface of the recursive tunnel.

Not advertised to any peer yet

Route that is not advertised to any EVPN peer.

IGP cost

IGP cost.

Cluster list

Cluster list contained in a route.

Remote-Cross route

Route received from a peer and leaked to an EVPN instance.

Originating IP

IP address of the device that has originated routes.

Local-Cross route

The route is a locally leaked route.

Network

Reachable address.

ESI

Ethernet Segment Identifier.

EthTagId

VLAN ID.

IpAddrLen

Mask length.

OriginalIp

Source IP address.

From

IP address of the device that advertised routes.

Ext-Community

BGP EVPN extended community attribute.

DF Election

Extended community attribute of DF election.

valid

Valid route.

select

Preferred route.

PMSI

P-Multicast Service Interface (PMSI) tunnel information.

Community

Community attribute.

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