The display bgp routing-table label command displays the labeled routes in the BGP routing table.
display bgp routing-table label [ statistics | include-mask ]
display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table [ statistics ] label
display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table label include-mask
display bgp ipv6 routing-table [ statistics ] label
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table [ statistics ] label
| Parameter | Description | Value |
|---|---|---|
| statistics | Indicates the statistics of the labeled routes. | - |
| include-mask | Displays labeled routes carrying masks. | - |
| vpnv4 | Displays the labeled route of Virtual Private Network version 4 (VPNv4). | - |
| all | Displays the labeled route of all VPN instances. | - |
| vpn-instance vpn-instance-name | Specifies the name of a VPN instance. | It is case-sensitive. |
| ipv6 | Displays BGP4+ labeled routes. | - |
| vpnv6 | Displays the labeled route of Virtual Private Network version 6 (VPNv6). | - |
To check labeled routes in the routing tables of the public network and VPN instances, run the display bgp routing-table label command. To check statistics, specify statistics in the command. To check labeled routes carrying masks, specify include-mask in the command.
# Display the BGP labeled routes of all VPN instances.
<sysname> display bgp vpnv4 all routing-table label
BGP Local router ID is 1.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 22.22.22.22 3.3.3.9 NULL/1036
Route Distinguisher: 100:4
Network NextHop In/Out Label
*> 10.1.2.0 10.1.2.1 1037/NULL
*> 11.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 22.22.22.22 3.3.3.9 NULL/1036
VPN-Instance vpn2, router ID 1.1.1.9:
Total Number of Routes: 0
Item |
Description |
|---|---|
Network |
Network address in the BGP routing table |
Next Hop |
IP address of the reachable next hop |
In/Out Label |
In-label and out-label |
# Display BGP4+ labeled routing information.
<sysname> display bgp ipv6 routing-table label Total Number of Routes: 3 Network Prefix NextHop Label 2001:db8::4 128 ::FFFF:20.0.0.2 1024 2001:db8::5 128 ::FFFF:20.0.0.2 1025 2001:db8::6 128 ::FFFF:20.0.0.2 1026
Item |
Description |
|---|---|
Prefix |
Indicates an IP prefix |
# Display the BGP labeled routes of all IPv6 VPN instances.
<sysname> display bgp vpnv6 all routing-table label
BGP Local router ID is 1.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: 2
Route Distinguisher: 100:1
Network Prefix NextHop In/Out Label
*> 2001:db8:1:: 64 2001::1 1039/NULL
Route Distinguisher: 100:2
Network Prefix NextHop In/Out Label
*>i 2001:db8:2:: 64 ::FFFF:3.3.3.9 NULL/1037
VPN-Instance vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 1
Network Prefix NextHop In/Out Label
*>i 2001:db8:2:: 64 ::FFFF:3.3.3.9 NULL/1037
# Display the BGP4+ labeled routes of the VPN instance named vpna.
<sysname> display bgp vpnv6 vpn-instance vpna routing-table label
BGP Local router ID is 1.1.1.9
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
VPN-Instance vpna, Router ID 10.4.4.4 :
Total Number of Routes: 1
Network Prefix NextHop In/Out Label
*>i 2001:db8:2:: 64 ::FFFF:3.3.3.9 NULL/1037
# Display IPv4 labeled routes carrying masks.
<sysname> display bgp routing-table label include-mask
BGP Local router ID is 2.2.2.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
Total Number of Routes: 10
Network NextHop In/Out Label
*>i 10.1.92.0/24 1.1.1.1 NULL/1035
*>i 10.1.93.0/24 1.1.1.1 NULL/1034
*>i 10.1.94.0/24 1.1.1.1 NULL/1033