< Home

display bgp vpnv6 routing-table statistics

Function

The display bgp vpnv6 routing-table statistic command displays the statistics of the BGP Virtual Private Network version 6 (VPNv6) routes.

Format

display bgp vpnv6 { all | route-distinguisher route-distinguisher | vpn-instance vpn-instance-name } routing-table statistics [ as-path-filter { as-path-filter-number | as-path-filter-name } | different-origin-as ]

display bgp vpnv6 { all | route-distinguisher route-distinguisher | vpn-instance vpn-instance-name } routing-table statistics regular-expression as-regular-expression

display bgp vpnv6 { all | route-distinguisher route-distinguisher | vpn-instance vpn-instance-name } routing-table statistics community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

display bgp vpnv6 { all | route-distinguisher route-distinguisher | vpn-instance vpn-instance-name } routing-table statistics community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp vpnv6 { vpn-instance vpn-instance-name | all } routing-table peer ipv6-address { advertised-routes | received-routes [ active ] } statistics

display bgp vpnv6 { vpn-instance vpn-instance-name | all } routing-table peer statistics

Parameters

Parameter Description Value

all

Displays all the statistics of the BGP routes for VPNv6.

-

route-distinguisher route-distinguisher

Indicates the route distinguisher (RD).

The RD formats are divided into the following types:

  • 2-byte AS number:32-bit user-defined number, for example, 101:3. An AS number ranges from 0 to 65535. A user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, an RD cannot be 0.0:0.

  • 32-bit IP address:16-bit user-defined number, for example, 192.168.122.15:1. An IP address ranges from 0.0.0.0 to 255.255.255.255. A user-defined number ranges from 0 to 65535.

vpn-instance vpn-instance-name

Displays statistics of BGP routes of the VPN 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.

as-path-filter

Displays the routes that match the specified filter.

-

as-path-filter-number

Specifies the number of the matching AS_Path filter.

It is an integer that ranges from 1 to 256.

as-path-filter-name

Specifies the name of the matching AS_Path filter.

The name is a string of 1 to 51 characters without any space. It is case-sensitive.

NOTE:

When double quotation marks are used around the string, spaces are allowed in the string.

different-origin-as

Displays the routes that have the same destination address but different source AS number.

-

regular-expression as-regular-expression

Indicates the matched AS regular expression.

The value is a string of 1 to 80 characters.

community

Displays the routing information of the specified BGP community attribute in the routing table.

-

community-number

Specifies the community number.

It is an integer ranging from 0 to 4294967295.

aa:nn

Specifies the community number.

Both aa and nn are integers ranging from 0 to 65535.

internet

Displays the BGP routes with Internet community attribute.

-

no-advertise

Displays the BGP routes with the No-Advertise community attribute.

-

no-export

Displays the BGP routes with the No-Export community attribute.

-

no-export-subconfed

Displays the BGP routes with the No-Export-Subconfed community attribute.

-

whole-match

Indicates exact matching.

-

community-filter

Displays the routing information that matches the specified BGP community filter.

-

community-filter-name

Specifies the name of the community filter.

The name is a string of 1 to 51 characters. The string cannot be all numbers.

basic-community-filter-number

Specifies the number of basic community filter.

It is an integer ranging from 1 to 99.

advanced-community-filter-number

Specifies the number of advanced community filter.

t is an integer ranging from 100 to 199.

peer ipv6-address

Displays the routing information for the specified BGP peer.

-

advertised-routes

Displays the routes advertised to the specified peer.

-

received-routes

Displays the routes received from the specified peer.

-

active

Displays the active routes received from the specified peer.

-

ipv4-address

Displays the routing information for the specified BGP peer.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display statistics of BGP VPNv6 routes on local router.

<sysname> display bgp vpnv6 all routing-table statistics

 Total number of routes from all PE: 2

 VPN-Instance vpn1, Router ID 10.4.4.4 :

 Total Number of Routes: 2 
# Display statistics of BGP VPNv6 routes with RD 100:1 on local router.
<sysname> display bgp vpnv6 route-distinguisher 100:1 routing-table statistics

 Route Distinguisher: 100:1


 Total Number of Routes: 1

 VPN-Instance vpn1, Router ID 10.4.4.4 :

 Total Number of Routes: 2

# Display statistics of the BGP4+ routes of the VPN instance named vpn1 on the local router.

<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table statistics

 Total Number of Routes: 5

# Display the number of BGP VPNv6 routes received from peer 1.1.1.1.

<sysname> display bgp vpnv6 all routing-table peer 1.1.1.1 received-routes statistics
  Received routes total: 1
# Display statistics of VPN-IPv6 routes with the internet community attribute of the specified RD on the local router.
<sysname> display bgp vpnv6 route-distinguisher 100:1 routing-table statistics community internet

 Total number of routes from all PE: 1

 VPN-Instance vpn1, Router ID 10.4.4.4 :

 Total Number of Routes: 2

# Display statistics of all BGP VPNv6 routes of the specified community list on the local router.

<sysname> display bgp vpnv6 all routing-table statistics community-filter 1

 Total number of routes from all PE: 1

 VPN-Instance vpn1, Router ID 10.4.4.4 :

 Total Number of Routes: 2

# Display statistics of all BGP VPNv6 routes that match the specified AS_Path regular expression.

<sysname> display bgp vpnv6 all routing-table statistics regular-expression 65420*

 Total number of routes from all PE: 1

 VPN-Instance vpn1, Router ID 10.4.4.4 :

 Total Number of Routes: 1

# Display statistics of BGP VPNv6 routes received by the local router from VPN peer 2000::1.

<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table peer 2000::1 received-routes statistics
  Received routes total: 2

# Display statistics of BGP VPNv6 routes sent by the local router to peer 2000::1 of the IPv6 VPN instance named vpn1.

<sysname> display bgp vpnv6 vpn-instance vpn1 routing-table peer 2000::1 advertised-routes statistics
  Advertised routes total: 2

  Default originated : 0
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >