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

S7700 and S9700 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).
IP Routing Compatible Commands

IP Routing Compatible Commands

apply as-path (upgrade-compatible command)

Function

Using the apply as-path command, you can replace the original AS_Path attribute or add the specified AS number to the original AS_Path attribute.

By default, the original AS_Path attribute is not replaced and no AS number is added to the original AS_Path attribute.

Format

apply as-path { as-number-plain | as-number-dot } &<1-10>

Parameters

Parameter

Description

Value

as-number-plain

Specifies a integral AS number to be added to the AS_Path list or to replace the existing AS_Path list. A maximum of 10 AS numbers can be specified in one command.

The value is an integer ranging from 1 to 4294967295.

as-number-dot

Specifies an AS number in dotted notation to be added to the AS_Path list or to replace the existing AS_Path list. A maximum of 10 AS numbers can be specified in one command.

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

Route-policy view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

Example

# Change the AS number in the original AS_Path attribute to 200.

<HUAWEI> system-view
[HUAWEI] route-policy policy permit node 10
[HUAWEI-route-policy] apply as-path 200

apply ipv6 fib-policy (upgrade-compatible command)

Function

The apply ipv6 fib-policy command configures an IPv6 FIB policy on an LPU.

The undo apply ipv6 fib-policy command deletes an IPv6 FIB policy from a specified LPU.

By default, no IPv6 FIB policy is configured.

Format

apply ipv6 fib-policy { vpn6-instance vpn-instance-name &<1-6> } slot slot-id

undo apply ipv6 fib-policy { vpn6-instance vpn-instance-name &<1-6> } slot slot-id

Parameters

Parameter Description Value
vpn6-instance vpn-instance-name Specifies the name of an IPv6 VPN instance. The value is a string of 1 to 31 case-sensitive characters. You can specify a maximum of six IPv6 VPN instance names each time you use the apply ipv6 fib-policy command. You can configure IPv6 FIB policies for a maximum of 16 VPN instances on each LPU. Ensure that VPN instances have been created before running the apply ipv6 fib-policy command.
slot slot-id Specifies the slot ID of an LPU on which an IPv6 FIB policy needs to be configured. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

After running the apply ipv6 fib-policy command, update the IPv6 FIB entries on the LPU to make the configuration take effect.

Example

# Configure the LPU in slot 2 to receive only IPv6 private forwarding entries delivered by the MPU.

<HUAWEI> system-view
[HUAWEI] apply ipv6 fib-policy vpn6-instance vpna slot 2

balance (upgrade-compatible command)

Function

The balance command configures the maximum number of equal-cost routes.

By default, the maximum number of equal-cost routes is 1, and load balancing is not implemented.

Format

balance number

Parameters

Parameter Description Value
number Specifies the maximum number of equal-cost routes in the BGP routing table. The value is an integer ranging from 1 to 32.

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 balance command is run, multiple BGP equal-cost routes will implement load balancing, improving the usage of network resources.

After BGP load balancing is configured, the routes that meet the following conditions can carry out load balancing as equal-cost routes.

  • Original next-hop addresses of these routes are different.

  • PrefVal values are the same.

  • Local_Pref attributes are the same.

  • All BGP routes are summarized or non-summarized routes.

  • Origin attributes (IGP, EGP, or incomplete) are the same.

  • MED values are the same.

  • All BGP routes are EBGP or IBGP routes.

  • The IGP metric values within an AS are the same.

  • AS_Path attributes are the same.

Example

# Set two equal-cost routes to a specified destination.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv4-family unicast
[HUAWEI-bgp-af-ipv4] balance 2

bestroute as-path-neglect (upgrade-compatible command)

Function

Using the bestroute as-path-neglect command, you can configure BGP to ignore the AS_Path attribute when BGP selects the optimal route.

Using the undo bestroute as-path-neglect command, you can restore the default setting.

By default, BGP uses the AS_Path attribute to select the optimal route.

Format

bestroute as-path-neglect

undo bestroute as-path-neglect

Parameters

None

Views

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

Default Level

2: Configuration level

Usage Guidelines

After this command is run, BGP does not compare the lengths of AS_Paths. By default, the AS_Path with the smallest length is preferred.

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

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-neglect

bgp-rib-only (upgrade-compatible command)

Function

The bgp-rib-only command prohibits BGP routes from being added to the IP routing table.

By default, the preferred BGP routes are added to the IP routing table.

Format

bgp-rib-only [ route-policy route-policy-name ]

Parameters

Parameter Description Value
route-policy route-policy-name Specifies the name of a routing policy. The name must be unique. The value is a string of 1 to 40 case-sensitive characters, with spaces not supported.

Views

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

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

This command has the same function as the routing-table rib-only command.

Example

# Configure a routing policy named ribonly to prohibit routes matching the policy from being added to the IP routing table.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] bgp-rib-only route-policy ribonly

dampening (upgrade-compatible command)

Function

Using the dampening command, you can enable BGP route damping or modify the parameters of BGP route damping.

By default, route damping is disabled.

Format

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

Parameters

Parameter

Description

Value

half-life-reach

Specifies the half life of a reachable route.

The value ranges from 1 to 45, in minutes. The default value is 15.

half-life-unreach

Specifies the half life of an unreachable route.

The value ranges from 1 to 45, in minutes. The default value is 15.

reuse

Specifies the unsuppression threshold of routes. When the penalty value becomes smaller than the unsuppression threshold, the routes can be used again.

The value ranges from 1 to 20000. The default value is 750.

suppress

Specifies the suppression threshold of routes. When the penalty value exceeds the suppression threshold, routes are suppressed.

The value ranges from 1 to 20000 and must be greater than the value of reuse. The default value is 2000.

ceiling

Specifies the upper limit of the penalty value.

The value ranges from 1001 to 20000 and must be greater than the value of suppress. The default value is 16000.

route-policy route-policy-name

Specifies the name of a routing policy.

The value is a string of 1 to 40 characters.

Views

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

Default Level

2: Configuration level

Usage Guidelines

The command is applied to EBGP routes.

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

Example

# Enable BGP route dampening and modify the parameters of BGP route damping.

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

display bgp group (upgrade-compatible command)

Function

Using the display bgp group command, you can display the peer group.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name group [ group-name ]

Parameters

Parameter Description Value
group-name Specifies the 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.
vpnv6 Displays information about BGP VPNv6 peer groups. -
vpn6-instance vpn6-instance-name Specifies the name of the IPv6 VPN instance. The value is a string of 1 to 31 case-sensitive characters without spaces.

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 peer groups is displayed.

Example

# Display information about all peer groups of the IPv6 VPN instance named vpn6 on the local switch.

<HUAWEI> display bgp vpnv6 vpn6-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 the peer group named g1 of the IPv6 VPN instance named vpn6 on the local switch.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn6 group g1

BGP peer-group: g1
 Remote AS: 65410
 Type : external
 Configured hold timer value: 180
 Keepalive timer value: 60
 Minimum route advertisement interval is 30 seconds
 PeerSession Members:
   FC00:0:0: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

display bgp network (upgrade-compatible command)

Function

Using the display bgp network command, you can view the routes to be advertised by BGP through the network command.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name network

Parameters

Parameter Description Value
vpn6 Displays the VPNv6 routes that are advertised through the network command. -
vpn6-instance vpn6-instance-name Displays information about the routes advertised by the specified IPv6 VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

This command is used to display all the configurations of the network command in the specified address family view. Routes can be imported and then advertised by BGP 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 routes of the IPv6 VPN instance named vpn1 advertised by BGP through the network command.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 network

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

  2000::           100               policy1

display bgp paths (upgrade-compatible command)

Function

Using the display bgp paths command, you can view the path attributes of BGP.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name paths [ as-regular-expression ]

Parameters

Parameter Description Value
as-regular-expression Displays the regular express of the matching AS-Path. The name is a string of 1 to 80 characters.
vpnv6 Displays the path attributes of BGP VPNv6. -
vpn6-instance vpn6-instance-name Displays the AS-Path of the specified VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display information about BGP4+ paths of IPv6 VPN instance named vpn1.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 paths

Total routes of vpn6-instance vpn1: 4
Total Number of Paths: 4

    Address       Refcount  MED         Path/Origin
    0x50EEF20     1         0            ?
    0x50EEEB8     1         0            ?
    0x50EEF88     1                     i
    0x50EF0C0     1         0           65410?

# Display the BGP4+ paths, including AS_Path 65420, of IPv6 VPN instance named vpn1.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 paths 65420*

Total routes of vpn6-instance vpn1: 1
Total Number of Paths: 1

    Address       Refcount  MED         Path/Origin
    0x659D4A8     1         0           65420?

display bgp peer (upgrade-compatible command)

Function

Using the display bgp peer command, you can display the BGP peers.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name peer [ { group-name | ipv6-address } log-info | [ ipv6-address ] verbose ]

Parameters

Parameter Description Value
log-info Displays the log of the peer. -
verbose Displays the detailed information of the peer. -
ipv6-address Specifies the address of the IPv6 peer. The prefix is a 128-bit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
vpnv6 Displays information about BGP VPNv6 peers. -
vpn6-instance vpn6-instance-name Displays the peers of IPv6 VPN instance. It is a string of 1 to 31 case-sensitive characters without any spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display log information about BGP peer groups of the IPv6 VPN instance.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 peer g1 log-info

display bgp routing-table dampened (upgrade-compatible command)

Function

Using the display bgp routing-table dampened command, you can display BGP dampened routes.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table [ statistics ] dampened

Parameters

Parameter Description Value
statistics Displays the statistics of dampened routes. -
vpnv6 Displays BGP routes of VPNv6. -
vpn6-instance vpn6-instance-name Specifies the name of the IPv6 VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display dampened IPv6 routes in the VPNv6 BGP routing table.
<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table dampened

display bgp routing-table dampening parameter (upgrade-compatible command)

Function

Using the display bgp routing-table dampening parameter command, you can display BGP route dampening parameters.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table dampening parameter

Parameters

Parameter Description Value
vpnv6 Displays BGP route dampening parameters of VPNv6. -
vpn6-instance vpn6-instance-name Specifies route dampening parameters of the IPv6 VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display BGP route dampening parameters of specified IPv6 VPN instance named vpn1.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table dampening parameter

display bgp routing-table flap-info (upgrade-compatible command)

Function

Using the display bgp routing-table flap-info command, you can view information about flapping BGP routes.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table flap-info [ regular-expression as-regular-expression ]

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

Parameters

Parameter Description Value
regular-expression as-regular-expression Displays the statistics of the route flapping that matches the AS-Path regular expression. The value is a string of 1 to 80 characters.
as-path-filter Displays the statistics of the route flapping that matches the specified AS-Path filter. -
as-path-filter-number Specifies the number of the matching AS-Path filter. The value is an integer ranging from 1 to 256.
network-address Displays the network address related to the dampening information. The value is in dotted decimal notation.
longer-match Matches according to the mask longer than the specified length. -
prefix-length Specifies the length of the prefix. The value is an integer ranging from 0 to 128. If ::0 less-equal 128 is used, it indicates that all the IPv6 addresses are matched.
vpnv6 Displays statistics of BGP route flapping of the VPNv6. -
vpn6-instance vpn6-instance-name Specifies statistics of route flapping of the specified IPv6 VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display statistics of the BGP4+ route flapping of IPv6 VPN instance named vpn1.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table flap-info

display bgp routing-table label (upgrade-compatible command)

Function

Using the display bgp routing-table label command, you can display the labeled routes in the BGP routing table.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table [ statistics ] label

Parameters

Parameter Description Value
statistics Indicates the statistics of the labeled routes. -
vpnv6 Displays the labeled route of VPNv6. -
vpn6-instance vpn6-instance-name Specifies the name of a IPv6 VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display the BGP4+ labeled routes of the IPv6 VPN instance named vpna.

<HUAWEI> display bgp vpnv6 vpn6-instance vpna routing-table label

display bgp update-peer-group (upgrade-compatible command)

Function

Using the display bgp update-peer-group command, you can view information about BGP update-groups.

Format

display bgp vpnv6 { vpn6-instance vpn6-instance-name } update-peer-group [ index update-group-index ]

Parameters

Parameter Description Value
vpnv6 Displays information about BGP VPNv6 update-groups. -
vpn6-instance vpn6-instance-name Displays information about BGP update-groups in the specified IPv6 VPN instance. The value must be an existing VPN instance name.
index update-group-index Specifies the index of an update group.

The value is an integer ranging from 0 to 65535.

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.

Example

# Display information about the BGP update-group with the index being 0.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 update-peer-group index 0

display bgp vpnv6 brief (upgrade-compatible command)

Function

The display bgp vpnv6 brief command displays brief information about IPv6 VPN instances.

Format

display bgp vpnv6 vpn6-instance vpn-instance-name brief

Parameters

Parameter Description Value
vpn6-instance vpn-instance-name Specifies the name of a VPNv6 instance. The value is a string of 1 to 31 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After the display bgp vpnv6 brief command is used to display information about VPNv6 instances, the VPNv6 instances are displayed and arranged alphabetically by name.

Example

# Display brief information about VPNv6 and all IPv6 VPN instances.

<HUAWEI> display bgp vpnv6 vpn6-instance brief
                                                                                                                                    
VPN-Instance(IPv6-family):                                                                                                          
  VPN-Instance Name   Peer Num            Route Num                                                                                 
    vpna                 0                   0            
Table 19-5  Description of the display bgp vpnv6 brief command output

Item

Description

Peer Num

Number of peers.

Route Num

Number of routes.

VPN-Instance Name

Name of a VPN instance.

display bgp vpnv6 vpn6-instance brief (upgrade-compatible command)

Function

The display bgp vpnv6 vpn6-instance brief command displays brief information about IPv6 VPN instances.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name brief

Parameters

Parameter Description Value
vpn6-instance-name Specifies the name of a IPv6 VPNv6 instance. The value is a string of 1 to 31 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After the display bgp vpnv6 vpn6-instance brief command is used to display information about VPNv6 instances, the VPNv6 instances are displayed and arranged alphabetically by name.

Example

# Display brief information about VPNv6 and all IPv6 VPN instances.

<HUAWEI> display bgp vpnv6 vpn6-instance vrf0 brief

VPN-Instance(IPv6-family):
  VPN-Instance Name   Peer Num            Route Num
    vrf0                 1                   2
Table 19-6  Description of the display bgp vpnv6 vpn6-instance brief command output

Item

Description

Peer Num

Number of peers.

Route Num

Number of routes.

VPN-Instance Name

Name of a VPN instance.

display bgp vpnv6 vpn6-instance routing-table (upgrade-compatible command)

Function

The display bgp vpnv6 vpn6-instance routing-table command displays BGP VPNv6 routes.

Format

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table [ ipv6-address [ prefix-length ] ]

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table as-path-filter { as-path-filter-number | as-path-filter-name }

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

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

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table different-origin-as

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table regular-expression as-regular-expression

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table peer ipv6-address { advertised-routes [ ipv6-address [ prefix-length [ longer-prefixes ] ] ] | received-routes [ active ] }

Parameters

Parameter Description Value
vpn6-instance Displays the BGP routes of a specified an IPv6 address family-enabled VPN instance on the local end. The value is a string of 1 to 31 case-sensitive characters without spaces.
route-distinguisher route-distinguisher Displays the BGP routes with the specified RD. -
ipv6-address Specifies the IPv6 address of a peer to be displayed. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
prefix-length Specifies the prefix length of an IPv6 address. The value is an integer that ranges from 0 to 128.
as-path-filter as-path-filter-number Specifies the number of an AS_Path filter. The value of as-path-filter-number 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 case-sensitive.
community Displays the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. It is an integer ranging from 0 to 4294967295.
aa:nn Specifies the community number. 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. The name is a string of 1 to 51 characters without any space. It is case-sensitive.
basic-community-filter-number Specifies the number of a basic community filter. It is an integer ranging from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. It is an integer ranging from 100 to 199.
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. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
advertised-routes Displays the routes advertised to a specified peer. -
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. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

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

Example

# Display the routes of an IPv6 address family-enabled VPN instance named vpn1 on the local device.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table

 BGP Local router ID is 1.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:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : 65410  ?
 *>i Network  : FC00:0:0:2002::                          PrefixLen : 64
     NextHop  : ::FFFF:3.3.3.9                           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 vpn6-instance vrf1 routing-table FC00:0:0:2001::
                                                                                
 BGP local router ID : 1.1.1.1                                                  
 Local AS number : 100                                                          
 Paths:   2 available, 1 best, 1 select                                         
 BGP routing table entry information of FC00:0:0:2001::/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:2001::1                                                                     
 BGP routing table entry information of FC00:0:0:2001::/64:                              
 From: FC00:0:0:2001::1 (10.10.10.10)                                                    
 Route Duration: 02h39m43s                                                      
 Direct Out-interface: Vlanif100                                                
 Original nexthop: FC00:0:0:2001::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 vpn6-instance vpn1 routing-table as-path-filter 1

 BGP Local router ID is 1.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: 1
     Network  : FC00:0:0:2001::                          PrefixLen : 64
     NextHop  : FC00:0:0:2001::1                         LocPrf    :
     MED      : 0                                        PrefVal   : 0
     Label    :
     Path/Ogn : 65420  ?

# Display BGP4+ routes of the VPN instance named vpn1 whose AS path attribute contains 65420.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table community-filter 1 whole-match

 BGP Local router ID is 1.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  : ::FFFF:3.3.3.9                           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 vpn6-instance vpn1 routing-table community-filter 1 whole-match

 BGP Local router ID is 1.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  : ::FFFF:3.3.3.9                           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 vpn6-instance vpn1 routing-table regular-expression ^65420


 BGP Local router ID is 1.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 :
     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 2001::1.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table peer FC00:0:0:2001::1 received-routes

 BGP Local router ID is 1.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 2001::1.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table peer FC00:0:0:2001::1 advertised-routes

 BGP Local router ID is 1.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  : ::FFFF:3.3.3.9                           LocPrf    : 100
     MED      : 0                                        PrefVal   : 0
     Label    : 1037/NULL
     Path/Ogn : ?
Table 19-7  Description of the display bgp vpnv6 vpn6-instance 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.

Local AS Number Local AS number.
BGP routing table entry information of Information about a specified BGP routing entry.
From IPv6 address of the route originator.
Route Duration Route duration.
Original nexthop Original next hop.
AS-path AS_Path attribute.

Nil indicates that the attribute value is null.

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 command).

MED MED of a route.

The MED is used to identify the optimal route for the traffic entering an AS. The route with the smallest MED is selected as the optimal route if the other attributes of the routes are the same.

pref-val Preferred value.
valid The BGP route is a valid route.
external The BGP route is a external route.
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.
Not advertised to any peer yet The BGP route has not been advertised to any peer.

display bgp vpnv6 vpn6-instance routing-table statistics (upgrade-compatible command)

Function

The display bgp vpnv6 vpn6-instance routing-table statistics command displays statistics about BGP VPNv6 routes.

Format

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

display bgp vpnv6 vpn6-instance vpn6-instance-name routing-table statistics regular-expression as-regular-expression

display bgp vpnv6 vpn6-instance vpn6-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 vpn6-instance vpn6-instance-name routing-table statistics community-filter { { community-filter-name | basic-community-filter-number } [ whole-match ] | advanced-community-filter-number }

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

Parameters

Parameter Description Value
vpn6-instance-name Displays statistics about the BGP routes of a specified VPN instance. It is a string of 1 to 31 case-sensitive characters without any spaces.
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 statistics about the routes carrying the specified BGP community attribute in the routing table. -
community-number Specifies the community number. It is an integer ranging from 0 to 4294967295.
aa:nn Specifies the community number. Both aa and nn are integers ranging from 0 to 65535.
internet Displays 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 characters without any space. It is case-sensitive.
basic-community-filter-number Specifies the number of a basic community filter. It is an integer ranging from 1 to 99.
advanced-community-filter-number Specifies the number of an advanced community filter. It is an integer ranging from 100 to 199.
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.
active Specifies the number of active routes. -
peer ipv6-address Displays statistics about the BGP routes of a specified peer. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
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

None

Example

# Display statistics about the routes of an IPv6 address family-enabled VPN instance named vpn1 on the local device.

<HUAWEI> display bgp vpnv6 vpn6-instance vpn1 routing-table statistics

 Total Number of Routes: 5

# 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 vpn6-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 vpn6-instance vpn1 routing-table peer 2000::1 advertised-routes statistics
  Advertised routes total: 2

  Default originated : 0

display ipv6 fib (upgrade-compatible command)

Function

The display ipv6 fib command displays FIB entries on the device.

Format

display ipv6 fib [ slot-id ] vpn6-instance vpn-instance-name statistics

display ipv6 fib [ slot-id ] vpn6-instance vpn-instance-name [ ipv6-address [ prefix-length ] ] [ verbose ]

display ipv6 fib [ slot-id ] vpn6-instance vpn-instance-name verbose statistics

Parameters

Parameter Description Value
slot-id Specifies the slot ID of the working LPU. -
ipv6-address Specifies the prefix of an IPv6 address. The value is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.
statistics Displays the summary of FIB entries. -
vpn-instance vpn-instance-name Displays FIB entries of the specified VPN instance. The value is a string of 1 to 31 case-sensitive characters.
prefix-length Specifies the prefix length of an IPv6 address. The value is an integer that ranges from 1 to 128.
verbose Displays detailed information about FIB entries. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

<HUAWEI> display ipv6 fib vpn6-instance vpna

display ipv6 nexthop-indirection (upgrade-compatible command)

Function

The display ipv6 nexthop-indirection command displays information about the next-hop IPv6 VPN instance iterated control block.

Format

display ipv6 nexthop-indirection vpn6-instance vpn6-instance-name [ nexthop nexthop-ipv6-address | indirectid indirectid ]

Parameters

Parameter Description Value
vpn6-instance vpn6-instance-name Displays next-hop indirect information about a specified IPv6 VPN instance. The value is a string of 1 to 31 case-sensitive characters, spaces not supported.
nexthop nexthop-ipv6-address Specifies the next-hop IPv6 address. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
indirectid indirectid Specifies the keyword value of the next-hop indirection. The value ranges from 0 to FFFFFFFF, in hexadecimal notation.

Views

Diagnostic view

Default Level

3: Management level

Usage Guidelines

None.

Example

# Display information about the IPv6 VPN instance named vpna iterated control block.

<HUAWEI> system-view
[HUAWEI] diagnose
[HUAWEI-diagnose] display ipv6 nexthop-indirection vpn6-instance vpna indirectid 29

display ipv6 routing-table limit (upgrade-compatible command)

Function

The display ipv6 routing-table limit command displays limits on the numbers of routes and prefixes of the IPv6 VPN instance.

Format

display ipv6 routing-table limit { all-vpn6-instance | vpn6-instance vpn-instance-name }

Parameters

Parameter Description Value
all-vpn-instance Indicates all IPv6 VPN instances. -
vpn-instance vpn-instance-name Specifies the name of an IPv6 VPN instance. The value must be an existing VPN instance name.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display limits on the numbers of routes and prefixes of all IPv6 VPN instances.

<HUAWEI> display ipv6 routing-table limit all-vpn6-instance

Limit-Object     Limit-Type    Upper-Limit     Warning     Current    Log-Interval
----------------------------------------------------------------------------------
IPv6 VPN Instance Name: VPN1
Route            Simply-Alert   5000           -            4223      5
Prefix           Alert-Percent  1000           800          760       5
-----------------------------------------------------------------------------------
IPv6 VPN Instance Name: VPN1234567890123456789123456789
Route            Alert-Percent  2000           1000         823       5
Prefix           Default        -              -            760       5
Table 19-8  Description of the display ipv6 routing-table limit command output

Item

Description

Limit-Object

Indicates the object whose total number is limited:
  • Prefix

  • Route

Limit-Type

Indicates the limit mode for the routes and prefixes in the current routing table:
  • Simply-Alert: indicates that only alarms are generated after the number of routes or prefixes exceeds the upper limit.

  • Alert-Percent: indicates the percentage of the alarm threshold of routes.

  • Default: indicates that the number of routes or prefixes is not limited by default.

Upper-Limit

Indicates the upper limit of routes or prefixes in the current routing table.

Warning

Indicates the alarm threshold of routes or prefixes in the current routing table.

Current

Indicates the number of routes or prefixes in the current routing table.

Log-Interval

Indicates the frequency of displaying logs when the number of routes or prefixes in the current routing table exceeds the upper limit, in seconds.

# Display limits on the numbers of routes and prefixes of the IPv6 VPN instance named vpn1.

<HUAWEI> display ipv6 routing-table limit vpn6-instance vpn1
IPv6 VPN Instance Name: vpn1
Limit-Object     Limit-Type      Upper-Limit    Warning    Current    Log-Interval
Route            Simply-Alert    5000           -          4223       5
Prefix           Alert-Percent   1000           800        760        5

display ipv6 routing-table { all-vpn6-instance | vpn6-instance } statistics (upgrade-compatible command)

Function

Using the display ipv6 routing-table { all-vpn6-instance | vpn6-instance } statistics command, you can view integrated route statistics of the routing tables of IPv6 VPN instances.

Format

display ipv6 routing-table { all-vpn6-instance | vpn6-instance vpn-instance-name } statistics

Parameters

Parameter Description Value
all-vpn6-instance Displays integrated route statistics of the routing tables of all IPv6 VPN instances. -
vpn6-instance vpn-instance-name Specifies the name of an VPN instance of an enabled IPv6 address family. The value is a string of 1 to 31 case-sensitive characters without spaces.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Integrated route statistics include the total number of routes, the number of added routes, and the number of deleted routes.

Example

# Display integrated route statistics of the routing tables of all IPv6 VPN instances.

<HUAWEI> display ipv6 routing-table all-vpn6-instance statistics
Summary Prefixes : 1
Protocol   route       active      added       deleted     freed
DIRECT      1           1           1           0           0
STATIC      0           0           0           0           0
RIPng       0           0           0           0           0
OSPFv3      0           0           0           0           0
IS-IS       0           0           0           0           0
BGP         0           0           0           0           0
Total       1           1           1           0           0 
Table 19-9  Description of the display ipv6 routing-table all-vpn6-instance statistics command output

Item

Description

Summary Prefixes

Total number of prefixes in the current routing table

Protocol

Routing protocol

route

Number of routes in the current routing table

active

Number of active routes in the routing table

added

Number of active and inactive routes added in the routing table

deleted

Number of routes deleted from the routing table

freed

Number of released routes that are permanently deleted from the routing table

display ipv6 routing-table time-range (upgrade-compatible command)

Function

The display ipv6 routing-table time-range command displays information about routes generated in a specified time range in the IPv6 routing table of the specified VPN instance.

Format

display ipv6 routing-table vpn6-instance vpn6-instance-name time-range min-age max-age [ verbose | brief ]

Parameters

Parameter Description Value
vpn6-instance vpn6-instance-name Displays information about routes generated in a specified time range in the IPv6 routing table of the specified VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported.

min-age Specifies the end time of the period when routes are generated.
The format is xxdxxhxxmxxs.
  • The d indicates days. The value is an integer ranging from 0 to 10000.
  • The h indicates hours. The value is an integer ranging from 0 to 23.
  • The m indicates minutes. The value is an integer ranging from 0 to 59.
  • The s indicates seconds. The value is an integer ranging from 0 to 59.
For example, you can enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
NOTE:

If the value of the d is 10000, the values of the h, m, and s can be only 0.

max-age Specifies the start time of the period when routes are generated.
The format is xxdxxhxxmxxs.
  • The d indicates days. The value is an integer ranging from 0 to 10000.
  • The h indicates hours. The value is an integer ranging from 0 to 23.
  • The m indicates minutes. The value is an integer ranging from 0 to 59.
  • The s indicates seconds. The value is an integer ranging from 0 to 59.
For example, you can enter 5d4h30m20s to specify 5 days, 4 hours, 30 minutes, and 20 seconds.
NOTE:

If the value of the d is 10000, the values of the h, m, and s can be only 0.

verbose Displays detailed information about active and inactive routes. If you do not specify this parameter, the display ipv6 routing-table time-range command displays only summary information about active routes. -
brief Displays brief information about active routes and inactive routes. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

If route flapping occurs on a network, you can run the display ipv6 routing-table time-range command and specify a small time range for the command. By doing so, you can find the flapping route in a timely manner and accelerate fault locating.

Precautions

You must make sure that max-age is greater that min-age. Otherwise, the display ipv6 routing-table time-range command does not display any information.

If the specified max-age is greater than min-age and no route was generated within this time range, the display ipv6 routing-table time-range command displays only the table heading.

Example

# Display information about routes generated in the last 2 hours, 20 minutes, and 10 seconds in the IPv6 routing table of the VPN instance named vpna.

<HUAWEI> display ipv6 routing-table vpn6-instance vpna time-range 0 2h20m10s

display ipv6 routing-table vpn6-instance (upgrade-compatible command)

Function

The display ipv6 routing-table vpn6-instance command displays the routing table of the VPN instance.

Format

display ipv6 routing-table vpn6-instance vpn6-instance-name [ verbose | brief ]

display ipv6 routing-table vpn6-instance vpn6-instance-name acl { acl6-number | acl6-name } [ verbose | brief ]

display ipv6 routing-table vpn6-instance vpn6-instance-name ipv6-address [ prefix-length ] [ longer-match ] [ verbose | brief ]

display ipv6 routing-table vpn6-instance vpn6-instance-name ipv6-address1 [ prefix-length1 ] ipv6-address2 prefix-length2 [ verbose | brief ]

display ipv6 routing-table vpn6-instance vpn6-instance-name ipv6-prefix ipv6-prefix-name [ verbose | brief ]

display ipv6 routing-table vpn6-instance vpn6-instance-name statistics

display ipv6 routing-table vpn6-instance vpn6-instance-name protocol protocol [ inactive | verbose | brief ]

Parameters

Parameter Description Value
vpn6-instance-name Specifies the name of an VPN instance. The value is a string of 1 to 31 case-sensitive characters without spaces.
verbose Displays detailed information about active and inactive routes in the routing table of the current VPN instance. -
brief Displays brief information about active routes in the current routing table. -
acl Uses ACL6 to filter the command output. If the specified ACL6 does not exist, information about all active routes is displayed. -
acl6-number Specifies the number of a basic ACL6. The value is an integer that ranges from 2000 to 2999.
acl6-name Specifies the name of a Named ACL6. The value is a string of 1 to 32 case-sensitive characters without spaces.
longer-match Displays only the VPN routes that match the specified network and mask. -
ipv6-address Specifies the destination IPv6 address. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
prefix-length Specifies the length of the IPv6 address prefix. The value is an integer that ranges from 0 to 128.
ipv6-address1 / ipv6-address2 Specifies the IPv6 address. ipv6-address1 and ipv6-address2 together determine an address range. Only the VPN routes in the address range are displayed. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.
prefix-length1/prefix-length2 Specifies the length of the IPv6 address prefix. The value is an integer that ranges from 0 to 128.
ipv6-prefix ipv6-prefix-name Specifies the name of the IPv6 prefix list. A string of 1 to 19 characters.
statistics Displays integrated route statistics in the routing table of the VPN instance. -
protocol Displays the routes of a specified protocol. -
protocol Displays the routes of a specified protocol. It can be one of the following keywords:
  • direct: displays direct IPv6 routes.

  • static: displays static IPv6 routes.

  • bgp: displays BGP4+ routes.

  • ripng: displays RIPng routes.

  • isis: displays IS-IS IPv6 routes.

  • ospfv3: displays OSPFv3 routes.

  • unr: displays user network routes.

-
inactive Displays the summary of inactive routes only. -

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The command output includes the destination address, prefix length, protocol type, preference, cost, next hop, and outbound interface.

NOTE:

An iterated route is counted as one route no matter how many outbound interfaces and next hops the route finds.

This command without the parameter verbose displays the currently preferred routes only.

When using the display ipv6 routing-table vpn6-instance vpn6-instance-name ipv6-address prefix-length [ longer-match ] [ verbose ] command, you can select parameters in the command as required.

  • If ipv6-address prefix-length is specified, the VPN routes that accurately match the destination address are displayed.

  • If ipv6-address prefix-length longer-match is specified, the IPv6 routes with the destination address within the specified address range are displayed. If the prefix length is 0, all routes in the routing table of the VPN instance are displayed.

For example, there are four routes in the routing table of the VPN instance named vpna, FC00:0:0:2000::20/128, FC00:0:0:2000::/100, FC00:0:0:2000::/64, and FC00:0:0:1000::/64.

  • If the display ipv6 routing-table vpn6-instance vpna fc00:0:0:2000:: 64 command is used, only FC00:0:0:2000::/64 is displayed.

  • If the display ipv6 routing-table vpn6-instance vpna fc00:0:0:2000:: command is used, only FC00:0:0:2000::/100 is displayed.

  • If the display ipv6 routing-table vpn6-instance vpna fc00:0:0:2000:: 127 longer-match command is used, only FC00:0:0:2000::/100 and FC00:0:0:2000::/64 are displayed.

  • If the display ipv6 routing-table vpn6-instance vpna fc00:0:0:2000:: 0 longer-match command is used, four routes are displayed.

Precautions

If the specified ip-prefix ip-prefix-name does not exist, the command displays all of the currently preferred routes.

Example

# Display the summary of the routing table of the VPN instance named vpn1.

<HUAWEI> display ipv6 routing-table vpn6-instance vpn1
Routing Table : vpn1
         Destinations : 1        Routes : 1

 Destination  : FC00:0:0:7777:5:344::           PrefixLength : 48
 NextHop      : FC00:0:0:3335::2                Preference   : 255
 Cost         : 0                               Protocol     : BGP
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10                        Flags        : D
Table 19-10  Description of the display ipv6 routing-table vpn6-instance command output

Item

Description

Routing Table : vpn1

VPN routing table named vpn1.

Destinations

Total number of destination networks or hosts.

Destination

Address of the destination network or host.

Routes

Total number of routes.

PrefixLength

Length of the prefix.

NextHop

IPv6 address of the adjacent next hop through which the packet reaches the destination.

Preference

Preference of the route.

Cost

Route cost.

Protocol

Routing protocol name.

RelayNextHop

Iterated next hop.

TunnelID

Tunnel ID.

The value 0x0 indicates that no tunnel is used or the tunnel is not set up.

Interface

Outbound interface through which the next hop is reachable.

Flags

Route flags.

# Display detailed information about the route 200:0:1:2::1 of the VPN instance after the instance is enabled with VPN FRR.

<HUAWEI> display ipv6 routing-table vpn6-instance vrf1 fc00:0:0:200:0:1:2::1 verbose
Routing Table : vrf1
Summary Count : 1
 
 Destination  : FC00:0:0:200:0:1:2::1           PrefixLength : 128
 NextHop      : ::FFFF:192.168.100.6            Preference   : 255
 Neighbour    : ::192.168.100.6                 ProcessID    : 0
 Label        : 13313                           Protocol     : BGP
 State        : Active Adv Relied               Cost         : 0
 Entry ID     : 14                              EntryFlags   : 0x80024904
 Reference Cnt: 1                               Tag          : 0
 Priority     : low                             Age          : 393sec
 IndirectID   : 0x0
 RelayNextHop : ::                              TunnelID     : 0x100a
 Interface    : NULL0                           Flags        : RD
 BkNextHop    : ::FFFF:192.168.100.7            BkLabel      : 13313
 BkPETunnelID : 0x100c
Table 19-11  Description of the display ipv6 routing-table vpn6-instance verbose command output

Item

Description

Summary Count

Total number of route prefixes.

Neighbour

IP address of the neighbor interface.

ProcessID

Process ID of the routing protocol.

Label

Label value carried by the route.

State

Route status:
  • 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.

  • Relied: indicates the route that finds the next hop and outbound interface or the route that finds the tunnel during packet forwarding.

  • Stale.: indicates the routes with the stale flag. The routes are used in GR.

Entry ID

Keyword of the retrieval index of routes in the routing table.

EntryFlags

Information about route flags.

Refernce Cnt

Number of times that the route is referenced.

Tag

Tag for importing routes. The value is an integer ranging from 0 to 4294967295.

Priority

Priority of the route.

Age

Time since the route is generated.

IndirectID

Indirect ID of the next hop.

BkNextHop

Backup next hop.

BkLabel

Backup label.

BkPETunnelID

Backup Tunnel ID.

# Display the statistics of the routing table of the VPN instance named vpn1.

<HUAWEI> display ipv6 routing-table vpn6-instance vpn1 statistics
Summary prefixes: 6
Protocol   route       active      added       deleted     freed
DIRECT     4           4             4            0            0
STATIC     2           1             2            0            0
RIPng      0           0             0            0            0
OSPFv3     0           0             0            0            0
IS-IS      0           0             0            0            0
BGP        0           0             0            0            0
UNR        0           0             0            0            0
Total      6           5             6            0            0
Table 19-12  Description of the display ipv6 routing-table statistics command output

Item

Description

Summary prefixes

Total number of prefixes in the current routing table.

route

Indicates the total number of active and inactive routes in the current routing table.

active

Number of active routes.

added

Number of active and inactive routes added in the routing table.

deleted

Number of routes deleted from the routing table.

freed

Number of released routes that are permanently deleted from the routing table.

# Display all the direct routes of the VPN instance named vpn1.

<HUAWEI> display ipv6 routing-table vpn6-instance vpn1 protocol direct
vpn1 Routing Table : Direct
Summary Count : 3

Direct Routing Table's Status : < Active >
Summary Count : 3

 Destination  : FC00:0:0:3335::                 PrefixLength : 64
 NextHop      : FC00:0:0:3335::1                Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10            Flags        : D

 Destination  : FC00:0:0:3335::1                PrefixLength : 128
 NextHop      : ::1                             Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : Vlanif10            Flags        : D

 Destination  : FE80::                          PrefixLength : 10
 NextHop      : ::                              Preference   : 0
 Cost         : 0                               Protocol     : Direct
 RelayNextHop : ::                              TunnelID     : 0x0
 Interface    : NULL0                           Flags        : D
Direct Routing Table's Status : < Inactive >
Summary Count : 0
Table 19-13  Description of the display ipv6 routing-table vpn6-instance protocol command output

Item

Description

Active

Active routes.

Inactive

Inactive routes.

display rm ipv6 interface (upgrade-compatible command)

Function

Using the display rm ipv6 interface command, you can view IPv6 VPN instance RM information of interfaces, including physical and logical interfaces.

Format

display rm ipv6 interface vpn6-instance vpn6-instance-name [ interface-type interface-number ]

Parameters

Parameter Description Value
vpn6-instance vpn6-instance-name Specifies the name of an IPv6 VPN instance. It is case-sensitive.
ipv6-address ipv6-address Displays IPv6 RM information with the specified destination IPv6 address. The value is a 32-digit hexadecimal number, in the X:X:X:X:X:X:X:X format.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None.

Example

# Display RM information of all interfaces bound to IPv6 VPN instance named vpna.

<HUAWEI> display rm ipv6 interface vpn6-instance vpna

import-route isis level-2 into level-1 (upgrade-compatible command)

Function

Using the import-route isis level-2 into level-1 command, you can enable the leaking of routes from Level-2 areas to Level-1 areas.

Format

import-route isis level-2 into level-1 acl acl-number

Parameters

Parameter

Description

Value

acl acl-number

Specifies the number of a basic ACL. You can configure an ACL to control the leaking of routes from Level-2 areas to Level-1 areas. Only the routes that match the ACL rules can be leaked to Level-1 areas.

The value is an integer that ranges from 2000 to 2999.

Views

IS-IS view

Default Level

2: Configuration level

Usage Guidelines

The import-route isis level-2 into level-1 command is run on Level-1-2 devices that are at the edge of areas.

By default, the Level-2 routing information is not advertised in Level-1 areas. Level-1 devices do not learn any information about the routes outside the local area. As a result, the Level-1 devices are unable to choose the optimum route when the destination address is outside the local area. After you run the import-route isis level-2 into level-1 command, Level-2 devices can inform the specified Level-1 areas of the known routing information about other Level-1 and Level-2 areas.

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

This command has the same function as the import-route isis level-2 into level-1 filter-policy acl-number command.

Example

# Configure the device to leak the routes that match ACL 2000 from Level-2 areas to Level-1 areas.

<HUAWEI> system-view
[HUAWEI] isis 1 
[HUAWEI-isis-1] import-route isis level-2 into level-1 acl 2000

ipv4 field dport (upgrade-compatible command)

Function

The ipv4 field dport command sets the load balancing mode of IPv4 packets to dport in an ECMP profile.

The undo ipv4 field dport command deletes the load balancing mode of IPv4 packets or restores the default load balancing mode of IPv4 packets.

Format

ipv4 field dport

undo ipv4 field dport

Parameters

None

Views

ECMP profile view

Default Level

2: Configuration level

Usage Guidelines

None.

Example

# In the ECMP profile test, set the load balancing mode of IPv4 packets to dport.

<HUAWEI> system-view
[HUAWEI] ecmp-profile test
[HUAWEI-ecmp-profile-test] ipv4 field dport

ipv6 route-static vpn6-instance (upgrade-compatible command)

Function

Using the ipv6 route-static vpn6-instance command, you can configure IPv6 static routes in a VPN instance.

Using the undo ipv6 route-static vpn6-instance command, you can withdraw the IPv6 unicast static routes in a VPN instance.

By default, the system does not configure IPv6 static routes for VPN instances.

Format

ipv6 route-static vpn6-instance vpn6-instance-name dest-ipv6-address prefix-length [ interface-type interface-number ] nexthop-ipv6-address [ preference preference | tag tag ] * [ description text ]

ipv6 route-static vpn6-instance vpn6-instance-name dest-ipv6-address prefix-length nexthop-ipv6-address [ public ] [ preference preference | tag tag ] * [ description text ]

ipv6 route-static vpn6-instance vpn6-instance-name dest-ipv6-address prefix-length vpn6-instance vpn6-destination-name nexthop-ipv6-address [ preference preference | tag tag ] * [ description text ]

ipv6 route-static dest-ipv6-address prefix-length vpn6-instance vpn6-destination-name nexthop-ipv6-address [ preference preference | tag tag ] * [ description text ]

undo ipv6 route-static vpn6-instance vpn6-instance-name dest-ipv6-address prefix-length [ interface-type interface-number [ nexthop-ipv6-address ] | nexthop-ipv6-address ] [ preference preference | tag tag ] *

undo ipv6 route-static vpn6-instance vpn6-instance-name all

Parameters

Parameter Description Value
vpn6-instance-name Specifies the name of an IPv6 VPN instance. Each IPv6 VPN instance has its own unicast routing table, and the configured static routes are installed into the routing table of the specified IPv6 VPN instance. The name is a string of 1 to 31 case-sensitive characters without any spaces.
dest-ipv6-address Specifies the destination IPv6 address. The value is a 128-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
prefix-length Specifies the length of an IPv6 prefix, namely, the number of consecutive 1s in the mask. It is an integer ranging from 1 to 128.
interface-type Specifies the type of an interface. -
interface-number Specifies the number of an interface. -
nexthop-ipv6-address Specifies the next hop IPv6 address. The value is a 128-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
vpn6-destination-name Specifies the name of the destination IPv6 VPN instance. After the destination IPv6 VPN instance name is configured, the switch can search the static routing table for the outbound interface to the destination IPv6 VPN instance according to the configured gateway address. The name is a string of 1 to 31 case-sensitive characters without any spaces.
public Indicates that the gateway address is a public network address. After a switch is configured to belong to an IPv6 VPN instance, the next hop or the next hop gateway router of this switch belongs to this IPv6 VPN instance or the public network. If the keyword public is specified in the command, it indicates that the next hop is specified as the public network router. -
preference preference Specifies the preference of a static route. It is an integer ranging from 1 to 255.
tag tag Specifies the tag value of a static route. By configuring different tag values, you can classify static routes to implement different routing policies. For example, routing protocols can import routes with specified tag values through routing policies. The value is an integer ranging from 1 to 4294967295. By default, it is 0.
description text Specifies the description of static routes. The description is a string of 1 to 80 characters that can contain spaces.
all Deletes all the static routes configured for the specified IPv6 VPN instance. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Applicable Environment

When an VPN network is simple, you can configure static routes for this VPN by using the ipv6 route-static vpn6-instance command. Properly configuring and using static routes can improve network performance.
  • To configure VPN users to access a public network, you can run the ipv6 route-static vpn6-instance command with the keyword public to configure the VPN route with the next hop being the public network address.

  • You can configure description text to add the description of static routes so that the administrator can check and maintain static routes easily. You can run the display this or display current-configuration command in the system view to view the description.

Precautions

If the destination address and the prefix length are set to all 0s, it indicates that a default route is configured.

However, after network faults occur or the network topology changes, static routes cannot automatically change. Therefore, configure static routes with caution.

Example

# Configure a default route with the next hop FC00:0:0:2001::1.

<HUAWEI> system-view
[HUAWEI] ipv6 route-static vpn6-instance vpn1 :: 0 fc00:0:0:2001::1

ipv6-family vpn6-instance (upgrade-compatible command)

Function

Using the ipv6-family vpn6-instance command, you can enter the BGP-VPN6 instance view.

Using the undo ipv6-family vpn6-instance command, you can remove all configurations in the BGP-VPN6 instance view.

Format

ipv6-family vpn6-instance vpn6-instance-name

undo ipv6-family vpn6-instance vpn6-instance-name

Parameters

Parameter Description Value
vpn6-instance vpn6-instance-name Binds the specified IPv6 VPN instance with the IPv6 address family. You can enter the BGP-VPN6 instance view by using the parameter. -

Views

BGP view

Default Level

2: Configuration level

Usage Guidelines

None.

Example

# Enter the BGP-VPN6 instance view.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] ipv6-family vpn6-instance vpna
[HUAWEI-bgp6-vpna]

isis timer retransmit (upgrade-compatible command)

Function

The isis timer retransmit command sets the interval for retransmitting LSPs over a P2P link.

Format

isis timer retransmit retransmit-interval

Parameters

Parameter Description Value
retransmit-interval Specifies the interval for retransmitting LSPs. The value is an integer that ranges from 1 to 300, in seconds.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

On a point-to-point network, devices at both ends of a link synchronize LSDBs with each other by flooding LSPs. The device at one end of the link sends an LSP. If the device at the other end receives this LSP, it replies with a PSNP. If the device that has sent an LSP does not receive a PSNP from the other end in a period of time, the device will retransmit the LSP.

The isis timer retransmit command is used to set an interval for retransmitting LSPs. After the isis timer retransmit command is run on a device, the device will wait retransmit-interval after having sent an LSP. If the device receives a PSNP from the other end, the device will not retransmit the LSP. Otherwise, the device will retransmit the LSP.

Precautions

If the value of retransmit-interval is set too small, an LSP will be retransmitted even though it is not necessary, causing high CPU, memory, and network bandwidth usage.

Only the devices on a point-to-point network send PSNPs. Therefore, the isis timer retransmit command will take effect only when it is run on point-to-point interfaces.

Example

# Set the interval for retransmitting LSPs on VLANIF100 to 10 seconds.

<HUAWEI> system-view
[HUAWEI] isis
[HUAWEI-isis-1] network-entity 01.0000.0000.0001.00
[HUAWEI-isis-1] quit
[HUAWEI] interface vlanif 100
[HUAWEI-Vlanif100] isis enable 1
[HUAWEI-Vlanif100] isis circuit-type p2p
[HUAWEI-Vlanif100] isis timer retransmit 10

isis vpn6-instance (upgrade-compatible command)

Function

Using the isis vpn6-instance command, you can start the IS-IS process and the specified IPv6 VPN instance.

Using the undo isis command, you can cancel the specified IS-IS process.

By default, an IS-IS process is runs in a public network instance.

Format

isis [ process-id ] vpn6-instance vpn6-instance-name

undo isis process-id

Parameters

Parameter Description Value
process-id Specifies the process ID. The value is an integer ranging from 1 to 65535.
vpn6-instance vpn6-instance-name Specifies the name of the IPv6 VPN instance. The name is a string of 1 to 31 characters without spaces. It is case-sensitive.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To make IS-IS work normally, do as follows:

  • Enable IS-IS process by using the isis command.

  • Set a Network Entity Title (NET) for the switch by using the network-entity command.

  • Enable each interface that needs to run IS-IS process by using the isis enable command.

You can start IS-IS only when the above action is done.

Example

# Start an IS-IS routing process 1 which has the system ID 0000.0000.0002 and the area ID 01.0001.

<HUAWEI> system-view
[HUAWEI] isis 1 vpn6-instance vpna
[HUAWEI-isis-1] network-entity 01.0001.0000.0000.0002.00

is-snmp-traps enable (upgrade-compatible command)

Function

The is-snmp-traps enable command enables the trap function for the IS-IS module.

Format

is-snmp-traps enable

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Enable the trap function for the IS-IS module.

<HUAWEI> system-view
[HUAWEI] is-snmp-traps enable

ospfv3 vpn6-instance (upgrade-compatible command)

Function

The ospfv3 vpn6-instance command enables an OSPFv3 process and bind it to specified VPN instance.

Format

ospfv3 [ process-id ] vpn6-instance vpn-instance-name

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535. By default, it is 1.
vpn6-instance vpn-instance-name Specifies the name of the VPN instance. The value is a string of 1 to 31 case-sensitive characters.

Views

System view

Default Level

3: Management level

Usage Guidelines

Only when you configure the Route ID in the OSPFv3 view, the OSPFv3 process can run normally. Otherwise, the OSPFv3 process can be viewed but cannot generate LSAs.

Example

# Enable the OSPFv3 protocol.

<HUAWEI> system-view
[HUAWEI] ospfv3 vpn6-instance vpn1
[HUAWEI-ospfv3-1] router-id 1.1.1.1

peer group (upgrade-compatible command)

Function

The peer group command adds a peer to a peer group.

The undo peer group command removes a peer from a peer group.

By default, no peer is in peer group.

Format

peer { ipv4-address | ipv6-address } group group-name as-number as-number

undo peer { ipv4-address | ipv6-address } group group-name as-number as-number

Parameters

Parameter Description Value
ipv4-address Specifies the IPv4 address of a peer. It is in dotted decimal notation.
ipv6-address Specifies the IPv6 address of a peer. The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.
group-name Specifies the name of a peer group. The name is a string of 1 to 47 characters without any space. It is case-sensitive.
as-number Specifies the AS number of a peer or peer group. There are 2-byte and 4-byte AS numbers.
  • A 2-byte AS number is in the format of x, which is an integer ranging from 1 to 65535.

  • A 4-byte AS number is in the format of x.y, in which x and y are integers ranging from 1 to 65535 and from 0 to 65535 respectively.

NOTE:
  • ipv4-address is valid only in the 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-VPNv6 address family view, BGP-VPLS address family view, BGP-L2VPN address family view, and BGP L2VPN-AD address family view.

  • ipv6-address is valid only in the BGP view, 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-VPNv4 address family view, BGP-IPv6 unicast address family view, BGP-VPN instance IPv6 address family view, BGP-VPNv6 address family view, BGP-VPLS address family view, BGP-L2VPN address family view, BGP L2VPN-AD address family view

Default Level

2: Configuration level

Usage Guidelines

On a large-scale BGP network, there are a large number of peers and many of them have the same routing policies. To configure these peers, you have to repeatedly use some commands. In such a case, configuring peer groups can simplify configurations. If you intend to perform the same configuration on several peers, create and configure a peer group. Then, add the peers to the peer group. The peers will inherit the configurations of the peer group.

Example

# Create an IBGP peer group named test, and then add a peer to it.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] group test internal
[HUAWEI-bgp] peer 1.1.1.1 group test as-number 100

reset ipv6 routing-table statistics protocol (upgrade-compatible command)

Function

Using the reset ipv6 routing-table statistics protocol command, you can clear statistics in the IPv6 routing table.

Format

reset ipv6 routing-table vpn6-instance vpn6-instance-name statistics protocol { all | protocol }

Parameters

Parameter Description Value
all Clears the statistics of all IPv6 routing protocols in the routing table. -
protocol Clears the statistics of the specified routing protocol. This parameter can be
  • direct: displays direct IPv6 routes.

  • static: displays static IPv6 routes.

  • bgp: displays BGP4+ routes.

  • ripng: displays RIPng routes.

  • isis: displays IS-IS IPv6 routes.

  • ospfv3: displays OSPFv3 routes.

  • unr: displays user network routes.

.
-

Views

User view

Default Level

2: Configuration level

Usage Guidelines

Statistics in the IPv6 routing table cannot be restored after you clear them. So, confirm the action before using the command.

Example

# Clear the statistics of all IPv6 routing protocols in the routing table.

<HUAWEI> reset ipv6 routing-table vpn6-instance vpna statistics protocol all

ripng vpn6-instance (upgrade-compatible command)

Function

The ripng vpn6-instance command creates a RIPng process in a specificed VPN instance.

Format

ripng process-id vpn6-instance vpn-instance-name

Parameters

Parameter Description Value
process-id Specifies a RIPng process ID. The value is an integer that ranges from 1 to 65535. The default value is 1.
vpn6-instance vpn-instance-name Specifies the name of a VPN instance. The value is a string of 1 to 31 case-sensitive characters without spaces.

Views

System view

Default Level

3: Management level

Usage Guidelines

Before configuring RIPng functions, run the ripng command to create a RIPng process.

Example

# Create a specified RIPng process in VPN vpn1.

<HUAWEI> system-view
[HUAWEI] ripng 100 vpn6-instance vpn1
[HUAWEI-ripng-100]

snmp-agent trap enable ospf (upgrade-compatible command)

Function

The snmp-agent trap enable ospf command enables the trap function for the OSPF module.

Format

snmp-agent trap enable ospf [ process-id ] [ ifauthfail | ifcfgerror | ifrxbadpkt | ifstatechange | lsdbapproachoverflow | lsdboverflow | maxagelsa | nbrrestarthelperchange | nbrstatechange | originatelsa | restartstatuschange | txretransmit | vifauthfail | vifcfgerror | virifrxbadpkt | virifstatechange | viriftxretransmit | virnbrstatechange | vnbrrestarthelperchange | nssatranslatorstatuschange ] *

Parameters

Parameter

Description

Value

process-id

Restarts the OSPF process with its number specified by process-id. If the OSPF process number is not specified, trap messages of all OSPF processes are sent.

The value is an integer that ranges from 1 to 65535.

ifauthfail

Indicates authentication failure information about the interface.

-

ifcfgerror

Indicates the configuration errors of the interface.

-

ifrxbadpkt

Indicates the received error packets.

-

ifstatechange

Indicates the change of the interface status.

-

lsdbapproachoverflow

Indicates the LSDB approaching overflow.

-

lsdboverflow

Indicates the LSDB overflow.

-

maxagelsa

Indicates the lifetime of the LSA.

-

nbrrestarthelperchange

Indicates the change of the helper status.

-

nbrstatechange

Indicates the change of the neighbor status.

-

originatelsa

Indicates the locally generated LSA.

-

restartstatuschange

Indicates the change of the restarter status after GR is performed.

-

txretransmit

Traces the packets received or sent on an interface.

-

vifauthfail

Indicates authentication failure on the virtual interface.

-

vifcfgerror

Indicates the configuration errors of the virtual interface.

-

virifrxbadpkt

Indicates the error packets received on the virtual interface.

-

virifstatechange

Indicates the change of the virtual interface status.

-

viriftxretransmit

Traces received or sent packets on the virtual interface.

-

virnbrstatechange

Indicates the change of the neighbor status of the virtual interface.

-

vnbrrestarthelperchange

Indicates the change of the helper status of the virtual neighbor.

-

nssatranslatorstatuschange

Enables the traps of changes of the NSSA translator state.

-

Views

System view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Send trap messages of all OSPF processes.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable ospf

snmp-agent trap enable feature-name ospfv3 (upgrade-compatible command)

Function

The snmp-agent trap enable feature-name ospfv3 command enables the trap function for the OSPFv3 module.

Format

snmp-agent trap enable ospfv3 [ process-id ] [ ospfv3ifconfigerror | ospfv3ifrxbadpacket | ospfv3ifstatechange | ospfv3nbrrestarthelperstatuschange | ospfv3nbrstatechange | ospfv3restartstatuschange | ospfv3virtifconfigerror | ospfv3virtifrxbadpacket | ospfv3virtifstatechange | ospfv3virtnbrrestarthelperstatuschange | ospfv3virtnbrstatechange | ospfv3nssatranslatorstatuschange ] *

Parameters

Parameter Description Value
process-id Specifies the OSPFv3 process ID. The value is an integer ranging from 1 to 65535. By default, it is 1.
ospfv3ifconfigerror Enables the traps of errors of the interface configuration. -
ospfv3ifrxbadpacket Enables the traps of received bad packets. -
ospfv3ifstatechange Enables the traps of changes of the interface state. -
ospfv3nbrrestarthelperstatuschange Enables the traps of changes of the state of the helper during GR. -
ospfv3nbrstatechange Enables the traps of changes of the neighbor state. -
ospfv3restartstatuschange Enables the traps of changes of the state of the restarter during GR. -
ospfv3virtifconfigerror Enables the traps of error of the virtual interface configuration. -
ospfv3virtifrxbadpacket Enables the traps of the bad packet that is received on the virtual interface. -
ospfv3virtifstatechange Enables the traps of changes of the virtual interface state. -
ospfv3virtnbrrestarthelperstatuschange Enables the traps of changes of the GR helper state of neighboring nodes on the virtual link. -
ospfv3virtnbrstatechange Enables the traps of changes of the state for the neighbor of the virtual-link. -
ospfv3nssatranslatorstatuschange Enables the traps of changes of the NSSA translator state. -

Views

System view

Default Level

3: Management level

Usage Guidelines

None

Example

# Enable the traps of errors of the interface configuration of OSPFv3 module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable ospfv3 ospfv3ifconfigerror

snmp-agent trap enable bgp (upgrade-compatible command)

Function

The snmp-agent trap enable bgp command enables the trap function for the BGP module.

The undo snmp-agent trap enable feature-name bgp command disables the trap function for the BGP module.

By default, the trap function is disabled for the BGP module.

Format

snmp-agent trap enable bgp

undo snmp-agent trap enable bgp

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Enable the trap function for the BGP module.

<HUAWEI> system-view
[HUAWEI] snmp-agent trap enable bgp

timers rip (upgrade-compatible command)

Function

The timers rip command sets the values of RIP timers.

Format

timers rip update age suppress garbage-collect

Parameters

Parameter

Description

Value

update

Specifies the interval for sending update packets.

The value is an integer that ranges from 1 to 86400, in seconds.

age

Specifies the aging time of the route.

The value is an integer that ranges from 1 to 86400, in seconds.

suppress

Specifies the interval for suppressing the advertisement of routes. During this interval, the optimal route cannot be advertised.

The value is an integer that ranges from 0 to 86400, in seconds.

garbage-collect

Specifies the time for deleting a route from the routing table, that is, the standard garbage collection time.

The value is an integer that ranges from 1 to 86400, in seconds.

Views

RIP view

Default Level

3: Management level

Usage Guidelines

Generally, the default values need not be changed. Use this command carefully.

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

This command has the same function as the timers rip command.

Example

# Set the values of RIP timers.

<HUAWEI> system-view
[HUAWEI] rip 100
[HUAWEI-rip-100] timers rip 35 170 0 240

timers ripng (upgrade-compatible command)

Function

The timers ripng command configures RIPng timers.

Format

timers ripng update age suppress garbage-collect

Parameters

Parameter

Description

Value

update

Specifies the interval for sending update packets.

It is in seconds. The value is an integer ranging from 1 to 86400. This is the basic timing parameter of the protocol.

age

Specifies the time of route aging.

It should be at least three times the update time. During the age time, if a route does not receive any update packet, the route becomes invalid. It is in seconds. The value is an integer ranging from 1 to 86400.

suppress

Indicates the period during which the advertisement of the optimal route is suppressed.

It is in seconds. The value is an integer ranging from 0 to 86400.

garbage-collect

Specifies the time for a route from becoming invalid to being removed from the routing table.

It is in seconds. The value is an integer ranging from 1 to 86400.

Views

RIPng view

Default Level

3: Management level

Usage Guidelines

The basic timing parameter of RIPng can be adjusted, because RIPng adopts a distributed asynchronous algorithm. In the network, these parameters on the routers need to be consistent with those on the access servers.

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

This command has the same function as the timers ripng command.

Example

# Set the RIPng timers.

<HUAWEI> system-view
[HUAWEI] ripng 100
[HUAWEI-ripng-100] timers ripng 5 15 0 30

undo peer timer (upgrade-compatible command)

Function

The undo peer timer command restores the default values of the Keepalive timer and Hold timer.

By default, the lifetime is 60 seconds and the hold time is 180 seconds.

Format

undo peer { group-name | ipv4-address | ipv6-address } timer

Parameters

NOTE:
  • The ipv4-address parameter is available only in the BGP view and the BGP-VPN instance view.

  • The ipv6-address parameter is available only in the BGP view and the BGP-VPNv6 instance view.

Parameter

Description

Value

group-name

Specifies the name of a peer group.

The name is a string of 1 to 47 characters without spaces.

ipv4-address

Specifies the IPv4 address of the peer.

It is in dotted decimal notation.

ipv6-address

Specifies the IPv6 address of the peer.

The prefix is a 32-digit hexadecimal number, in the format of X:X:X:X:X:X:X:X.

Views

BGP view, BGP-VPN instance view, BGP-VPN6 instance view

Default Level

2: Configuration level

Usage Guidelines

This command is available to aid upgrade compatibility. It can only be run during the configuration restoration phase of the upgrade.

Example

# Restore the timers to the default values of the specified peer 1.1.1.2.

<HUAWEI> system-view
[HUAWEI] bgp 100
[HUAWEI-bgp] peer 1.1.1.2 as-number 200 
[HUAWEI-bgp] undo peer 1.1.1.2 timer
Translation
Download
Updated: 2019-10-18

Document ID: EDOC1000178288

Views: 25457

Downloads: 109

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next