< Home

display bgp routing-table label

Function

The display bgp routing-table label command displays labeled routes in the BGP routing table.

Product

Support

S5720-EI, S5720-HI, S5730-HI, S5731-S, S5731S-S, S5731-H, S5731S-H, S5732-H, S6720-EI, S6720-HI, S6720S-EI, S6730S-H, and S6730-H

Supported

S2720-EI, S5720I-SI, S5720-LI, S5735-L, S5735S-L, S5735S-L-M, S5720S-LI, S5720S-SI, S5720-SI, S5735-S, S5735S-S, S5735-S-I, S5730S-EI, S5730-SI, S6720-LI, S6720S-LI, S6720-SI, S6720S-SI, S6730-S, and S6730S-S

Not supported

Format

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table label include-mask

display bgp routing-table label [ statistics | include-mask ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table [ statistics ] label

display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table [ statistics ] label

display bgp ipv6 routing-table [ statistics ] label

Parameters

Parameter Description Value

include-mask

Displays labeled routes carrying masks.

-

statistics

Indicates statistics about labeled routes.

-

vpnv4

Displays VPNv4 labeled routes.

-

all

Displays the labeled routes of all VPN instances.

-

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value must be an existing VPN instance name.

ipv6

Displays BGP4+ labeled routes.

-

vpnv6

Displays VPNv6 labeled routes.

-

route-distinguisher route-distinguisher

Displays BGP routes with the specified RD.

The RD formats are divided into the following types:
  • 2-byte AS number:4-byte user-defined number, for example, 101:3. An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.

  • IPv4-address:2-byte user-defined number, for example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp routing-table label command to check labeled routes in the BGP routing table.

Example

# Display BGP labeled routes of all VPN instances.

<HUAWEI> display bgp vpnv4 all routing-table label
 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total number of routes from all PE: 3
 Route Distinguisher: 100:1

        Network           NextHop           In/Out Label
 *>i    10.22.22.22       10.3.3.9          NULL/1036

 Route Distinguisher: 100:4

        Network           NextHop           In/Out Label
 *>     10.1.2.0          10.1.2.1          1037/NULL
 *>     10.11.11.11       127.0.0.1         1038/NULL

 VPN-Instance vpn1, router ID 1.1.1.9:
 Total Number of Routes: 1

        Network           NextHop           In/Out Label
 *>i    10.22.22.22       10.3.3.9          NULL/1036

 VPN-Instance vpn2, router ID 10.1.1.9:
 Total Number of Routes: 0
Table 1 Description of the display bgp vpnv4 all routing-table label command output

Item

Description

Network

Network address in the BGP routing table.

NextHop

IP address of the reachable next hop.

In/Out Label

Incoming label and outgoing label.

# Display BGP4+ labeled routes.
<HUAWEI> display bgp ipv6 routing-table label
Total Number of Routes: 3

  Network        Prefix     NextHop           Label
  FC00:0:0:1::4  128        FC00:0:0:2::2      1024
  FC00:0:0:1::5  128        FC00:0:0:2::2      1025
  FC00:0:0:1::6  128        FC00:0:0:2::2      1026
Table 2 Description of the display bgp ipv6 routing-table label command output

Item

Description

Prefix

IP prefix.

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