The display bgp vpnv6 routing-table command displays BGP VPNv6 routes.
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 |
display bgp vpnv6 route-distinguisher route-distinguisher routing-table [ verbose | ipv6-address [ prefix-length ] ]
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table [ verbose | ipv6-address [ prefix-length ] ]
display bgp vpnv6 { all | vpn-instance vpn-instance-name | route-distinguisher route-distinguisher } routing-table as-path-filter { as-path-filter-number | as-path-filter-name }
display bgp vpnv6 route-distinguisher route-distinguisher routing-table as-path-filter { as-path-filter-number | as-path-filter-name }
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table as-path-filter { as-path-filter-number | as-path-filter-name }
display bgp vpnv6 route-distinguisher route-distinguisher routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]
display bgp vpnv6 route-distinguisher route-distinguisher routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }
display bgp vpnv6 route-distinguisher route-distinguisher routing-table different-origin-as
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table different-origin-as
display bgp vpnv6 route-distinguisher route-distinguisher routing-table regular-expression as-regular-expression
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table regular-expression as-regular-expression
display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address { advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] }
display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]
display bgp vpnv6 all routing-table peer ipv4-address received-routes dest-ipv6-address [ prefix-length ]
display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address accepted-routes
display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time
display bgp vpnv6 all routing-table peer ipv4-address { advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] }
Parameter | Description | Value |
---|---|---|
all |
Displays statistics about all BGP VPNv6 routes. |
- |
vpn-instance vpn-instance-name |
Displays the BGP routes of a specified an IPv6 address family-enabled VPN instance on the local end. |
The value must be an existing VPN instance name. |
route-distinguisher route-distinguisher |
Displays the BGP routes with the specified RD. |
The RD formats are divided into the following types:
|
ipv6-address |
Specifies the IPv6 address of a peer to be displayed. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
verbose |
Displays detailed information about BGP VPNv6 routes. |
- |
prefix-length |
Specifies the prefix length of an IPv6 address. |
- |
as-path-filter |
Displays the routes that match the specified filter. |
- |
as-path-filter-number |
Specifies the number of the matching AS-Path filter. |
The value is an integer that ranges from 1 to 256. |
as-path-filter-name |
Specifies the name of the matching AS-Path filter. |
The name is a string of 1 to 51 case-sensitive characters without spaces. The string cannot be all numerals. When double quotation marks are used around the string, spaces are allowed in the string. |
community |
Displays the routes carrying the specified BGP community attribute in the routing table. |
- |
community-number |
Specifies the community number. |
The value is an integer that ranges from 0 to 4294967295. |
aa:nn |
Specifies the community number. A maximum of 29 community numbers can be set. |
- |
internet |
Displays the BGP routes carrying the Internet community attribute. |
- |
no-advertise |
Displays the BGP routes carrying the No-Advertise community attribute. |
- |
no-export |
Displays the BGP routes carrying the No-Export community attribute. |
- |
no-export-subconfed |
Displays the BGP routes carrying the No-Export-Subconfed community attribute. |
- |
whole-match |
Indicates exact matching. |
- |
community-filter |
Displays the routes that match a specified BGP community filter. |
- |
community-filter-name |
Specifies the name of a community filter. |
- |
basic-community-filter-number |
Specifies the number of a basic community filter. |
- |
advanced-community-filter-number |
Specifies the number of an advanced community filter. |
- |
different-origin-as |
Displays the routes that have the same destination address but different source AS numbers. |
- |
regular-expression as-regular-expression |
Specifies the regular expression used to match the AS_Path information. |
The value is a string of 1 to 80 characters. |
peer ipv6-address |
Displays the BGP routes of a specified peer. |
- |
ipv4-address |
Specifies the IPv4 address of the peer. |
The value is in dotted decimal notation. |
advertised-routes |
Displays the routes advertised to a specified peer. |
- |
dest-ipv6–address |
Specifies the destination IPv6 address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
received-routes |
Displays the routes received from a specified peer. |
- |
active |
Displays the active routes received from a specified peer. |
- |
original-attributes |
Displays the original attributes of a BGP route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. |
- |
accepted-routes |
Displays the routes that are received from a neighbor and accepted by a routing policy. |
- |
time-range start-time end-time |
Displays information about BGP VPNv6 routes that have undergone status flapping during the specified period. For example, when start-time is set to 0d0h5m0s and end-time is set to 0d0h10m0s, information about all BGP VPNv6 routes whose lifetime ranges from 5 to 10 minutes is displayed. |
In the values of start-time and end-time, d ranges from 0 to 10000, h ranges from 0 to 23, m ranges from 0 to 59, and s ranges from 0 to 59. |
Information about specified routes can be displayed by specifying different parameters.
To view information about BGP VPNv6 route flapping during a specified period, you can run the display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time command. When service traffic is abnormal during a period of time, you can run this command to check whether route flapping occurs. When the CPU usage is high during a period of time, you can run this command to check whether a large number routes have undergone status flapping. This command allows you to find the flapping routes, which facilitates fault location.
# Display all BGP VPNv6 routes.
<HUAWEI> display bgp vpnv6 all routing-table BGP Local router ID is 10.1.1.1 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 *>i Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : FC00:0:0:2001::1 LocPrf : MED : 0 PrefVal : 0 Label : NULL Path/Ogn : ? *> Network : FC00:0:0:2001::2 PrefixLen : 128 NextHop : :: LocPrf : MED : 0 PrefVal : 0 Label : NULL Path/Ogn : ? *> Network : FE80:: PrefixLen : 10 NextHop : :: LocPrf : MED : 0 PrefVal : 0 Label : NULL Path/Ogn : ? VPN-Instance whm1, Router ID 10.4.4.4 : Total Number of Routes: 3 *> Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : :: LocPrf : MED : 0 PrefVal : 0 Label : NULL Path/Ogn : ? *> Network : FC00:0:0:2001::2 PrefixLen : 128 NextHop : :: LocPrf : MED : 0 PrefVal : 0 Label : NULL Path/Ogn : ? *> Network : FE80:: PrefixLen : 10 NextHop : :: LocPrf : MED : 0 PrefVal : 0 Label : NULL Path/Ogn : ?
<HUAWEI> display bgp vpnv6 vpn-instance 1 routing-table time-range 0d5h0m0s 1d5h0m0s BGP Local router ID is 10.1.1.1 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale Origin : i - IGP, e - EGP, ? - incomplete Route Distinguisher: 300:1 *> Network : FC00:0:0:1991:: PrefixLen : 64 NextHop : :: Duration : 16h32m17s Peer : :: Path/Ogn : ? *> Network : FC00:0:0:2004:: PrefixLen : 64 NextHop : :: Duration : 16h34m02s Peer : :: Path/Ogn : ? Route Distinguisher: 10011:1 *>i Network : FC00:0:0:1998:: PrefixLen : 32 NextHop : FC00:0:0:1::9 Duration : 16h38m16s Peer : 10.1.1.9 Path/Ogn : 65410 ? *>i Network : FC00:0:0:1998:: PrefixLen : 64 NextHop : FC00:0:0:1::9 Duration : 16h37m01s Peer : 10.1.1.9 Path/Ogn : ? *>i Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : FC00:0:0:1::9 Duration : 16h47m31s Peer : 10.1.1.9 Path/Ogn : ? *>i Network : FC00:0:0:3001:: PrefixLen : 64 NextHop : FC00:0:0:1::9 Duration : 16h45m40s Peer : 10.1.1.9 Path/Ogn : 65410 ? VPN-Instance vpna, Router ID 10.4.4.4 : *> Network : FC00:0:0:1991:: PrefixLen : 64 NextHop : :: Duration : 16h32m17s Peer : :: Path/Ogn : ? *>i Network : FC00:0:0:1998:: PrefixLen : 32 NextHop : FC00:0:0:1::9 Duration : 16h38m16s Peer : 10.1.1.9 Path/Ogn : 65410 ? *>i Network : FC00:0:0:1998:: PrefixLen : 64 NextHop : FC00:0:0:1::9 Duration : 16h37m01s Peer : 10.1.1.9 Path/Ogn : ? *>i Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : FC00:0:0:1::9 Duration : 16h47m31s Peer : 10.1.1.9 Path/Ogn : ? *> Network : FC00:0:0:2004:: PrefixLen : 64 NextHop : :: Duration : 16h34m02s Peer : :: Path/Ogn : ? *>i Network : FC00:0:0:3001:: PrefixLen : 64 NextHop : FC00:0:0:1::9 Duration : 16h45m40s Peer : 10.1.1.9 Path/Ogn : 65410 ?
Item |
Description |
---|---|
BGP Local router ID |
ID of the local BGP router. The ID is in the same format as an IPv4 address. |
Total number of routes from all PE |
Total number of BGP VPNv6 routes received by the switch from its peer PEs. |
Network |
Destination network or host address of the route. |
PrefixLen |
Prefix length of the destination network or host address of the route. |
NextHop |
IPv6 address of the next hop. |
LocPrf |
Local preference of the BGP route. The default value is 100. |
MED |
MED of the route. The default value is 0. |
PrefVal |
Preferred value of the route. |
Label |
Label carried by the data packet destined for the destination network or host address of the route. |
Duration |
Route duration. |
Peer |
IP addresses of the peer. |
Path/Ogn |
AS_Path number and Origin attribute of the route. |
# Display the routes of an IPv6 address family-enabled VPN instance named vpn1 on the local device.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table
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: 2
*>i Network : FC00:0:0:1:: PrefixLen : 64
NextHop : FC00:0:0:3::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65410 ?
*>i Network : FC00:0:0:1:: PrefixLen : 64
NextHop : FC00:0:0:2::1 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
Path/Ogn : ?
# Display the BGP routes with a specified destination address of an IPv6 address family-enabled VPN instance.
<HUAWEI> display bgp vpnv6 vpn-instance vrf1 routing-table fc00:0:0:1::
BGP local router ID : 10.1.1.1
Local AS number : 100
Paths: 2 available, 1 best, 1 select
BGP routing table entry information of FC00:0:0:1::/64:
Imported route.
From: :: (0.0.0.0)
Route Duration: 1d03h46m24s
Direct Out-interface: Vlanif100
Original nexthop: ::
AS-path Nil, origin incomplete, MED 0, pref-val 0, valid, local, best, select,
pre 0
Advertised to such 1 peers:
FC00:0:0:2::2
BGP routing table entry information of 2001::/64:
From: FC00:0:0:1::1 (10.10.10.10)
Route Duration: 02h39m43s
Direct Out-interface: Vlanif100
Original nexthop: FC00:0:0:1::1
AS-path 65410, origin incomplete, MED 0, pref-val 0, external, pre 255
Not advertised to any peer yet
# Display BGP VPNv6 routes of the VPN instance named vpn1 whose AS_Path attribute contains 65420.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table as-path-filter 1 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 VPN-Instance vpn1, Router ID 10.4.4.4 : Total Number of Routes: 1 Network : FC00:0:0:1::2001:: PrefixLen : 64 NextHop : FC00:0:0:1::2001::1 LocPrf : MED : 0 PrefVal : 0 Label : Path/Ogn : 65420 ?
# Display BGP VPNv6 routes that the local switch advertises to the peer at 10.3.3.3.
<HUAWEI> display bgp vpnv6 all routing-table peer 10.3.3.3 advertised-routes
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: 1
Route Distinguisher: 100:1
*> Network : FC00:0:0:1:: PrefixLen : 64
NextHop : FC00:0:0:2::2 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Path/Ogn : 65410 ?
# Display BGP VPNv6 routes that the local switch receives from the peer at 10.3.3.3.
<HUAWEI> display bgp vpnv6 all routing-table peer 10.3.3.3 received-routes
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: 1
Route Distinguisher: 100:2
*>i Network : FC00:0:0:1::2002:: PrefixLen : 64
NextHop : FC00:0:0:1::2001::1 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037
Path/Ogn : ?
# Display all BGP VPNv6 routes that match the BGP community filter 1.
<HUAWEI> display bgp vpnv6 all routing-table community-filter 1 whole-match 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: 2 Route Distinguisher: 100:1 *> Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : FC00:0:0:2001::1 LocPrf : MED : 0 PrefVal : 0 Label : NULL Route Distinguisher: 100:2 *>i Network : FC00:0:0:2002:: PrefixLen : 64 NextHop : FC00:0:0:2001::1 LocPrf : 100 MED : 0 PrefVal : 0 Label : 1037 VPN-Instance vpn1, Router ID 10.4.4.4, Router ID 10.4.4.4 : Total Number of Routes: 2 Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : FC00:0:0:2001::1 LocPrf : MED : 0 PrefVal : 0 Label : *>i Network : FC00:0:0:2002:: PrefixLen : 64 NextHop : FC00:0:0:2001::1 LocPrf : 100 MED : 0 PrefVal : 0 Label : 1037/NULL
# Display BGP4+ routes of the VPN instance named vpn1 and matching the BGP community filter 1.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table community-filter 1 whole-match
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
VPN-Instance vpn1 :
Total Number of Routes: 2
Network : FC00:0:0:2001:: PrefixLen : 64
NextHop : FC00:0:0:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
*>i Network : FC00:0:0:2002:: PrefixLen : 64
NextHop : FC00:0:0:2001::1 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
# Display all BGP4+ routes of the VPN instance named vpn1 and matching the AS regular expression.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table regular-expression ^65420 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 VPN-Instance vpn1, Router ID 10.4.4.4, Router ID 10.4.4.4 : Network : FC00:0:0:2001:: PrefixLen : 64 NextHop : FC00:0:0:2001::1 LocPrf : MED : 0 PrefVal : 0 Label : Path/Ogn : 65420 ?
# Display all BGP4+ routes of the VPN instance named vpn1 that are received from the peer at FC00:0:0:2001::1.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table peer fc00:0:0:2001::1 received-routes
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: 1
Network : FC00:0:0:2001:: PrefixLen : 64
NextHop : FC00:0:0:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65410 ?
# Display BGP4+ routes sent to the peer at FC00:0:0:2001::1.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table peer fc00:0:0:2001::1 advertised-routes
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: 1
*>i Network : FC00:0:0:2002:: PrefixLen : 64
NextHop : FC00:0:0:2001::1 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
Path/Ogn : ?
<HUAWEI> display bgp vpnv6 vpn-instance vrf1 routing-table fc00:0:0:2001::5
BGP local router ID : 10.1.1.1 Local AS number : 100 VPN-Instance vrf1, Router ID 10.1.1.1: Paths: 1 available, 0 best, 0 select BGP routing table entry information of fc00:0:0:2001::5/128: Label information (Received/Applied): 1027/NULL From: 10.1.1.2 (10.1.1.2) Route Duration: 00h01m22s Relay Tunnel Out-Interface: Relay token: 0x0 Original nexthop: ::FFFF:10.1.1.2 Ext-Community:RT <100 : 100> AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for tunnel unreachable Not advertised to any peer yet
Item |
Description |
---|---|
BGP local router ID |
Router ID of the local BGP device. The format is the same as the IPv4 address. |
Local AS number |
Local AS number. |
VPN-Instance vrf1, Router ID 10.1.1.1 |
The local VPN instance is vrf1, and its router ID is 10.1.1.1. |
Paths |
Information about paths of BGP routes |
BGP routing table entry information of fc00:0:0:2001::5/128 |
The following information is about fc00:0:0:2001::5/128 routing entries. |
Label information (Received/Applied) |
Label information (received or sent). |
From |
IP address of the router that sends the route. 10.1.1.2 is the source interface IP address of the peer with which the BGP connection is established, and 10.1.1.2 is the router ID of the peer. |
Route Duration |
Duration of routes. |
Relay Tunnel Out-Interface |
Tunnel iterated outbound interface. |
Relay token |
Iterated token value used for MPLS forwarding that is a part of tunnel ID and is assigned by the system. |
Original nexthop |
Original next hop. |
Ext-Community |
Extended community attribute. |
AS-path Nil |
AS_Path attribute, with Nil indicating that the attribute value is null. |
origin |
Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
|
MED |
Multi-Exit discriminator of route. |
localpref |
Local priority. |
pref-val |
Preferred value of the protocol. |
internal |
The BGP route is an internal route. |
pre 255 |
The priority of the BGP route is 255. |
invalid for tunnel unreachable |
Reason why a route is invalid:
|
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |