No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

S1720, S2700, S5700, and S6720 V200R011C10

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
BGP Configuration Commands

BGP Configuration Commands

Command Support

The following describes command support of S sereis switches. For details about support for some specific commands or parameters, see the commands.

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI, S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI

Supported

S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

NOTE:

The S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720S-SI and S5720SI support only BGP-IPv4 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view.

active-route-advertise

Function

The active-route-advertise command enables BGP to advertise only the preferred routes in the IP routing table.

The undo active-route-advertise command restores the default setting.

By default, BGP advertises all preferred routes in the BGP routing table to neighbors.

Format

active-route-advertise

undo active-route-advertise

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, BGP advertises all preferred routes in the BGP routing table to neighbors. After the active-route-advertise is configured, only the routes preferred by BGP and also active at the routing management layer are advertised to neighbors.

Precautions

The active-route-advertise command and the routing-table rib-only command are mutually exclusive.

Example

# Enable BGP to advertise only the preferred routes in the IP routing table to neighbors.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] active-route-advertise

aggregate (BGP)

Function

The aggregate command creates an aggregated route in the BGP routing table.

The undo aggregate command deletes an aggregated route in the BGP routing table.

By default, no aggregated route is created in the BGP routing table.

Format

aggregate ipv4-address { mask | mask-length } [ as-set | attribute-policy route-policy-name1 | detail-suppressed | origin-policy route-policy-name2 | suppress-policy route-policy-name3 ] *

aggregate ipv6-address prefix-length [ as-set | attribute-policy route-policy-name1 | detail-suppressed | origin-policy route-policy-name2 | suppress-policy route-policy-name3 ] *

undo aggregate ipv4-address { mask | mask-length } [ as-set | attribute-policy route-policy-name1 | detail-suppressed | origin-policy route-policy-name2 | suppress-policy route-policy-name3 ] *

undo aggregate ipv6-address prefix-length [ as-set | attribute-policy route-policy-name1 | detail-suppressed | origin-policy route-policy-name2 | suppress-policy route-policy-name3 ] *

Parameters

Parameter Description Value
ipv4-address Specifies the IPv4 address of an aggregated route. The address is in dotted decimal notation.
mask Specifies the network mask of an aggregated route. The mask is in dotted decimal notation.
mask-length Specifies the network mask length of an aggregated route. The value is an integer that ranges from 0 to 32.
ipv6-address Specifies the IPv6 address of an aggregated route. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the length of the prefix of an aggregated IPv6 route. The value is an integer that ranges from 0 to 128.
as-set Generates a route with the AS-SET. -
attribute-policy route-policy-name1 Specifies the name of an attribute policy for aggregated routes. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
detail-suppressed Advertises only the aggregated route. -
origin-policy route-policy-name2 Specifies the name of a policy that allows route aggregation. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
suppress-policy route-policy-name3 Specifies the name of a policy for suppressing the advertisement of specified routes. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
NOTE:
  • ipv4-address is valid only in the BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, and BGP-VPN instance IPv4 address family view.

  • ipv6-address is valid only in the BGP-IPv6 unicast address family view and BGP-VPN instance IPv6 address family view.

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

BGP route summarization is classified into manual summarization and automatic summarization. The aggregate command can be used to configure manual summarization. This command can summarize routes in the local BGP routing table. Manually summarized routes take precedence over automatically summarized routes. The outbound interface of the summarized route on the local switch is NULL0. When receiving the summarized route, other switches automatically add the outbound interface.

If the specific member routes of a summarized route have different Origin attributes, the Origin attribute of the summarized route uses the value in the order of incomplete, egp, and igp. The summarized route will carry the community attribute of every specific route.

The aggregate command adds a summarized route to the BGP routing table.

  • The parameter as-set is used to create a summarized route whose AS_Path attribute contains AS_Path information of specific routes. Exercise caution when using this parameter if many AS_Path attributes need to be summarized because frequent changes in routes may cause route flapping.

  • The parameter detail-suppressed is used to suppress the advertisement of specific routes. After detail-suppressed is configured, only summarized routes are advertised. Summarized routes carry the atomic-aggregate attribute, not the community attributes of specific routes.

  • The parameter suppress-policy is used to suppress the advertisement of specified routes. The if-match clause of route-policy can be used to filter the routes to be suppressed. This means that only the routes matching the policy will be suppressed, and the other routes will still be advertised. The peer route-policy command can also be used to filter out the routes not to be advertised to peers.

  • After the parameter origin-policy is used, only the routes matching route-policy are summarized.

  • The parameter attribute-policy is used to set attributes for a summarized route. If the AS_Path attribute is set in the policy using the apply as-path command and as-set is set in the aggregate command, the AS_Path attribute in the policy does not take effect. The peer route-policy command can also be used to set attributes for a summarized route.

Prerequisites

Before the aggregate command is run, BGP must be enabled.

Configuration Impact

Summarized routes are generated after you run the aggregate command. If detail-suppressed is configured in the command, the advertisement of specific routes will be suppressed. If suppress-policy is configured in the command, the advertisement of specific routes that match the policy will be suppressed.

Precautions

If the undo aggregate command is run, the system will match routes based on the configured parameter attribute-policy, origin-policy, suppress-policy, as-set, or detail-suppressed. If none of the parameters is configured, the system will fail to execute the undo aggregate command.

Example

# Create an aggregated route. The path that is used to advertise this route is an AS-SET consisting of all aggregated paths.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] aggregate 172.16.0.0 255.255.0.0 as-set

as-notation plain

Function

The as-notation plain command configures a BGP 4-byte AS number to be displayed as an integer.

The undo as-notation plain command configures a BGP 4-byte AS number to be displayed in dotted notation.

By default, a BGP 4-byte AS number is displayed in dotted notation (that is, in the format of x.y).

Format

as-notation plain

undo as-notation plain

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, display commands such as the display bgp peer command display 4-byte AS numbers in dotted notation.

To display a 4-byte AS number as an integer, run the as-notation plain command. After the as-notation plain command is run, display commands display all 4-byte AS numbers as integers. These 4-byte AS numbers include:
  • Independent 4-byte AS number
  • 4-byte AS number in an extended community attribute
  • 4-byte AS number in a route distinguisher (RD)
  • 4-byte AS number in a VPN target (also called a route target)
  • 4-byte AS number in the Site-of-Origin attribute

Assume that a 4-byte AS number in dotted notation is x.y. Following is the conversion relationship between an integral 4-byte AS number and a 4-byte AS number in dotted notation:

Integral 4-byte AS number = x x 65536 + y

For example, if a 4-byte AS number in dotted notation is 2.3, the corresponding integral 4-byte AS number is 131075 (2 x 65536 + 3).

Precautions

After the as-notation plain command is run, the formats of 4-byte AS numbers in configuration information generated by the system do not change.
  • If integral 4-byte AS numbers are configured, 4-byte AS numbers in configuration information generated by the system are also displayed as integers.
  • If 4-byte AS numbers in dotted notation are configured, 4-byte AS numbers in configuration information generated by the system are also displayed in dotted notation.
Changing the format of 4-byte AS numbers will affect matching results of AS_Path regular expressions and extended community attribute filters. Therefore, if the system is using an AS_Path regular expression or an extended community attribute filter as an import or export policy, you must reconfigure an AS_Path regular expression using the ip as-path-filter command or an extended community attribute filter using the ip extcommunity-filter command after changing the format of 4-byte AS numbers. This reconfiguration ensures that routes match the import or export policy.
  • If integral 4-byte AS numbers are configured, you must change 4-byte AS numbers in AS_Path regular expressions and extended community attribute filters to integral 4-byte AS numbers.
  • If 4-byte AS numbers in dotted notation are configured, you must change 4-byte AS numbers in AS_Path regular expressions and extended community attribute filters to 4-byte AS numbers in dotted notation.

Example

# Configure a BGP 4-byte AS number to be displayed as an integer.

<HUAWEI> system-view
[HUAWEI] as-notation plain
Warning: If the configuration takes effect, the regular expression of the filter for 4-byte AS path should be changed to the asplain format, otherwise match will fail. Continue? [Y/N]y

# Configure a BGP 4-byte AS number to be displayed in dotted notation.

<HUAWEI> system-view
[HUAWEI] undo as-notation plain
Warning: If the configuration takes effect, the regular expression of the filter for 4-byte AS path should be changed to the asdot format, otherwise match will fail. Continue? [Y/N]y

as-path-limit

Function

The as-path-limit command sets the maximum number of AS numbers in the AS_Path attribute.

The undo as-path-limit command restores the default setting.

By default, the maximum number of AS numbers in the AS_Path attribute is 255.

Format

as-path-limit [ as-path-limit-num ]

undo as-path-limit

Parameters

Parameter Description Value
as-path-limit-num Specifies the maximum number of AS numbers in the AS-Path attribute.
NOTE:

The maximum value of as-path-limit-num for the 2-byte and 4-byte AS numbers is the same.

The value is an integer that ranges from 1 to 2000. By default, the value is 255.

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This command is used to restrict the maximum number of AS numbers in the AS_Path attribute only when the AS_Path attribute is reconstructed or the aggregated routes are generated.

Precautions

After the as-path-limit command is configured, a switch checks whether the number of AS numbers in the AS-Path attribute of each received or advertised route exceeds the maximum value. If the number of AS numbers exceeds the maximum value, the local switch discards the route. Therefore, if the maximum number of AS numbers in the AS-Path attribute is set too small, routes are lost.

Example

# Set the maximum number of AS numbers in the AS-Path attribute to 200.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] as-path-limit 200

auto-frr

Function

The auto-frr command enables BGP Auto FRR.

The undo auto-frr command disables BGP Auto FRR.

By default, BGP Auto FRR is disabled.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

auto-frr

undo auto-frr

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This function is applicable to networks that require a low packet loss rate and a short delay.

Using BGP Auto FRR together with BFD is recommended. They can rapidly detect a link fault and switch traffic to a standby link if a fault occurs.

Precautions

If both the ip frr command and the auto-frr command are configured, the ip frr command takes precedence over the auto-frr command. If a route fails to match the routing policy specified in the ip frr command, the auto-frr command takes effect.

NOTE:

On the S5720HI, the auto-frr command can implement fast active/standby link switchovers of the forwarding plane and fast route convergence of the control plane. On other switch models, this command can only implement fast route convergence of the control plane.

Example

# Enable BGP Auto FRR for unicast routes.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] auto-frr

bestroute as-path-ignore

Function

The bestroute as-path-ignore command configures BGP to ignore the AS_Path attribute when it selects the optimal route.

The undo bestroute as-path-ignore command restores the default configuration.

By default, BGP uses the AS_Path attribute as one of route selection rules.

Format

bestroute as-path-ignore

undo bestroute as-path-ignore

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the bestroute as-path-ignore command is used, BGP does not compare the AS path lengths of routes. By default, the route with the shortest AS path is preferred.

Precautions

After the bestroute as-path-ignore command is run, the AS_Path attribute is not used as one of the BGP route selection rules.

Example

# Configure BGP to ignore the AS_Path attribute when selecting the optimal route.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] bestroute as-path-ignore

bestroute igp-metric-ignore

Function

The bestroute igp-metric-ignore command configures BGP to ignore the metric value of the next-hop IGP route when selecting the optimal route.

The undo bestroute igp-metric-ignore command restores the default setting.

By default, BGP selects a route with the smallest metric value of the next-hop IGP route as the optimal route.

Format

bestroute igp-metric-ignore

undo bestroute igp-metric-ignore

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPNv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view, BGP-VPNv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a BGP network, the BGP device always receives multiple routes with the same prefix but to different paths from neighbors. BGP must select the optimal route to the prefix to guide packet forwarding. By default, BGP compares the next-hop IGP route metric values of these routes and selects the route with the smallest metric value as the optimal route.

To customize route selection policies, you can run the bestroute igp-metric-ignore command to configure BGP to ignore the metric value of the next-hop IGP route when selecting the optimal route.

Example

# Configure BGP to ignore the IGP metric when selecting the optimal route.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] bestroute igp-metric-ignore

bestroute med-confederation (BGP)

Function

The bestroute med-confederation command enables BGP to compare the Multi Exit Discriminator (MED) values of routes in a confederation when BGP selects the optimal route.

The undo bestroute med-confederation command restores the default settings.

By default, BGP compares the MED values of the routes that are from the same AS only.

Format

bestroute med-confederation

undo bestroute med-confederation

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, BGP compares only MED values of routes from the same AS, not including sub-ASs in a confederation. To enable BGP to compare MED values of routes in a confederation when selecting the optimal route, run the bestroute med-confederation command.

After the bestroute med-confederation command is configured, BGP compares MED values only when AS_Path does not contain the external AS (AS that is not in the confederation) number. Otherwise, BGP does not compare MED values.

For example, ASs 65000, 65001, 65002, and 65004 belong the same confederation. Routes to the same destination are listed as follows:

  • path1: AS_Path=65000 65004, med=2

  • path2: AS_Path=65001 65004, med=3

  • path3: AS_Path=65002 65004, med=4

  • path4: AS_Path=65003 65004, med=1

After the bestroute med-confederation command is run, the AS_Path attributes of paths 1, 2, and 3 does not contain the numbers of ASs that belong to other confederations. Therefore, when selecting routes based on MED values, BGP compares the MED values of paths 1, 2, and 3 only. This is because the AS_Path attribute of path 4 contains the number of an AS that does not belong to this confederation.

Example

# Configure BGP to compare the MED values of routes only in the confederation when selecting the optimal route.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] bestroute med-confederation

bestroute med-none-as-maximum

Function

The bestroute med-none-as-maximum command configures BGP to assign the maximum Multi Exit Discriminator (MED), 4294967295, to a route without an MED in route selection.

The undo bestroute med-none-as-maximum command restores the default configuration.

By default, BGP assigns 0 to a route without an MED in route selection.

Format

bestroute med-none-as-maximum

undo bestroute med-none-as-maximum

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The bestroute med-none-as-maximum command takes effect in BGP route selection and is used only when the MED is null in the route attributes.If the MED is null and the bestroute med-none-as-maximum command is not run, the system probably cannot select an optimal route.

Configuration Impact

During BGP route selection, if the bestroute med-none-as-maximum command is run, a route without any MED is assigned the maximum MED of 4294967295.

Example

# Configure BGP to assign the maximum MED of 4294967295 to a route without an MED in route selection.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] bestroute med-none-as-maximum

bestroute nexthop-resolved

Function

The bestroute nexthop-resolved command configures the condition of the route selection of labeled BGP IPv4 routes , VPNv4 routes or VPNv6 routes for next hop iteration.

The undo bestroute nexthop-resolved command restores the default configuration.

By default, labeled BGP IPv4 routes , VPNv4 routes or VPNv6 routes participate in route selection only when their next hops are iterated to IP addresses.

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI

Supported

S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

Format

bestroute nexthop-resolved { ip | tunnel }

undo bestroute nexthop-resolved

Parameters

Parameter Description Value
ip Allows labeled routes that are iterated to IP addresses to participate in route selection. -
tunnel Allows labeled routes that are iterated to MPLS tunnels to participate in route selection. -

Views

BGP view, BGP-IPv4 unicast address family view, BGP-VPNv4 address family view, BGP-VPNv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In Route Reflector (RR) networking where the next hop of a labeled BGP IPv4 route is changed or non-RR networking, BGP needs to check whether there is an LSP destined for the next hop. If the LSP is not found, BGP needs to establish an LSP in advance. If the default setting is adopted, a labeled BGP IPv4 unicast route may be selected prior to LSP establishment. As a result, services are incorrectly switched before LSP establishment and service stability is affected. The bestroute nexthop-resolved tunnel command can be run to allow route selection only after the labeled BGP IPv4 route is iterated to an LSP. This ensures service stability.

By default, a VPNv4 route or VPNv6 routes can participate in route selection if its next hop is iterated to an IP address. The system adds the optimal VPNv4 route or VPNv6 route to the forwarding table for traffic forwarding. However, traffic cannot be forwarded over the route if the route is not iterated to an LSP. In this situation, run the bestroute nexthop-resolved tunnel command to enable VPNv4 routes or VPNv6 routes to be available in route selection only when their next hops are iterated to LSPs to ensure uninterrupted traffic forwarding.

Precautions

The bestroute nexthop-resolved ip and bestroute nexthop-resolved tunnel commands are mutually exclusive.

Example

# In the BGP VPNv4 view, configure BGP VPNv4 routes that are iterated to LSP tunnels to participate in route selection.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family vpnv4
[HUAWEI-bgp-af-vpnv4] bestroute nexthop-resolved tunnel

# In the BGP VPNv6 view, configure BGP VPNv6 routes that are iterated to LSP tunnels to participate in route selection.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv6-family vpnv6
[HUAWEI-bgp-af-vpnv6] bestroute nexthop-resolved tunnel

bestroute routerid-prior-clusterlist

Function

The bestroute routerid-prior-clusterlist command enables Originator_ID to take precedence over Cluster_List during BGP route selection.

The undo bestroute routerid-prior-clusterlist command restores the default configurations.

By default, Cluster_List takes precedence over Originator_ID during BGP route selection.

Format

bestroute routerid-prior-clusterlist

undo bestroute routerid-prior-clusterlist

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view, BGP-IPv4 multicast address family view, BGP-VPNv4 address family view, BGP-VPNv6 address family view, BGP-L2VPN address family view

Default Level

2: Configuration level

Usage Guidelines

On a BGP network, after a router receives multiple routes with the same prefix but different paths from different peers, the router needs to select an optimal route from these routes to forward packets. By default, Cluster_List takes precedence over Originator_ID during BGP route selection. To enable Originator_ID to take precedence over Cluster_List during BGP route selection, run the bestroute routerid-prior-clusterlist command.

Example

# Enable Router ID to take precedence over Cluster_List during BGP route selection.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] bestroute routerid-prior-clusterlist

bgp

Function

The bgp command enables BGP and displays the BGP view.

The undo bgp command disables BGP.

By default, BGP is disabled.

Format

bgp { as-number-plain | as-number-dot }

undo bgp [ as-number-plain | as-number-dot ]

Parameters

Parameter Description Value
as-number-plain Specifies the number of the AS, in integer format. The value is an integer that ranges from 1 to 4294967295.
as-number-dot Specifies the number of the AS, in dotted notation. The value is in the x.y format. Here, "x" and "y" are integers that range from 1 to 65535 and 0 to 65535 respectively.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

BGP is an inter-AS dynamic routing protocol. BGP running within an AS is called Internal BGP (IBGP), and BGP running between ASs is called External BGP (EBGP).

Whether to apply BGP to routing information transmission between ASs depends on the following conditions:

  • If at least one of the following conditions is met, BGP can be used:

    • An AS allows data packets to pass through on their way to another AS.

    • Multiple connections to external ISPs and the Internet exist in ASs.

    • Data flows entering or leaving ASs must be controlled.

  • If one of the following conditions is met, BGP does not need to be used:

    • Users are connected to only one ISP network.

    • The ISP does not need to provide Internet access services for users.

    • ASs adopt default routes between each other.

Precautions

After the bgp command is run, BGP is enabled.

Each device runs in only one AS; therefore, each device can be specified with only one local AS number.

After the undo bgp [ as-number-plain | as-number-dot ] command is run, BGP services may be interrupted, and all BGP configurations on the device are cleared. Therefore, exercise caution when you run this command.

Example

# Enable BGP and enter the BGP view.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp]

bgp fast-refresh enable

Function

The bgp fast-refresh enable command enables the BGP Prefix Independent Convergence (PIC) function.

The undo bgp fast-refresh enable command disables the BGP PIC function.

By default, the BGP PIC function is enabled on the switch.

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI

Supported

S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

Format

bgp fast-refresh enable

undo bgp fast-refresh enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When there are primary and backup paths for a BGP route, and a fault occurs on the primary path, the route must be updated and traffic must be switched to the backup path as soon as possible. This process is called BGP route convergence. As the network expands in scale and route prefixes, the BGP route convergence speed is affected by the number of route prefixes. More route prefixes indicate slower route convergence speed. If a network fault occurs, many packets are lost due to the slow route convergence speed. This can have a large impact on some services that are sensitive to packet loss. BGP PIC is also called BGP fast refresh. It indicates that the BGP route convergence speed is independent of the number of route prefixes. After this function is enabled, the BGP route convergence speed becomes faster without being affected by the number of route prefixes. This function reduces data loss during route convergence. When this function becomes unavailable, you can run the undo bgp fast-refresh enable command to disable it. BGP routes are then converged as usual; however, the route convergence speed is slow.

Precautions

  • Only IBGP routes support the BGP PIC function, and VPN routes do not support this function.

  • If the BGP load balancing (ECMP) or BGP Auto FRR function has been configured on the device or the next hop of a BGP route is iterated to a tunnel interface, the BGP PIC function does not take effect.

  • Disabling the BGP PIC function requires the device to be restarted after the configuration is saved or requires all BGP ASs to be reset. Otherwise, disabling the BGP PIC function takes effect only for the subsequently generated routing tables.

    Enabling the BGP PIC function requires the device to be restarted.

Example

# Disable the BGP PIC function on the switch.

<HUAWEI> system-view
[HUAWEI] undo bgp fast-refresh enable
Warning: The operation will take effect only on routing tables generated later. 
Please save configuration and reboot this device or reset all BGP ASs after this
 operation.  

check-first-as

Function

The check-first-as command enables the function to check the first AS number in the AS_Path list that is carried in the Update message sent by the EBGP peer.

The undo check-first-as command disables the function.

By default, the function is enabled.

Format

check-first-as

undo check-first-as

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, BGP checks the first AS number in the AS_Path list that is carried in the Update message sent by the EBGP peer. If only the first AS number indicates the AS where the EBGP peer locates, the Update message is accepted. Otherwise, the Update message is denied, and the EBGP connection goes Down.

Precautions

The check-first-as command is not listed in the configuration file.

After the undo check-first-as command is configured, loops have a greater chance to occur. Therefore, use the command with caution.

Follow-up Procedure

After the configuration is complete, run the refresh bgp command if you want to check the received routes again.

Example

# Check the first AS number in the AS_Path list that is carried in the Update message sent by the EBGP peer.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] check-first-as
Related Topics

compare-different-as-med

Function

The compare-different-as-med command enables BGP to compare the MEDs in the routes of peers in different ASs.

The undo compare-different-as-med command restores the default configuration.

By default, BGP does not compare the MEDs in the routes of peers in different ASs.

Format

compare-different-as-med

undo compare-different-as-med

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The command is used to control the MEDs to change the policy of BGP route selection. If the compare-different-as-med command is run, BGP will compare the MEDs of the routes from different ASs. If there are multiple reachable paths to the same destination, BGP prefers the route with the smallest MED.

Precautions

Do not use this command unless different ASs use the same IGP and route selection mode.

Example

# Enable BGP to compare the MEDs in the routes of peers in different ASs.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] compare-different-as-med

confederation id

Function

The confederation id command configures a BGP confederation and specifies a confederation ID for the BGP confederation.

The undo confederation id command removes the specified BGP confederation.

By default, no BGP confederation is configured.

Format

confederation id { as-number-plain | as-number-dot }

undo confederation id

Parameters

Parameter Description Value
as-number-plain Specifies the number of the AS, in integer format. The value is an integer that ranges from 1 to 4294967295.
as-number-dot Specifies the number of the AS, in dotted notation The value 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.

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A large AS may contain a huge number of fully meshed IBGP peer relationships. In this situation, configure a confederation.

Divide the AS into multiple small sub-ASs and group them into a confederation. Then establish EBGP connections between sub-ASs and establish fully meshed IBGP connections within the same sub-AS. Some key attributes of routes, such as the next hop, MED, and local preference are not discarded when these routes pass through sub-ASs. This can reduce the number of fully meshed IBGP peer relationships in an AS and keep the integrity of the original AS.

Precautions

The confederation ID is equal to the AS number. An external AS must specify the confederation ID when specifying the AS number of the peer. All the sub-ASs in the same confederation must be configured with the same confederation ID that must be different from the number of any sub-AS.

Example

# Configure a confederation ID. An AS is divided into sub-ASs 65001, 65002, 65003, and 65004, and their confederation ID is 9. Peer 10.2.3.4 is a member of the AS confederation. Peer 10.4.5.6 is a member outside the AS confederation. For the external members, confederation 9 is a complete AS.

<HUAWEI> system-view
[HUAWEI] bgp 65001
[HUAWEI-bgp] confederation id 9
[HUAWEI-bgp] confederation peer-as 65002 65003 65004 
[HUAWEI-bgp] peer 10.2.3.4 as-number 65002
[HUAWEI-bgp] peer 10.4.5.6 as-number 65005
Related Topics

confederation nonstandard

Function

The confederation nonstandard command configures standard devices (in RFC 3065) in a confederation to communicate with nonstandard devices.

The undo confederation nonstandard command configures standard devices in a confederation to communicate only with standard devices.

By default, only standard devices in a confederation can communicate with each other.

Format

confederation nonstandard

undo confederation nonstandard

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To communicate with nonstandard devices, configure this command on all switchs in a confederation.

Precautions

After the confederation ID is configured, running the confederation nonstandard command will disconnect the sessions between a router and its IBGP peers as well as its confederation EBGP peers. Then, new connections are reestablished.

Example

# Enable the switch to communicate with nonstandard routers. The AS 100 contains two sub-ASs, 64000 and 65000.

<HUAWEI> system-view
[HUAWEI] bgp 64000
[HUAWEI-bgp] confederation id 100
[HUAWEI-bgp] confederation peer-as 65000
[HUAWEI-bgp] confederation nonstandard

confederation peer-as

Function

The confederation peer-as command configures the number of each sub-AS of the same confederation.

The undo confederation peer-as command removes the specified sub-AS from the confederation.

By default, no sub-AS number of the confederation is configured.

Format

confederation peer-as { as-number-plain | as-number-dot } &<1-32>

undo confederation peer-as { as-number-plain | as-number-dot } &<1-32>

Parameters

Parameter Description Value
as-number-plain Specifies the number of the AS, in integer format. The value is an integer that ranges from 1 to 4294967295.
as-number-dot Specifies the number of the AS, in dotted notation The value 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.

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A large AS may contain a huge number of fully meshed IBGP peer relationships. In this situation, configure a confederation.

Prerequisites

The confederation id command specifies the confederation ID of each sub-AS. If the confederation ID is not configured, this configuration is invalid.

Precautions

The sub-ASs configured in this command belong to the same confederation, and each sub-AS uses fully meshed network.

Example

# Configure sub-ASs for the confederation.

<HUAWEI> system-view
[HUAWEI] bgp 1090
[HUAWEI-bgp] confederation id 100
[HUAWEI-bgp] confederation peer-as 1091 1092 1093
Related Topics

confederation route unicast-to-label disable

Function

The confederation route unicast-to-label disable command prevents non-RRs from advertising the IPv6 non-labeled routes learned from peers in the local confederation as labeled routes carrying a label of all Fs to the BGP peers in another confederation.

The undo confederation route unicast-to-label disable command restores the default configuration.

By default, non-RRs can advertise the IPv6 non-labeled routes learned from peers in the local confederation as labeled routes carrying a label of all Fs to the BGP peers in another confederation.

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI

Supported

S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

Format

confederation route unicast-to-label disable

undo confederation route unicast-to-label disable

Parameters

None

Views

BGP-IPv6 unicast address family view

Default Level

2: Configuration level

Usage Guidelines

If two PEs that are not RRs reside in two confederations, the PEs can advertise labeled routes carrying a label of all Fs to each other by default. However, non-Huawei devices may consider the label of all Fs invalid, and if these non-Huawei devices receive such labeled routes, BGP peer relationships may be disconnected. To prevent this problem, run the confederation route unicast-to-label disable command to prevent the PEs from advertising labeled routes carrying a label of all Fs.

Example

# Prevent non-RRs from advertising the IPv6 non-labeled routes learned from peers in the local confederation as labeled routes carrying a label of all Fs to the BGP peers in another confederation.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] confederation id 100
[HUAWEI-bgp] confederation peer-as 38 39
[HUAWEI-bgp] peer 192.168.1.1 as-number 38
[HUAWEI-bgp] peer 191::1 as-number 39
[HUAWEI-bgp] ipv6-family unicast
[HUAWEI-bgp-af-ipv6] peer 192.168.1.1 enable
[HUAWEI-bgp-af-ipv6] peer 192.168.1.1 label-route-capability
[HUAWEI-bgp-af-ipv6] peer 191::1 enable
[HUAWEI-bgp-af-ipv6] confederation route unicast-to-label disable

dampening

Function

The dampening command enables BGP route flap suppression and modifies BGP route flap suppression parameters.

The undo dampening command restores the default configuration.

By default, BGP route flap suppression is disabled.

Format

dampening [ ibgp ] [ half-life-reach reuse suppress ceiling | route-policy route-policy-name ] *

undo dampening [ ibgp ]

Parameters

Parameter Description Value
half-life-reach Specifies the half life of a reachable route. The value is an integer that ranges from 1 to 45, in minutes. The default value is 15.
reuse Specifies the threshold for the route to be unsuppressed. If the penalty of the route falls below the threshold, the route is reused. The value is an integer that ranges from 1 to 20000. The default value is 750.
suppress Specifies the threshold for the route to be suppressed. If the penalty value of the route exceeds the threshold, the route is not used. The value is an integer that ranges from 1 to 20000, which must be greater than the value of reuse. The default value is 2000.
ceiling Specifies the penalty ceiling. The value is an integer that ranges from 1001 to 20000. The configured value must be greater than that of suppress. The default value is 16000.
route-policy route-policy-name Specifies the name of a route-policy. The name is a string of 1 to 40 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
ibgp Specifies the route type as IBGP route. If this parameter is not specified, the route type is EBGP route.
NOTE:

This parameter takes effect only in the BGP-VPNv4 address family view.

-

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view, BGP-IPv4 multicast address family view, BGP-VPNv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

BGP route flap dampening measures the stability of a route by using a penalty value. The greater the penalty value, the less stable the route. Each time route flapping occurs, that is, when the switch receives a Withdraw packet or an Update packet for a route, BGP adds a certain penalty value (1000) for the route.

When the penalty value of the route exceeds the suppression threshold, the route is suppressed. The switch does not add the route to the IP routing table or advertise any Update packet to other BGP peers. If the route is marked with the d flag, the last packet received by the switch is an Update packet; if the route is marked with the h flag, the last packet received by the switch is a Withdraw packet. After the penalty value reaches a certain limit, it does not increase any more. The limit is called the penalty ceiling.

After the route is suppressed for a certain period, the penalty value is reduced by half. If the penalty value of a route marked with the d flag decreases to the reuse threshold, the d flag is removed, and the route becomes available and is selected preferentially. After that, the route can be added to the IP routing table and used to send Update packets to other BGP peers. If the penalty value of a route marked with the h flag decreases to 0, the route is deleted from the BGP routing table.

You can run the display bgp routing-table label command to check the d flag and h flag indicating the routes that have been dampened and were dampened respectively.

Precautions

If the dampening command is run multiple times, the latest configuration overrides the previous one.

After the dampening command is run, the system suppresses unstable routes. This means that the system does not add unstable routes to the BGP routing table or advertise them to other BGP peers.

Note the following items when configuring BGP route flap dampening:

  • The value of suppress must be greater than that of reuse and smaller than that of ceiling.

  • If MaxSuppressTime obtained by using the formula of MaxSuppressTime = half-life-reach x 60 x (ln(ceiling/reuse)/ln(2)) is smaller than 1, suppression cannot be performed. You need to ensure that the value of MaxSuppressTime is equal to or greater than 1. This means that the value of ceiling/reuse must be great enough.

NOTE:

The dampening command is valid only for EBGP routes.

Creating a route-policy before it is referenced is recommended. By default, nonexistent route-policies cannot be referenced using the command. If the route-policy nonexistent-config-check disable command is run in the system view and a nonexistent route-policy is referenced using the current command, the configured dampening parameters apply to all routes; if no dampening parameters are configured, the default dampening parameters apply to the routes.

Example

# Enable EBGP route dampening and modify EBGP route damping parameters.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] dampening 10 1000 2000 5000

default ipv4-unicast

Function

The default ipv4-unicast command enables the IPv4 unicast address family for BGP peers by default.

The undo default ipv4-unicast command disables the IPv4 unicast address family for BGP peers by default.

By default, the IPv4 unicast address family is enabled for BGP peers.

Format

default ipv4-unicast

undo default ipv4-unicast

Parameters

None

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

If the IPv4 unicast address family needs to be enabled by default for created BGP peers, the default ipv4-unicast command can be used to configure the default address family of BGP to the IPv4 unicast address family.

If the IPv4 unicast address family does not need to be enabled by default for created BGP peers, the undo default ipv4-unicast command can be used to disable the IPv4 unicast address family for all peers.

Precautions

After the undo default ipv4-unicast command is run, the peer enable command needs to be run if the created BGP peer needs to be enabled with the IPv4 unicast address family.

Example

# Enable the IPv4 unicast address family for all peers.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] default ipv4-unicast

default local-preference

Function

The default local-preference command sets the default local preference for BGP routes.

The undo default local-preference command restores the default configuration.

By default, the local preference for BGP routes is 100.

Format

default local-preference local-preference

undo default local-preference

Parameters

Parameter Description Value
local-preference Specifies the local preference for BGP routes. The greater the value, the higher the preference. The value is an integer that ranges from 0 to 4294967295.

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPNv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view, BGP-VPNv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The Local_Pref attribute is used to determine an optimal route for traffic before traffic leaves an AS. When the switch that runs BGP has multiple routes to the same destination, the switch selects the route with the highest local preference as the optimal route.

Precautions

If the switch is already configured with a default local preference for BGP routes, the configuration of a new default local preference will override the previous configuration.

The local preference is exchanged only between IBGP peers and is not advertised to other ASs.

Example

# Set the default local preference for BGP routes to 200.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast 
[HUAWEI-bgp-af-ipv4] default local-preference 200

default med

Function

The default med command sets the default multi-exit-discriminator (MED) for BGP routes.

The undo default med command restores the default configuration.

By default, the MED is 0.

Format

default med med

undo default med

Parameters

Parameter Description Value
med Specifies the MED for BGP routes. The value is an integer that ranges from 0 to 4294967295.

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-VPNv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view, BGP-VPNv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The default med command is valid only for the routes imported by using the import-route (BGP) command and the routes summarized by BGP on the local device.

The default med command sets the default MED and controls route selection for the traffic entering an AS. If the other attributes of routes to the same destination are the same, BGP will select the route with the smallest MED as the optimal route.

Precautions

If a default MED is configured on a device, configuring a new default MED will override the previous configuration.

The MED is transmitted between two neighboring ASs only. Devices in an AS do not advertise the received MED to peers in other ASs.

Example

# Set the default MED of a BGP route to 10.

<HUAWEI> system-view
[HUAWEI] bgp 1
[HUAWEI-bgp] ipv4-family unicast 
[HUAWEI-bgp-af-ipv4] default med 10

default-route imported

Function

The default-route imported command enables the import of the default routes in the local IP routing table to the BGP routing table.

The undo default-route imported command disables the import of the default routes in the local IP routing table to the BGP routing table.

By default, BGP does not add the default route to the BGP routing table.

Format

default-route imported

undo default-route imported

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

This configuration reduces the number of routes on the network and minimizes the routing table size. If the default-route imported command is run and a default route exists in the local IP routing table, the system imports the default route to the BGP routing table. After default routes are imported, the packets can be transmitted over the default route when no matched routing entry is found in the routing table, preventing packet loss.

Precautions

To import default routes, you need to run both the default-route imported command and the import-route (BGP) command. If only the import-route (BGP) command is used, default routes cannot be imported. In addition, the default-route imported command is used to import only the default routes that exist in the local routing table.

When a device needs to advertise default routes to a peer (group) and no default route exists in the local routing table, the peer default-route-advertise command needs to be used.

Example

# Import default routes to the BGP routing table.

<HUAWEI> system-view
[HUAWEI] bgp 1
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] default-route imported
[HUAWEI-bgp-af-ipv4] import-route ospf 1

deterministic-med (BGP)

Function

The deterministic-med command enables the BGP deterministic-MED function so that routes with the same leftmost AS number are first compared during route selection.

The undo deterministic-med command disables the BGP deterministic-MED function so that routes are compared against each other according to the sequence in which they are received.

By default, the BGP deterministic-MED function is disabled.

Format

deterministic-med

undo deterministic-med

Parameters

None

Views

BGP view, BGP-IPv4 unicast address family view, BGP-IPv4 multicast address family view, BGP-VPN instance IPv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

After the BGP deterministic-MED function is enabled, when an optimal route is to be selected from routes that are received from different ASs and carry the same prefix, routes are first grouped based on the leftmost AS number in the AS_Path attribute. Routes with the same leftmost AS number are grouped together, and after comparison, an optimal route is selected for the group. The group optimal route is then compared with optimal routes from other groups to determine the final optimal route. This mode of route selection ensures that the sequence in which routes are received is irrelevant to the route selection result.

If the BGP deterministic-MED function is disabled, routes are compared against each other according to the sequence in which they are received. In this manner, the sequence in which routes are received is relevant to the result of route selection.

For example: Assume that the following BGP routes are available on the switch.
  • Route A1: AS(PATH) 12, med 100, igp metric 13, internal, rid 4.4.4.4

  • Route A2: AS(PATH) 12, med 150, igp metric 11, internal, rid 5.5.5.5

  • Route B: AS(PATH) 3, med 0, igp metric 12, internal, rid 6.6.6.6

If Route A1, Route A2, and Route B are received in turn, Route A1 and Route A2 are first compared. The leftmost AS number of Route A1 is the same as the leftmost AS number of Route A2, and therefore Route A1 is selected because its MED is smaller. After that, Route A1 and Route B are compared. Because the leftmost AS numbers of the two routes are different, the optimal route cannot be selected by comparing the MEDs of the two routes unless the compare-different-as-med command is configured. As a result, Route B is selected because its IGP metric is smaller.

If Route A2, Route B, and Route A1 are received in turn, Route A2 and Route B are first compared. Because leftmost AS number of Route A2 is different from the leftmost AS number of Route B, the optimal route cannot be selected by comparing the MEDs of the two routes unless the compare-different-as-med command is configured. As a result, Route A2 is selected because its IGP metric is smaller. After that, Route A2 and Route A1 are compared. The leftmost AS number of Route A1 is the same as the leftmost AS number of Route A2, and therefore Route A1 is selected because its MED is smaller.

Judging from the preceding route selection procedure, when the BGP deterministic-MED function is disabled, the sequence in which routes are received is relevant to the result of route selection. After the BGP deterministic-MED function is enabled, the sequence in which routes are received is no longer relevant to the result of route selection. Route A1 and Route A2 have the same leftmost AS number, Route A1 and Route A2 are compared first regardless of the sequence in which routes are received.

Example

# Enable the deterministic-MED function in the BGP view.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] deterministic-med

display bgp bfd session

Function

The display bgp bfd session command displays information about BFD sessions between BGP peers.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp bfd session { [ vpnv4 vpn-instance vpn-instance-name ] peer ipv4-address | all }

Parameters

Parameter Description Value
vpnv4 vpn-instance vpn-instance-name Displays information about the BFD session between BGP peers with the specified IPv4 VPN instance name. The value must be an existing VPN instance name.
peer ipv4-address Displays information about the BFD session of the BGP peer with the specified IPv4 address. The value is in dotted decimal notation.
all Displays all BFD sessions between BGP peers. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The BFD session set up by BGP helps BGP quickly discover faults between BGP peers and informs BGP to recalculate routes for packet forwarding.

Run the display bgp bfd session command to display information about the BFD session set up by BGP in the following situations:
  • Check whether the BFD session is successfully set up or view detailed information about the BFD session that is successfully configured.
  • Check whether the BFD session set up by BGP is successfully deleted after running the undo peer bfd enable command.
  • Verify the configuration after running the undo peer bfd block command to prevent a peer from inheriting the BFD function of the peer group.
  • Verify the configuration after running the peer bfd command to set BFD parameters.

The information about the BFD session of a specified BGP peer can be displayed by specifying different parameters.

  • Run the display bgp bfd session vpnv4 vpn-instance vpn-instance-name peer ipv4-address command to display information about the BFD session of a specified BGP peer in a specified VRF.

  • Run the display bgp bfd session peer ipv4-address command to display information about the BFD session of a specified BGP peer on the public network.
  • Run the display bgp bfd session all command to display information about the BFD sessions of all BGP peers.

Prerequisites

The BFD session has been set up using the peer bfd enable command. If the BFD session has not been set up by BGP, no information is displayed after running the display bgp bfd session command.

Example

# Display all BFD sessions between BGP peers.

<HUAWEI> display bgp bfd session all
  Local_Address      Peer_Address       LD/RD       Interface
  10.1.1.2           10.1.1.1           8192/8193   Unknown
  Tx-interval(ms)    Rx-interval(ms)    Multiplier  Session-State
  1000               1000               3           Up
  Wtr-interval(m)
0
Table 7-122  Description of the display bgp bfd session command output

Item

Description

Local_Address

Local address

Peer_Address

Peer address

LD/RD

Local/remote discriminator

Interface

Interface on which the BFD session is set up

NOTE:

Information about the interface on which the BFD session is set up only when the directly connected interface is used to set up the EBGP neighbor relationship. In other cases, information about the interface is displayed as Unknown.

Tx-interval (ms)

Interval for sending BFD packets, in milliseconds

Rx-interval (ms)

Interval for receiving BFD packets, in milliseconds

Multiplier

Local detection multiple

Session-State

BFD status
  • Admin down: The BFD session is closed on the local end.

  • BFD global disable: BFD is disabled globally.

  • BFD session number exceed: The number of BFD sessions exceeds the maximum limit.

  • Detect down: BFD detects a link status fault and interrupts the connection.

  • Init: The BFD session is in the initialized state.

  • Neighbor down: The peer end detects that the BFD session goes Down and informs the local end of the change, and the local end then sets the neighbor status to Down.

  • Receive admin down: The BFD session is closed on the peer end (for example, the BFD session is disabled on the peer end).

  • Up: The BFD session is set up.

Wtr-interval(m)

Interval for flap dampening, in minutes

display bgp error

Function

The display bgp error command displays BGP errors.

Format

display bgp error

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When a BGP fault occurs, run the display bgp error command to display BGP error information. BGP error information includes peer error information, route error information, and resource threshold-crossing error information.

Precautions

If no BGP fault occurs, no information is displayed after running the display bgp error command.

Example

# Display BGP errors.

<HUAWEI> display bgp error
 Error Type    : Peer Error
 Date/Time     : 2010/03/22 11:40:39 UTC-08:00
 Peer Address  : 10.1.1.2
 VRF Name      : Public
 Error Info    : Router-ID conflict   

 Error Type    : Peer Error
 Date/Time     : 2010/03/22 11:40:39 UTC-08:00
 Peer Address  : 10.1.1.2
 VRF Name      : Public
 Error Info    : Incorrect remote AS

 Error Type    : Route Error
 AddressFamily : IPv4-UNC
 InstanceID    : 0
 Discard count : 20

 Error Type    : Resource exceed limit
 Date/Time     : 2010/03/22 11:40:39 UTC-08:00
 Limit info    : Route number limit

 Error Type    : Resource exceed limit
 Date/Time     : 2010/03/22 11:40:39 UTC-08:00
 Limit info    : Label number limit
Table 7-123  Description of the display bgp error command output

Item

Description

Error Type

Error type:

  • Peer Error: indicates neighbor errors.
  • Route Error: indicates route errors.
  • Resource exceed limit: indicates that resources exceed the limit.

Date/Time

Date and Time when an error occurs

Peer Address

Address of a peer

VRF Name

VPN Instance name

Error Info

Error information:

  • Router-ID conflict: indicates that router IDs conflict.
  • Incorrect remote AS: indicates an incorrect remote AS number.

AddressFamily

Address family

Discard count

Number of discarded routes

Limit info

Information indicating that resources exceed the limit:

  • Memory shortage: indicates that memory exceeds the limit.
  • Route number limit: indicates that the number of routes exceeds the limit.
  • Label number limit: indicates that the number of labels exceeds the limit.

display bgp error discard

Function

The display bgp error discard command displays the information about the discarded error BGP packets.

Format

display bgp error discard [ peer { ipv4-address | ipv6-address } ]

Parameters

Parameter Description Value
peer Displays errors on a specified peer. -
ipv4-address Displays errors on a peer with the specified IPv4 address. It is in dotted decimal notation.
ipv6-address Displays errors on a peer with the specified IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

When a BGP fault occurs, the display bgp error discard command can be run to check the information about discarded error packets. The errors include cluster ID conflicts and the threshold overflow of AS-Path attributes.

By specifying the peer parameter, you can check the information about the error packets discarded by a specified BGP peer.

Precautions

The display bgp error discard command can be used to check only the error routing. To check the error routing among BGP peers, run the display bgp error command.

Example

# Display information about discarded BGP error packets.

<HUAWEI> display bgp error discard
BGP Discard Info Counts:
Routes received with cluster ID loop           : 0
Routes received with as path count over limit  : 0
Routes advertised with as path count over limit: 0

 No discard record.
Table 7-124  Description of the display bgp error discard command output

Item

Description

BGP Discard Info Counts

Number of discarded BGP routes

Routes received with cluster ID loop

Number of discarded BGP routes with a duplicate cluster ID

Routes received with as path count over limit

Number of received BGP routes discarded due to the number of AS-Paths exceeding the upper threshold

Routes advertised with as path count over limit

Number of sent BGP routes discarded due to the number of AS-Paths exceeding the upper threshold

No discard record

No record about packet discarding

display bgp group

Function

The display bgp group command displays information about BGP peer groups.

Format

display bgp group [ group-name ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } group [ group-name ]

display bgp vpls group [ group-name ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp ipv6 group [ group-name ]

display bgp vpnv6 all group [ group-name ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv6 vpn-instance vpn-instance-name group [ group-name ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp l2vpn-ad group [ group-name ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
group-name Specifies the name of a peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
vpnv4 Displays information about BGP VPNv4 peer groups. -
all Displays information about all BGP VPNv4 or VPNv6 peer groups. -
vpn-instance vpn-instance-name Displays information about BGP peer groups in a specified VPN instance. The value must be an existing VPN instance name.
vpls Displays information about BGP peer groups of VPLS. -
ipv6 Displays information about IPv6 peer groups. -
vpnv6 Displays information about BGP VPNv6 peer groups. -
l2vpn-ad Displays information about BGP peer groups of L2VPN-AD. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

Configuring BGP peer groups simplifies BGP network configuration and improves the route advertisement efficiency.

The display bgp group command displays information about the peer group, including peers in the peer group and configuration information about the peer group. The display bgp group command is used in the following scenarios:
  • Verify the configuration after running the group command to configure the peer group.
  • Verify the configuration after running the peer group command to add a peer to the peer group.
  • Verify the configuration after running the undo peer group command to delete a peer from the peer group.
  • Verify the configuration after modifying the configuration of the peer group.

Precautions

BGP has multiple address families, each of which is configured independently. Information about peer groups in address families can be displayed by specifying different parameters.

If no parameter is specified, the display bgp group command displays default information about peer groups in the IPv4 unicast address family.

Example

# Display information about a peer group named my-peer.

<HUAWEI> display bgp group my-peer

 BGP peer-group: my-peer
 Remote AS: 200
 Authentication type configured: None
 Group's BFD has been enabled
 Type : internal
 Configured hold timer value: 180
 Keepalive timer value: 60
 Minimum route advertisement interval is 15 seconds
 listen-only has been configured
 PeerSession Members:
   10.2.2.2

 Maximum allowed route limit: 8000
 Threshold: 75%, Parameter:  always connect-retry(default)
 Peer Preferred Value: 0
 No routing policy is configured
 Peer Members:
  Peer             V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv
  10.2.2.2         4   200        0        0     0 00:00:47      Active       0
Table 7-125  Description of the display bgp group command output

Item

Description

BGP peer-group

Indicates the name of a BGP peer group

Remote AS

Indicates the number of the AS where a peer group resides.

Authentication type configured

Indicates the configured BGP authentication type:
  • MD5

  • None: indicates that no BGP authentication is configured.

Group's BFD has been enabled

Indicates that BFD has been enabled for a peer group.

Type

Indicates the type of a peer group:
  • internal: indicates that the peer group is an IBGP peer group.

  • external: indicates that the peer group is an EBGP peer group.

Configured hold timer value

Indicates the value of the Hold timer.

Keepalive timer value

Indicates the value of the Keepalive timer.

Minimum route advertisement interval

Indicates the minimum interval between route advertisements.

listen-only has been configured

Indicates that the peer or peer group only detects connection requests, and does not initiate any connection.

PeerSession Members

Indicates peers that set up sessions.

Maximum allowed route limit

Indicates the maximum number of allowed BGP routes.

Threshold

Indicates the threshold for the quantity of received BGP routes (in percentage) out of the maximum number of routes that can be received.

Parameter

If peer route-limit command is configured, this parameter will be displayed:
  • always connect-retry(default): By default, BGP Always connect-retry when the maximum is exceeded and the BGP session is terminated.
  • alert-only: Allows the switch to generate log message without terminating BGP session when the maximum is exceeded.
  • idle-forever: Don't auto-connect-retry until reset bgp when the maximum is exceeded and then terminating BGP session.
  • idle-timeout: Auto-connect-retry after timeout when the maximum is exceeded and then terminating BGP session.

Peer Preferred Value

Indicates the preferred value of a peer.

Peer Members

Indicates that the following information is about peers.

Peer

Indicates the IP address of a peer.

V

Indicates the BGP version.

AS

Indicates the number of the AS where a member of a peer group resides.

MsgRcvd

Indicates the number of received messages.

MsgSent

Indicates the number of sent messages.

OutQ

Indicates the number of messages to be sent to peers.

Up/Down

Indicates the period of time during which a BGP session keeps the current state.

State

Indicates the BGP state mechanism:
  • Idle: indicates that BGP denies any request of entering. This is the initiatory status of BGP.

    Upon receiving a Start event, BGP initiates a TCP connection to the remote BGP peer, starts the ConnectRetry Timer with the initial value, detects a TCP connection initiated by the remote BGP peer, and changes its state to Connect.

  • Idle(Admin): indicates that the peer relationship is shut down initiatively and no attempt is made to establish the neighbor relationship.

    If the peer ignore command is configured or the peer is set to the Down state through the MIB, the neighbor is in the Idle (Admin) state.

  • Idle(Ovlmt): indicates that the peer relationship is interrupted because the number of routes exceeds the upper threshold.

    After a BGP peer relationship is interrupted due to the running of the peer route-limit command, the status of the BGP peer relationship is displayed as Idle(Ovlmt). If the reset bgp command is not run, the BGP peer relationship will not be reestablished.

  • Connect: indicates that BGP waits for the TCP connection to be set up before it determines whether to perform other operations.
    • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.

    • If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to detect a TCP connection initiated by the remote peer, and changes its state to Active.

    • If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value, initiates a TCP connection to the remote BGP peer, and stays in the Connect state.

  • Active: indicates that BGP tries to set up a TCP connection. This is the intermediate status of BGP.
    • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.

    • If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value and changes its state to Connect.

    • If BGP initiates a TCP connection with an unknown IP address, the TCP connection fails. When this occurs, BGP restarts the ConnectRetry Timer with the initial value and stays in the Active state.

  • OpenSent: indicates that BGP has sent one Open message to its peer and waits for an Open message from the peer.
    • If there are no errors in the Open message received, BGP changes its state to OpenConfirm.

    • If there are errors in the Open message received, BGP sends a Notification message to the remote peer and changes its state to Idle.

    • If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to detect a TCP connection initiated by the remote peer, and changes its state to Active.

  • OpenConfirm: indicates that BGP waits for a Notification message or a Keepalive message.
    • If BGP receives a Notification message, or the TCP connection fails, BGP changes its state to Idle.

    • If BGP receives a Keepalive message, BGP changes its state to Established.

  • Established: indicates that BGP peers can exchange Update, Notification and Keepalive packets.
    • If BGP receives an Update or a Keepalive message, its state stays in Established.

    • If BGP receives a Notification message, BGP changes its state to Idle.

PrefRcv

Indicates the number of route prefixes received by the local peer from the remote peer.

# Display information about all BGP VPNv4 peer groups.

<HUAWEI> display bgp vpnv4 all group
Group in VPNV4:
 
 BGP peer-group: aa
 Remote AS number isn't specified
 Type : external
 PeerSession Members:
   3.3.3.3
 
 Peer Members:
   3.3.3.3
 ***********************

 BGP peer-group: bb
 Remote AS 100
 Type : internal
 PeerSession Members:
  NONE

 Peer Members:
   4.4.4.4
 
Group in VPN-Instance:
 
 BGP peer-group: cc
 Remote AS number isn't specified
 VPN-Instance(IPv4-family): vpn1
 
 Type : external
 PeerSession Members:
   2.2.2.1

 Peer Members:
   2.2.2.1
Table 7-126  Description of the display bgp vpnv4 all group command output

Item

Description

Group in VPNV4

Displays information about all BGP peer groups in the VPNv4 address family view.

Remote AS number isn't specified

Indicates that this item is displayed when the peer group is a mixed EBGP peer group.

Group in VPN-Instance

Displays information about peer groups in a VPN instance.

VPN-Instance

Indicates the name of a VPN instance.

# Display information about a BGP VPNv4 peer group named rr1.

<HUAWEI> display bgp vpnv4 all group rr1
Group in VPNV4:
 No such a peer-group 

Group in VPN-Instance:

 BGP peer-group: rr1
 Remote AS number isn't specified
 VPN-Instance: 1

 Type : external 
 Configured hold timer value: 180
 Keepalive timer value: 60
 Minimum route advertisement interval is 30 seconds
 PeerSession Members:
  NONE 

 Peer Preferred Value: 0
 No routing policy is configured
 Peer Members:
  No Peer Exists

# Display information about all BGP IPv6 peer groups.

<HUAWEI> display bgp vpnv6 all group
Group in VPNV6:
 
 BGP peer-group: 123
 Remote AS number isn't specified
 Type : external
 PeerSession Members:
   FC00:0:0:1::1
 
 Peer Members:
  No Peer Exists
 ***********************
 
 BGP peer-group: 222
 Remote AS 200
 Type : internal
 PeerSession Members:
   FC00:0:0:2::2
 
 Peer Members:
  No Peer Exists
 ***********************
 
 BGP peer-group: 333
 Remote AS 400
 Type : external
 PeerSession Members:
   FC00:0:0:3::3
 
 Peer Members:
  No Peer Exists
 
 
Group in VPN-Instance:
 
 BGP peer-group: 55
 Remote AS number isn't specified
 VPN-Instance(IPv6-family): vpn1
 
 Type : external
 PeerSession Members:
   FC00:0:0:4::4
 
 Peer Members:
   FC00:0:0:4::4
Table 7-127  Description of the display bgp vpnv6 all group command output

Item

Description

Group in VPNV6

Displays information about all BGP peer groups in a VPNv6 address family.

Group in VPN-Instance

Displays information about peer groups in a IPv6 VPN instance.

VPN-Instance

Indicates the name of a IPv6 VPN instance.

# Display information about all BGP IPv6 peer groups.

<HUAWEI> display bgp ipv6 group
BGP peer-group is in
 Remote AS 100
 Type : internal
 PeerSession Members:
   FC00:0:0:2::1
 
 Peer Members:
   FC00:0:0:1::1               FC00:0:0:2::1
 ***********************
 
 BGP peer-group is ex
 Remote AS number not specified
 Type : external
 PeerSession Members:
   FC00:0:0:20::1
 Peer Members:
   FC00:0:0:10::1              FC00:0:0:20::1

# Display information about a BGP VPNv6 peer group named rr1.

<HUAWEI> display bgp vpnv6 all group rr1
Group in VPNV6:
 No such a peer-group 
 
Group in VPN-Instance:
 BGP peer-group: rr1
 Remote AS number isn't specified
 VPN-Instance: 1
 Type : external
 Configured hold timer value: 180
 Keepalive timer value: 60
 Minimum route advertisement interval is 30 seconds
 PeerSession Members:
  NONE
 Peer Preferred Value: 0
 No routing policy is configured
 Peer Members:
  No Peer Exists

# Display information about all peer groups in a IPv6 VPN instance named vpn6 on the local device.

<HUAWEI> display bgp vpnv6 vpn-instance vpn6 group
BGP peer-group: g1
 Remote AS 65410
 Type : external
 PeerSession Members:
   FC00:0:0:2000::2
 
 Peer Members:
   FC00:0:0:2000::2

# Display information about a peer group named g1 in a IPv6 VPN instance named vpn6 on the local device.

<HUAWEI> display bgp vpnv6 vpn-instance vpn6 group g1
BGP peer-group: g1
 Remote AS 65410
 Type : external
 Configured hold timer value: 180
 Keepalive timer value: 60
 Minimum time between advertisement runs is 30 seconds
 PeerSession Members:
   2000::2
 
 Peer Preferred Value: 0
 No routing policy is configured
 Peer Members:
  Peer             V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv
 
  FC00:0:0:2000::2 4 65410      103       90     0 01:20:55 Established       0
Related Topics

display bgp ipv6 bfd session

Function

The display bgp ipv6 bfd session command displays information about the BFD session set up by BGP.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp ipv6 bfd session { [ vpnv6 vpn-instance vpn-instance-name ] peer ipv6-address | all }

Parameters

Parameter Description Value
vpnv6 Displays the BFD session of VPNv6. -
vpn-instance vpn-instance-name Specifies the name of the VPN instance. The value must be an existing VPN instance name.
peer ipv6-address Specifies the IPv6 address of the peer. -
all Displays all BFD sessions set up by BGP. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The BFD session set up by BGP4+ helps BGP4+ quickly discover faults between BGP4+ peers and inform BGP4+ to recalculate routes for packet forwarding.

Run the display bgp ipv6 bfd session command to display information about the BFD session set up by BGP4+ in the following situations:
  • Check whether the BFD session is successfully set up or view detailed information about the BFD session that is successfully configured.
  • Check whether the BFD session set up by BGP4+ is successfully deleted after running the undo peer bfd enable command.
  • Verify the configuration after running the undo peer bfd block command to restores a peer inheriting the BFD function of the peer group.
  • Verify the configuration after running the peer bfd command to set BFD parameters.

The information about the BFD session of a specified peer can be displayed by specifying different parameters.

  • Run the display bgp ipv6 bfd session vpnv6 vpn-instance vpn-instance-name peer ipv6-address command to display information about the BFD session of a specified peer in a VPN instance.

  • Run the display bgp ipv6 bfd session peer ipv6-address command to display information about the BFD session of a specified peer on the public network.
  • Run the display bgp ipv6 bfd session all command to display information about the BFD sessions of all BGP4+ peers.

Prerequisites

The BFD session has been set up using the peer bfd enable command. If the BFD session has not been set up by BGP4+, no information is displayed after running the display bgp ipv6 bfd session command.

Example

# Display all BFD sessions set up by BGP.

<HUAWEI> display bgp ipv6 bfd session all
  Local_Address  : FC00:3::1                              
  Peer_Address   : FC00:3::2                              
  Tx-interval(ms): 100         Rx-interval(ms): 100       
  Multiplier     : 4           Interface      : GigabitEthernet0/0/1    
  LD/RD          : 8193/8207   Session-State  : Up                  
  Wtr-interval(m): 0  
Table 7-128  Description of the display bgp ipv6 bfd session command output

Item

Description

Local_Address

Local address

Peer_Address

Peer address

Tx-interval (ms)

Interval for sending BFD packets, in milliseconds

Rx-interval (ms)

Interval for receiving BFD packets, in milliseconds

Multiplier

Local detection multiple

Interface

Interface on which the BFD session is set up
NOTE:

Information about the interface on which the BFD session is set up only when the directly connected interface is used to set up the EBGP neighbor relationship. In other cases, information about the interface is displayed as Unknown.

LD/RD

Local/remote discriminator

Session-State

BFD status
  • Admin down: The BFD session is closed on the local end.

  • BFD global disable: BFD is disabled globally.

  • BFD session number exceed: The number of BFD sessions exceeds the maximum limit.

  • Detect down: BFD detects a link status fault and interrupts the connection.

  • Init: The BFD session is in the initialized state.

  • Neighbor down: The peer end detects that the BFD session goes Down and informs the local end of the change, and the local end then sets the neighbor status to Down.

  • Receive admin down: The BFD session is closed on the peer end (for example, the BFD session is disabled on the peer end).

  • Up: The BFD session is set up.

Wtr-interval(m)

Interval for flap dampening, in minutes

display bgp ipv6 routing-table

Function

The display bgp ipv6 routing-table command displays BGP IPv6 routes.

Format

display bgp ipv6 routing-table

display bgp ipv6 routing-table ipv6-address [ prefix-length ]

display bgp ipv6 routing-table as-path-filter { as-path-filter-number | as-path-filter-name }

display bgp ipv6 routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

display bgp ipv6 routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp ipv6 routing-table different-origin-as

display bgp ipv6 routing-table regular-expression as-regular-expression

display bgp ipv6 routing-table peer ipv6-address { accepted-routes | advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] }

display bgp ipv6 routing-table peer ipv6-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]

display bgp ipv6 routing-table peer ipv4-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]

display bgp ipv6 routing-table time-range start-time end-time

Parameters

Parameter Description Value
ipv6-address Specifies the IPv6 address of the peer. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the length of the prefix. The value is an integer that ranges from 0 to 128.
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.
community Displays the routing information of the specified BGP community attribute in the routing table. -
community-number Specifies the community number. The value is an integer that ranges from 0 to 4294967295.
aa:nn Specifies the community attribute 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 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 the exact matching. -
community-filter Displays the routes that match the specified BGP community filter. -
community-filter-name Specifies the name of a 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 a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
different-origin-as Displays routes that have the same destination address but different source ASs. -
peer Displays the routing information for the specified BGP peer. -
ipv4-address Specifies the IPv4 address of the peer.
NOTE:

The parameter is not supported on S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720S-SI and S5720SI.

The value is in dotted decimal notation.
advertised-routes Displays the routes advertised to the specified peer. -
dest-ipv6-address Specifies the destination IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
received-routes Displays the routes received from the specified peer. -
active Displays the active routes received from the specified peer. -
original-attributes Displays the original attributes of a public route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. -
regular-expression as-regular-expression Specifies the matched AS regular expression. The value is a string of 1 to 80 characters.
accepted-routes Displays the routes that are received from the peer and filtered through a routing policy. -
time-range start-time end-time Displays IPv6 BGP routes that flap within the specified time period. For example, the value 0d0h5m0s of start-time indicates 5 minutes before the current time. The value 0d0h10m0s of end-time indicates 10 minutes before the current time. All IPv6 BGP routes with the Keepalive time in the range of 5 to 10 minutes are displayed. The value ranges of start-time and end-time both are 0d0h0m0s-10000d23h59m59s.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify different parameters to view the specific routing information.

You can run the display bgp ipv6 routing-table time-range start-time end-time command to view BGP4+ routes that flap within the specified time period. For example, if service traffic is abnormal or CPU usage of the device remains high within a certain time period, you can run this command to check whether route flapping occurs within the specified time period. The faulty route can be viewed in the command output, facilitating fault location.

Example

# Display BGP IPv6 routes.

<HUAWEI> display bgp ipv6 routing-table

 BGP Local router ID is 10.1.1.1
 Status codes: * - valid, > - best, d - damped, x - best external,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total Number of Routes: 1
 *>  Network  : FC00:0:0:2000::                          PrefixLen : 64
     NextHop  : FC00:0:0:2000::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : i         

# Displays BGP IPv6 routes that flap within the specified time period.

<HUAWEI> display bgp ipv6 routing-table time-range 0d5h0m0s 1d5h0m0s
BGP Local router ID is 10.1.1.2
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 *>i Network  : FC00:0:0:100::100                        PrefixLen : 128
     NextHop  : FC00:0:0:12::1                           Duration  : 05h46m16s
     Peer     : FC00:0:0:12::1
     Path/Ogn : ?
 * i
     NextHop  : FC00:0:0:112::1                          Duration  : 05h46m16s
     Peer     : FC00:0:0:112::1
     Path/Ogn : ?
 *>i Network  : FC00:0:0:111::111                        PrefixLen : 128
     NextHop  : FC00:0:0:12::1                           Duration  : 05h46m16s
     Peer     : FC00:0:0:12::1
     Path/Ogn : ?
 * i
     NextHop  : FC00:0:0:112::1                          Duration  : 05h46m16s
     Peer     : FC00:0:0:112::1
     Path/Ogn : ?
Table 7-129  Description of the display bgp ipv6 routing-table command output

Item

Description

BGP Local router ID

Indicates the router ID of the local BGP device.

Network

Indicates the network address in the BGP routing table.

PrefixLen

Indicates the prefix length.

NextHop

Indicates the next-hop address of the packet.

LocPrf

Indicates the local preference.

MED

Indicates the MED of the route.

PrefVal

Indicates the preferred value.

Label

Indicates the label value.

Duration

Route duration

Peer

Peer IP address

Path/Ogn

Indicates the AS_Path number and the Origin attribute.

# Display detailed information about the specified invalid BGP4+ routes.
<HUAWEI> display bgp ipv6 routing-table FC00::1
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Paths:   1 available, 0 best, 0 select
 BGP routing table entry information of FC00::1/128
 From: 10::2 (10.1.1.2)
 Route Duration: 00h17m46s  
 Relay IP Nexthop: ::
 Relay IP Out-Interface: 
 Original nexthop: FC00::2
 AS-path 200, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for IP unreachable
 Not advertised to any peer yet
Table 7-130  Description of the display bgp ipv6 routing-table command output

Item

Description

BGP local router ID

ID of the local BGP device. The format is the same as the IPv4 address.

Local AS number

Local AS number.

Paths

Information about paths of BGP routes

BGP routing table entry information of FC00::1/128

The following information is about FC00::1/128 routing entries.

From

IP address of the router that sends the route. 10.1.1.2 is the source interface IP address of the peer with which the BGP connection is established, and 10::2 is the router ID of the peer.

Route Duration

Duration of routes.

Relay IP Nexthop

IP iterated next hop.

Relay IP Out-Interface

IP iterated outbound interface.

Original nexthop

Original next hop.

AS-path 200

AS_Path attribute.

origin incomplete

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

MED

Multi-Exit discriminator of route.

localpref

Local priority.

pref-val

Value preferred by the protocol.

internal

The BGP route is an internal route.

pre 255

The priority of the BGP route is 255.

invalid for IP unreachable

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

display bgp ipv6 routing-table statistics

Function

The display bgp ipv6 routing-table statistics command displays statistics about BGP IPv6 routes.

Format

display bgp ipv6 routing-table statistics

display bgp ipv6 routing-table statistics as-path-filter { as-path-filter-number | as-path-filter-name }

display bgp ipv6 routing-table statistics community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

display bgp ipv6 routing-table statistics community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp ipv6 routing-table peer ipv6-address { advertised-routes | received-routes [ active ] } statistics

display bgp ipv6 routing-table statistics regular-expression as-regular-expression

display bgp ipv6 routing-table statistics different-origin-as

Parameters

Parameter Description Value
as-path-filter Displays the routes that match the specified filter. -
as-path-filter-number Specifies the number of the matching AS_Path filter. The value 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.
community Displays the routing information of the specified BGP community attribute in the routing table. -
community-number Specifies the community number. The value is an integer that ranges from 0 to 4294967295.
aa:nn Specifies the community attribute 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 a 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 a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
peer Displays the routing information for the specified BGP peer. -
ipv6-address Specifies the IPv6 address of the peer. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
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. -
regular-expression as-regular-expression Specifies the matched AS regular expression. The value is a string of 1 to 80 characters.
different-origin-as Displays routes that have the same destination address but different source ASs. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp ipv6 routing-table statistics command to check statistics about BGP IPv6 routes.

Example

# Display statistics of BGP IPv6 routes.

<HUAWEI> display bgp ipv6 routing-table statistics

 Total Number of Routes: 4
Table 7-131  Description of the display bgp ipv6 routing-table statistics command output

Item

Description

Total Number of Routes

Total number of routes in the routing table.

display bgp multicast group

Function

The display bgp multicast group command displays the information about an MBGP peer group.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast group [ group-name ]

Parameters

Parameter Description Value
group-name Specifies the name of a peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If the peer group is specified, the detailed information on the specified peer group is displayed.

If the peer group is not specified, the information on all MBGP peer groups is displayed.

Example

# Display the information about peer group my-peer.

<HUAWEI> display bgp multicast group my-peer
BGP peer-group: my-peer
 Remote AS: 1
 Authentication type configured: None
 Type : external
 Configured hold timer value: 180
 Keepalive timer value: 60
 Connect-retry timer value: 32
 Minimum route advertisement interval is 30 seconds
 PeerSession Members:
   172.16.14.1
 It's route-reflector-client
 Peer Preferred Value: 0
 No routing policy is configured
 Peer Members:
  Peer         V  AS  MsgRcvd  MsgSent  OutQ   Up/Down    State   PrefRcv
  172.16.14.1  4   1      43      29     0    00:03:03   Established   21
Table 7-132  Description of the display bgp multicast group command output

Item

Description

BGP peer-group: my-peer

Peer group: name of the group

Remote AS

The number of the AS where the peer resides

Authentication type configured

Indicates the configured BGP authentication type:
  • MD5

  • Keychain (kk), in which kk indicates the name of the configured keychain authentication

  • None, which indicates no BGP authentication is configured

Type

Indicates the types of peers:
  • internal: The type of the peer group is IBGP

  • external: The type of the peer group is EBGP

Configured hold timer value

Value of the holdtime timer

Keepalive timer value

Value of the Keepalive timer

Connect-retry timer value

Value of the Connect-retry timer

Minimum route advertisement interval

Shortest interval for advertising routes

PeerSession Members

Indicates peers that set up session connections

It's route-reflector-client

The local device is a route reflector client

Peer Preferred Value

Preferred value of peers

Peer

IP address of the peer

V

MBGP version

AS

The number of the AS where the peer reside

MsgRcvd

Number of messages received

MsgSent

Number of messages sent

OutQ

Number of messages to be sent to the peer

Up/Down

Time during which the MBGP session is in the current state

State

Indicates the MBGP state mechanism:
  • Idle: indicates that MBGP denies the connection request. This is the initiate status of MBGP.

  • Active: indicates that MBGP tries to set up TCP connection. This is the intermediate status of MBGP.

  • Established: In the status, MBGP peers can exchange Update, Notification and Keepalive packets.

  • Connect: indicates that MBGP performs other actions after the TCP connection is set up.

  • OpenSent: indicates that MBGP waits for an Open message from the peer.

  • OpenConfirm: indicates that MBGP wait for a Notification message or a Keepalive message.

PrefRcv

The number of prefixes received by the local peer from the remote peer

display bgp multicast network

Function

The display bgp multicast network command displays the routes to be advertised by MBGP through the network command.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast network

Parameters

None.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command is used to display all the configurations of the network (BGP) command in the IPv4 multicast address family view. Routes can be imported and then advertised by MBGP only when the route prefix satisfies the following conditions:
  • It is specified in the network command.

  • It already exists in the IP routing table.

  • It is active.

Example

# Display the routing information of a network segment advertised by MBGP.

<HUAWEI> display bgp multicast network
  BGP Local Router ID is 10.2.2.9                                                
  Local AS Number is 100(Multicast)                                             
  Network          Mask            Route-policy                                 
                                                                                
  10.1.1.1         255.255.255.0                                              
  10.2.2.2         255.255.255.0                                              
Table 7-133  Description of the display bgp multicast network command output

Item

Description

BGP Local Router ID

ID of the local MBGP router.

Local AS Number

Number of the local AS.

Network

Network address locally advertised.

Mask

Mask of the network address.

Route-policy

Used routing policy.

Related Topics

display bgp multicast paths

Function

The display bgp multicast paths command displays AS_Path information of MBGP.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast paths [ as-regular-expression ]

Parameters

Parameter Description Value
as-regular-expression Displays the AS_Path regular expression. The value is a string of 1 to 80 characters.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast paths command to check AS_Path information of MBGP.

Example

# Display information about MBGP paths.

<HUAWEI> display bgp multicast paths 1

Total Number of Routes: 17
Total Number of Paths: 1


    Address         Refcount   MED        Path/Origin
    0x54169A4       17         0          1?
Table 7-134  Description of the display bgp multicast paths command output

Item

Description

Total Number of Routes

Total number of routes

Total Number of Paths

Total number of AS paths

Address

Address of the path attribute node in the local database in the hexadecimal format

Refcount

Number of times that the route is referenced

MED

Multi-Exit discriminator

Path

AS_Path list of the route

Origin

Origin of the route

display bgp multicast peer

Function

The display bgp multicast peer command displays information about a specified MBGP peer. If peer-address is not specified, information about all MBGP peers is displayed.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast peer [ [ peer-address ] verbose ]

Parameters

Parameter Description Value
peer-address Specifies the address of an MBGP peer. The value is in dotted decimal notation.
verbose Specifies detailed information about an MBGP peer. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast peer command to check information about a specified MBGP peer. If peer-address is not specified, information about all MBGP peers is displayed.

Example

# Display information about all MBGP peers.

<HUAWEI> display bgp multicast peer
 
 BGP local router ID : 10.13.13.9
 Local AS number : 1
 Total number of peers : 1                 Peers in established state : 1
 
  Peer            V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv
 
  10.2.1.2        4     2       36       37     0 00:15:35 Established      24
Table 7-135  Description of the display bgp multicast peer command output

Item

Description

BGP local router ID

ID of the local MBGP router

Local AS number

Local AS number

Total number of peers

Total number of peers

Peers in established state

Number of peers in established state

Peer

IP address of peers

V

MBGP version of peers

AS

AS number

MsgRcvd

Number of messages received

MsgSent

Number of messages sent

OutQ

Messages to be sent to the specified peers

Up/Down

Period during which the MBGP session is in the current state

State

Status of the peers

PrefRcv

Number of prefixes received by the local peer from the remote peer

Related Topics

display bgp multicast routing-table

Function

The display bgp multicast routing-table command displays the MBGP routing information of a specified network in the MBGP routing table.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table [ ip-address [ mask-length [ longer-prefixes ] | mask [ longer-prefixes ] ] ]

Parameters

Parameter Description Value
ip-address Specifies an IPv4 address. The address is in dotted decimal notation.
mask-length Specifies the mask length of the IPv4 address. The value is an integer that ranges from 0 to 32.
mask Specifies the mask of the IPv4 address. The value is in dotted decimal notation.
longer-prefixes Matches routes whose masks are shorter than the specified mask length. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If ip-address is not specified, this command will display all the information in the MBGP routing table.

Example

# Display MBGP routing information.

<HUAWEI> display bgp multicast routing-table
 
 BGP local router ID is 10.13.13.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 14
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 
 *>   10.1.2.0/24        10.2.1.2                              0      2?
 *>   10.1.13.0/24       0.0.0.0         0                     0      ?
 *>   10.1.13.2/32       0.0.0.0         0                     0      ?
 *>   10.2.1.0/24        0.0.0.0         0                     0      ?
 *>   10.2.1.0/24        10.2.1.2        0                     0      2?
 *>   10.2.1.1/32        0.0.0.0         0                     0      ?
 *>   10.2.13.0/24       0.0.0.0         0                     0      ?
 *>   10.2.13.1/32       0.0.0.0         0                     0      ?
 *>   10.2.13.2/32       0.0.0.0         0                     0      ?
Table 7-136  Description of the display bgp multicast routing-table command output

Item

Description

BGP local router ID

BGP local router ID.

Status codes

Status of a routing entry.

Total Number of Routes

Total number of routes in the routing table.

Network

Indicates the network address in the MBGP routing table.

NextHop

Indicates the next-hop address for the packet.

MED

Indicates the MED of the route.

LocPrf

Indicates the local preference.

PrefVal

Indicates the preferred value.

Path/Ogn

Indicates the AS_Path number and the Origin attribute.

# Display detailed information about the specified invalid MBGP routes.
<HUAWEI> display bgp multicast routing-table 192.168.1.1
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Paths:   2 available, 0 best, 0 select
 BGP routing table entry information of 192.168.1.1/32:
 From: 10.2.2.2 (10.1.1.2)
 Route Duration: 00h01m15s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: 
 Original nexthop: 172.16.1.2
 Qos information : 0x0
 AS-path 200, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for IP unreachable
 Not advertised to any peer yet

 BGP routing table entry information of 192.168.1.1/32:
 From: 10.1.1.2 (10.1.1.2)
 Route Duration: 00h01m15s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: 
 Original nexthop: 172.16.1.2
 Qos information : 0x0
 AS-path 200, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for IP unreachable
 Not advertised to any peer yet
Not advertised to any peers yet
Table 7-137  Description of the display bgp multicast routing-table command output

Item

Description

BGP local router ID

ID of the local BGP device. The format is the same as the IPv4 address.

Local AS number

Local AS number.

Paths

Information about paths of BGP routes

BGP routing table entry information of 192.168.1.1/32

The following information is about 192.168.1.1/32 routing entries.

From

IP address of the router that sends the route. 10.1.1.2 is the IP address of the source interface of the peer with which the BGP connection is established, and 10.2.2.2 is the Router ID of the peer.

Route Duration

Duration of routes.

Relay IP Nexthop

IP iterated next hop.

Relay IP Out-Interface

IP iterated outbound interface.

Original nexthop

Original next hop.

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

AS-path 200

AS_Path attribute.

origin incomplete

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

MED

Multi-Exit discriminator of route.

localpref

Local priority.

pref-val

Value preferred by the protocol.

internal

The BGP route is an internal route.

pre 255

The BGP route preference is 255.

invalid for IP unreachable

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

display bgp multicast routing-table as-path-filter

Function

The display bgp multicast routing-table as-path-filter command displays information about the routes that match the AS_Path filter.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table as-path-filter { as-path-filter-number | as-path-filter-name }

Parameters

Parameter Description Value
as-path-filter-number Specifies the number of the matching AS_Path filter. The value is an integer that ranges from 1 to 256.
as-path-filter-name Specifies the name of the matching AS_Path filter. The value is a string of 1 to 51 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table as-path-filter command to check information about the routes that match the AS_Path filter.

Example

# Display information about the routes that match the AS_Path filter 1.

<HUAWEI> display bgp multicast routing-table as-path-filter 1
BGP local router ID is 10.14.14.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 15
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 *>i  10.1.13.0/24       10.2.1.1        0          100        0      1?
 *>i  10.2.1.0/24        10.2.1.1        0          100        0      1?
 *>i  10.2.13.0/24       10.2.1.1        0          100        0      1?
 *>i  10.2.13.1/32       10.2.1.1        0          100        0      1?
Table 7-138  Description of the display bgp multicast routing-table as-path-filter command output

Item

Description

BGP local router ID

BGP local router ID

Network

Network address in the MBGP routing table

NextHop

Next-hop address for forwarding packets

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Preferred value of protocols

Path/Ogn

AS path and Origin attribute

display bgp multicast routing-table cidr

Function

The display bgp multicast routing-table cidr command displays routing information of classless inter-domain routing (CIDR).

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table cidr

Parameters

None.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table cidr command to check routing information of CIDR.

Example

# Display routing information about CIDR.

<HUAWEI> display bgp multicast routing-table cidr
 BGP Local router ID is 10.13.13.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 9
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 *>   10.1.2.0/24        10.2.1.2                              0      2?
 *>   10.2.1.0/24        10.2.1.2        0                     0      2?
 *>   10.7.1.0/24        10.2.1.2                              0      2?
 *>   10.7.1.1/32        10.2.1.2                              0      2?
 *>   10.7.1.2/32        10.2.1.2        0                     0      2?
 *>   10.11.12.0/24      10.2.1.2        0                     0      2?
 *>   10.11.12.1/32      10.2.1.2        0                     0      2?
      
Table 7-139  Description of the display bgp multicast routing-table cidr command output

Item

Description

BGP local router ID

BGP local router ID

Status codes

Status of a routing entry

Total Number of Routes

Total number of routes in the routing table

Network

Network address in the MBGP routing table

NextHop

Next-hop address for forwarding packets

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Preferred value of protocols

Path/Ogn

AS path and Origin attribute

display bgp multicast routing-table community

Function

The display bgp multicast routing-table community command displays routing information of a specified MBGP community.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table community [ aa:nn | community-number ] & <1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

Parameters

Parameter Description Value
aa:nn Specifies the MBGP community number. You can specify a maximum of 29 MBGP communities. Both aa and nn are integers ranging from 0 to 65535.
community-number Specifies the MBGP community number. You can specify a maximum of 29 community numbers. The value is an integer that ranges from 0 to 4294967295.
internet Displays the MBGP routes with the Internet community attribute. The Internet community attribute indicates the matching routes sent to all remote peers. -
no-advertise Displays MBGP routes with the no-advertise community attribute. The no-advertise community attribute indicates that the matching routes are not sent to any peer. -
no-export Indicates MBGP routes with the no-export community attribute. The no-expert community attribute indicates that the matching routes are not advertised to other ASs but to other sub-ASs in the confederation. -
no-export-subconfed Displays MBGP routes with the no-export-subconfed community attribute. The no-export-subconfed community attribute indicates that the matching routes are not advertised outside the local AS. -
whole-match Indicates precise matching. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table community command to check routing information of a specified MBGP community.

Example

# Display MBGP routing information of Community 100:100.

<HUAWEI> display bgp multicast routing-table community 100:100
 BGP local router ID is 10.12.12.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 1
      Network          NextHop      MED    LocPrf    PrefVal    Community
 *>   10.1.1.0/24     10.2.1.1     0                 0         <100:100>        

# Display MBGP routing information with the internet community attribute or that of Community 100:100.

<HUAWEI> display bgp multicast routing-table community 100:100 internet
 BGP local router ID is 10.12.12.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total Number of Routes: 5
      Network         NextHop      MED      LocPrf    PrefVal   Community

 *>   10.1.1.1/32     10.1.1.2     0                   0        <100:100>,internet
 *>   10.3.3.3/32     10.2.1.1     0                   0        <100:100>,internet
 *>   10.1.1.0/24     10.2.1.1     0                   0        <100:100>,internet
 *>   10.2.13.0/24    10.2.1.1     0                   0        <100:100>,internet
Table 7-140  Description of the display bgp multicast routing-table community command output

Item

Description

BGP local router ID

BGP local router ID

Status codes

Status of a routing entry.

Total Number of Routes

Total number of routes in the routing table.

Network

Network address in the MBGP routing table

NextHop

Next-hop address for forwarding packets

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Preferred value of protocols

Community

Community attribute

display bgp multicast routing-table community-filter

Function

The display bgp multicast routing-table community-filter command displays the multicast routing information that matches a specified MBGP community list.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

Parameters

Parameter Description Value
basic-community-filter-number Specifies the number of a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
community-filter-name Specifies the name of a community filter. The value is a string of 1 to 51 case-sensitive characters without spaces.
whole-match Indicates exact matching. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table community-filter command to check the multicast routing information that matches a specified MBGP community list.

Example

# Display the multicast routing information that matches a specified MBGP community list.

<HUAWEI> display bgp multicast routing-table community-filter 1
BGP local router ID is 10.12.12.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 1
      Network            NextHop        MED        LocPrf    PrefVal    Community
 *>   10.10.10.0/24      10.2.1.1        0                     0        <100:100>
Table 7-141  Description of the display bgp multicast routing-table community-filter command output

Item

Description

BGP local router ID

BGP local router ID

Network

Network address in the MBGP routing table

NextHop

Next-hop address of packets

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Preferred value

Community

Community attribute

display bgp multicast routing-table dampened

Function

The display bgp multicast routing-table dampened command displays dampened MBGP routes.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table [ statistics ] dampened

Parameters

Parameter Description Value
statistics Displays statistics of dampened routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table dampened command to check dampened MBGP routes.

Example

# Display dampened MBGP routes.

<HUAWEI> display bgp multicast routing-table dampened
 BGP local router ID is 10.12.12.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 1
     Network            From              Reuse     Path/Ogn
 d   10.1.0.0/16        10.2.1.1          00:45:05  1?
Table 7-142  Description of the display bgp multicast routing-table dampened command output

Item

Description

BGP local router ID

BGP local router ID

Network

Network address in the MBGP routing table

From

IP address of MBGP peer from which the route is received

Reuse

Reuse value

Path/Ogn

AS_Path number and Origin attribute

Related Topics

display bgp multicast routing-table dampening parameter

Function

The display bgp multicast routing-table dampening parameter command displays information about MBGP dampening parameters.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table dampening parameter

Parameters

None.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table dampening parameter command to check information about MBGP dampening parameters.

Example

# Display MBGP dampening parameters.

<HUAWEI> display bgp multicast routing-table dampening parameter
 Maximum Suppress Time(in second) : 3973
 Ceiling Value                    : 16000
 Reuse Value                      : 750
 HalfLife Time(in second)         : 900
 Suppress-Limit                   : 2000
Table 7-143  Description of the display bgp multicast routing-table dampening parameter command output

Item

Description

Maximum Suppress Time (in second)

Maximum suppression time (in seconds)

Ceiling Value

Ceiling value of the penalty

Reuse Value

Threshold for routes leaving the suppression state

HalfLife Time (in second)

Half life time of the reachable route

Suppress-Limit

Threshold for routes entering the suppression state

Related Topics

display bgp multicast routing-table different-origin-as

Function

The display bgp multicast routing-table different-origin-as command displays the routes with the same destination but different source AS numbers.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table different-origin-as

Parameters

None.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table different-origin-as command to check the routes with the same destination but different source AS numbers.

Example

# Display the routes with the same destination but different source AS numbers.

<HUAWEI> display bgp multicast routing-table different-origin-as
BGP local router ID is 10.13.13.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 8
      Network            NextHop        MED     LocPrf    PrefVal Path/Ogn
 *>   10.2.1.0/24        10.2.1.2        0                   0        2?
 *>                      0.0.0.0         0                   0        ?
 *>   10.2.0.0/16        10.2.1.2                            0        2?
 *>                      0.0.0.0         0                   0        ?
 *>   192.168.14.0       10.2.1.2                            0        2?
 *>                      0.0.0.0         0                   0        ?
 *>   192.168.14.1/32    10.2.1.2                            0        2?
 *>                      0.0.0.0         0                   0        ?
Table 7-144  Description of the display bgp multicast routing-table different-origin-as command output

Item

Description

BGP local router ID

BGP local router ID

Network

Network address in the MBGP routing table

NextHop

Next-hop address for forwarding packets

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Preferred value of protocols

Path/Ogn

AS path and Origin attribute

display bgp multicast routing-table flap-info

Function

The display bgp multicast routing-table flap-info command displays information about MBGP route flapping.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table flap-info [ ip-address [ mask [ longer-match ] | mask-length [ longer-match ] ] | as-path-filter { as-path-filter-number | as-path-filter-name } ]

display bgp multicast routing-table flap-info regular-expression as-regular-expression

Parameters

Parameter Description Value
ip-address Specifies an IPv4 network address. The address is in dotted decimal notation.
mask Specifies the mask of an IPv4 network address. The address is in dotted decimal notation.
mask-length Specifies the mask length of the IPv4 network address. The value is an integer that ranges from 0 to 32.
longer-match Indicates the longest prefix matching rules. -
regular-expression as-regular-expression Displays the statistics of route flapping that matches the AS_Path regular expression. as-path-filter-number specifies the AS path regular expression. The value is a string of 1 to 80 characters.
as-path-filter as-path-filter-number Displays the statistics of the route flapping for the specified AS path list. as-path-filter-number indicates the matched AS path list number. The value is an integer that ranges from 1 to 256.
as-path-filter as-path-filter-name Displays the statistics of the route flapping for the specified AS path list. as-path-filter-number indicates the matched AS path list name. The value is a string of 1 to 51 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table flap-info command to check information about MBGP route flapping.

Example

# Display information about MBGP route flapping.

<HUAWEI> display bgp multicast routing-table flap-info
BGP Local router ID is 10.12.12.9
 Status codes: * - valid, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
       Network            From            Flaps  Duration     Reuse  Path/Ogn
 *>   10.1.1.0/24         10.2.1.1        1      00:00:29            1?
Table 7-145  Description of the display bgp multicast routing-table flap-info command output

Item

Description

BGP Local router ID

BGP local router ID

Network

Network address in the MBGP routing table

From

IP address of MBGP peer from which the route is received

Flaps

Count of route flapping

Duration

Duration of route flapping

Reuse

Reuse value

Path/Ogn

AS_Path number and Origin attribute

display bgp multicast routing-table peer

Function

The display bgp multicast routing-table peer command displays the routes received from or sent to a specified MBGP peer.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table peer peer-address { advertised-routes [ network [ { mask | mask-length } [ longer-prefixes ] ] ] | received-routes [ active ] | accepted-routes }

display bgp multicast routing-table peer peer-address received-routes network [ { mask | mask-length } [ longer-prefixes | original-attributes ] ]

Parameters

Parameter Description Value
peer-address Specifies the address of an MBGP peer. The value is in dotted decimal notation.
advertised-routes Indicates the routes sent to a specified peer. -
network Specifies the IPv4 network address. The value is in dotted decimal notation.
mask Specifies the address mask. The value is in dotted decimal notation.
mask-length Specifies the mask length. The value is an integer that ranges from 0 to 32.
longer-prefixes Uses the longest match rule to select routes. -
received-routes Indicates the routes received from a specified peer. -
active Displays the active routes received from the specified peer. -
accepted-routes Displays routing information that is received from neighbors and matches the filter policy. -
original-attributes Displays the original attributes of a public route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table peer command to check routes received of a specified MBGP peer.

Example

# Display the routes sent to multicast peer 10.10.1.11.

<HUAWEI> display bgp multicast routing-table peer 10.10.1.11 advertised-routes
 BGP local router ID is 10.12.12.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 9
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 *>i  10.1.2.0/24        10.7.1.2        0          100        0      ?
 *>   10.2.1.0/24        0.0.0.0         0                     0      ?
 *>   10.7.1.0/24        0.0.0.0         0                     0      ?
 *>i  10.7.1.0/24        10.7.1.2        0          100        0      ?
 *>i  10.7.1.1/32        10.7.1.2        0          100        0      ?
 *>   10.7.1.2/32        0.0.0.0         0                     0      ?
 *>   10.10.1.0/24       0.0.0.0         0                     0      ?
Table 7-146  Description of the display bgp multicast routing-table peer command output

Item

Description

BGP local router ID

BGP local router ID

Total Number of Routes

Total number of routes

Network

Network address in the MBGP routing table

NextHop

Next-hop address for forwarding packets

MED

Multi-Exit discriminator

LocPrf

Local preference

PrefVal

Preferred value of protocols

Path/Ogn

AS path and Origin attribute

display bgp multicast routing-table regular-expression

Function

The display bgp multicast routing-table regular-expression command displays the routes that match the specified AS_Path regular expression.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table regular-expression as-regular-expression

Parameters

Parameter Description Value
as-regular-expression Specifies the AS_Path regular expression. The value is a string of 1 to 80 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table regular-expression command to check the routes that match the specified AS_Path regular expression.

Example

# Display the routes that match the AS_Path regular expression 2.

<HUAWEI> display bgp multicast routing-table regular-expression 2
BGP local router ID is 10.13.13.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 13
      Network            NextHop        MED     LocPrf    PrefVal Path/Ogn
 *>   10.1.2.0/24        10.2.1.2                              0      2?
 *>   10.2.1.0/24        10.2.1.2        0                     0      2?
 *>   10.7.1.0/24        10.2.1.2                              0      2?
 *>   10.7.1.1/32        10.2.1.2                              0      2?
 *>   10.7.1.2/32        10.2.1.2        0                     0      2?
 *>   10.11.12.0/24      10.2.1.2        0                     0      2?
 *>   10.11.12.1/32      10.2.1.2        0                     0      2?
Table 7-147  Description of the display bgp multicast routing-table regular-expression command output

Item

Description

BGP local router ID

BGP local router ID.

Network

Network address in the MBGP routing table.

NextHop

Next-hop address for packets.

MED

MED of the route.

LocPrf

Local preference.

PrefVal

Preferred value.

Path/Ogn

AS_Path number and Origin attribute.

display bgp multicast routing-table statistics

Function

The display bgp multicast routing-table statistics command displays statistics about routes in the MBGP routing table.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast routing-table statistics

display bgp multicast routing-table peer ipv4-address { advertised-routes | received-routes [ active ] } statistics

Parameters

Parameter Description Value
peer ipv4-address Displays the number of routes with a specified peer address. The value is in dotted decimal notation.
advertised-routes Displays the number of routes advertised to a specified peer. -
received-routes Displays the number of routes received from a specified peer. -
active Displays the number of active routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp multicast routing-table statistics command to check statistics about routes in the MBGP routing table.

Example

# Display statistics about routes in the MBGP routing table.

<HUAWEI> display bgp multicast routing-table statistics
Total Number of Routes: 50
Table 7-148  Description of the display bgp multicast routing-table statistics command output

Item

Description

Total Number of Routes

Total number of routes in the MBGP routing table

display bgp multicast update-peer-group

Function

The display bgp multicast update-peer-group command displays information about MBGP update-groups.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp multicast update-peer-group [ index update-group-index ]

Parameters

Parameter Description Value
index update-group-index Specifies the index of an update-group. The value is an integer that ranges from 0 to 65535.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If the index of an update-group is specified, the command will display detailed information about the specified update-group.

Example

# Display information about MBGP update-groups.

<HUAWEI> display bgp multicast update-peer-group
 The Multicast instance's update peer group number : 1
 Keep buffer update peer group number : 0
 BGP Version : 4

 Group ID : 0
 Group Type : external
 Addr Family : IPv4-MLC
 AdvMinTimeVal : 30
 Total Peers : 1
 Leader Peer : 192.168.1.2
 Peers List : 192.168.1.2
Table 7-149  Description of the display bgp multicast update-peer-group command output

Item

Description

The Multicast instance's update peer group number

Indicates the number of update-groups in the instance.

Keep buffer update peer group number

Number of packets in update-groups saved in the batch buffer.

BGP Version

Indicates the BGP version.

Group ID

Indicates the ID of the update-group.

Group Type

Indicates the type of the update-group, which can be one of the following:

  • external: indicates an EBGP update-group.

  • internal: indicates an IBGP update-group.

  • external-confed: indicates an EBGP update-group in the confederation.

  • internal-confed: indicates an IBGP update-group in the confederation.

  • unknown: indicates an update-group of an unknown type.

Addr Family

Indicates the address family.

AdvMinTimeVal

Indicates the minimum interval for sending Update packets with the same route prefix.

Total Peers

Indicates the total number of peers in an update-group.

Leader Peer

Indicates the representative of an update-group.

Peers List

Indicates a list of peers.

display bgp network

Function

The display bgp network command displays the routes imported into the BGP routing table by using the network command.

Format

display bgp network

display bgp vpnv4 { all | vpn-instance vpn-instance-name } network

display bgp ipv6 network

display bgp vpnv6 { all | vpn-instance vpn-instance-name } network (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
vpnv4 Displays the VPNv4 routes that are advertised by using the network command. -
vpnv6 Displays the VPNv6 routes that are advertised by using the network command. -
all Displays all the VPNv4 routes that are advertised by using the network command. -
vpn-instance vpn-instance-name Displays the routes of a specified VPN instance that are advertised by using the network command. The value must be an existing VPN instance name.
ipv6 Displays the IPv6 routes advertised by BGP. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

BGP cannot discover routes by itself. Run the network (BGP) command and the import-route (BGP) command to import routes from other protocols, such as IGP routes or static routes, to the BGP routing table.

The display bgp network command displays the routing information advertised by BGP through the network (BGP) command.

Precautions

BGP has multiple address families and the routing information about each address family is isolated from each other. The routing information about address families advertised by BGP through the network (BGP) command can be displayed by specifying different parameters.

If no parameter is specified, the display bgp network command displays the routing information about the IPv4 unicast address family advertised by BGP through the network (BGP) command.

Example

# Display information about routes that are imported using the network command.

<HUAWEI> display bgp network 
  BGP Local Router ID is 10.1.1.9
  Local AS Number is 10(Public)
  Network          Mask            Route-policy
 
  10.2.0.0         255.255.0.0
  10.0.0.0         255.0.0.0       Policy1
  10.4.4.0         255.255.255.0
Table 7-150  Description of the display bgp network command output

Item

Description

Local AS Number

Indicates the local AS number.

Network

Indicates the locally-advertised network address.

Mask

Indicates the mask of the network address.

Route-policy

Indicates the used routing policy.

# Display information about BGP VPNv4 routes that are imported using the network command.
<HUAWEI> display bgp vpnv4 all network
  BGP Local Router ID is 10.2.2.9
  Local AS Number is 100
 VPN-Instance vrf1, Router ID 10.2.2.9:
  Network          Mask            Route-policy

  10.4.4.4         255.255.255.255
 VPN-Instance vrf2, Router ID 2.2.2.9:
  Network          Mask            Route-policy

  10.5.5.5         255.255.255.255
Table 7-151  Description of the display bgp vpnv4 all network command output

Item

Description

VPN-Instance

Name of the VPN instance

Router ID

Router ID of the local BGP router.

# Display IPv6 routes advertised by BGP.
<HUAWEI> display bgp ipv6 network 
  BGP Local Router ID is 10.5.5.5
  Local AS Number is 100(PublicV6)
  Network          Prefix            Route-policy

  FC00:0:0:100::   64
  FC00:0:0:200::   64
# Display VPNv6 routes locally advertised by BGP (by using the network command) for a specified VPN instance.
<HUAWEI> display bgp vpnv6 vpn-instance vpn1 network

  BGP Local Router ID is 10.1.1.1
  Local AS Number is 100
  Route Distinguisher: 100:1
  (vpn1)
  Network          Prefix            Route-policy

  FC00:0:0:2000::  100               policy1
Table 7-152  Description of the display bgp vpnv6 network command output

Item

Description

BGP Local Router ID

Indicates the ID of the local BGP device. The ID is in the same format as an IPv4 address.

Local AS Number

Indicates the local AS number.

Route Distinguisher

Indicates the route distinguisher for the VPN instance.

Prefix

Indicates the network address mask advertised by the local BGP device.

# Display the VPNv6 routes locally advertised by BGP (by using the network command).
<HUAWEI> display bgp vpnv6 all network
  BGP Local Router ID is 10.2.2.9
  Local AS Number is 100
  Route Distinguisher: 100:4
  (vpn1)
  Network          Prefix            Route-policy
  FC00:0:0:1::1    128
  FC00:0:0:2::2    128
  Route Distinguisher: 100:5
  (vrf1)
  Network          Prefix            Route-policy
  FC00:0:0:3::3    128
  Route Distinguisher: 100:9
  (vrf2)
  Network          Prefix            Route-policy
  FC00:0:0:8::9    128

display bgp paths

Function

The display bgp paths command displays the AS_Path information of BGP routes.

Format

display bgp paths [ as-regular-expression ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } paths [ as-regular-expression ]

display bgp ipv6 paths [ as-regular-expression ]

display bgp vpnv6 { all | vpn-instance vpn-instance-name } paths [ as-regular-expression ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
as-regular-expression Specifies the regular expression used to match the AS_Path information. The name is a string of 1 to 80 characters.
vpnv4 Displays the AS_Path information of the routes of a VPNv4 instance. -
vpnv6 Displays the AS_Path information of the routes of a VPNv6 instance. -
all Displays the AS_Path information of all VPNv4 routes. -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
ipv6 Displays the path attributes of IPv6-BGP routes in the local BGP database. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display bgp paths command displays the path attributes of BGP stored in the system.

BGP usually has a large number of path attributes. The display bgp paths command displays a lot of BGP path information for viewing. After configuring as-regular-expression, the display bgp paths command displays only the path attributes of BGP that match as-regular-expression. For details on a regular expression, see Filtering Output Information Based on the Regular Expression in "CLI Overview" in the S1720, S2700, S5700, and S6720 V200R011C10 Configuration Guide - Basic Configuration.

Precautions

BGP has a number of address families and the path attributes of BGP in each address family is stored independently. By default, the display bgp paths command displays only the path attributes of BGP in the IPv4 unicast address family. The path attributes of BGP in other address families can be displayed by specifying address family parameters.

Example

# Display the AS_Path information.

<HUAWEI> display bgp paths
                                                                                
 Total number of routes of IPv4-family for vpn-instance _public_: 6             
 Total Number of Paths: 1                                                       
                                                                                
 Address            Refcount         MED  Path/Origin                           
 1282430404                6           0  N?                                    
Table 7-153  Description of the display bgp paths command output

Item

Description

Address

Indicates the address of the route in the local database, in hexadecimal notation.

Refcount

Indicates the number of times that the route is referenced.

MED

Indicates the MED of the route.

Path

Indicates the list of ASs through which the packet has to pass through.

Origin

Indicates the origin of the route.

display bgp peer

Function

The display bgp peer command displays information about BGP peers.

Format

display bgp [ vpnv4 vpn-instance vpn-instance-name ] peer [ { group-name | ipv4-address } log-info | [ ipv4-address ] verbose ]

display bgp vpnv4 all peer [ [ ipv4-address ] verbose ]

display bgp vpls peer [ [ ipv4-address ] verbose ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp ipv6 peer [ verbose ]

display bgp ipv6 peer ipv6-address { log-info | verbose }

display bgp ipv6 peer ipv4-address verbose

display bgp vpnv6 all peer [ [ ipv4-address ] verbose ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv6 vpn-instance vpn-instance-name peer [ { group-name | ipv6-address } log-info | [ ipv6-address ] verbose ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp l2vpn-ad peer [ [ ipv4-address ] verbose ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp l2vpn peer [ [ ipv4-address ] verbose ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
ipv4-address Specifies the IPv4 address of a peer to be displayed. It is in dotted decimal notation.
group-name Specifies the name of a peer group. The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.
log-info Indicates to display log information of the specified peer. -
verbose Indicates to display detailed peer information. -
vpnv4 Indicates to display information about peers in a VPNv4 instance. -
all Indicates to display information about peers in all VPNv4 or VPNv6 instances. -
vpls Displays information about peers in the BGP-VPLS view. -
ipv6-address Specifies the IPv6 address of a peer to be displayed. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
vpnv6 Indicates to display BGP VPNv6 peer information. -
l2vpn-ad Displays information about peers in the BGP L2VPN-AD view. -
l2vpn Displays information about peers in the BGP L2VPN view. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display bgp peer command displays information about a BGP peer. You can implement the following operations based on the command output:
  • To check the status of BGP connections
  • To check information about a BGP peer
  • To check whether a BGP peer is successfully configured using the peer as-number command
  • To check whether a BGP peer is successfully deleted using the undo peer as-number command

Precautions

BGP has multiple address families. By default, the display bgp peer command displays information about BGP peers in IPv4 unicast address family only. If you want to view information about BGP peers in another address family, you need to specify its address family parameter.

To view detailed information about a BGP peer, such as information about BGP timers, the number of sent and received routes, capacities supported, the number of sent and received BGP messages, and enabled functions, specify verbose in the command.

If log-info is specified in the command, log information about a BGP peer is displayed, including information about BGP peer flapping.

Example

# Display peer information.

<HUAWEI> display bgp peer
 BGP Local router ID : 10.2.3.4
 local AS number : 10
 Total number of peers : 2                 
 Peers in established state : 1

  Peer        V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv

  10.1.1.1    4   100        0        0     0 00:00:07        Idle       0
  10.2.5.6    4   200       32       35     0 00:17:49 Established       0
Table 7-154  Description of the display bgp peer command output

Item

Description

BGP Local router ID

Indicates the ID of the BGP local router.
NOTE:

If two ends have the same BGP local router ID, no BGP peer relationship can be established between them. In this situation, run the router id command in the BGP view on either end to change the BGP local router ID. Changing it to the IP address of a loopback interface is recommended.

local AS number

Indicates the local AS number.

Total number of peers

Indicates the number of peers.

Peers in established state

Indicates the number of peers in established state.

Peer

Indicates the IP address of the peer.

V

Indicates the BGP version used on the peer.

AS

Indicates the AS number.

MsgRcvd

Indicates the number of received messages.

MsgSent

Indicates the number of sent messages.

OutQ

Indicates the message to be sent to the specified peer.

Up/Down

Indicates the period of time during which a BGP session keeps the current state.

State

Status of the peer:
  • Idle: indicates that BGP denies any request of entering. This is the initiatory status of BGP.

    Upon receiving a Start event, BGP initiates a TCP connection to the remote BGP peer, starts the ConnectRetry Timer with the initial value, detects a TCP connection initiated by the remote BGP peer, and changes its state to Connect.

  • Idle(Admin): indicates that the peer relationship is shut down initiatively and no attempt is made to establish the peer relationship.

    If the peer ignore command is configured or the peer is set to the Down state through the MIB, the neighbor is in the Idle (Admin) state.

  • No neg: The capabilities of the BGP peer's address family have not been negotiated.

  • Idle(Ovlmt): indicates that the peer relationship is interrupted because the number of routes exceeds the upper threshold.

    After a BGP peer relationship is interrupted due to the running of the peer route-limit command, the status of the BGP peer relationship is displayed as Idle(Ovlmt). If the reset bgp command is not run, the BGP peer relationship will not be reestablished.

  • Connect: indicates that BGP waits for the TCP connection to be set up before it determines whether to perform other operations.
    • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.

    • If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to detect a TCP connection initiated by the remote peer, and changes its state to Active.

    • If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value, initiates a TCP connection to the remote BGP peer, and stays in the Connect state.

  • Active: indicates that BGP tries to set up a TCP connection. This is the intermediate status of BGP.
    • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.

    • If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value and changes its state to Connect.

    • If BGP initiates a TCP connection with an unknown IP address, the TCP connection fails. When this occurs, BGP restarts the ConnectRetry Timer with the initial value and stays in the Active state.

  • OpenSent: indicates that BGP has sent one Open message to its peer and waits for an Open message from the peer.
    • If there are no errors in the Open message received, BGP changes its state to OpenConfirm.

    • If there are errors in the Open message received, BGP sends a Notification message to the remote peer and changes its state to Idle.

    • If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to detect a TCP connection initiated by the remote peer, and changes its state to Active.

  • OpenConfirm: indicates that BGP waits for a Notification message or a Keepalive message.
    • If BGP receives a Notification message, or the TCP connection fails, BGP changes its state to Idle.

    • If BGP receives a Keepalive message, BGP changes its state to Established.

  • Established: indicates that BGP peers can exchange Update, Notification and Keepalive packets.
    • If BGP receives an Update or a Keepalive message, its state stays in Established.

    • If BGP receives a Notification message, BGP changes its state to Idle.

PrefRcv

Indicates the number of route prefixes sent from the peer.

# Display detailed information about the peer 10.2.2.9.

<HUAWEI> display bgp peer 10.2.2.9 verbose

         BGP Peer is 10.2.2.9,  remote AS 100
         Type: IBGP link
         BGP version 4, Remote router ID 10.1.1.1
         Update-group ID: 1 
         BGP current state: Established, Up for 00h57m53s
         BGP current event: RecvKeepalive
         BGP last state: Established
         BGP Peer Up count: 1
         Received total routes: 0
         Received active routes total: 0
         Advertised total routes: 2
         Port: Local - 42796        Remote - 179
         Configured: Connect-retry Time: 32 sec
         Configured: Min Hold Time: 0 sec
         Configured: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Received  : Active Hold Time: 180 sec
         Negotiated: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Peer optional capabilities:
         Peer supports bgp multi-protocol extension
         Peer supports bgp route refresh capability
         Peer supports bgp 4-byte-as capability
         Address family IPv4 Unicast: advertised and received
 Received: 
                  Total messages                 60
                  Update messages                1
                  Open messages                  1
                  KeepAlive messages             58
                  Notification messages          0
                  Refresh messages               0
 Sent: 
                  Total messages                 61
                  Update messages                2
                  Open messages                  1
                  KeepAlive messages             58
                  Notification messages          0
                  Refresh messages               0
 Authentication type configured: None
 Last keepalive received: 2012/03/06 19:17:37
 Last keepalive sent    : 2012/03/06 19:17:37
 Last update    received: 2012/03/06 19:17:43
 Last update    sent    : 2012/03/06 19:17:37

 Minimum route advertisement interval is 15 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled 
 Listen-only has been configured
 Peer's BFD has been enabled
 Peer Preferred Value: 0 
 Routing policy configured:
 No routing policy is configured  
Table 7-155  Description of the display bgp peer verbose command output

Item

Description

Type

Indicates the BGP link type, which can be IBGP or EBGP.

BGP version

Indicates the BGP version.

remote router ID

Indicates the router ID of the peer.

Update-group ID

Indicates the ID of the update-group to which the peer belongs.

BGP current state

Current state of BGP:
  • Idle: indicates that BGP denies any request of entering. This is the initiatory status of BGP.

    Upon receiving a Start event, BGP initiates a TCP connection to the remote BGP peer, starts the ConnectRetry Timer with the initial value, detects a TCP connection initiated by the remote BGP peer, and changes its state to Connect.

  • Idle(Admin): indicates that the peer relationship is shut down initiatively and no attempt is made to establish the peer relationship.

    If the peer ignore command is configured or the peer is set to the Down state through the MIB, the neighbor is in the Idle (Admin) state.

  • No neg: The capabilities of the BGP peer's address family have not been negotiated.

  • Idle(Ovlmt): indicates that the peer relationship is interrupted because the number of routes exceeds the upper threshold.

    After a BGP peer relationship is interrupted due to the running of the peer route-limit command, the status of the BGP peer relationship is displayed as Idle(Ovlmt). If the reset bgp command is not run, the BGP peer relationship will not be reestablished.

  • Connect: indicates that BGP waits for the TCP connection to be set up before it determines whether to perform other operations.
    • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.

    • If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to detect a TCP connection initiated by the remote peer, and changes its state to Active.

    • If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value, initiates a TCP connection to the remote BGP peer, and stays in the Connect state.

  • Active: indicates that BGP tries to set up a TCP connection. This is the intermediate status of BGP.
    • If the TCP connection succeeds, BGP stops the ConnectRetry Timer, sends an Open message to the remote peer, and changes its state to OpenSent.

    • If the ConnectRetry Timer has expired before a TCP connection is established, BGP restarts the timer with the initial value and changes its state to Connect.

    • If BGP initiates a TCP connection with an unknown IP address, the TCP connection fails. When this occurs, BGP restarts the ConnectRetry Timer with the initial value and stays in the Active state.

  • OpenSent: indicates that BGP has sent one Open message to its peer and waits for an Open message from the peer.
    • If there are no errors in the Open message received, BGP changes its state to OpenConfirm.

    • If there are errors in the Open message received, BGP sends a Notification message to the remote peer and changes its state to Idle.

    • If the TCP connection fails, BGP restarts the ConnectRetry Timer with the initial value, continues to detect a TCP connection initiated by the remote peer, and changes its state to Active.

  • OpenConfirm: indicates that BGP waits for a Notification message or a Keepalive message.
    • If BGP receives a Notification message, or the TCP connection fails, BGP changes its state to Idle.

    • If BGP receives a Keepalive message, BGP changes its state to Established.

  • Established: indicates that BGP peers can exchange Update, Notification and Keepalive packets.
    • If BGP receives an Update or a Keepalive message, its state stays in Established.

    • If BGP receives a Notification message, BGP changes its state to Idle.

BGP current event

Indicates the current BGP event.

BGP last state

Indicates the last BGP status, which may be Idle, Connect, Active, OpenSent, OpenConfirm, or Established.

BGP Peer Up count

Indicates the flapping count of a BGP peer in a specified period of time.

Received total routes

Indicates the number of received route prefixes.

Received active routes total

Indicates the number of received active route prefixes.

Advertised total routes

Indicates the number of sent route prefixes.

Port

Indicates the port number.
  • Local: indicates the local port number, which is always 179. BGP uses TCP at the transport layer.

  • Remote: indicates the port number used on the peer.

Configured

Indicates locally configured timers.
  • Connect-retry Time: indicates the ConnectRetry interval for a BGP peer or peer group, in seconds. When BGP initiates a TCP connection, the ConnectRetry timer is stopped if the TCP connection is established successfully. If the first attempt to establish a TCP connection fails, BGP tries again to establish the TCP connection after the ConnectRetry timer expires.

  • Min Hold Time: indicates the minimum Holdtime configured on the local device, in seconds.

  • Active Hold Time: indicates the hold time. If BGP does not receive any Keepalive message from the peer in the hold time, BGP considers that the peer is Down and then instructs other peers to remove the routes that are sent from the peer.

  • Keep Alive Time: indicates the interval for sending Keepalive messages to the peer. BGP peers send Keepalive messages to each other periodically to maintain their relationships.

Received : Active Hold Time

Indicates the hold time on the peer.

Negotiated : Active Hold Time

Indicates the hold time agreed between the BGP peers after capability negotiation.

Address family IPv4 Unicast

Indicates the IPv4 unicast address family.

Received

Indicates the number of packets received from a peer.
  • Total: indicates the total number of messages received from a peer.

  • Update messages: indicates the number of Update messages received from a peer.

  • Open messages: indicates the number of Open messages received from a peer.

  • KeepAlive messages: indicates the number of Keepalive messages received from a peer.

  • Notification messages: indicates the number of Notification messages received from a peer.

  • Refresh messages: indicates the number of route-refresh messages received from a peer.

Sent

Indicates the number of messages sent to a peer.
  • Total: indicates the total number of messages sent to a peer.

  • Update messages: indicates the number of Update messages sent to a peer.

  • Open messages: indicates the number of Open messages sent to a peer.

  • KeepAlive messages: indicates the number of Keepalive messages sent to a peer.

  • Notification messages: indicates the number of Notification messages sent to a peer.

  • Refresh messages: indicates the number of route-refresh messages sent to a peer.

Authentication type configured

Indicates the authentication type configured.

Last keepalive received

Indicates the time when the Keepalive packet is received last time. It can be in the following formats:
  • YYYY/MM/DD HH:MM:SS

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM DST

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM

  • YYYY/MM/DD HH:MM:SS DST

UTC±HH:MM indicates that a time zone is set through the clock timezone command; DST indicates that the daylight saving time is set through the clock daylight-saving-time command.

Last keepalive sent

Indicates the time when the Keepalive packet is sent last time. It can be in the following formats:
  • YYYY/MM/DD HH:MM:SS

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM DST

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM

  • YYYY/MM/DD HH:MM:SS DST

UTC±HH:MM indicates that a time zone is set through the clock timezone command; DST indicates that the daylight saving time is set through the clock daylight-saving-time command.

Last update received

Indicates the time when the Update packet is received last time. It can be in the following formats:
  • YYYY/MM/DD HH:MM:SS

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM DST

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM

  • YYYY/MM/DD HH:MM:SS DST

UTC±HH:MM indicates that a time zone is set through the clock timezone command; DST indicates that the daylight saving time is set through the clock daylight-saving-time command.

Last update sent

Indicates the time when the Update packet is sent last time. It can be in the following formats:
  • YYYY/MM/DD HH:MM:SS

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM DST

  • YYYY/MM/DD HH:MM:SS UTC±HH:MM

  • YYYY/MM/DD HH:MM:SS DST

UTC±HH:MM indicates that a time zone is set through the clock timezone command; DST indicates that the daylight saving time is set through the clock daylight-saving-time command.

Minimum route advertisement interval is 15 seconds

Indicates the minimum interval between route advertisements.
  • The minimum interval for advertising EBGP routes is 30 seconds.

  • The minimum interval for advertising IBGP routes is 15 seconds.

Optional capabilities

(Optional) Indicates the peer-supported capabilities.

Route refresh capability has been enabled

Indicates that route refreshing has been enabled.

4-byte-as capability has been enabled

Indicates that the 4-byte AS number capability is enabled.

Listen-only has been configured

Indicates that only connection requests are snooped and no connections will be initiated proactively.

Peer Preferred Value

Indicates the preferred value of the peer.

Routing policy configured

Indicates the configured routing policy.

Peer's BFD has been enabled

Indicates that BFP has been enabled on the peer.

# Display log information on BGP peer 10.1.1.2.
<HUAWEI> display bgp peer 10.1.1.2 log-info
Peer : 10.1.1.2 
 Date/Time     : 2011/13/06 11:53:21
 State         : Up
 Date/Time     : 2011/13/06 11:53:09
 State         : Down
 Error Code    : 6(CEASE)
 Error Subcode : 4(Administrative Reset)
 Notification  : Receive Notification
 Date/Time     : 2011/13/06 10:34:05
 State         : Up
Table 7-156  Description of the display bgp peer 1.1.1.2 log-info command output

Item

Description

Error Code

Error code.

Error Subcode

Error subcode.

Notification

Notification packet sent or received by a peer.

# Display information about the BGP peer of the VPN instance vrf1.

<HUAWEI> display bgp vpnv4 vpn-instance vrf1 peer

 BGP local router ID : 10.1.1.9
 Local AS number : 100
 VPN-Instance vrf1, router ID 10.1.1.1: 
 Total number of peers : 1                 Peers in established state : 1

  Peer        V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv

  10.1.1.1    4 65410      207      192     0 02:59:49 Established       1 

# Display detailed information about the BGP peer of the VPN instance vpna.

<HUAWEI> display bgp vpnv4 vpn-instance vpna peer verbose

         BGP Peer is 10.1.1.1,  remote AS 200
         Type: EBGP link
         BGP version 4, remote router ID 10.1.1.1

         Update-group ID: 1
         BGP current state: Established, Up for   03h01m22s
         BGP current event: RecvKeepalive
         BGP last state: OpenConfirm
         BGP Peer Up count: 1
                  Received total routes: 0
                  Received active routes total: 0
                  Advertised total routes: 3
         Port:  Local - 3722     Remote - 179
         Configured: Connect-retry Time: 32 sec
         Configured: Min Hold Time: 0 sec
         Configured: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Received  : Active Hold Time: 180 sec
         Negotiated: Active Hold Time: 180 sec
         Peer optional capabilities:
         Peer supports bgp multi-protocol extension                              
         Peer supports bgp route refresh capability                              
         Peer supports bgp 4-byte-as capability 
         Address family IPv4 Unicast: advertised and received

 Received: Total 76 messages
                  Update messages                0
                  Open messages                  5
                  KeepAlive messages             71
                  Notification messages          0
                  Refresh messages               0

 Sent: Total 91 messages
                  Update messages                0
                  Open messages                  10
                  KeepAlive messages             77
                  Notification messages          4
                  Refresh messages               0
 Authentication type configured: None
 Last keepalive received: 2012/03/06 19:17:37
 Last keepalive sent    : 2012/03/06 19:17:37
 Last update    received: 2012/03/06 19:17:43
 Last update    sent    : 2012/03/06 19:17:37
 Maximum allowed prefix number: 150000
 Threshold: 75%
 Minimum route advertisement interval is 30 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 Peer Preferred Value: 0
 Routing policy configured:
 No routing policy is configured   

# Display information about IPv6 peers.

<HUAWEI> display bgp ipv6 peer

 BGP Local router ID : 10.0.0.1
 local AS number : 100
  Total number of peers : 1                 Peers in established state : 1

  Peer            V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv

  FC00:0:0:20::21 4   200       17       19     0 00:09:59 Established       3

# Display information about IPv6 peers.

<HUAWEI> display bgp ipv6 peer fc00:0:0:2001::1 verbose
         BGP Peer is FC00:0:0:2001::1,  remote AS 1
         Type: EBGP link
         BGP version 4, remote router ID 10.1.1.1

         Update-group ID: 1
         BGP current state: Established, Up for 00h00m59s
         BGP current event: RecvKeepalive
         BGP last state: OpenConfirm
         BGP Peer Up count: 2
         Received total routes: 0
         Received active routes total: 0
         Advertised total routes: 0
         Port:  Local - 179      Remote - 49153
         Configured: Connect-retry Time: 32 sec
         Configured: Min Hold Time: 0 sec
         Configured: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Received  : Active Hold Time: 180 sec
         Negotiated: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Peer optional capabilities:
         Peer supports bgp multi-protocol extension
         Peer supports bgp route refresh capability
         Peer supports bgp 4-byte-as capability
         Address family IPv6 Unicast: advertised and received

 Received: Total 76 messages
                  Update messages                0
                  Open messages                  5
                  KeepAlive messages             71
                  Notification messages          0
                  Refresh messages               0

 Sent: Total 91 messages
                  Update messages                0
                  Open messages                  10
                  KeepAlive messages             77
                  Notification messages          4
                  Refresh messages               0
 Authentication type configured: None
 Last keepalive received: 2012/03/06 19:17:37
 Last keepalive sent    : 2012/03/06 19:17:37
 Last update    received: 2012/03/06 19:17:43
 Last update    sent    : 2012/03/06 19:17:37
 Minimum route advertisement interval is 30 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 listen-only has been configured
 Peer Preferred Value: 0
 Routing policy configured:
 No routing policy is configured

# Display brief information about a VPNv6 peer.

<HUAWEI> display bgp vpnv6 all peer

 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Total number of peers : 2                 Peers in established state : 2

  Peer            V    AS  MsgRcvd  MsgSent  OutQ  Up/Down       State PrefRcv

  10.2.2.2        4   100      210      220     0   02:42:55    Established    1

  Peer of IPv6-family for vpn instance :

  VPN-Instance vpn1, Router ID 10.4.4.4 :
  FC00:0:0:200::2 4 65410      205      178     0 02:42:53     Established    0

# Display detailed information about the VPNv6 peer whose IPv4 address is 10.2.2.2.

<HUAWEI> display bgp vpnv6 all peer 10.2.2.2 verbose
         BGP Peer is 10.2.2.2,  remote AS 200,
         Type: IBGP link
         BGP version 4, remote router ID 10.2.2.2

Group ID : 0 
Peer Local Interface Name: Vlanif10
Local Ifnet Tunnel: 0xb0010000
         BGP current state: Established, Up for 02h43m52s
         BGP current event: RecvKeepalive
         BGP last state: OpenConfirm
         BGP Peer Up count: 2
         Received total routes: 0
         Received active routes total: 0
         Advertised total routes: 0
         Port:  Local - 53308    Remote - 179
         Configured: Connect-retry Time: 32 sec 
         Configured: Min Hold Time: 0 sec
         Configured: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Received  : Active Hold Time: 180 sec
         Negotiated: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Peer optional capabilities:
         Peer supports bgp multi-protocol extension
         Peer supports bgp route refresh capability
         Peer supports bgp 4-byte-as capability
         Address family IPv4 Unicast: advertised and received
         Address family VPNv6: advertised and received

 Received: Total 76 messages
                  Update messages                0
                  Open messages                  5
                  KeepAlive messages             71
                  Notification messages          0
                  Refresh messages               0

 Sent: Total 91 messages
                  Update messages                0
                  Open messages                  10
                  KeepAlive messages             77
                  Notification messages          4
                  Refresh messages               0
 Last keepalive received: 2009-09-30 09:52:41
 Minimum route advertisement interval is 15 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 Connect-interface has been configured
 Peer Preferred Value: 0
 Routing policy configured:
 No routing policy is configured

# Display detailed information about the BGP peer of an IPv6 address family-enabled VPN instance whose IPv6 address is FC00:0:0:2000::2.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 peer fc00:0:0:2000::2 verbose

         BGP Peer is FC00:0:0:2000::2,  remote AS 65410,
         Type: EBGP link
         BGP version 4, remote router ID 10.1.1.1

Group ID : 0
Peer Local Interface Name: Vlanif10
Local Ifnet Tunnel: 0xb0010000
         BGP current state: Established, Up for 02h39m36s
         BGP current event: KATimerExpired
         BGP last state: OpenConfirm
         BGP Peer Up count: 2
         Received total routes: 0
         Received active routes total: 0
         Advertised total routes: 0
         Port:  Local - 49177    Remote - 179
         Configured: Connect-retry Time: 32 sec 
         Configured: Min Hold Time: 0 sec
         Configured: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Received  : Active Hold Time: 180 sec
         Negotiated: Active Hold Time: 180 sec   Keepalive Time:60 sec
         Peer optional capabilities:
         Peer supports bgp multi-protocol extension
         Peer supports bgp route refresh capability
         Peer supports bgp 4-byte-as capability
         Address family IPv6 Unicast: advertised and received

 Received: Total 76 messages
                  Update messages                0
                  Open messages                  5
                  KeepAlive messages             71
                  Notification messages          0
                  Refresh messages               0

 Sent: Total 91 messages
                  Update messages                0
                  Open messages                  10
                  KeepAlive messages             77
                  Notification messages          4
                  Refresh messages               0
 Last keepalive received: 2009-09-30 09:51:52
 Minimum route advertisement interval is 30 seconds
 Optional capabilities:
 Route refresh capability has been enabled
 4-byte-as capability has been enabled
 Peer Preferred Value: 0
 Routing policy configured:
 No routing policy is configured
Related Topics

display bgp resource

Function

The display bgp resource command displays statistics about BGP specification information.

Format

display bgp resource

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check statistics about BGP specification information, run the display bgp resource command. This command displays only the total number of supported BGP peer sessions, including the numbers of various configured sessions.

Example

# Display statistics about BGP specification information.

<HUAWEI> display bgp resource
  BGP Peer session support total number : 64

   Capacity Statistics     Used Number

   BGP Peer Session          3
   IBGP Peer Session         3
   EBGP Peer Session         0
Table 7-157  Description of the display bgp resource command output

Item

Description

BGP Peer session support total number

Maximum number of BGP peer sessions that are supported.

Capacity Statistics

BGP peer session type.

Used Number

Number of currently configured peer sessions.

BGP Peer Session

Total number of currently configured BGP peer sessions.

IBGP Peer Session

Number of IBGP peer sessions, including confederation IBGP and common IBGP peer sessions.

EBGP Peer Session

Number of EBGP peer sessions, including confederation EBGP and common EBGP peer sessions.

display bgp routing-table

Function

The display bgp routing-table command displays information about BGP routes. Information about specified routes can be displayed by specifying different parameters.

Format

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

display bgp routing-table [ as-path-filter { as-path-filter-number | as-path-filter-name } | cidr | different-origin-as ]

display bgp routing-table regular-expression as-regular-expression

display bgp routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

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

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

display bgp routing-table peer ipv4-address accepted-routes

display bgp routing-table time-range start-time end-time

Parameters

Parameter Description Value
ipv4-address Specifies an IPv4 network address. The value is in dotted decimal notation.
mask | mask-length Specifies a mask in dotted decimal notation or the mask length. -
longer-prefixes Matches any route whose prefix mask is longer than the specified length. -
as-path-filter Displays the routes that match a 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.
cidr Displays Classless InterDomain Routing (CIDR) information. -
regular-expression as-regular-expression Specifies the regular expression used to match the AS_Path information. The value is a string of 1 to 80 characters.
different-origin-as Displays routes that have the same destination address but different source AS numbers. -
community-filter Displays the routes that match a specified BGP community filter. -
community-filter-name Specifies the name of a 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 a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
community Displays the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. -
aa:nn: Specifies the community number. -
internet Displays the matching routes that can be sent to any peer. -
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 matching. -
peer ipv4-address Displays routes of a specified peer. -
advertised-routes Displays the routes advertised to a specified peer. -
received-routes Displays the routes received from a specified peer. -
active Displays the active routes received from a specified peer. -
original-attributes Displays the original attributes of a public route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. -
accepted-routes Displays the routes that are received from the peer and filtered through a routing policy. -
time-range start-time end-time Displays BGP routes that flap within the specified time period. For example, the value 0d0h5m0s of start-time indicates five minutes before the current time. The value 0d0h10m0s of end-time indicates 10 minutes before the current time. All BGP routes with the Keepalive time in the range of 5 to 10 minutes are displayed. The value ranges of start-time and end-time both are 0d0h0m0s-10000d23h59m59s.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

Information about specified routes can be displayed by specifying different parameters.

The display bgp routing-table command is used to display active and inactive BGP routes on the public network.

Example

# Display all BGP routing information.

<HUAWEI> display bgp routing-table
 BGP Local router ID is 10.1.1.2
 Status codes: * - valid, > - best, d - damped, h - history,
               i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 4
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn
 *    10.1.1.0/24        10.1.1.1        0                     0      100?
 *    10.1.1.2/32        10.1.1.1        0                     0      100?
 *>   10.1.1.0/24        10.1.1.1        0                     0      100?
 *>   10.1.1.0/24        10.1.1.1        0                     0      100?

# Display routes with the community attribute.

<HUAWEI> display bgp routing-table community
 BGP Local router ID is 10.1.1.2
 Status codes: * - valid, > - best, d - damped, h - history,
               i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete
 Total Number of Routes: 4
      Network            NextHop        MED        LocPrf    PrefVal Community
 *    10.1.1.0/24        10.1.1.1        0                     0      no-export
 *    10.1.1.2/32        10.1.1.1        0                     0      no-export
 *>   10.1.1.0/24        10.1.1.1        0                     0      no-export
 *>   10.1.1.0/24        10.1.1.1        0                     0      no-export
Table 7-158  Description of the display bgp routing-table command output

Item

Description

BGP Local router ID

Indicates the router ID of the local BGP device.

Network

Indicates the network address in the BGP routing table.

NextHop

Indicates the next-hop address for the packet.

MED

Indicates the MED of the route.

LocPrf

Indicates the local preference.

PrefVal

Indicates the preferred value.

Path/Ogn

Indicates the AS_Path number and the origin attribute.

Community

Indicates the community attribute information.

# Display the detailed information of the specified routes.

<HUAWEI> display bgp routing-table 10.1.1.1
 BGP local router ID : 10.2.3.107
 Local AS number : 100
 Paths:   1 available, 1 best, 1 select
 BGP routing table entry information of 10.1.1.1/32:
 Imported route. 
 From: 10.1.1.2 (10.1.1.2)
 Route Duration: 0d00h01m33s
 Direct Out-interface: Vlanif10
 Original nexthop: 10.1.1.2
 Qos information : 0x0
 AS-path 200, origin incomplete, MED 0, pref-val 0, valid, external, best, select, pre 255
 Advertised to such 1 peers:
    10.1.1.2
Table 7-159  Description of the display bgp routing-table command output

Item

Description

Local AS number

Local AS number

Paths

Indicates the route selection result

BGP routing table entry information of

Routing entry information

Imported route

Routes imported to BGP using the import-route command.

From

IP address of an advertising device

Route Duration

Route duration

Direct Out-interface

Indicates the directly-connected interface

Original nexthop

Original next hop

NOTE:

If no routes to the BGP original next hop are available in the IP routing table, BGP routes cannot be advertised. In this case, find out why there is no route to the original next hop (this fault is generally associated with IGP or static routes).

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

AS-path

AS_Path attribute

Nil indicates that the attribute value is null.

origin

Origin attribute of a BGP route:
  • IGP: indicates that the origin attribute of a route added to the BGP routing table by using the network command is IGP.
  • EGP: indicates that the origin attribute of a route obtained by using EGP is EGP.
  • Incomplete: indicates that the origin attribute of a route whose source is unknown is Incomplete. For example, the origin attribute of the routes imported by using the import-route command is Incomplete.

valid

Valid route

external

External route

best

Optimal route

select

Preferred route

pre

BGP route preference

# Display detailed information about the specified invalid BGP routes.
<HUAWEI> display bgp routing-table 192.168.1.1
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Paths:   2 available, 0 best, 0 select
 BGP routing table entry information of 192.168.1.1/32:
 From: 10.1.1.2 (10.1.1.2)
 Route Duration: 00h01m31s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: 
 Original nexthop: 172.16.1.2
 Qos information : 0x0
 AS-path 200, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for IP unreachable
 Not advertised to any peer yet
Table 7-160  Description of the display bgp routing-table command output

Item

Description

BGP local router ID

ID of the local BGP device. The format is the same as the IPv4 address.

Local AS number

Local AS number.

Paths

Information about paths of BGP routes

BGP routing table entry information of 192.168.1.1/32

The following information is about 192.168.1.1/32 routing entries.

From

IP address of the router that sends the route.

Route Duration

Duration of routes.

Relay IP Nexthop

IP iterated next hop.

Relay IP Out-Interface

IP iterated outbound interface.

Original nexthop

Original next hop.

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

AS-path 200

AS_Path attribute.

origin incomplete

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

MED

Multi-Exit discriminator of route.

localpref

Local priority.

pref-val

Value preferred by the protocol.

internal

The BGP route is an internal route.

pre 255

The BGP route preference is 255.

invalid for IP unreachable

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

display bgp routing-table dampened

Function

The display bgp routing-table dampened command displays BGP dampened routes.

Format

display bgp [ vpnv4 vpn-instance vpn-instance-name ] routing-table [ statistics ] dampened

display bgp ipv6 routing-table [ statistics ] dampened

display bgp vpnv6 vpn-instance vpn-instance-name routing-table [ statistics ] dampened (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table [ statistics ] dampened (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
vpnv4 Displays the BGP routes of a VPNv4 instance. -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
statistics Displays the statistics of dampened routes. -
ipv6 Displays all dampened IPv6 routes. -
vpnv6 Displays the BGP routes of a VPNv6 instance. -
route-distinguisher route-distinguisher Displays the Route Distinguisher dampened BGP routes.

The RD formats are divided into the following types:

  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. 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 0 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.

  • IPv4-address:2-byte 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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

If the length of the destination address mask of an IPv4 route is the same as that of its natural mask, the mask length is not displayed after the command is run.

Example

# Display BGP dampened routes.

<HUAWEI> display bgp routing-table dampened


 BGP Local router ID is 10.1.41.102
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total Number of Routes: 8
     Network            From              Reuse     Path/Origin
  d  10.6.244.0/23      10.10.41.247      01:06:25  65534 4837 174 11096 6356i
  d  10.17.79.0/24      10.10.41.247      01:06:25  65534 837 3356 23504 29777i
  d  10.17.110.0/24     10.10.41.247      01:06:25  65534 837 3356 23504 29777i
  d  10.57.144.0/20     10.10.41.247      01:06:25  65534 4837 10026 9924 18429,18429i
  d  10.76.216.0/24     10.10.41.247      01:06:25  65534 4837 701 26959i
  d  10.78.142.0/24     10.10.41.247      01:06:25  65534 4837 701 26959i
  d  10.115.136.0/23    10.10.41.247      01:06:25  65534 4837 701 26956i
  d  10.243.170.0/24    10.10.41.247      01:06:25  65534 4837 701 26959i
Table 7-161  Description of the display bgp routing-table dampened command output

Item

Description

Network

Indicates the network address in the BGP routing table.

From

Indicates the IP address of the peer that receives the routes.

Reuse

Indicates the reuse value (in seconds).

Path/Origin

Indicates the AS_Path number and the Origin attribute.

# Display IPv6 dampened routes in the BGP routing table.

<HUAWEI> display bgp ipv6 routing-table dampened

 

 BGP Local router ID is 10.0.0.2
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale,
               Origin : i - IGP, e - EGP, ? - incomplete

 Total Number of Routes: 4
  d  Network : FC00:0:0:1:1::                            PrefixLen : 48
     From    : FC00:0:0:1::2:2                           Reuse     : 01:06:26
     Path/Ogn: 65001?

  d  Network : FC00:0:0:1:2::                            PrefixLen : 48
     From    : FC00:0:0:1::2:2                           Reuse     : 01:06:26
     Path/Ogn: 65001?

  d  Network : FC00:0:0:1:3::                            PrefixLen : 48
     From    : FC00:0:0:1::2:2                           Reuse     : 01:06:26
     Path/Ogn: 65001?

  d  Network : FC00:0:0:1:4::                            PrefixLen : 48
     From    : FC00:0:0:1::2:2                           Reuse     : 01:06:26
     Path/Ogn: 65001?
Table 7-162  Description of the display bgp ipv6 routing-table dampened command output

Item

Description

PrefixLen

Prefix length

Related Topics

display bgp routing-table dampening parameter

Function

The display bgp routing-table dampening parameter command displays configured BGP route dampening parameters.

Format

display bgp [ vpnv4 vpn-instance vpn-instance-name ] routing-table dampening parameter

display bgp ipv6 routing-table dampening parameter

display bgp vpnv6 vpn-instance vpn-instance-name routing-table dampening parameter (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 all routing-table dampening parameter (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
vpnv4 Displays the BGP route dampening parameters of a VPNv4 instance. -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
ipv6 Displays configured BGP4+ route dampening parameters. -
vpnv6 Displays the BGP route dampening parameters of a VPNv6 instance. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp routing-table dampening parameter command to check configured BGP route dampening parameters.

Example

# Display BGP route dampening parameters.

<HUAWEI> display bgp routing-table dampening parameter
 Maximum Suppress Time(in second) : 3973
 Ceiling Value                    : 16000
 Reuse Value                      : 750
 HalfLife Time(in  second)        : 900
 Suppress-Limit                   : 2000
Table 7-163  Description of the display bgp routing-table dampening parameter command output

Item

Description

Maximum Suppress Time (in second)

Maximum time taken for route suppression, in seconds.

Ceiling Value

Penalty ceiling.

Reuse Value

Threshold for a route to be unsuppressed.

HalfLife Time(in second)

Half life of a reachable route, in seconds.

Suppress-Limit

Threshold for a route to be suppressed.

# Display BGP4+ route dampening parameters.

<HUAWEI> display bgp ipv6 routing-table dampening parameter
 Maximum Suppress Time(in second) : 3069
 Ceiling Value                    : 16000
 Reuse Value                      : 750
 HalfLife Time(in  second)        : 900
 Suppress-Limit                   : 2000
Related Topics

display bgp routing-table flap-info

Function

The display bgp routing-table flap-info command displays statistics about BGP route flapping.

Format

display bgp [ vpnv4 vpn-instance vpn-instance-name ] routing-table flap-info [ regular-expression as-regular-expression ]

display bgp [ vpnv4 vpn-instance vpn-instance-name ] routing-table flap-info { as-path-filter { as-path-filter-number | as-path-filter-name } | network-address [ { mask | mask-length } [ longer-match ] ] }

display bgp ipv6 routing-table flap-info [ regular-expression as-regular-expression ]

display bgp ipv6 routing-table flap-info { as-path-filter { as-path-filter-number | as-path-filter-name } | network-address [ prefix-length [ longer-match ] ] }

display bgp vpnv6 vpn-instance vpn-instance-name routing-table flap-info [ regular-expression as-regular-expression ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv6 vpn-instance vpn-instance-name routing-table flap-info { as-path-filter { as-path-filter-number | as-path-filter-name } | network-address [ prefix-length [ longer-match ] ] } (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table flap-info [ as-path-filter { as-path-filter-number | as-path-filter-name } | ipv4-address [ { mask | mask-length } [ longer-match ] ] ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table flap-info [ regular-expression as-regular-expression ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
vpnv4 Displays statistics about route flapping of a VPNv4 instance. -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
regular-expression as-regular-expression Displays statistics about the flapping routes that match the AS_Path regular expression. The value is a string of 1 to 80 characters.
as-path-filter as-path-filter-number Specifies the number of an AS_Path filter. It is an integer that ranges from 1 to 256.
as-path-filter as-path-filter-name Specifies the name of an AS_Path filter. The name is a string of 1 to 51 case-sensitive characters without spaces. When double quotation marks are used around the string, spaces are allowed in the string.
network-address Specifies the network address related to dampened routes. -
mask Specifies the network mask. It is in dotted decimal notation.
mask-length Specifies the mask length. The value is an integer that ranges from 0 to 32.
longer-match Matches a route with a longer prefix. -
prefix-length Specifies the prefix length. The value is an integer that ranges from 0 to 128.
vpnv6 Displays statistics about route flapping of a VPNv6 instance. -
ipv4-address Displays statistics about the flapping routes that match the IPv4 prefix. -
route-distinguisher route-distinguisher Displays the Route Distinguisher dampened BGP routes.

The RD formats are divided into the following types:

  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. 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 0 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.

  • IPv4-address:2-byte 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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp routing-table flap-info command to check statistics about BGP route flapping.

Example

# Display statistics about BGP route flapping.

<HUAWEI> display bgp routing-table flap-info

 
 BGP Local router ID is 10.20.200.201
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed,
               Origin codes: i - IGP, e - EGP, ? - incomplete

Total Number of Routes: 7
     Network         From            Flaps  Duration     Reuse  Path/Ogn

 d  10.1.1.0        10.20.200.200   5      00:00:36  00:40:47  600i
 *>  10.1.1.0        10.20.200.202   1      00:04:07            100?
 d  10.1.2.0        10.20.200.200   5      00:00:36  00:40:47  600i
 *>  10.1.2.0        10.20.200.202   1      00:04:07            100?
 d  10.1.3.0        10.20.200.200   5      00:00:36  00:40:47  600i
 d  10.1.4.0        10.20.200.200   5      00:00:36  00:40:47  600i
 d  10.1.5.0        10.20.200.200   5      00:00:36  00:40:47  600i
Table 7-164  Description of the display bgp routing-table flap command output

Item

Description

Network

Network address in the BGP routing table.

From

IP address of the peer that receives the routes.

Flaps

Total number of times of route flapping.

Duration

Total time length of flapping.

Reuse

Reuse value.

Path/Ogn

AS_Path number and Origin attribute.

# Display statistics about BGP4+ route flapping.

<HUAWEI> display bgp ipv6 routing-table flap-info

 
 BGP Local router ID is 10.53.53.53
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total Number of Routes: 3
  d  Network : FC00:0:0:1::                              PrefixLen : 96
     From    : FC00:0:0:1::1                             Flaps     : 8
     Duration: 00:02:11                                  Reuse     : 00:49:21
     Path/Ogn: 100?

  d  Network : FC00:0:0:2::2                             PrefixLen : 128
     From    : FC00:0:0:1::1                             Flaps     : 5
     Duration: 00:00:18                                  Reuse     : 00:41:06
     Path/Ogn: 100?

  d  Network : FC00:0:0:2::3                             PrefixLen : 128
     From    : FC00:0:0:1::1                             Flaps     : 5
     Duration: 00:00:18                                  Reuse     : 00:41:06
     Path/Ogn: 100?

display bgp routing-table label

Function

The display bgp routing-table label command displays labeled routes in the BGP routing table.

NOTE:

Only the S5720EI, S5720HI, S6720S-EI and S6720EI support this command.

Format

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table label include-mask

display bgp routing-table label [ statistics | include-mask ]

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table [ statistics ] label

display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table [ statistics ] label

display bgp ipv6 routing-table [ statistics ] label

Parameters

Parameter Description Value
include-mask Displays labeled routes carrying masks. -
statistics Indicates statistics about labeled routes. -
vpnv4 Displays VPNv4 labeled routes. -
all Displays the labeled routes of all VPN instances. -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
ipv6 Displays BGP4+ labeled routes. -
vpnv6 Displays VPNv6 labeled routes. -
route-distinguisher route-distinguisher Displays BGP routes with the specified RD.
The RD formats are divided into the following types:
  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. That is, an RD cannot be 0:0.

  • IPv4-address:2-byte 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.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp routing-table label command to check labeled routes in the BGP routing table.

Example

# Display BGP labeled routes of all VPN instances.

<HUAWEI> display bgp vpnv4 all routing-table label
 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Total number of routes from all PE: 3
 Route Distinguisher: 100:1

        Network           NextHop           In/Out Label
 *>i    10.22.22.22       10.3.3.9          NULL/1036

 Route Distinguisher: 100:4

        Network           NextHop           In/Out Label
 *>     10.1.2.0          10.1.2.1          1037/NULL
 *>     10.11.11.11       127.0.0.1         1038/NULL

 VPN-Instance vpn1, router ID 1.1.1.9:
 Total Number of Routes: 1

        Network           NextHop           In/Out Label
 *>i    10.22.22.22       10.3.3.9          NULL/1036

 VPN-Instance vpn2, router ID 10.1.1.9:
 Total Number of Routes: 0
Table 7-165  Description of the display bgp vpnv4 all routing-table label command output

Item

Description

Network

Network address in the BGP routing table.

NextHop

IP address of the reachable next hop.

In/Out Label

Incoming label and outgoing label.

# Display BGP4+ labeled routes.
<HUAWEI> display bgp ipv6 routing-table label
Total Number of Routes: 3

  Network        Prefix     NextHop           Label
  FC00:0:0:1::4  128        FC00:0:0:2::2      1024
  FC00:0:0:1::5  128        FC00:0:0:2::2      1025
  FC00:0:0:1::6  128        FC00:0:0:2::2      1026
Table 7-166  Description of the display bgp ipv6 routing-table label command output

Item

Description

Prefix

IP prefix.

display bgp routing-table peer no-advertise

Function

The display bgp routing-table peer no-advertise command displays the routes that a device is prevented from advertising to a specified peer in different address families.

Format

display bgp routing-table peer ipv4-address no-advertise network [ mask | mask-length ]

display bgp ipv6 routing-table peer ipv6-address no-advertise ipv6–network [ prefix-length ]

display bgp vpnv4 vpn-instance vpn-instance-name routing-table peer ipv4-address no-advertise network [ mask | mask-length ]

display bgp vpnv4 all routing-table peer ipv4-address no-advertise network [ mask | mask-length ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp ipv6 routing-table peer ipv4-address no-advertise ipv6–network [ prefix-length ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp multicast routing-table peer ipv4-address no-advertise network [ mask | mask-length ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv6 all routing-table peer ipv4-address no-advertise ipv6–network [ prefix-length ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address no-advertise ipv6–network [ prefix-length ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp l2vpn-ad routing-table peer ipv4-address no-advertise network (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
peer ipv4-address

Displays the routes that a device is prevented from advertising to the specified IPv4 peer.

The value is in dotted decimal notation.

network

Displays the routes with the specified destination IPv4 address that are prevented from being advertised.

The value is in dotted decimal notation.

mask

Specifies the subnet mask of the specified IPv4 address.

The value is in dotted decimal notation.

mask-length

Specifies the subnet mask length of the specified IPv4 address.

The value is an integer that ranges from 0 to 32.

vpnv4

Displays the routes that a device is prevented from advertising to a specified peer in the VPNv4 address family.

-

all

Displays the routes that a device is prevented from advertising to a specified peer in all VPN instances of the current address family.

-

vpn-instance vpn-instance-name

Displays the routes that a device is prevented from advertising to a specified peer in the specified VPN instance of the current address family.

The value must be an existing VPN instance name.
multicast

Displays the routes that a device is prevented from advertising to a specified peer in the IPv4 multicast address family.

-

ipv6

Displays the routes that a device is prevented from advertising to a specified peer in the IPv6 unicast address family.

-

peer ipv6-address

Displays the routes that a device is prevented from advertising to the specified IPv6 peer.

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

ipv6–network

Displays the routes with the specified destination IPv6 address that are prevented from being advertised.

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

prefix-length

Specifies the prefix length of an IPv6 address.

The value is an integer that ranges from 0 to 128.

vpnv6

Displays the routes that a device is prevented from advertising to a specified peer in the VPNv6 address family.

-

l2vpn-ad

Displays the routes that a device is prevented from advertising to a specified peer in the L2VPN-AD address family.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check the routes that a device is prevented from advertising to a specified peer in different address families, run the display bgp routing-table peer no-advertise command. The command output also includes the reasons why the routes are not advertised.

You can specify an address family to check the routes that a device is prevented from advertising to a specified peer in the address family. If you do not specify any address family, the command output shows the routes that a device is prevented from advertising to a specified peer in the IPv4 unicast address family.

Example

# Display the route 10.3.3.4/32 that a device is prevented from advertising to peer with IP address 192.168.1.1 in the IPv4 unicast address family.

<HUAWEI> display bgp routing-table peer 192.168.1.1 no-advertise 10.3.3.4 32
 BGP routing table entry information of 10.3.3.4/32:
 From: 192.168.1.1 (10.1.1.1)
 Route Duration: 22h36m17s  
 Relay IP Nexthop: 10.1.1.1
 Relay IP Out-Interface: Vlanif100
 Original nexthop: 192.168.1.1
 Qos information : 0x0
 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, active, pre 255, IGP cost 1
 No advertise without config reflect-client
Table 7-167  Description of the display bgp routing-table peer no-advertise command output

Item

Description

From

Peer from which the route was received.

Route Duration

Duration of the route.

Relay IP Nexthop

Next-hop IP address to which the route is iterated.

Relay IP Out-Interface

Outbound interface to which the route is iterated.

Original nexthop

Original next-hop IP address of the route.

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

AS-path

AS_Path attribute. Nil indicates that the attribute value is null.

origin

Origin attribute:
  • IGP: indicates that the route is added to the BGP routing table using the network (BGP) command.
  • EGP: indicates that the route is learned through the EGP protocol.
  • Incomplete: indicates that the origin of the route cannot be identified. For example, if a route is imported using the import-route (BGP) command, its origin is Incomplete.

MED

MED of the route.

localpref

Local_Pref of the BGP route.

pref-val

PrefVal of the route.

valid

Valid route.

internal

Internal route.

best

Optimal route.

select

Selected route.

active

Active route.

pre 255

Priority of the route (255 in this example).

IGP cost 1

IGP cost of the route (1 in this example).

No advertise without config reflect-client

Reason why the route is not advertised:

  • No advertise with no-adv flag: The route carries the No-Advertise flag.

  • No advertise with peer deafult-route-advertise in vt faimily: The local device is configured to advertise only default routes to the peer in the VT address family.

  • No advertise with no-adv flag in comminuty attr: The route carries the No-Advertise community attribute.

  • No advertise with no-export flag in comminuty attr: The route carries the No-Export community attribute.

  • No advertise with no-export-subconfed flag in comminuty attr: The route carries the No_Export_Subconfed community attribute.

  • No advertise by detail route with config aggregate: Specific routes for summarization are not advertised.

  • No advertise with config active-route-advertise: Only the active routes in the IP routing table are advertised.

  • No advertise with config peer upe and no export policy: The specified peer is a UPE, and the route fails to match the export policy.

  • No advertise without config reflect-client: No RR is configured.

  • No advertise with config reflect-client but without config reflect between-clients: Route reflection among RR clients is disabled.

  • No advertise for other reason: Other reasons prevent the route from being advertised.

display bgp routing-table peer statistics

Function

The display bgp routing-table peer statistics command displays statistics about received and advertised BGP routes.

Format

display bgp [ multicast | ipv6 ] routing-table peer statistics

display bgp [ l2vpn | vpls | l2vpn-ad ] routing-table peer statistics (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp { vpnv4 | vpnv6 } { all | vpn-instance vpn-instance-name } routing-table peer statistics ( This vpnv6 parameter is supported by the S5720EI, S5720HI, S6720S-EI and S6720EI.)

display bgp l2vpn-ad routing-table [ all | vpls-ad | vpws | vpls ] peer statistics (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
multicast Displays statistics about routes in the IP multicast routing table. -
l2vpn Displays statistics about routes in the BGP-L2VPN address family. -
vpls Displays statistics about routes in the BGP VPLS address family. -
ipv6 Displays statistics about routes in the BGP IPv6 unicast address family. -
l2vpn-ad Displays statistics about routes in the BGP L2VPN-AD address family. -
vpnv4 Displays statistics about routes in the BGP-VPNv4 address family. -
vpnv6 Displays statistics about routes in the BGP-VPNv6 address family. -
all Displays statistics about all types of routes. -
vpn-instance vpn-instance-name Specifies a VPN instance name. The value must be an existing VPN instance name.
vpls-ad Displays statistics about VPLS-AD routes. -
vpws Displays statistics about virtual private wire service (VPWS) routes. -
vpls Displays statistics about virtual private LAN service (VPLS) routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To check statistics of received and advertised BGP routes, run the display bgp routing-table peer statistics command. You can specify parameters as needed. If no parameter is specified in the command, statistics about BGP IPv4 unicast routes are displayed.

Example

# Display statistics about received and advertised BGP IPv4 unicast routes.

<HUAWEI> display bgp routing-table peer statistics
 BGP local router ID : 10.1.1.1
 Local AS number : 100
 Total number of peers : 3                Number of Peers in established state : 3

  Peer                    Received routes            Advertised routes

  10.2.2.2                  1                          1
  10.2.2.3                  1                          1
  10.3.3.3                  2                          0
Table 7-168  Description of the display bgp routing-table peer statistics command output

Item

Description

BGP local router ID Local router ID
Local AS number AS number
Total number of peers Total number of peers
Number of Peers in established state Number of peers in the established state
Peer IP address of a peer
Received routes Total number of routes received from the peer
Advertised routes Total number of routes advertised to the peer

display bgp routing-table statistics

Function

The display bgp routing-table statistics command displays statistics about BGP routes.

Format

display bgp routing-table statistics

display bgp routing-table statistics as-path-filter { as-path-filter-number | as-path-filter-name }

display bgp routing-table statistics cidr

display bgp routing-table statistics community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

display bgp routing-table statistics community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp routing-table statistics dampened

display bgp routing-table statistics different-origin-as

display bgp routing-table statistics regular-expression as-regular-expression

display bgp routing-table peer ipv4-address { advertised-routes | received-routes [ active ] } statistics

Parameters

Parameter Description Value
as-path-filter as-path-filter-number Displays the routes that match the specified the number of the matching AS-Path filter. It is an integer that ranges from 1 to 256.
as-path-filter as-path-filter-name Displays the routes that match the specified 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.
cidr Displays CIDR information. -
community Displays the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. The value is an integer that ranges from 0 to 4294967295.
aa:nn Specifies the community attribute number. Both aa and nn are integers ranging from 0 to 65535.
internet Displays the matching routes that can be sent to any peer. -
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 matching. -
community-filter Displays the routes that match a specified BGP community filter. -
basic-community-filter-number Specifies the number of a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
community-filter-name Specifies the name of a community filter. The name is a string of 1 to 51 characters. The string cannot be all numbers.
dampened Displays the statistics of BGP dampened roues. -
different-origin-as Displays routes that have the same destination address but different source AS numbers. -
regular-expression as-regular-expression Specifies the regular expression used to match the AS_Path information. The value is a string of 1 to 80 characters.
peer ipv4-address Displays the routing information for the specified BGP peer. It is in dotted decimal notation.
advertised-routes Displays the routes advertised to the specified peer. -
received-routes Displays the routes received from the specified peer. -
active Specifies the number of active routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display bgp routing-table statistics command is used to display statistics about BGP routes on the public network.

The display bgp routing-table statistics as-path-filter command is used to display statistics about the BGP routes that match the specified AS_Path filter on the public network.

The display bgp routing-table statistics cidr command is used to display statistics about the BGP CIDR information of the public network.

The display bgp routing-table statistics community command is used to display statistics about the BGP routes carrying the specified community attribute on the public network.

The display bgp routing-table statistics community-filter command is used to display statistics about the BGP routes that match the specified community filter on the public network.

The display bgp routing-table statistics dampened command is used to display statistics about BGP dampened routes on the public network.

The display bgp routing-table statistics different-origin-as command is used to display statistics about the BGP routes with the same destination address but different source AS numbers on the public network.

The display bgp routing-table statistics regular-expression command is used to display statistics about the BGP routes whose AS_Path information matches the AS_Path regular expression on the public network.

Example

# Display route statistics.

<HUAWEI> display bgp routing-table statistics
 Total Number of Routes: 4
Table 7-169  Description of the display bgp routing-table statistics command output

Item

Description

Total Number of Routes

Total number of routes in the routing table

display bgp update-peer-group

Function

The display bgp update-group command displays information about update-groups. By setting index in the command displays detailed information about a specified update-group. If no address family is specified, information about the update-group of the IPv4 unicast address family is displayed by default.

Format

display bgp update-peer-group [ index update-group-index ]

display bgp ipv6 update-peer-group [ index update-group-index ]

display bgp vpnv4 all update-peer-group [ index update-group-index ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 vpn-instance vpn-instance-name update-peer-group [ index update-group-index ]

display bgp vpnv6 all update-peer-group [ index update-group-index ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv6 vpn-instance vpn-instance-name update-peer-group [ index update-group-index ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp l2vpn all update-peer-group [ index update-group-index ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpls all update-peer-group [ index update-group-index ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp l2vpn-ad update-peer-group [ index update-group-index ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

Parameters

Parameter Description Value
index update-group-index Specifies the index of an update-group. The value is an integer that ranges from 0 to 65535.
ipv6 Displays information about the BGP update-groups of IPv6 routes. -
vpnv4 Displays information about the BGP update-groups of a VPNv4 instance. -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.
vpnv6 Displays information about the BGP update-groups of a VPNv6 instance. -
all Displays information about all the update-groups in a VPNv6 address family. -
l2vpn Displays information about L2VPN BGP update-groups. -
vpls Displays information about VPLS BGP update-groups. -
l2vpn-ad Displays information about L2VPN-AD BGP update-groups. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify the index of an update-group to view detailed information about the specified update-group. If no address family is specified, information about the update peer-groups in the IPv4 unicast address family is displayed by default.

Example

# Display information about the update peer-groups in the IPv4 unicast address family.

<HUAWEI> display bgp update-peer-group
 The Public instance's update peer group number : 1
 Keep buffer update peer group number : 0
 BGP Version : 4
 Group ID : 0 
 Group Type : external 
 Addr Family : IPv4-UNC 
 AdvMinTimeVal : 30 
 Total Peers : 1 
 Leader Peer : 192.168.1.2 
 Peers List : 192.168.1.2 
 
Table 7-170  Description of the display bgp update-peer-group command output

Item

Description

The Public instance's update peer group number

Number of update-groups in the instance

Keep buffer update peer group number

Number of packets in update-groups saved in the batch buffer

BGP Version

Indicates the BGP version.

Group ID

Indicates the ID of the update-group.

Group Type

Indicates the type of the update-group, which can be one of the following:
  • external: indicates that this is an EBGP peer group.
  • internal: indicates that this is an IBGP peer group.
  • unknown: indicates that the type is unknown.

Addr Family

Indicates the address family.

AdvMinTimeVal

Indicates the minimum interval for sending Update packets with the same route prefix.

Total Peers

Indicates the total number of peers in an update-group.

Leader Peer

Indicates the representative of an update-group.

Peers List

Indicates a list of peers.

# Display information about the update-group with a specified index.

<HUAWEI> display bgp update-peer-group index 0
 Group ID : 0
 BGP Version : 4
 Group Type : external
 Addr Family : IPv4-UNC
 AdvMinTimeVal : 30
 Total Peers : 1
  Leader Peer : 192.168.1.2

 Total format packet number : 3
 Total send packet number : 3
 Total replicate packet number : 0
 The replication percentages(%) : 0

 Peers List : 192.168.1.2
Table 7-171  Description of the display bgp update-peer-group index command output
Item Description
Total format packet number Indicates the total number of formatted packets.
Total send packet number Indicates the total number of sent packets.
Total replicate packet number Indicates the total number of replicate packets, which equals the total number of sent packets minus the total number of formatted packets.
The replication percentages(%) Indicates the replication percentage, which is obtained with the formula: (Total number of sent packet - Total number of formatted packets) x 100/Total number of formatted packets.

display bgp vpnv4 brief

Function

The display bgp vpnv4 brief command displays brief information about VPNv4 and VPN instances (IPv4 address family).

Format

display bgp vpnv4 { all | vpn-instance vpn-instance-name } brief

Parameters

Parameter Description Value
all Displays information about all VPNv4 and VPN instances (IPv4 address family). -
vpn-instance vpn-instance-name Specifies the name of a VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After the display bgp vpnv4 brief command is used to display information about VPNv4 and VPN instances (IPv4 address family), the VPN instances are displayed and arranged alphabetically by name.

Example

# Display brief information about VPNv4 instances and all VPN instances (IPv4 address family).

<HUAWEI> display bgp vpnv4 all brief

VPNV4 :
  Rd Num              Peer Num            Route Num
  0                   1                   0

VPN-Instance(IPv4-family):
  VPN-Instance Name   Peer Num            Route Num
  vrf0                   0                   0
  vrf1                   0                   0
  vrf11                  0                   0
  vrf12                  0                   0
  vrf13                  0                   0
  vrf14                  0                   0
  vrf2                   0                   20
  vrf3                   0                   20
  vrf4                   0                   24
  vrf5                   0                   24
  vrf6                   0                   0
  vrf7                   0                   0
  vrf8                   0                   20
Table 7-172  Description of the display bgp vpnv4 brief command output

Item

Description

Rd Num

Indicates the number of RDs.

Peer Num

Indicates the number of peers.

Route Num

Indicates the number of routes.

VPN-Instance Name

Indicates the name of a VPN instance.

display bgp vpnv4 routing-table

Function

The display bgp vpnv4 routing-table command displays BGP routes of VPNv4 address family and the private networks.

Format

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table [ as-path-filter { as-path-filter-number | as-path-filter-name } | cidr | different-origin-as ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 vpn-instance vpn-instance-name routing-table [ as-path-filter { as-path-filter-number | as-path-filter-name } | cidr | different-origin-as ]

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table regular-expression as-regular-expression (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 vpn-instance vpn-instance-name routing-table regular-expression as-regular-expression

display bgp vpnv4 route-distinguisher route-distinguisher routing-table ipv4-address [ mask | mask-length ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

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

display bgp vpnv4 all routing-table peer ipv4-address { advertised-routes [ network [ { mask | mask-length } [ longer-prefixes ] ] ] | received-routes [ active ] } (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

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

display bgp vpnv4 all routing-table peer ipv4-address received-routes network [ { mask | mask-length } [ longer-prefixes ] ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

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

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number } (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 vpn-instance vpn-instance-name routing-table community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp vpnv4 vpn-instance vpn-instance-name routing-table peer ipv4-address accepted-routes

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 vpn-instance vpn-instance-name routing-table community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ]

display bgp vpnv4 vpn-instance vpn-instance-name routing-table time-range start-time end-time

Parameters

Parameter Description Value
all Displays all BGP VPNv4 routes. -
route-distinguisher route-distinguisher Displays the BGP routes with the specified RD.
The RD formats are divided into the following types:
  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. 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 0 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.

  • IPv4-address:2-byte 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 the BGP routes of a specified VPN instance. The value must be an existing VPN instance name.
as-path-filter Displays the routes that match the specified filter. -
as-path-filter-number Specifies the number of the matching AS-Path filter. The value 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 case-sensitive characters without spaces. The string cannot be all numerals.When double quotation marks are used around the string, spaces are allowed in the string.
cidr Displays CIDR information. -
different-origin-as Displays the routes that have the same destination address but different source AS numbers. -
regular-expression as-regular-expression Specifies the regular expression used to match the AS_Path information. The value is a string of 1 to 80 characters.
ipv4-address Specifies the destination address. -
mask Specifies a mask in dotted decimal notation. The value is in dotted decimal notation.
mask-length Specifies the the mask length. The value is an integer that ranges from 0 to 32.
peer ipv4-address Displays routes of a specified peer. -
advertised-routes Displays the routes advertised to a specified peer. -
network Specifies the IPv4 network address. It is in dotted decimal notation.
longer-prefixes Matches any route whose prefix mask is longer than the specified length. -
received-routes Displays the routes received from a specified peer. -
active Displays the active routes received from a specified peer. -
original-attributes Displays the original attributes of a BGP route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. -
community-filter Displays the routes that match a specified BGP 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.
basic-community-filter-number Specifies the number of a basic community filter. The value is an integer that ranges from 1 to 99.
whole-match Indicates exact matching. -
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
community Displays the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the number of a community. -
aa:nn Specifies the community number. A maximum of 29 community numbers can be set. Both aa and nn are integers ranging from 0 to 65535.
internet Displays the matching routes that can be sent to any peer. -
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. -
accepted-routes Displays the routes that are received from a neighbor and accepted by a routing policy. -
time-range start-time end-time Displays information about BGP VPNv4 routes that have undergone status flapping during the specified period. For example, when start-time is set to 0d0h5m0s and end-time is set to 0d0h10m0s, information about all BGP VPNv4 routes whose lifetime ranges from 5 to 10 minutes is displayed. In the values of start-time and end-time, d ranges from 0 to 10000, h ranges from 0 to 23, m ranges from 0 to 59, and s ranges from 0 to 59.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify different parameters to view the specific routing information.

When BGP routing table is displayed, if the length of the destination address mask of an IPv4 route is the same as that of its natural mask, the mask length is not displayed.

You can run the display bgp vpnv4 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time command to view BGP VPNv4 routes that flap within the specified time period. For example, if service traffic is abnormal or CPU usage of the device remains high within a certain time period, you can run this command to check whether route flapping occurs within the specified time period. The faulty route can be viewed in the command output, facilitating fault location.

Example

# Display all the BGP routing information of the VPN instance named vpn1.

<HUAWEI> display bgp vpnv4 vpn-instance vpn1 routing-table

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 VPN-Instance vpn1, Router ID 10.1.1.9:

 Total Number of Routes: 4
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   10.1.2.0/24        0.0.0.0         0                     0      ?
 *>   10.1.2.1/32        0.0.0.0         0                     0      ?
 *>   10.11.11.11/32     0.0.0.0         0                     0      ?
 *>i  10.22.22.22/32     10.3.3.9        0          100        0      ?

# Display all the BGP VPNv4 routing information.

<HUAWEI> display bgp vpnv4 all routing-table


 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete



 Total number of routes from all PE: 4
 Route Distinguisher: 100:1


      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>i  10.22.22.22/32     10.3.3.9        0          100        0      ?

 Route Distinguisher: 100:4


      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   10.1.2.0/24        0.0.0.0         0                     0      ?
 *>   10.1.2.1/32        0.0.0.0         0                     0      ?
 *>   10.11.11.11/32     0.0.0.0         0                     0      ?

 VPN-Instance vpn1, Router ID 10.1.1.9:

 Total Number of Routes: 4
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   10.1.2.0/24        0.0.0.0         0                     0      ?
 *>   10.1.2.1/32        0.0.0.0         0                     0      ?
 *>   10.11.11.11/32     0.0.0.0         0                     0      ?
 *>i  10.22.22.22/32     10.3.3.9        0          100        0      ?
# Display the VPNv4 routing information of the specified RD.
<HUAWEI> display bgp vpnv4 route-distinguisher 100:1 routing-table

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Route Distinguisher: 100:1


 Total Number of Routes: 3
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   10.1.1.0/24        0.0.0.0         0                     0      ?
 *                       10.1.1.1        0                     0      65410?
 *>   10.1.1.2/32        0.0.0.0         0                     0      ?

 VPN-Instance vpna, Router ID 10.1.1.9:

 Total Number of Routes: 7
      Network            NextHop        MED        LocPrf    PrefVal Path/Ogn

 *>   10.1.1.0/24        0.0.0.0         0                     0      ?
                         10.1.1.1        0                     0      65410?
 *>   10.1.1.2/32        0.0.0.0         0                     0      ?
 *>   10.2.1.0/24        10.2.1.2        0                     0      ?
 * i                     10.3.3.9        0          100        0      ?
 *>   10.2.1.2/32        127.0.0.1       0                     0      ?
 *>i  10.4.1.0/24        10.4.4.9        0          100        0      ?

# Display all BGP VPNv4 routes of community 1000:100.

<HUAWEI> display bgp vpnv4 all routing-table community 1000:100

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total number of routes from all PE: 1

 Route Distinguisher: 100:1


      Network            NextHop        MED        LocPrf    PrefVal Community

 *>i  10.22.22.22/32     10.3.3.9        0          100        0      <1000:100>

 VPN-Instance vpn1, Router ID 10.1.1.9:

 Total Number of Routes: 1
      Network            NextHop        MED        LocPrf    PrefVal Community

 *>i  10.22.22.22/32     10.3.3.9        0          100        0      <1000:100>

 VPN-Instance vpn2, Router ID 10.1.1.9:

 Total Number of Routes: 0

# Displays BGP VPNv4 routes that flap within the specified time period.

<HUAWEI> display bgp vpnv4 all routing-table time-range 0d5h0m0s 1d5h0m0s

 BGP Local router ID is 192.168.1.250
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Route Distinguisher: 2:2

      Network            NextHop         Peer            Duration        Path/Ogn

 *>i  0.0.0.0            10.2.2.2        10.2.2.2        05h30m11s        i
 *>   10.2.3.4/32        0.0.0.0         0.0.0.0         05h30m42s        ?

 VPN-Instance 1, Router ID 192.168.1.250:
      Network            NextHop         Peer            Duration        Path/Ogn

 *>   10.2.3.4/32        0.0.0.0         0.0.0.0         05h30m42s        ?

 VPN-Instance 2, Router ID 192.168.1.250:
      Network            NextHop         Peer            Duration        Path/Ogn

 *>i  0.0.0.0            10.2.2.2        10.2.2.2        05h30m11s        i
 *>   10.2.3.4/32        0.0.0.0         0.0.0.0         05h30m42s        ?

Table 7-173  Description of the display bgp vpnv4 routing-table command output

Item

Description

BGP Local router ID

ID of the local BGP device.

Network

Network address in the BGP routing table.

NextHop

Next-hop address through which the packet has to be sent

MED

MED of the route.

LocPrf

Local preference.

PrefVal

Preferred value.

Peer

Peer IP address

Duration

Route duration

Path/Ogn

AS_Path number and the origin attribute.

Community

Community attribute information.

# Display information about a specified VPNv4 route.

<HUAWEI> display bgp vpnv4 all routing-table 192.168.2.0
                                                                                
                                                                                
 BGP local router ID : 10.2.2.9                                                  
 Local AS number : 100                                                          
                                                                                
 Total routes of Route Distinguisher(100:10): 2                                 
 BGP routing table entry information of 192.168.2.0/24:                         
 Imported route.                                                                
 Label information (Received/Applied): NULL/1025                                
 From: 0.0.0.0 (0.0.0.0)                                                        
 Route Duration: 00h50m09s                                                      
 Direct Out-interface: Vlanif30   
 Original nexthop: 192.168.2.1                                                  
 Qos information : 0x0                                                          
 Ext-Community:RT <1 : 1>                                                       
 AS-path Nil, origin incomplete, MED 0, pref-val 0, valid, local, best, select, 
pre 255                                                                         
 Advertised to such 1 peers:                                                    
    10.3.3.3                                                                     
 BGP routing table entry information of 192.168.2.0/24:                         
 From: 192.168.2.2 (1.1.1.1)                                                    
 Route Duration: 00h48m50s                                                      
 Direct Out-interface: Vlanif30   
 Original nexthop: 192.168.2.2                                                  
 Qos information : 0x0                                                          
 Ext-Community:RT <1 : 1>                                                       
 AS-path 10, origin incomplete, MED 0, pref-val 0, valid, external, pre 255, not
 preferred for route type                                                       
 Not advertised to any peer yet                                                 
                                                                                
                                                                                
 VPN-Instance vpna, Router ID 10.2.2.9:                                          
                                                                                
 Total Number of Routes: 2                                                      
 BGP routing table entry information of 192.168.2.0/24:                         
 Imported route.                                                                
 From: 0.0.0.0 (0.0.0.0)                                                        
 Route Duration: 00h50m09s                                                      
 Direct Out-interface: Vlanif30   
 Original nexthop: 192.168.2.1                                                  
 Qos information : 0x0                                                          
 AS-path Nil, origin incomplete, MED 0, pref-val 0, valid, local, best, select, 
pre 0                                                                           
 Advertised to such 1 peers:                                                    
    192.168.2.2                                                                 
 BGP routing table entry information of 192.168.2.0/24:                         
 From: 192.168.2.2 (1.1.1.1)                                                    
 Route Duration: 00h48m51s                                                      
 Direct Out-interface: Vlanif30    
 Original nexthop: 192.168.2.2                                                  
 Qos information : 0x0                                                          
 AS-path 10, origin incomplete, MED 0, pref-val 0, external, pre 255            
 Not advertised to any peer yet                                                 
Table 7-174  Description of the display bgp vpnv4 routing-table command output
Item Description
Local AS number Local AS number.
Total routes of Route Distinguisher Total number of VPNv4 routes with a specified RD.
BGP routing table entry information of x.x.x.x/x The following information is about a specified BGP routing entry.

Imported route

Routes imported to BGP using the import-route command.

Label information (Received/Applied) Information about labels, including received and sent labels.
From IP address of the route originator.
Route Duration Route duration.
Direct Out-interface Direct outbound interface.
Original nexthop Original next hop.
Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.
Ext-Community Extended community attribute of BGP.
AS-path AS_Path attribute.
origin Origin attribute of the BGP route.

The value can be IGP (for example, the routes imported into the BGP routing table by using the network (BGP) command), EGP (the routes obtained by EGP), or Incomplete (the routes whose origin cannot be identified, for example, the routes imported into the BGP routing table by using the import-route (BGP) command).

pref-val Preferred value.
valid Valid BGP route.
external The BGP route is learned from the EBGP peer.
best The BGP route is the optimal route.
select The BGP route is a preferred route.
pre 255 The preference of the BGP route is 255.
Advertised to such 1 peers The BGP route has been advertised to one peer.
Not advertised to any peer yet The BGP route has not been advertised to any peer.
VPN-Instance vpna, Router ID 10.2.2.9 The VPN instance is vpna, the Route ID is 10.2.2.9

Total Number of Routes

Number of routes in VPN instance vpna.
# Display detailed information about the specified invalid BGP VPNv4 routes.
<HUAWEI> display bgp vpnv4 all routing-table 192.168.4.4
 BGP local router ID : 10.1.1.1
 Local AS number : 100

 Total routes of Route Distinguisher(10:10): 1
 BGP routing table entry information of 192.168.4.4/32:
 Label information (Received/Applied): 1025/NULL
 From: 10.1.1.2 (10.1.1.2)
 Route Duration: 00h12m26s  
 Relay IP Nexthop: 0.0.0.0
 Relay IP Out-Interface: GigabitEthernet0/0/0
 Relay Tunnel Out-Interface: 
 Relay token: 0x0
 Original nexthop: 10.1.1.2
 Qos information : 0x0
 Ext-Community:RT <10 : 10>, RT <20 : 20>
 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, valid, internal, best, select, pre 255
 Not advertised to any peer yet

 VPN-Instance vrf1, Router ID 10.1.1.1:

 Total Number of Routes: 1
 BGP routing table entry information of 192.168.4.4/32:
 Label information (Received/Applied): 1025/NULL
 From: 10.1.1.2 (10.1.1.2)
 Route Duration: 00h12m26s  
 Relay Tunnel Out-Interface: 
 Relay token: 0x0
 Original nexthop: 10.1.1.2
 Qos information : 0x0
 Ext-Community:RT <10 : 10>, RT <20 : 20>
 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for tunnel unreachable
 Not advertised to any peer yet
Table 7-175  Description of the display bgp vpnv4 routing-table command output

Item

Description

BGP local router ID

ID of the local BGP device. The format is the same as the IPv4 address.

Local AS number

Local AS number.

Total routes of Route Distinguisher(10:10)

Total number of BGP VPNv4 routes of the specified RD.

BGP routing table entry information of 192.168.4.4/32

The following information is about 192.168.4.4/32 routing entries.

Label information (Received/Applied)

Label information (received or sent).

From

IP address of the device that sends the route. 10.1.1.2 is the IP address of the source interface of the peer with which the BGP connection is established, and 10.1.1.2 is the Router ID of the peer.

Route Duration

Duration of routes.

Relay IP Nexthop

IP iterated next hop.

Relay IP Out-Interface

IP iterated outbound interface.

Relay Tunnel Out-Interface

Tunnel iterated outbound interface.

Relay token

Iterated token value used for MPLS forwarding that is a part of tunnel ID and is assigned by the system.

Original nexthop

Original next hop.

Qos information

QoS information.

  • 0x20000000: indicates that the apply behavior command has been run.
  • 0x40000001–0x40000FFF: indicates that the apply qos-local-id qos-local-id command has been run and the qos-local-id varies from 1 to 4095.
  • 0x80000001–0x80000007: indicates that the apply ip-precedence precedence command has been run and the precedence varies from 1 to 7.
  • 0x0: indicates that the preceding QoS configurations are not performed.

Ext-Community

Extended community attribute.

AS-path Nil

AS_Path attribute, with Nil indicating that the attribute value is null.

origin incomplete

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

MED

Multi-Exit discriminator of route.

localpref

Local priority.

pref-val

Value preferred by the protocol.

valid

The BGP route is a valid route.

internal

The BGP route is an internal route.

best

The BGP route is an optimal route.

select

The BGP route is a preferred route.

pre 255

The priority of the BGP route is 255.

invalid for tunnel unreachable

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

VPN-Instance vrf1, Router ID 10.1.1.1

The local VPN instance is vrf1, and its router ID is 10.1.1.1.

Total Number of Routes

Total number of BGP VPNv4 routes that match 192.168.4.4/32 in VPN instance vrf1.

display bgp vpnv4 routing-table statistics

Function

The display bgp vpnv4 routing-table statistics command displays statistics about BGP VPNv4 routes.

Format

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table statistics [ as-path-filter { as-path-filter-number | as-path-filter-name } | cidr | different-origin-as ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

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

display bgp vpnv4 vpn-instance vpn-instance-name routing-table statistics [ as-path-filter { as-path-filter-number | as-path-filter-name } | cidr | different-origin-as ]

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table statistics regular-expression as-regular-expression (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 vpn-instance vpn-instance-name routing-table statistics regular-expression as-regular-expression

display bgp vpnv4 { all | route-distinguisher route-distinguisher } routing-table statistics community [ community-number | aa:nn ] &<1-29> [ internet | no-advertise | no-export | no-export-subconfed ] * [ whole-match ] (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 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 vpnv4 { all | route-distinguisher route-distinguisher } routing-table statistics community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number } (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

display bgp vpnv4 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 vpnv4 vpn-instance vpn-instance-name routing-table statistics dampened

display bgp vpnv4 all routing-table peer ipv4-address { advertised-routes | received-routes [ active ] } statistics (supported only by the S5720EI, S5720HI, S6720S-EI and S6720EI)

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

Parameters

Parameter Description Value
all Displays all the statistics of BGP VPNv4 routes. -
route-distinguisher route-distinguisher Displays statistics about the BGP routes with a specified RD.
The RD formats are divided into the following types:
  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. 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 0 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.

  • IPv4-address:2-byte 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 about the BGP routes of a specified VPN instance. The value must be an existing VPN instance name.
as-path-filter Displays the routes that match the specified filter. -
as-path-filter-number Specifies the number of the matching AS-Path filter. The value 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 case-sensitive characters without spaces. The string cannot be all numerals. When double quotation marks are used around the string, spaces are allowed in the string.
cidr Displays CIDR statistics. -
different-origin-as Displays statistics about the routes that have the same destination address but different source AS numbers. -
regular-expression as-regular-expression Specifies the regular expression used to match the AS_Path information. The value is a string of 1 to 80 characters.
community Displays statistics about the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. The value is an integer that ranges from 0 to 4294967295.
aa:nn Specifies a community attribute value. Both aa and nn are integers ranging from 0 to 65535.
internet Displays statistics about the matching routes that can be sent to any peer. -
no-advertise Displays statistics about the BGP routes carrying the No-Advertise community attribute. -
no-export Displays statistics about the BGP routes carrying the No-Export community attribute. -
no-export-subconfed Displays statistics about the BGP routes carrying the No-Export-Subconfed community attribute. -
whole-match Indicates exact matching. -
community-filter Displays statistics about the routes that match a specified BGP community filter. -
basic-community-filter-number Specifies the number of a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
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.
dampened Displays the statistics of BGP dampened routes. -
active Displays statistics about the routes that have the same destination address but different source AS numbers. -
peer ipv4-address Displays statistics about routes of a specified peer. It is in dotted decimal notation.
advertised-routes Displays statistics about the routes advertised to a specified peer. -
received-routes Displays statistics about the routes received from a specified peer. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp vpnv4 routing-table statistics command to check statistics about BGP VPNv4 routes.

Example

# Display statistics about BGP VPNv4 routes.
<HUAWEI> display bgp vpnv4 all routing-table statistics
                                                                                
 Total number of routes from all PE: 2                                          
                                                                                
 VPN-Instance vpn1, Router ID 10.1.1.9:                                          
                                                                                
 Total Number of Routes: 2                                                      
Table 7-176  Description of the display bgp vpnv4 routing-table statistics command output

Item

Description

Total number of routes from all PE

Total number of VPNv4 routes

VPN-Instance vpn1

Indicating the name of VPN instance is vpn1.

Router ID 10.1.1.9

Indicating the router ID is 10.1.1.9.

Total Number of Routes

Total number of routes of the VPN instance.

Route Distinguisher

RD of the VPN instance IPv4 address family.

display bgp vpnv6 brief

Function

The display bgp vpnv6 brief command displays brief information about VPNv6 and VPN instances (IPv6 address family).

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI

Supported

S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

Format

display bgp vpnv6 { all | vpn-instance vpn-instance-name } brief

Parameters

Parameter Description Value
all Displays information about all VPNv6 and VPN instances (IPv6 address family). -
vpn-instance vpn-instance-name Specifies the name of a VPNv6 instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After the display bgp vpnv6 brief command is used to display information about VPNv6 and VPN instances (IPv6 address family), the VPN instances are displayed and arranged alphabetically by name.

Example

# Display brief information about VPNv6 and VPN instances (IPv6 address family).

<HUAWEI> display bgp vpnv6 all brief

VPNV6:
  Rd Num               Peer Num            Route Num
    2                    1                   2

VPN-Instance(IPv6-family):
  VPN-Instance Name   Peer Num            Route Num
    vrf0                 1                   2
    vrf1                 0                   0
    vrf11                0                   0
    vrf12                0                   0
    vrf13                0                   0
    vrf14                0                   0
    vrf2                 0                   20
    vrf3                 0                   20
    vrf4                 0                   24
    vrf5                 0                   24
    vrf6                 0                   0
Table 7-177  Description of the display bgp vpnv6 all brief command output

Item

Description

Rd Num

Number of RDs.

Peer Num

Number of peers.

Route Num

Number of routes.

VPN-Instance Name

Name of a VPN instance.

display bgp vpnv6 routing-table

Function

The display bgp vpnv6 routing-table command displays BGP VPNv6 routes.

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI

Supported

S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

Format

display bgp vpnv6 route-distinguisher route-distinguisher routing-table [ ipv6-address [ prefix-length ] ]

display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table [ ipv6-address [ prefix-length ] ]

display bgp vpnv6 { all | vpn-instance vpn-instance-name | route-distinguisher route-distinguisher } routing-table as-path-filter { as-path-filter-number | as-path-filter-name }

display bgp vpnv6 route-distinguisher route-distinguisher routing-table as-path-filter { as-path-filter-number | as-path-filter-name }

display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table as-path-filter { as-path-filter-number | as-path-filter-name }

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

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

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

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

display bgp vpnv6 route-distinguisher route-distinguisher routing-table different-origin-as

display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table different-origin-as

display bgp vpnv6 route-distinguisher route-distinguisher routing-table regular-expression as-regular-expression

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

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

display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address received-routes dest-ipv6-address [ prefix-length [ original-attributes ] ]

display bgp vpnv6 all routing-table peer ipv4-address received-routes dest-ipv6-address [ prefix-length ]

display bgp vpnv6 vpn-instance vpn-instance-name routing-table peer ipv6-address accepted-routes

display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time

display bgp vpnv6 all routing-table peer ipv4-address { advertised-routes [ dest-ipv6-address [ prefix-length ] ] | received-routes [ active ] }

Parameters

Parameter Description Value
all Displays statistics about all BGP VPNv6 routes. -
vpn-instance vpn-instance-name Displays the BGP routes of a specified an IPv6 address family-enabled VPN instance on the local end. The value must be an existing VPN instance name.
route-distinguisher route-distinguisher Displays the BGP routes with the specified RD.

The RD formats are divided into the following types:

  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. 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 0 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.

  • IPv4-address:2-byte 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.

ipv6-address Specifies the IPv6 address of a peer to be displayed. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the prefix length of an IPv6 address. -
as-path-filter Displays the routes that match the specified filter. -
as-path-filter-number Specifies the number of the matching AS-Path filter. The value 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 case-sensitive characters without spaces. The string cannot be all numerals.When double quotation marks are used around the string, spaces are allowed in the string.
community Displays the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. The value is an integer that ranges from 0 to 4294967295.
aa:nn Specifies the community number. A maximum of 29 community numbers can be set. -
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 matching. -
community-filter Displays the routes that match a specified BGP community filter. -
community-filter-name Specifies the name of a community filter. -
basic-community-filter-number Specifies the number of a basic community filter. -
advanced-community-filter-number Specifies the number of an advanced community filter. -
different-origin-as Displays the routes that have the same destination address but different source AS numbers. -
regular-expression as-regular-expression Specifies the regular expression used to match the AS_Path information. The value is a string of 1 to 80 characters.
peer ipv6-address Displays the BGP routes of a specified peer. -
ipv4-address Specifies the IPv4 address of the peer. The value is in dotted decimal notation.
advertised-routes Displays the routes advertised to a specified peer. -
dest-ipv6–address Specifies the destination IPv6 address. The value is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
received-routes Displays the routes received from a specified peer. -
active Displays the active routes received from a specified peer. -
original-attributes Displays the original attributes of a BGP route from a specified BGP peer before the route is filtered by the local import policy. To display such attributes, the peer keep-all-routes command must have been run. -
accepted-routes Displays the routes that are received from a neighbor and accepted by a routing policy. -
time-range start-time end-time Displays information about BGP VPNv6 routes that have undergone status flapping during the specified period. For example, when start-time is set to 0d0h5m0s and end-time is set to 0d0h10m0s, information about all BGP VPNv6 routes whose lifetime ranges from 5 to 10 minutes is displayed. In the values of start-time and end-time, d ranges from 0 to 10000, h ranges from 0 to 23, m ranges from 0 to 59, and s ranges from 0 to 59.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Information about specified routes can be displayed by specifying different parameters.

To view information about BGP VPNv6 route flapping during a specified period, you can run the display bgp vpnv6 { all | vpn-instance vpn-instance-name } routing-table time-range start-time end-time command. When service traffic is abnormal during a period of time, you can run this command to check whether route flapping occurs. When the CPU usage is high during a period of time, you can run this command to check whether a large number routes have undergone status flapping. This command allows you to find the flapping routes, which facilitates fault location.

Example

# Display all BGP VPNv6 routes.

<HUAWEI> display bgp vpnv6 all routing-table
                                                                                
                                                                                
 BGP Local router ID is 10.1.1.1                                                 
 Status codes: * - valid, > - best, d - damped,                                 
               h - history,  i - internal, s - suppressed, S - Stale            
               Origin : i - IGP, e - EGP, ? - incomplete                        
                                                                                
                                                                                
 Total number of routes from all PE: 3                                          
 Route Distinguisher: 100:1                                                     
                                                                                
                                                                                
 *>i Network  : FC00:0:0:2001::                          PrefixLen : 64         
     NextHop  : FC00:0:0:2001::1                         LocPrf    :            
     MED      : 0                                        PrefVal   : 0          
     Label    : NULL                                                            
     Path/Ogn :  ?                                                              
 *>  Network  : FC00:0:0:2001::2                         PrefixLen : 128        
     NextHop  : ::                                       LocPrf    :            
     MED      : 0                                        PrefVal   : 0          
     Label    : NULL                                                            
     Path/Ogn :  ?                                                              
 *>  Network  : FE80::                                   PrefixLen : 10         
     NextHop  : ::                                       LocPrf    :            
     MED      : 0                                        PrefVal   : 0          
     Label    : NULL                                                            
     Path/Ogn :  ?                                                              
                                                                                
 VPN-Instance whm1, Router ID 10.4.4.4 :                                                            
                                                                                
 Total Number of Routes: 3                                                      
 *>  Network  : FC00:0:0:2001::                          PrefixLen : 64         
     NextHop  : ::                                       LocPrf    :            
     MED      : 0                                        PrefVal   : 0          
     Label    : NULL                                                            
     Path/Ogn :  ?                                                              
 *>  Network  : FC00:0:0:2001::2                         PrefixLen : 128        
     NextHop  : ::                                       LocPrf    :            
     MED      : 0                                        PrefVal   : 0          
     Label    : NULL                                                            
     Path/Ogn :  ?                                                              
 *>  Network  : FE80::                                   PrefixLen : 10         
     NextHop  : ::                                       LocPrf    :            
     MED      : 0                                        PrefVal   : 0          
     Label    : NULL                                                            
     Path/Ogn :  ?                                                              
# Display information about BGP VPNv6 route flapping of a specified VPN instance during the specified period.
<HUAWEI> display bgp vpnv6 vpn-instance 1 routing-table time-range 0d5h0m0s 1d5h0m0s
BGP Local router ID is 10.1.1.1 
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete

 Route Distinguisher: 300:1 

 *>  Network  : FC00:0:0:1991::                          PrefixLen : 64     
     NextHop  : ::                                       Duration  : 16h32m17s        
     Peer     : ::                                       
     Path/Ogn : ?
 *>  Network  : FC00:0:0:2004::                          PrefixLen : 64     
     NextHop  : ::                                       Duration  : 16h34m02s        
     Peer     : ::                                       
     Path/Ogn : ?

 Route Distinguisher: 10011:1 

 *>i Network  : FC00:0:0:1998::                          PrefixLen : 32     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h38m16s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : 65410  ?
 *>i Network  : FC00:0:0:1998::                          PrefixLen : 64     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h37m01s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : ?
 *>i Network  : FC00:0:0:2001::                          PrefixLen : 64     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h47m31s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : ?
 *>i Network  : FC00:0:0:3001::                          PrefixLen : 64     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h45m40s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : 65410  ?

 VPN-Instance vpna, Router ID 10.4.4.4 :
 *>  Network  : FC00:0:0:1991::                          PrefixLen : 64     
     NextHop  : ::                                       Duration  : 16h32m17s        
     Peer     : ::                                       
     Path/Ogn : ?
 *>i Network  : FC00:0:0:1998::                          PrefixLen : 32     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h38m16s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : 65410  ?
 *>i Network  : FC00:0:0:1998::                          PrefixLen : 64     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h37m01s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : ?
 *>i Network  : FC00:0:0:2001::                          PrefixLen : 64     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h47m31s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : ?
 *>  Network  : FC00:0:0:2004::                          PrefixLen : 64     
     NextHop  : ::                                       Duration  : 16h34m02s        
     Peer     : ::                                       
     Path/Ogn : ?
 *>i Network  : FC00:0:0:3001::                          PrefixLen : 64     
     NextHop  : FC00:0:0:1::9                            Duration  : 16h45m40s        
     Peer     : 10.1.1.9                                  
     Path/Ogn : 65410  ?
Table 7-178  Description of the display bgp vpnv6 all routing-table command output

Item

Description

BGP Local router ID

ID of the local BGP router. The ID is in the same format as an IPv4 address.

Total number of routes from all PE

Total number of BGP VPNv6 routes received by the switch from its peer PEs.

Network

Destination network or host address of the route.

PrefixLen

Prefix length of the destination network or host address of the route.

NextHop

IPv6 address of the next hop.

LocPrf

Local preference of the BGP route. The default value is 100.

MED

MED of the route. The default value is 0.

PrefVal

Preferred value of the route.

Label

Label carried by the data packet destined for the destination network or host address of the route.

Duration

Route duration.

Peer

IP addresses of the peer.

Path/Ogn

AS_Path number and Origin attribute of the route.

# Display the routes of an IPv6 address family-enabled VPN instance named vpn1 on the local device.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 2
 *>i Network  : FC00:0:0:1::                             PrefixLen : 64
     NextHop  : FC00:0:0:3::1                            LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : 65410  ?
 *>i Network  : FC00:0:0:1::                             PrefixLen : 64
     NextHop  : FC00:0:0:2::1                            LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037/NULL
     Path/Ogn : ?

# Display the BGP routes with a specified destination address of an IPv6 address family-enabled VPN instance.

<HUAWEI> display bgp vpnv6 vpn-instance vrf1 routing-table fc00:0:0:1::
                                                                                
 BGP local router ID : 10.1.1.1                                                  
 Local AS number : 100                                                          
 Paths:   2 available, 1 best, 1 select                                         
 BGP routing table entry information of FC00:0:0:1::/64:                              
 Imported route.                                                                
 From: :: (0.0.0.0)                                                             
 Route Duration: 1d03h46m24s                                                    
 Direct Out-interface: Vlanif100                                                
 Original nexthop: ::                                                           
 AS-path Nil, origin incomplete, MED 0, pref-val 0, valid, local, best, select, 
pre 0                                                                           
 Advertised to such 1 peers:                                                    
    FC00:0:0:2::2                                                                     
 BGP routing table entry information of 2001::/64:                              
 From: FC00:0:0:1::1 (10.10.10.10)                                                    
 Route Duration: 02h39m43s                                                      
 Direct Out-interface: Vlanif100                                                
 Original nexthop: FC00:0:0:1::1                                                      
 AS-path 65410, origin incomplete, MED 0, pref-val 0, external, pre 255         
 Not advertised to any peer yet                                                 

# Display all BGP VPNv6 routes whose AS_Path attribute contains 65420.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table as-path-filter 1

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 VPN-Instance vpn1, Router ID 10.4.4.4 :

 Total Number of Routes: 1
     Network  : FC00:0:0:1::2001::                       PrefixLen : 64
     NextHop  : FC00:0:0:1::2001::1                      LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : 65420  ?

# Display BGP VPNv6 routes that the local switch advertises to the peer at 10.3.3.3.

<HUAWEI> display bgp vpnv6 all routing-table peer 10.3.3.3 advertised-routes

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 1

 Route Distinguisher: 100:1


 *>  Network  : FC00:0:0:1::                             PrefixLen : 64
     NextHop  : FC00:0:0:2::2                            LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    : NULL
     Path/Ogn : 65410 ?

# Display BGP VPNv6 routes that the local switch receives from the peer at 10.3.3.3.

<HUAWEI> display bgp vpnv6 all routing-table peer 10.3.3.3 received-routes


 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 1

 Route Distinguisher: 100:2


 *>i Network  : FC00:0:0:1::2002::                       PrefixLen : 64
     NextHop  : FC00:0:0:1::2001::1                      LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037
     Path/Ogn : ?

# Display all BGP VPNv6 routes that match the BGP community filter 1.

<HUAWEI> display bgp vpnv6 all routing-table community-filter 1 whole-match

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total number of routes from all PE: 2

 Route Distinguisher: 100:1


 *>  Network  : FC00:0:0:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    : NULL

 Route Distinguisher: 100:2


 *>i Network  : FC00:0:0:2002::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037

 VPN-Instance vpn1, Router ID 10.4.4.4, Router ID 10.4.4.4 :

 Total Number of Routes: 2
     Network  : FC00:0:0:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
 *>i Network  : FC00:0:0:2002::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037/NULL

# Display BGP4+ routes of the VPN instance named vpn1 and matching the BGP community filter 1.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table community-filter 1 whole-match

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 VPN-Instance vpn1 :

 Total Number of Routes: 2
     Network  : FC00:0:0:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
 *>i Network  : FC00:0:0:2002::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037/NULL 

# Display all BGP4+ routes of the VPN instance named vpn1 and matching the AS regular expression.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table regular-expression ^65420


 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 VPN-Instance vpn1, Router ID 10.4.4.4, Router ID 10.4.4.4 :
     Network  : FC00:0:0:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : 65420  ?

# Display all BGP4+ routes of the VPN instance named vpn1 that are received from the peer at FC00:0:0:2001::1.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table peer fc00:0:0:2001::1 received-routes

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 1
     Network  : FC00:0:0:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : 65410  ?

# Display BGP4+ routes sent to the peer at FC00:0:0:2001::1.

<HUAWEI> display bgp vpnv6 vpn-instance vpn1 routing-table peer fc00:0:0:2001::1 advertised-routes

 BGP Local router ID is 10.1.1.9
 Status codes: * - valid, > - best, d - damped,
               h - history,  i - internal, s - suppressed, S - Stale
               Origin : i - IGP, e - EGP, ? - incomplete


 Total Number of Routes: 1
 *>i Network  : FC00:0:0:2002::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037/NULL
     Path/Ogn : ?
# Display detailed information about the specified invalid BGP VPNv6 routes.
<HUAWEI> display bgp vpnv6 vpn-instance vrf1 routing-table fc00:0:0:2001::5
 BGP local router ID : 10.1.1.1
 Local AS number : 100

 VPN-Instance vrf1, Router ID 10.1.1.1:
 Paths:   1 available, 0 best, 0 select
 BGP routing table entry information of fc00:0:0:2001::5/128:
 Label information (Received/Applied): 1027/NULL
 From: 10.1.1.2 (10.1.1.2)
 Route Duration: 00h01m22s  
 Relay Tunnel Out-Interface: 
 Relay token: 0x0
 Original nexthop: ::FFFF:10.1.1.2
 Ext-Community:RT <100 : 100>
 AS-path Nil, origin incomplete, MED 0, localpref 100, pref-val 0, internal, pre 255, invalid for tunnel unreachable
 Not advertised to any peer yet
Table 7-179  Description of the display bgp vpnv6 routing-table command output

Item

Description

BGP local router ID

Router ID of the local BGP device. The format is the same as the IPv4 address.

Local AS number

Local AS number.

VPN-Instance vrf1, Router ID 10.1.1.1

The local VPN instance is vrf1, and its router ID is 10.1.1.1.

Paths

Information about paths of BGP routes

BGP routing table entry information of fc00:0:0:2001::5/128

The following information is about fc00:0:0:2001::5/128 routing entries.

Label information (Received/Applied)

Label information (received or sent).

From

IP address of the router that sends the route. 10.1.1.2 is the source interface IP address of the peer with which the BGP connection is established, and 10.1.1.2 is the router ID of the peer.

Route Duration

Duration of routes.

Relay Tunnel Out-Interface

Tunnel iterated outbound interface.

Relay token

Iterated token value used for MPLS forwarding that is a part of tunnel ID and is assigned by the system.

Original nexthop

Original next hop.

Ext-Community

Extended community attribute.

AS-path Nil

AS_Path attribute, with Nil indicating that the attribute value is null.

origin

Well-known mandatory property. This property defines the origin of a path and records how a route turns to a BGP route. The property has the following three values:
  • IGP: The priority of this value is the highest. The origin property of the routes that are added to the BGP routing table by using the network (BGP) command is IGP.

  • EGP: The priority of this value is second to that of IGP. The origin property of the routes imported from EGP is EGP.

  • Incomplete: The priority of this value is the lowest. The value indicates the origin of a route is unknown. The origin property of the routes that are added to the BGP routing table by using the import-route (BGP) command is Incomplete.

MED

Multi-Exit discriminator of route.

localpref

Local priority.

pref-val

Preferred value of the protocol.

internal

The BGP route is an internal route.

pre 255

The priority of the BGP route is 255.

invalid for tunnel unreachable

Reason why a route is invalid:

  • invalid for route-policy not pass: The route does not match the route-policy.

  • invalid for supernet route: The route is a supernet route.

  • invalid for IP unreachable: The route fails to be iterated to another route.

  • invalid for supernet route not advertise: No supernet routes are advertised.

  • invalid for supernet label route not advertise: No supernet labeled routes are advertised.

  • invalid for next-hop unreachable: The next-hop IP address is unreachable.

  • invalid for tunnel unreachable: The route fails to be iterated to a tunnel.

Not advertised to any peer yet

The BGP route has not been advertised to any peer yet.

display bgp vpnv6 routing-table statistics

Function

The display bgp vpnv6 routing-table statistics command displays statistics about BGP VPNv6 routes.

Product

Support

S6720EI, S6720S-EI, S5720HI, S5720EI

Supported

S6720SI, S6720S-SI, S5730SI, S5730S-EI, S5720SI, S5720S-SI, S6720LI, S6720S-LI, S5720LI, S5720S-LI, S5710-X-LI, S5700LI, S5700S-LI, S2750EI, S2720EI, S1720GFR, S1720GW-E, S1720GWR-E, S1720X-E, S1720GW, S1720GWR, S1720X

Not supported

Format

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

display bgp vpnv6 { all | 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 route-distinguisher route-distinguisher routing-table statistics regular-expression as-regular-expression

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

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

display bgp vpnv6 { all | 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 route-distinguisher route-distinguisher routing-table statistics community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

display bgp vpnv6 { all | 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 all routing-table peer ipv4-address { advertised-routes | received-routes [ active ] } statistics

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

Parameters

Parameter Description Value
all Displays statistics about all BGP VPNv6 routes. -
route-distinguisher route-distinguisher Displays BGP routes with the specified RD.
The RD formats are divided into the following types:
  • 2-byte AS number:4-byte 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 the user-defined number cannot be 0s at the same time. 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 0 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.

  • IPv4-address:2-byte 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 about the BGP routes of a specified VPN instance. The value must be an existing VPN instance name.
as-path-filter Displays the routes that match the specified filter. -
as-path-filter-number Specifies the number of the matching AS_Path filter. The value 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 case-sensitive characters without spaces. The string cannot be all numerals. When double quotation marks are used around the string, spaces are allowed in the string.
different-origin-as Displays statistics about the routes that have the same destination address but different source AS numbers. -
regular-expression as-regular-expression Specifies the regular expression used to match the AS_Path information. The value is a string of 1 to 80 characters.
community Displays statistics about the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. The value is an integer that ranges from 0 to 4294967295.
aa:nn Specifies the community number. Both aa and nn are integers ranging from 0 to 65535.
internet Displays statistics about the BGP routes carrying the Internet community attribute. -
no-advertise Displays statistics about the BGP routes carrying the No-Advertise community attribute. -
no-export Displays statistics about the BGP routes carrying the No-Export community attribute. -
no-export-subconfed Displays statistics about the BGP routes carrying the No-Export-Subconfed community attribute. -
whole-match Indicates exact matching. -
community-filter Displays statistics about the routes that match a specified BGP community filter. -
community-filter-name Specifies the name of a community filter. The name is a string of 1 to 51 case-sensitive characters without spaces.
basic-community-filter-number Specifies the number of a basic community filter. The value is an integer that ranges from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. The value is an integer that ranges from 100 to 199.
peer ipv6-address Displays statistics about the BGP routes of a specified peer. -
advertised-routes Displays statistics about the routes advertised to a specified peer. -
received-routes Displays statistics about the routes received from a specified peer. -
active Specifies the number of active routes. -
peer ipv4-address Displays the routing information for the specified BGP peer. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display bgp vpnv6 routing-table statistics command to check statistics about BGP VPNv6 routes.

Example

# Display statistics about BGP VPNv6 routes on the local device.
<HUAWEI> 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 about the routes of an IPv6 address family-enabled VPN instance named vpn1 on the local device.

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

 Total Number of Routes: 5

# Display statistics about the BGP VPNv6 routes received from peer 10.1.1.1.

<HUAWEI> display bgp vpnv6 all routing-table peer 10.1.1.1 received-routes statistics
  Received routes total: 1

# Display statistics about the VPNv6 routes that have the Internet community attribute and specified RD on the local device.

<HUAWEI> 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 about the BGP VPNv6 routes that match a specified community filter on the local device.

<HUAWEI> 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 about the BGP VPNv6 routes that match a specified AS_Path regular expression.

<HUAWEI> 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 routes sent by the local device to peer 2000::1 of the IPv6 VPN instance named vpn1.

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

# Display statistics about the IPv6 routes sent by the local device to peer 2000::1 in a VPN instance named vpn1.

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

  Default originated : 0

display default-parameter bgp

Function

The display default-parameter bgp command displays default configurations in BGP initialization.

Format

display default-parameter bgp

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display default-parameter bgp command to check default configurations in BGP initialization.

Example

# Display default configurations in BGP initialization.

<HUAWEI> display default-parameter bgp
BGP version                 : 4
EBGP preference             : 255
IBGP preference             : 255
Local preference            : 255
BGP connect-retry           : 32s
BGP holdtime                : 180s
BGP keepAlive               : 60s
EBGP route-update-interval  : 30s
IBGP route-update-interval  : 15s
Default local-preference    : 100
Default MED                 : 0
IPv4-family unicast         : enable
EBGP-interface-sensitive    : enable
Reflect between-clients     : enable
Check-first-as              : enable
Synchronization             : disable
Nexthop-resolved rules    :                                                    
     IPv4-family           : unicast(ip)                                        
                             multicast(ip)                                      
                             vpn-instance(tunnel)                               
     IPv6-family           : unicast(ip)                                        
                             vpn-instance(tunnel)                               
                             vpnv6(ip)

 Routing-table limit max-alarm upper limit : 100                                                                                    
 Routing-table limit max-alarm lower limit : 95                                                                                     
 Routing-table limit threshold-alarm upper limit : 80                                                                               
 Routing-table limit threshold-alarm lower limit : 70
Table 7-180  Description of the display default-parameter bgp command output

Item

Description

BGP version

BGP version number.

EBGP preference

EBGP route preference.

IBGP preference

IBGP route preference.

Local preference

Local route preference.

BGP connect-retry

BGP ConnectRetry interval.

BGP holdtime

BGP holdtime interval.

BGP keepAlive

BGP keepalive interval.

EBGP route-update-interval

Minimum interval for sending EBGP Update messages.

IBGP route-update-interval

Minimum interval for sending IBGP Update messages.

Default local-preference

Local preference of a BGP route.

Default MED

MED of a BGP route.

IPv4-family unicast

BGP-IPv4 unicast address family view.

EBGP-interface-sensitive

The BGP session between the directly connected peer and an interface is deleted immediately when the interface becomes Down.

Reflect between-clients

Route reflection between clients.

Check-first-as

The first AS number in the AS_Path list that is carried in the Update message sent by the EBGP peer is checked.

Synchronization

Synchronization between IBGP and IGP.

Nexthop-resolved rules

Default iteration mode of preferred routes.

Routing-table limit max-alarm upper limit

Upper alarm threshold for the number of BGP routes.

Routing-table limit max-alarm lower limit

Lower alarm threshold for the number of BGP routes.

Routing-table limit threshold-alarm upper limit

Default upper alarm threshold for the number of BGP routes.

Routing-table limit threshold-alarm lower limit

Default lower alarm threshold for the number of BGP routes.

display mbgp routing-table

Function

The display mbgp routing-table command displays MBGP routes.

Format

display mbgp routing-table [ ipv4-address [ mask | mask-length ] ] [ verbose ]

Parameters

Parameter Description Value
ipv4-address Specifies the destination IP address in dotted decimal notation. -
mask | mask-length Specifies mask in dotted decimal notation or mask-length. -
verbose Displays detailed information about active and inactive routes. If the parameter verbose is not specified, detailed information about active routes is displayed. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can specify different parameters to view the specific routing information.

Example

# Display information about all MBGP routes.

<HUAWEI> display mbgp routing-table
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Routing Tables: MBGP
         Destinations : 1        Routes : 1
 
Destination/Mask  Proto  Pre  Cost  Flags  NextHop  Interface
 
  10.5.5.1/32     MBGP   255     0     R   10.1.1.1  Vlanif10
Table 7-181  Description of the display mbgp routing-table command output

Item

Description

Route Flags

Indicates the route flag:

  • R: indicates an iterated route.

  • D: indicates that the route is downloaded to the FIB table.

Routing Tables: MBGP

Indicates an MBGP routing table.

Destinations

Indicates the total number of destination networks or hosts.

Routes

Indicates the total number of routes.

Destination/Mask

Indicates the address and mask length of the destination network or host.

Proto

Indicates the protocol through which routes are learned.

Pre

Indicates the preference.

Cost

Indicates the route cost.

Flags

Indicates the route flag, that is, Route Flags in the header of the routing table.

NextHop

Indicates the next hop.

Interface

Indicates the outbound interface through which the next hop is reachable.

# Display the detailed information of the specified routes.

<HUAWEI> display mbgp routing-table 5.5.5.1 verbose
Routing Table : MBGP
Summary Count : 1

  Destination: 10.5.5.1/32
     Protocol: MBGP              Process ID: 0
   Preference: 255                     Cost: 0
      NextHop: 10.1.1.1           Neighbour: 0.0.0.0
        State: Active Adv GotQ          Age: 00h43m25s
          Tag: 0                   Priority: 0
        Label: NULL                 QoSInfo: 0x0
 RelayNextHop: 0.0.0.0            Interface: Vlanif 10
     TunnelID: 0x0                    Flags: R
Table 7-182  Description of the display mbgp routing-table verbose command output

Item

Description

Destination

Indicates the address and mask length of the destination network or host.

Protocol

Indicates the routing protocol.

Process ID

Indicates the process ID of the routing protocol.

Preference

Indicates the preference of the route.

Cost

Indicates the route cost.

NextHop

Indicates the next hop.

Neighbour

Indicates the neighbor.

State

Indicates the status of routes:

  • Active: indicates active routes.

  • Invalid: indicates invalid routes.

  • Inactive: indicates inactive routes.

  • NoAdv: indicates the routes that cannot be advertised.

  • Adv: indicates the routes that can be advertised.

  • Del: indicates the routes to be deleted.

  • GotQ: indicates the route that finds the next hop and outbound interface or the route that finds the tunnel.

  • WaitQ: indicates the route that does not find the next hop or outbound interface or the route that does not find the tunnel.

  • Stale: indicates the routes with the stale flag. The routes are used in GR.

Age

Indicates the lifetime of the route.

Tag

Indicates the administrative tag for routes.

Priority

Indicates the priority.

Label

Indicates the allocated MPLS label.

QoSInfo

Indicates QoS information.

RelayNextHop

Indicates the relay next hop.

Interface

Indicates the outbound interface through which the next hop is reachable.

Tunnel ID

Indicates the tunnel ID.

Flags

Indicates the route flag, that is, Route Flags in the header of the routing table.

display mbgp routing-table statistics

Function

The display mbgp routing-table statistics command displays the statistics of the MBGP routes.

Format

display mbgp routing-table statistics

Parameters

None.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Route statistics include:
  • Total number of routes that are added or deleted by the protocol
  • Number of active routes or inactive routes that are labeled for deletion but are not actually deleted

Example

# Display statistics of the MBGP routing table.

<HUAWEI> display mbgp routing-table statistics
Proto     total      active      added        deleted      freed
          routes     routes      routes       routes       routes
MBGP      6          4           10           0            0
Table 7-183  Description of the display mbgp routing-table statistics command output

Item

Description

Proto

Routing protocol

total routes

Total number of routes in the routing table

active routes

Number of active routes in the routing table

added routes

Number of active and inactive routes added in the routing table

deleted routes

Number of routes to be deleted from the routing table

freed routes

Number of routes that are permanently deleted from the routing table

display snmp-agent trap feature-name bgp all

Function

The display snmp-agent trap feature-name bgp all command displays all the traps related to the BGP module.

Format

display snmp-agent trap feature-name bgp all

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display snmp-agent trap feature-name bgp all command is used to display the status of all the traps related to the BGP module.

To change the status of the traps related to the BGP module, run the snmp-agent trap enable feature-name bgp command.