The display bgp vpnv4 routing-table command displays information about BGP VPNv4 routes and BGP VPN routes.
The display bgp routing-table command displays information about BGP public network routes.
The display bgp labeled routing-table command displays information about BGP routes in a BGP labeled address family.
display bgp routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp vpnv4 all routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp vpnv4 vpn-instance vpn-instance-name routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp vpnv4 all routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp vpnv4 vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp instance instance-name vpnv4 all routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp instance instance-name vpnv4 all routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp instance instance-name vpnv4 vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp labeled routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp labeled routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp labeled vpn-instance vpn-instance-name routing-table ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp labeled vpn-instance vpn-instance-name routing-table peer remoteIpv4Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
display bgp routing-table peer remoteIpv6Addr advertised-routes ipv4-address [ mask | mask-length ] { as-path | community-list | large-community | ext-community | cluster-list | advertised-peer }
Parameter | Description | Value |
---|---|---|
ipv4-address |
Specifies the IPv4 address of a peer. |
The value is in dotted decimal notation. |
mask |
Specifies a mask in dotted decimal notation. |
It is in dotted decimal notation. |
mask-length |
Specifies the mask length. |
The value is an integer ranging from 0 to 32. |
as-path |
Displays AS_Path attribute information. |
- |
community-list |
Displays a community attribute list of routes. |
- |
large-community |
Displays the BGP routes with the specified Large-Community attribute. |
- |
ext-community |
Displays an extended community attribute list of routes. |
- |
cluster-list |
Displays a cluster list of routes. |
- |
advertised-peer |
Displays the list of the peers to which a public network route is advertised. |
- |
all |
Displays all the VPNv4 and VPN instance routes. |
- |
vpn-instance vpn-instance-name |
Specifies the name of a VPN instance. |
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. |
peer remoteIpv4Addr |
Specifies the IPv4 address of a peer on which IP routes are to be displayed. |
It is in dotted decimal notation. |
advertised-routes |
Displays public network routes advertised to a specified peer. |
- |
instance instance-name |
Specifies the name of a BGP multi-instance. |
The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
remoteIpv6Addr |
Specify an IPv6 peer address. |
The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X. |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp vpnv4 all routing-table 192.168.1.1 advertised-peer
Routes of Route Distinguisher(1:2):
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
Advertised to such 1 peers:
10.0.0.6
Routes of vpn-instance vrf1:
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
Advertised to such 1 peers:
10.1.1.1
Routes of vpn-instance vrf2:
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
Advertised to such 1 peers:
10.4.7.7
<HUAWEI> display bgp vpnv4 all routing-table 192.168.1.1 ext-community
Routes of Route Distinguisher(1:2):
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
Ext-Community: RT <1:1>
Routes of vpn-instance vrf1:
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
Ext-Community: RT <1:1>
Routes of vpn-instance vrf2:
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
<HUAWEI> display bgp vpnv4 all routing-table 192.168.1.1 as-path
Routes of Route Distinguisher(1:2):
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
AS-path 65004
Routes of vpn-instance vrf1:
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
AS-path 65004
Routes of vpn-instance vrf2:
BGP routing table entry information of 192.168.1.0/24:
From: 10.4.7.7
AS-path 65004
<HUAWEI> display bgp vpnv4 all routing-table 192.168.1.1 cluster-list
Routes of Route Distinguisher(1:2):
BGP routing table entry information of 192.168.1.0/24:
From: 192.168.1.1
Routes of vpn-instance vrf1:
BGP routing table entry information of 192.168.1.0/24
From: 192.168.2.7
Routes of vpn-instance vrf2:
BGP routing table entry information of 192.168.1.0/4
From: 192.168.3.7
<HUAWEI> display bgp routing-table 192.168.1.1 24 cluster-list
BGP routing table entry information of 192.168.1.0/24:
From: 192.168.1.1
Cluster list: 3.3.3.3
<HUAWEI> display bgp routing-table 192.168.1.1 ext-community
BGP routing table entry information of 192.168.1.1/32:
From: 192.168.1.2
Ext-Community: RT <100 : 2>
<HUAWEI> display bgp routing-table 192.168.1.1 24 large-community
BGP routing table entry information of 192.168.1.1/24:
Aggregated oute.
Large-community: 200:1:1>, 300:1:1>
<HUAWEI> display bgp routing-table 192.168.1.1 24 community-list
BGP routing table entry information of 192.168.1.0/24:
From: 192.168.1.1
Community: <400:1>
<HUAWEI> display bgp routing-table 192.168.1.1 24 as-path
BGP routing table entry information of 192.168.1.0/24:
From: 192.168.1.1
AS-path 100
Item | Description |
---|---|
Routes of Route Distinguisher | Total number of VPNv4 routes with a specified RD. |
BGP routing table entry information | The following information is about a specified BGP route. |
Advertised to such 1 peers | Information about the device that sends the peer information. |
AS-path | AS_Path attribute. Nil indicates that the attribute value is null. |
Cluster list | Cluster_List attribute of the route. |
From | IP address of the route originator. |
Ext-Community | Extended community. |
Community | Community attribute of the route. |
Large-community | Large-community attribute information. |