The display bgp vpnv4 routing-table statistics command displays statistics about BGP VPNv4 routes and BGP VPN routes based on specified multiple attribute values.
display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table statistics [ community [ communityNum | strCommunityNum | internet | no-advertise | no-export | no-export-subconfed ] &<1-33> [ whole-match ] | extcommunity [ { rt | soo } strExtCommunity ] &<1-33> [ match-any ] | large-community [ largeCommuStr ] &<1-33> [ whole-match ] ] * [ regular-expression strRegular ]
display bgp instance bgpName vpnv4 { all | vpn-instance vpn-instance-name } routing-table statistics [ community [ communityNum | strCommunityNum | internet | no-advertise | no-export | no-export-subconfed ] &<1-33> [ whole-match ] | extcommunity [ { rt | soo } strExtCommunity ] &<1-33> [ match-any ] ] * [ regular-expression strRegular ]
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. |
statistics |
Displays statistics about BGP routes. |
- |
community communityNum |
Specify community number. |
The value is an integer ranging from 0 to 4294967295. |
community strCommunityNum |
Specify aa<0-65535>:nn <0-65535>. |
The value is a string of 1 to 11 case-sensitive characters, spaces not supported. |
internet |
Displays the BGP routes carrying the internet community attribute. |
- |
no-advertise |
Displays the BGP routes carrying the No-Advertise community attribute. |
- |
no-export |
Displays the BGP routes carrying the No-Export community attribute. |
- |
no-export-subconfed |
Displays the BGP routes carrying the No-Export-Subconfed community attribute. |
- |
whole-match |
Indicates exact match with specified communities. |
- |
whole-match |
Indicates exact match with specified large communities. |
- |
extcommunity |
Displays information about BGP routes with a specified extended community attribute. |
- |
rt |
Displays information about BGP routes with the route target (RT) extended community attribute. |
- |
soo |
Displays information about BGP routes with the source of origin (SoO) extended community attribute. |
- |
strExtCommunity |
Specifies the excommunity value. IP<X.X.X.X>:NN<0-65535> or AS<0-65535>:NN<0-4294967295> or AS<65536-4294967295>:NN<0-65535> or AS<0-65535>.<0-65535>:NN<0-65535>. |
The attribute is a BGP extended community attribute and can be expressed in any of the following formats:
|
match-any |
Displays information about BGP routes with any of the specified extended community attributes. |
- |
large-community largeCommuStr |
Specifies a value of the Large-Community attribute. |
The value is a string of 5 to 32 case-sensitive characters, spaces not supported. |
regular-expression strRegular |
Specifies the regular expression used to match the AS_Path information. |
The value is a string of 1 to 80 characters. |
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 statistics
Total number of routes from all PE: 2
VPN-Instance vrf, Router ID 10.1.123.1:
Total Number of Routes: 2
<HUAWEI> display bgp vpnv4 vpn-instance vrf routing-table statistics community
VPN-Instance vrf, Router ID 10.1.123.1:
Total Number of Routes: 2
<HUAWEI> display bgp instance a vpnv4 all routing-table statistics extcommunity
Total number of routes from all PE: 3
VPN-Instance vpna, Router ID 10.3.123.1:
Total Number of Routes: 3
<HUAWEI> display bgp instance a vpnv4 vpn-instance vpna routing-table statistics community 1:1 regular-expression ^20
VPN-Instance vpna, Router ID 10.3.123.1:
Total Number of Routes: 3
Item | Description |
---|---|
Total number of routes from all PE | Number of VPNv4 routes. |
Total Number of Routes | Total number of routes. |
VPN-Instance | Name of a VPN instance. |
Router ID | Router ID of the VPN instance. |