< Home

display bgp vpn-target routing-table

Function

The display bgp vpn-target routing-table command displays information about routes of the BGP VPN-Target address family.

Format

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

Parameters

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:
  • 16-bit AS number: a 32-bit user-defined number, for example, 1:3. An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295.

  • 32-bit IP address: 16-bit 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.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation 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.

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.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify different parameters to view the specified routes.

Example

# 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           ?
Table 1 Description of the display bgp vpn-target routing-table command output

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
Table 2 Description of the display bgp vpn-target routing-table command output

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.
  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

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:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

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
Table 3 Description of the display bgp vpn-target routing-table command output

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.
  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

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:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

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:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

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