The display bgp vpnv6 routing-table command displays BGP Virtual Private Network version 6 (VPNv6) routes.
display bgp vpnv6 { all | vpn-instance vpn-instance-name | route-distinguisher route-distinguisher } 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 { all | vpn-instance vpn-instance-name | 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 | 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 | route-distinguisher route-distinguisher } routing-table different-origin-as
display bgp vpnv6 { all | vpn-instance vpn-instance-name | route-distinguisher route-distinguisher } routing-table regular-expression as-regular-expression
display bgp vpnv6 { vpn-instance vpn-instance-name | all } routing-table peer ipv6-address [ advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] ]
display bgp vpnv6 all routing-table peer ipv4-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]
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 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
| Parameter | Description | Value |
|---|---|---|
| all | Displays all the BGP routes of VPNv6. | - |
| vpn-instance vpn-instance-name | Displays information about BGP routes of the specified VPN instance on the local device. | - |
| route-distinguisher route-distinguisher | Displays BGP routing information of the specified Route Distinguisher (RD). | The RD formats are divided into the following types:
|
| verbose | Displays detailed information about BGP VPNv6 routes. | - |
| ipv6-address | Specifies the IPv6 address of the peer. | - |
| prefix-length | Specifies the length of the prefix. | - |
| as-path-filter | Displays the routes that match the specified filter. | - |
| as-path-filter-number | Specifies the number of the matching AS_Path filter. | - |
| as-path-filter-name | Specifies the name of the matching AS_Path filter. | It is case-sensitive. |
| community | Displays the routing information of the specified BGP community attribute in the routing table. | - |
| community-number | Specifies the community number. | - |
| aa:nn | Specifies the community attribute number. You can set a maximum of 29 community numbers. | - |
| internet | Displays the BGP routes with Internet community attribute. | - |
| no-advertise | Displays the BGP routes with No-Advertise community attribute. | - |
| no-export | Displays the BGP routes with the No-Export community attribute. | - |
| no-export-subconfed | Displays the BGP routes with the No-Export-Subconfed community attribute. | - |
| whole-match | Indicates the exact matching. | - |
| community-filter | Displays the routes that match the specified BGP community filter. | - |
| community-filter-name | Specifies the name of the community filter. | - |
| basic-community-filter-number | Specifies the number of basic community filter. | - |
| advanced-community-filter-number | Specifies the number of advanced community filter. | - |
| different-origin-as | Displays routes that have the same destination address but different source ASs. | - |
| regular-expression as-regular-expression | Specifies the matched AS regular expression. | The value is a string of 1 to 80 characters. |
| peer ipv4-address | Displays the routing information for the specified BGP peer. | - |
| advertised-routes | Displays the routes advertised to the specified peer. | - |
| dest-ipv6-address | Specifies the destination IPv6 address. | - |
| received-routes | Displays the routes received from the specified peer. | - |
| active | Displays the active routes received from the 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 the peer and filtered through a routing policy. | - |
| time-range start-time end-time | Displays BGP VPNv6 routes that flap within the specified time period. For example, the value 0d0h5m0s of start-time indicates five minutes before the current time. The value 0d0h10m0s of end-time indicates 10 minutes before the current time. All BGP VPNv6 routes with the Keepalive time in the range of 5 to 10 minutes are displayed. |
The formats of start-time and end-time both are xxdxxhxxmxxs.
NOTE:
If the value of the d is 10000, the values of the h, m, and s can be only 0. |
You can specify different parameters to view the specific routing information.
You can run the display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time command to view BGP VPNv6 routes that flap within the specified time period. For example, if service traffic is abnormal or CPU usage of the device remains high within a certain time period, you can run this command to check whether route flapping occurs within the specified time period. The faulty route can be viewed in the command output, facilitating fault location.
# Display all BGP VPNv6 routes.
<sysname> display bgp vpnv6 all routing-table
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 : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Path/Ogn : 65410 ?
Route Distinguisher: 100:2
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037
Path/Ogn : ?
VPN-Instance vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 2
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Path/Ogn : 65410 ?
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037
Path/Ogn : ?
# Display BGP VPNv6 routes that flap within the specified time period in a specified VPN instance.
<sysname> display bgp vpnv6 vpn-instance 1 routing-table time-range 0d5h0m0s 1d5h0m0s
BGP Local router ID is 10.1.1.2
Status codes: * - valid, > - best, d - damped,
h - history, i - internal, s - suppressed, S - Stale
Origin : i - IGP, e - EGP, ? - incomplete
*> Network : 2001:db8:100::100 PrefixLen : 128
NextHop : :: Duration : 06h06m57s
Peer : ::
Path/Ogn : ?
* i
NextHop : ::FFFF:1.1.1.1 Duration : 06h06m27s
Peer : 1.1.1.1
Path/Ogn : ?
*>i Network : 2001:db8:111::100 PrefixLen : 128
NextHop : ::FFFF:1.1.1.1 Duration : 06h06m27s
Peer : 1.1.1.1
Path/Ogn : ?
* i
NextHop : ::FFFF:1.1.1.1 Duration : 06h06m27s
Peer : 1.1.1.1
Path/Ogn : ?
Item |
Description |
|---|---|
BGP Local router ID |
ID of the local BGP device. The format is the same as the IPv4 address. |
Total number of routes from all PE |
Total number of BGP VPNv6 routes learned by the local device from all peer PEs. |
Network |
Destination network address or host address of the route. |
PrefixLen |
Mask length of the destination address/host address of the route. |
NextHop |
IPv6 address of the close next hop through which the local device sends the packet to the destination address. |
LocPrf |
Local preference of the BGP route. The default value is 100. |
MED |
Multi-Exit discriminator. The default value is 0. |
PrefVal |
Protocol preferred value of the route. |
Label |
Label carried in the data packet sent by the local device to the destination network segment/host. |
Duration |
Route duration. |
Peer |
Peer IP address. |
Path/Ogn |
AS_Path and origin attributes of the route. |
Total Number of Routes |
Routes received by local CE from VPN1. |
# Display BGP4+ routes of the VPN instance named vpn1 on the local device.
<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table
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: 2
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65410 ?
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
Path/Ogn : ?
# Display the IPv6 network segment routes with the destination address as 2001:db8:2001::.
<sysname> display bgp vpnv6 route-distinguisher 100:1 routing-table 2001:db8:2001:: BGP local router ID : 1.1.1.9 Local AS number : 100 Total routes of Route Distinguisher(100:1): 1 BGP routing table entry information of 2001:db8:2001::/64: Label information (Received/Applied): NULL/1039 From: 2001:db8:2001::1 (10.10.10.10) Route Duration: 1d00h25m01s Direct Out-interface: GigabitEthernet0/0/0 Original nexthop: 2001:db8:2001::1 Ext-Community:RT <111 : 1> AS-path 65410, origin incomplete, MED 0, pref-val 0, valid, external, best, sel ect, pre 255 Advertised to such 1 peers: 3.3.3.9 VPN-Instance vpn1, Router ID 10.4.4.4 : Total Number of Routes: 1 BGP routing table entry information of 2001:db8:2001::/64: From: 2001:db8:2001::1 (10.10.10.10) Route Duration: 1d00h25m01s Relay IP Nexthop: :: Relay IP Out-Interface: GigabitEthernet0/0/0 Original nexthop: 2001:db8:2001::1 AS-path 65410, origin incomplete, MED 0, pref-val 0, external, pre 255 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. |
Total routes of Route Distinguisher (1:1) |
Total number of BGP VPNv6 routes of the specified RD. |
BGP routing table entry information of |
The following information is about BGP routing entries. |
Label information (Received/Applied) |
Label information (received or sent). |
From |
IP address of the device that sends the route. |
Original nexthop |
Original next hop. |
Ext-Community |
Extended community attribute. |
AS-path |
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 |
Optional non-transitive property of the BGP route. The Multi_Exit Discriminator (MED) property is exchanged only between two neighboring ASs. The receiving AS does not advertise the property to any other ASs. Similar to the metrics of IGP, the MED property is used to judge the best route for the traffic to enter the AS. If a BGP device obtains multiple routes with the same destination address but different next hops from different EBGP peers, the route with the lowest MED value is chosen as the best route if other conditions of those routes are the same. |
Localpref |
Well-known optional property of the BGP route. The Local Pref property is exchanged only between the BGP peers, and is not advertised to other ASs. The property indicates the priority of a BGP device. The Local Pref property is used to figure out the optimal route for the traffic to leave an AS. After a BGP device obtains from different IBGP peers multiple routes with the same destination address but different next hops, the route with higher Local Pref property is selected. |
pref-val |
Preferred value of the protocol. |
valid |
The BGP route is a valid route. |
external |
The BGP route is an external route. |
best |
The BGP route is an optimal route. |
Pre 255 |
The priority of the BGP route is 255. |
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |
# Display BGP4+ routes with the specified destination address of the VPN instance.
<sysname> display bgp vpnv6 vpn-instance vrf1 routing-table 2001:db8:2001::
BGP local router ID : 1.1.1.9
Local AS number : 100
Paths: 1 available, 0 best, 0 select
BGP routing table entry information of 2001:db8:2001::/64:
From: 2001:db8:2001::1 (10.10.10.10)
Route Duration: 1d00h29m45s
Relay IP Nexthop: ::
Relay IP Out-Interface: GigabitEthernet0/0/0
Original nexthop: 2001:db8:2001::1
AS-path 65410, origin incomplete, MED 0, pref-val 0, external, pre 255
Not advertised to any peer yet
# Display all BGP VPNv6 routes with the AS_Path attribute containing 65420.
<sysname> display bgp vpnv6 all routing-table as-path-filter 1
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: 1
Route Distinguisher: 100:1
*> Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Path/Ogn : 65420 ?
VPN-Instance vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 1
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65420 ?
# Display the routes with the AS Path attribute containing 65420 in the BGP4+ routing table of the VPN instance named vpn1.
<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table as-path-filter 1
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 vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 1
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65420 ?
# Display the routes with the AS_Path attribute containing 65420 in the BGP routing table of the specified RD.
<sysname> display bgp vpnv6 route-distinguisher 100:1 routing-table as-path-filter 1
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: 1
Route Distinguisher: 100:1
*> Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Path/Ogn : 65420 ?
VPN-Instance vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 1
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65420 ?
# Display BGP VPNv6 routes sent by the local device to peer 3.3.3.3.
<sysname> display bgp vpnv6 all routing-table peer 3.3.3.3 advertised-routes
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: 1
Route Distinguisher: 100:1
*> Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Path/Ogn : 65410 ?
# Display BGP VPNv6 routes received by the local device from peer 3.3.3.3.
<sysname> display bgp vpnv6 all routing-table peer 3.3.3.3 received-routes
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: 1
Route Distinguisher: 100:2
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.3 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037
Path/Ogn : ?
# Display all BGP VPNv6 routes of the specified community list on the local device.
<sysname> display bgp vpnv6 all routing-table community-filter 1 whole-match
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 : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label : NULL
Route Distinguisher: 100:2
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037
VPN-Instance vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 2
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
# Display BGP4+ routes of the IPv6 VPN instance named vpn1 on the local device configured with the specified community list.
<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table community-filter 1 whole-match
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 vpn1, Router ID 10.4.4.4 :
Total Number of Routes: 2
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
# Display all BGP4+ routes that match the specified AS_Path regular expression in the VPN instance named vpn1.
<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table regular-expression ^65420
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 vpn1, Router ID 10.4.4.4 :
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65420 ?
# Display BGP4+ routes received by the local device from peer 2001:db8:2001::1 in the VPN instance named vpn1.
<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table peer 2001:db8:2001::1 received-routes
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: 1
Network : 2001:db8:2001:: PrefixLen : 64
NextHop : 2001:db8:2001::1 LocPrf :
MED : 0 PrefVal : 0
Label :
Path/Ogn : 65410 ?
# Display BGP4+ routes sent by the local device to peer 2001:db8:2001::1 in the VPN instance named vpn1.
<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table peer 2001:db8:2001::1 advertised-routes
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: 1
*>i Network : 2001:db8:2002:: PrefixLen : 64
NextHop : ::FFFF:3.3.3.9 LocPrf : 100
MED : 0 PrefVal : 0
Label : 1037/NULL
Path/Ogn : ?
# Display the original attributes of the route to 2001:db8:100::/64 sent by 2.2.2.2.
<sysname> display bgp vpnv6 all routing-table peer 2.2.2.2 received-routes 2001:db8:100:: 64 original-attributes
BGP local router ID : 1.1.1.1 Local AS number : 100 Route Distinguisher: 0.1:1 BGP routing table entry information of 2001:db8:100::/64: Label information (Received/Applied): 1047/NULL From: 2.2.2.2 (2.2.2.2) Route Duration: 00h00m25s Relay IP Nexthop: 10.1.1.2 Relay IP Out-Interface: GigabitEthernet0/0/1 Relay Tunnel Out-Interface: GigabitEthernet0/0/1 Relay token: 0x801 Original nexthop: ::FFFF:2.2.2.2 Ext-Community:RT <0 . 1 : 1> AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, pre 255, IGP cost 1, not preferred for route type Not advertised to any peer yet Route Distinguisher: 3:3 BGP routing table entry information of 2001:db8:100::/64: Label information (Received/Applied): 1043/NULL From: 2.2.2.2 (2.2.2.2) Route Duration: 00h00m25s Relay IP Nexthop: 10.1.1.2 Relay IP Out-Interface: GigabitEthernet0/0/1 Relay Tunnel Out-Interface: GigabitEthernet0/0/1 Relay token: 0x801 Original nexthop: ::FFFF:2.2.2.2 Ext-Community:RT <0 . 1 : 1> AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, pre 255, IGP cost 1 Not advertised to any peer yet
Item |
Description |
|---|---|
Route Distinguisher |
Route distinguisher. |
Route Duration |
Duration of routes. |
Relay IP Nexthop |
IP iterated next hop. |
Relay IP Nexthop |
IP iterated outbound interface. |
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. NOTE:
If the Relay token field in the command output is 0x0, it indicates that this route cannot be iterated to a tunnel. Otherwise, if the Relay token field in the command output is not 0x0, it indicates that this route can be iterated to a tunnel. |
IGP cost 1 |
The IGP cost is 1. |
not preferred for route type |
The route is not selected as the optimal route for the route type. |