display bgp routing-table peer

Function

The display bgp routing-table peer command displays the BGP routing information of a specified peer.

Format

display bgp routing-table peer remoteIpv4Addr { accepted-routes | not-accepted-routes }

display bgp vpnv4 vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr { accepted-routes | not-accepted-routes }

display bgp vpnv4 all routing-table peer remoteIpv4Addr { accepted-routes | not-accepted-routes }

display bgp routing-table peer remoteIpv4Addr advertised-routes [ statistics ]

display bgp routing-table peer remoteIpv4Addr received-routes statistics

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr advertised-routes [ statistics ]

display bgp vpnv4 all routing-table peer remoteIpv6Addr advertised-routes [ statistics ]

display bgp vpnv4 all routing-table peer remoteIpv6Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr received-routes [ statistics ]

display bgp vpnv4 all routing-table peer remoteIpv6Addr received-routes [ statistics | ipv4-address [ { mask-length | mask } [ longer-prefixes ] ] ]

display bgp routing-table peer remoteIpv4Addr received-routes active [ statistics ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr received-routes active [ statistics ]

display bgp vpnv4 all routing-table peer remoteIpv6Addr received-routes active [ statistics ]

display bgp vpnv4 all routing-table peer remoteIpv6Addr { accepted-routes | not-accepted-routes }

display bgp routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp routing-table peer remoteIpv4Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

display bgp instance instance-name vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr advertised-routes [ statistics ]

display bgp instance instance-name vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr received-routes [ statistics ]

display bgp instance instance-name vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr received-routes active [ statistics ]

display bgp instance instance-name vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp instance instance-name vpnv4 { all | vpn-instance vpn-instance-name } routing-table peer remoteIpv4Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

display bgp labeled routing-table peer remoteIpv4Addr advertised-routes [ statistics ]

display bgp labeled routing-table peer remoteIpv4Addr received-routes statistics

display bgp labeled routing-table peer remoteIpv4Addr received-routes active [ statistics ]

display bgp labeled routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp labeled routing-table peer remoteIpv4Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

display bgp labeled vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr advertised-routes [ statistics ]

display bgp labeled vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr received-routes [ statistics ]

display bgp labeled vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp labeled vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

display bgp labeled vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr received-routes active [ statistics ]

display bgp routing-table peer remoteIpv6Addr { accepted-routes | not-accepted-routes }

display bgp routing-table peer remoteIpv6Addr advertised-routes [ statistics ]

display bgp routing-table peer remoteIpv6Addr advertised-routes ipv4-address [ { mask-length | mask } [ longer-prefixes ] ]

display bgp routing-table peer remoteIpv6Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

display bgp routing-table peer remoteIpv6Addr received-routes statistics

display bgp routing-table peer remoteIpv6Addr received-routes active [ statistics ]

display bgp vpnv4 all routing-table peer remoteIpv6Addr received-routes ipv4-address [ { mask-length | mask } [ original-attributes ] ]

Parameters

Parameter Description Value
remoteIpv4Addr

Specifies an IPv4 peer address.

The value is in dotted decimal notation.

accepted-routes

Displays the routes that match a routing policy.

-

not-accepted-routes

Displays the routes that do not match a routing policy.

-

vpnv4

Indicates the VPNv4 address family.

-

vpn-instance vpn-instance-name

Specifies a VPN instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. In addition, the VPN instance name must not be _public_. When double quotation marks are used around the string, spaces are allowed in the string.

all

Displays all information on VPNv4 and VPN instances.

-

advertised-routes

Displays the routes advertised to the remote peer.

-

statistics

Displays statistics of routes.

-

received-routes

Displays routes received from the remote peer.

-

remoteIpv6Addr

Specifies an IPv6 peer address.

The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

ipv4-address

Specifies an IPv4 network address.

The value is in dotted decimal notation.

mask-length

Specifies the length of an IP address mask.

The value is an integer ranging from 0 to 32.

mask

Specifies an IPv4 network mask.

The value is in dotted decimal notation.

longer-prefixes

Allows longer prefix match.

-

active

Displays active routes from the remote peer.

-

original-attributes

Displays original route attributes.

-

instance instance-name

Specifies a BGP multi-instance name.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

labeled

Indicates the labeled unicast address family.

-

Views

All views

Default Level

1: Monitoring level

Task Name and Operations

Task Name Operations
bgp read

Usage Guidelines

Usage Scenario

The display bgp routing-table peer command displays the BGP routing information of a specified peer. You can view only specific routing information by specifying different parameters.

Example

The actual command output varies according to the device. The command output here is only an example.

# Display information about BGP routes received from a specified peer, with the routes carrying a specified destination address and the entropy label.
<HUAWEI> display bgp routing-table peer 10.1.1.1 received-routes 10.1.1.1

 BGP local router ID : 10.2.2.2
 Local AS number : 100
 BGP routing table entry information of 10.1.1.1/32:
 RR-client route.
 Label information (Received/Applied): 48288/NULL
 From: 10.1.1.1 (10.1.1.1)
 Route Duration: 0d05h28m03s
 Relay IP Nexthop: 10.2.2.2
 Relay IP Out-Interface: Tunnel1
 Relay Tunnel Out-Interface:
 Original nexthop: 10.1.1.1
 Qos information : 0x0
 Community: <1:1>
 Ext-Community: Color <0 : 3>
 Large-Community: <1:1:1>
 Entropy-label padding value : AB 6A F2
 AS-path Nil, origin igp, MED 0, localpref 100, pref-val 0, valid, internal, best, select, supernet, pre 255, IGP cost 1
 Originator: 10.3.1.1
 Cluster list: 0.0.0.100
 Not advertised to any peer yet
# Display the BGP routing information accepted from a specified peer.
<HUAWEI> display bgp routing-table peer 10.1.1.1 accepted-routes
BGP Local router ID is 10.1.1.2
Status codes: * - valid, > - best, d - damped, x - best external, a - add path,
 h - history, i - internal, s - suppressed, S - Stale
 Origin : i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V - valid, I - invalid, N - not-found

Total Number of Routes: 3 
 Network NextHop MED LocPrf PrefVal Path/Ogn
*>i 10.9.9.9/32 10.1.1.2 0 100 0 ?
* ixa 10.1.1.2 0 100 0 ?
* i a 10.1.1.2 0 100 0 ?
Table 1 Description of the display bgp routing-table peer command output
Item Description
BGP Local router ID

Local router ID of BGP.

Label information (Received/Applied)

Information about labels, including received and sent labels.

Relay IP Nexthop

IP address of the next hop to which a route is recursed.

Relay Tunnel Out-Interface

Name of the tunnel to which a route recurses.

Qos information

QoS information.

Entropy-label padding value

Entropy label attribute value.

This field is displayed only after the entropy-label command is run.

MED

MED of the route.

Cluster list

Cluster_List.

Origin

Route origin.

Total Number of Routes

Number of flapping routes.

Network

BGP route prefix.

LocPrf

Local_Pref of the route.

PrefVal

PrefVal of the route.

Nexthop

Next-hop IP address.

From

Source peer that sent the route.

Community

Community attribute of a route.

Originator

Router ID of the route initiator.

Remote Router ID

Router ID of the peer.

Ext-Community

Extended community attribute.

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