The display bgp vpn-target routing-table command displays information about routes in the BGP-VPN-Target address family.
Parameter | Description | Value |
---|---|---|
peer ipv4-address |
Specifies an IPv4 address. |
The value is in dotted decimal notation. |
advertised-routes |
Displays information about routes advertised to a specified peer. |
- |
received-routes |
Displays information about the routes received from the specified peer. |
- |
origin-as origin-as-num |
Displays information about routes with the specified origin AS number in the BGP-VPN-Target address family. |
The value is an integer ranging from 0 to 4294967295. |
vpn-target |
Displays information about a specified VPN target. |
The format of a VPN target can be as follows:
|
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> 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.21.2.1 Relay IP Out-Interface:Ethernet0/1/0 Original nexthop:2.2.2.2 Qos information:0x0 AS-path Nil,origin incomplete,MED 0,localpref 100,pref-val 0,valid,internal,best,select,pre 255,IGP cost 1,not preferred for route type Not advertised to any peer yet
<HUAWEI> display bgp vpn-target routing-table peer 2.2.2.2 received-routes 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:18h14m07s Relay IP Nexthop:10.21.2.1 Relay IP Out-Interface:Ethernet0/1/0 Original nexthop:2.2.2.2 Qos information:0x0 AS-path Nil,origin incomplete,MED 0,localpref 100,pref-val 0,valid,internal,best,select,pre 255,IGP cost 1,not preferred for route type Not advertised to any peer yet
<HUAWEI> display bgp vpn-target routing-table 1:1 BGP local router ID:2.2.2.2 Local AS number: Origin AS:100 BGP routing table entry information of RT<1: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:Ethernet0/1/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,IGP cost 10 Advertised to such 2 peers: Update-Group 1: 10.1.1.2 Update-Group 0: 1.1.1.1
Item | Description |
---|---|
BGP local router ID | Router ID of the local device, in the format of an IPv4 address. |
BGP routing table entry information of RT <1 : 1>/96 | The following information is about a specified BGP route. |
BGP routing table entry information of RT<1:1>/96 | The following information is about a specified BGP route. |
Local AS number | Local AS number. |
Origin AS | Origin AS number of the route. |
Origin | Origin attribute:
|
Route Duration | Duration of the route. |
Relay IP Nexthop | Next hop to which the route recurses. |
Relay IP Out-Interface | Outbound interface obtained when the route recurses to another route. |
Original nexthop | Original next-hop IP address. |
Qos information | QoS information. |
AS-path | AS_Path attribute. Nil indicates that the attribute value is null. |
Not advertised to any peer yet | The route has not been advertised to any peer yet. |
Advertised to such 2 peers | Peer to which a route is advertised. |
FROM | IP address of the device that advertised the route. |
MED | Multi-exit discriminator (MED), which is used to determine the optimal route when traffic enters an AS. During route selection, the route with the smallest MED value is selected as the optimal route if all other attributes are the same. |
localpref | Local_Pref of the BGP route. |
pref-val | PrefVal of the route. |
internal | The route is internal. |
pre | The priority of the BGP route. |