The display bgp vpnv4 routing-table command displays information about BGP VPNv4 routes and BGP VPN routes based on specified multiple attribute filters.
display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table { as-path-filter { as-path-filter-num | as-path-filter-name } | community-filter { { community-filter-num | community-filter-numEx | community-filter-name } | { community-filter-num | community-filter-name } whole-match } | extcommunity-filter { basic-extcomm-flt-num | adv-extcomm-flt-num | extcommunity-filter-name } | large-community-filter largeComFilName [ whole-match ] } *
display bgp instance bgpName vpnv4 { all | vpn-instance vpn-instance-name } routing-table { as-path-filter { as-path-filter-num | as-path-filter-name } | community-filter { { community-filter-num | community-filter-numEx | community-filter-name } | { community-filter-num | community-filter-name } whole-match } | extcommunity-filter { basic-extcomm-flt-num | adv-extcomm-flt-num | extcommunity-filter-name } } *
Parameter | Description | Value |
---|---|---|
all |
Displays BGP VPNv4 routes and BGP routes of VPN instances. |
- |
vpn-instance vpn-instance-name |
Displays about the BGP routes of a specified 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. |
as-path-filter as-path-filter-num |
Specifies the number of an AS_Path filter. |
The value is an integer ranging from 1 to 256. |
as-path-filter as-path-filter-name |
Specifies the name of an AS_Path filter. |
The value is a string of 1 to 51 case-sensitive characters, spaces not supported. |
community-filter community-filter-name |
Specifies the name of a community filter. |
The value is a string of 1 to 51 case-sensitive characters. The string cannot be all digits. |
community-filter community-filter-num |
Specifies the number of a basic community filter. |
The value is an integer ranging from 1 to 99. |
community-filter community-filter-numEx |
Specifies the number of an advanced community filter. |
The value is an integer ranging from 100 to 199. |
whole-match |
Indicates exact match with the specified community filter. |
- |
whole-match |
Indicates exact match with the specified large community filter. |
- |
extcommunity-filter basic-extcomm-flt-num |
Specifies the number of a basic extcommunity filter. |
The value is an integer ranging from 1 to 199. |
extcommunity-filter adv-extcomm-flt-num |
Specifies the number of an advanced extcommunity filter. |
The value is an integer ranging from 200 to 399. |
extcommunity-filter extcommunity-filter-name |
Specifies the name of an extcommunity filter. |
The value is a string of 1 to 51 characters. |
large-community-filter largeComFilName |
Specifies the name of a Large-Community filter. |
The value is a string of 1 to 51 case-sensitive characters, spaces not supported. |
instance bgpName |
Specifies 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. |
The actual command output varies according to the device. The command output here is only an example.
<HUAWEI> display bgp vpnv4 all routing-table community-filter 10
BGP Local router ID is 10.3.123.1
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 from all PE: 2
Route Distinguisher: 1:1
Network NextHop MED LocPrf PrefVal Community
*> 10.1.1.0/24 10.1.123.2 0 0 <1:1>, <2:2>
*> 10.1.2.0/24 10.1.123.2 0 0 <1:1>, <3:3>
VPN-Instance vrf, Router ID 10.1.123.1:
Total Number of Routes: 2
Network NextHop MED LocPrf PrefVal Community
*> 10.1.1.0/24 10.1.123.2 0 0 <1:1>, <2:2>
*> 10.1.2.0/24 10.1.123.2 0 0 <1:1>, <3:3>
<HUAWEI> display bgp vpnv4 vpn-instance vrf routing-table large-community-filter aaa
BGP Local router ID is 10.3.123.1
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
VPN-Instance vrf, Router ID 10.1.123.1:
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal LargeCommunity
*> 10.1.1.0/24 10.1.123.2 0 0 <1:1:1>, <2:2:2>
<HUAWEI> display bgp instance a vpnv4 all routing-table as-path-filter pas
BGP Local router ID is 10.3.123.1
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 from all PE: 1
Route Distinguisher: 11:11
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.0/24 10.2.123.2 0 0 200?
VPN-Instance vrf, Router ID 10.3.123.1:
Total Number of Routes: 0
VPN-Instance vpna, Router ID 10.3.123.1:
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal Path/Ogn
*> 10.1.1.0/24 10.2.123.2 0 0 200?
<HUAWEI> display bgp instance a vpnv4 vpn-instance vpna routing-table community-filter 10 as-path-filter pas
BGP Local router ID is 10.3.123.1
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
VPN-Instance vpna, Router ID 10.3.123.1:
Total Number of Routes: 1
Network NextHop MED LocPrf PrefVal
*> 10.1.1.0/24 10.2.123.2 0 0 200?
Item | Description |
---|---|
BGP Local router ID is | Router ID of the local BGP device. |
Total number of routes from all PE | Number of VPNv4 routes. |
Total Number of Routes | Total number of routes. |
Route Distinguisher | Route distinguisher (RD) of a route. |
Network | Network address in the BGP public network routing table. |
NextHop | Next hop IP address used to forward packets. |
MED | MED of a BGP route. |
LocPrf | Local_Pref of a BGP route. |
PrefVal | PrefVal of a BGP route. |
Community | Community attribute of a route. |
VPN-Instance | Name of a VPN instance. |
LargeCommunity | LargeCommunity attribute of a route. |
Path/Ogn | AS_Path number and the origin attribute. |