The display bgp vpn-target routing-table command displays information about routes of the BGP VPN-Target address family.
display bgp vpn-target routing-table [ origin-as { as-number-plain | as-number-dot } ] [ statistics | vpn-target ]
display bgp vpn-target routing-table peer ipv4-address { advertised-routes | received-routes } [ statistics ]
display bgp vpn-target routing-table peer statistics
display bgp vpn-target routing-table peer ipv4-address advertised-routes [ origin-as { as-number-plain | as-number-dot } ] vpn-target
display bgp vpn-target routing-table peer ipv4-address received-routes [ origin-as { as-number-plain | as-number-dot } ] vpn-target
| Parameter | Description | Value |
|---|---|---|
| origin-as | Specifies the original AS number. |
- |
| as-number-plain | Integral AS number |
The value is an integer ranging from 0 to 4294967295. |
| as-number-dot | AS number in dotted notation |
The value is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. |
| statistics | Displays the routes matching a specified filter. |
- |
| vpn-target | Specifies a VPN target. |
vpn-target specifies a VPN target, which can be expressed in any of the following formats:
|
| peer ipv4-address | Displays routes of a specified peer. |
- |
| advertised-routes | Displays the routes advertised to the specified peer. |
- |
| received-routes | Displays the routes received from the specified peer. |
- |
# Display all routes of the BGP VPN-Target address family.
<sysname> display bgp vpn-target routing-table
Total number of routes from all PE: 3
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
Origin AS: 100
Total Number of Routes: 3
Network NextHop MED LocPrf PrefVal Path/Ogn
*>i RT <111 : 1> 10.1.1.1 0 100 0 ?
*>i RT <111 : 2> 10.1.1.1 0 100 0 ?
*> RT <222 : 1> 0.0.0.0 0 0 ?
Item |
Description |
|---|---|
Network |
VPN targets in the Route Target (RT) routing table |
NextHop |
Next-hop address through which packets are sent |
MED |
Route Multi_Exit Discriminator (MED) |
LocPrf |
Local preference |
PrefVal |
Preferred value of the protocol |
Path/Ogn |
AS_Path and Origin attributes |
Origin AS |
Original AS number of RT routes |
# Display detailed information about routes of the specified BGP VPN-Target address family.
<sysname> display bgp vpn-target routing-table 111:1
BGP local router ID : 2.2.2.2
Local AS number :
Paths: 1 available, 1 best, 1 select
Origin AS: 100
BGP routing table entry information of RT <111 : 1>/96:
RR-client route.
From: 1.1.1.1 (10.1.1.1)
Route Duration: 00h37m05s
Relay IP Nexthop: 10.1.1.1
Relay IP Out-Interface: GigabitEthernet0/0/0
Original nexthop: 1.1.1.1
Qos information : 0x0
AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, pre 255
Advertised to such 2 peers:
Update-Group 1 :
10.1.1.2
Update-Group 0 :
1.1.1.1
# Display the VPN target route with original AS number 100 and prefix 1:1 sent by 2.2.2.2 and its attributes.
<sysname> display bgp vpn-target routing-table peer 2.2.2.2 received-routes origin-as 100 1:1
BGP local router ID : 1.1.1.1 Local AS number : 100 Origin AS: 100 BGP routing table entry information of RT <1 : 1>/96: From: 2.2.2.2 (2.2.2.2) Route Duration: 18h20m42s Relay IP Nexthop: 10.1.1.2 Relay IP Out-Interface: GigabitEthernet0/0/1 Original nexthop: 2.2.2.2 Qos information : 0x0 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, select, pre 255, IGP cost 1, not preferred for route type Not advertised to any peer yet
Item |
Description |
|---|---|
BGP Local Router ID |
ID of the local BGP router. |
Local AS Number |
Local AS number. |
Origin AS |
Original AS number. |
BGP routing table entry information |
The following information is about BGP routing entries. |
From |
IP address of the router that sends the route. |
Route Duration |
Duration of routes. |
Relay IP Nexthop |
IP iterated next hop. |
Relay IP Out-Interface |
IP iterated outbound interface. |
Original nexthop |
Original next hop. |
Qos information |
QoS information.
|
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:
|
localpref |
Local priority. |
pref-val |
Value preferred by the protocol. |
valid |
The BGP route is a valid route. |
internal |
The BGP route is an internal route. |
best |
The BGP route is an optimal route. |
select |
The BGP route is a preferred route. |
pre 255 |
The priority of the BGP route is 255. |
Update-Group |
BGP update group. |
IGP cost 1 |
Cost of the relied route. |
not preferred for route type |
The route is not selected as the optimal route for the route type. |
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |
# Display detailed information about the specified invalid BGP VPN-Target routes.
display bgp vpn-target routing-table 111:1
BGP local router ID : 2.2.2.2 Local AS number : Paths: 1 available, 1 best, 1 select Origin AS: 100 BGP routing table entry information of RT <111 : 1>/96: RR-client route. From: 1.1.1.1 (10.1.1.1) Route Duration: 00h37m05s Relay IP Nexthop: 10.1.1.1 Relay IP Out-Interface: Serial0/0/0 Original nexthop: 1.1.1.1 Qos information : 0x0 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for route-policy not pass Not advertised to any peer yet
Item |
Description |
|---|---|
BGP Local Router ID |
ID of the local BGP router. The format is the same as the IPv4 address. |
Local AS Number |
Local AS number. |
Paths |
Information about paths of BGP routes |
Origin AS |
Original AS number. |
BGP routing table entry information of RT <111 : 1>/96 |
The following information is about <111 : 1>/96 routing entries. |
RR-client route |
The route is advertised by route reflect client. |
From |
IP address of the router that sends the route. 10.1.1.1 is the IP address of the source interface of the peer with which the BGP connection is established, and 1.1.1.1 is the Router ID of the peer. |
Route Duration |
Duration of routes. |
Relay IP Nexthop |
IP iterated next hop. |
Relay IP Out-Interface |
IP iterated outbound interface. |
Original nexthop |
Original next hop. |
Qos information |
QoS information.
|
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 |
Value preferred by the protocol. |
internal |
The BGP route is an internal route. |
pre 255 |
The priority of the BGP route is 255. |
invalid for route-policy not pass |
Reason why a route is invalid:
|
Not advertised to any peer yet |
The BGP route has not been advertised to any peer yet. |