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

AR500, AR510, and AR530 V200R007 Commands Reference

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).
Interface Backup Configuration Commands

Interface Backup Configuration Commands

display standby state

Function

The display standby state command displays the configuration and status of the primary and backup interfaces.

Format

display standby state

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After interface backup is configured, you can run the display standby state command to view the status of the primary and backup interfaces. The display standby state command displays the status of the primary and backup interfaces, backup status, backup status flag, backup interface's priority, load balancing status, and association status.

Example

# Display the configuration and status of the primary interface and backup interfaces.
<Huawei>display standby state
Interface               Interfacestate   Backupstate   Backupflag    Pri   Loadstate
GigabitEthernet1/0/0                UP           MUP           MU
GigabitEthernet2/0/0              DOWN          DOWN           BU     30
Backup-flag meaning:
M---MAIN  B---BACKUP     V---MOVED    U---USED
D---LOAD  P---PULLED
----------------------------------------------------------------------------    
Below is track BFD information:                                                 
Bfd-Name              Bfd-State  BackupInterface              State               
                                                                                
----------------------------------------------------------------------------    
Below is track IP route information:                                            
Destination/Mask    Route-State  BackupInterface              State         
                                                                                
----------------------------------------------------------------------------    
Below is track NQA Information:                                                 
Instance Name                    BackupInterface              State             
user                                                                            
test                                                          OK               
                                 GigabitEthernet2/0/0         STANDBY          
Table 13-1  Description of the display standby state command output

Item

Description

Interface

Type and number of the primary interface and backup interface. The first column is the primary interface and the other columns are backup interfaces.

Interfacestate

Interface status:
  • The primary interface status can be Up or Down.

  • The backup interface status can be Up, Down, or standby.

Backupstate

Backup status:

  • The backup status of the primary interface can be MUP, MUPDELAY, MDOWN, or MDOWNDELAY.

  • The backup status of the backup interface can be UP, UPDELAY, DOWN, DOWNDELAY, or STANDBY.

NOTE:
  • M in the primary interface status identifier: indicates that the interface is the primary interface. For example, MUP indicates that the primary interface is in Up state.

  • UPDELAY: indicates the delay status before the interface changes from Down to Up.

  • DOWNDELAY: indicates the delay status before the interface changes from Up to Down.

  • STANDBY: indicates that the interface is in standby state.

Backupflag

Backup status flag, which is represented by characters:
  • M: MAIN. The interface is the primary interface.

  • B: BACKUP. The interface is the backup interface.

  • V: MOVED. The interface is moved; primary interface of the interface is moved; all the backup interfaces of the interface are moved.

  • U: USED. The interface functions as the primary or backup interface and is in use.

  • D: LOAD. The primary interface participates in load balancing.

  • P: PULLED. The LPU where the interface is located is removed.

Pri

Priority of a backup interface. To set the priority of a backup interface, run the standby interface interface-type interface-number priority command.

Loadstate

Load balancing status:

  • The load balancing status of the backup interface can be WAKE, TO-HYPNOTIZE, TO-WAKE, or idle.

  • The load balancing status of the backup interface can be WAKE or idle.

NOTE:

The load balancing status is as follows:

  • WAKE: The interface is in load balancing state.

  • TO-HYPNOTIZE: The interface will be shut down because traffic reduces.

  • TO-WAKE: The interface will be started because traffic increases.

  • Idle: The interface does not work in load balancing mode.

Bfd-Name

Name of the BFD session associated with the backup interface. To configure the name for a BFD session, run the bfd cfg-name bind peer-ip peer-ip command.

Bfd-State

Status of the BFD session bound to the backup interface.

Destination/Mask

Destination IP address and mask of the route associated with the backup interface.

Route-State

Status of the route associated with the backup interface.

Instance Name

Name of the NQA test instance associated with the backup interface. The administrator of the NQA test instance and instance name are displayed in this field. To configure the administrator of the NQA test instance and instance name, run the nqa test-instance admin-name test-name command.

BackupInterface

Backup interface.

State

Status of the NQA test instance and backup interface.

  • The NQA test instance status includes OK and ERR.

  • The backup interface status includes UP and STANDBY.

NOTE:
  • OK: The link is in a good condition.

  • ERR: The link is unreachable.

  • UP: The interface is in Up state and is transmitting services.

  • STANDBY: The interface is in backup state and does not transmit services.

Related Topics

standby bandwidth

Function

The standby bandwidth command sets the maximum bandwidth of the primary interface in load balancing mode.

The undo standby bandwidth command restores the default maximum bandwidth of the primary interface in load balancing mode.

By default, the primary interface uses the actual physical bandwidth provided by the system as the maximum bandwidth.

Format

standby bandwidth size

undo standby bandwidth

Parameters

Parameter

Description

Value

size

Specifies the maximum bandwidth of the primary interface in load balancing mode.

The value is an integer that ranges from 0 to 4000000, in kbit/s.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Prerequisites

Interface backup has been configured by using the standby interface command.

Precautions

When the primary interface participates in load balancing, run the standby bandwidth command to set the maximum bandwidth of the primary interface. If size is not specified, the primary interface uses the actual physical bandwidth provided by the system.

NOTE:

The configured maximum bandwidth of the primary interface must be smaller than the actual physical bandwidth.

Example

# In load balancing mode, configure GE1/0/0 as the backup interface of GE2/0/0, and set the priority of GE1/0/0 to 30 and the maximum bandwidth of GE2/0/0 to 10000 kbit/s.

<Huawei> system-view
[Huawei] interface gigabitethernet 2/0/0
[Huawei-GigabitEthernet2/0/0] standby interface gigabitethernet 1/0/0 30
[Huawei-GigabitEthernet2/0/0] standby bandwidth 10000
Related Topics

standby interface

Function

The standby interface command specifies a backup interface and sets the priority for the backup interface.

The undo standby interface command deletes the specified backup interface.

By default, no backup interface is specified.

Format

standby interface interface-type interface-number [ priority ]

undo standby interface interface-type interface-number

Parameters

Parameter

Description

Value

interface interface-type interface-number

Specifies the type and number of a backup interface.

-

priority

Specifies the priority of a backup interface.

The value is an integer that ranges from 0 to 255. A larger value indicates a higher priority of a backup interface. The default value is 0.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

A router plays an important role on a network. When an interface on the router is faulty, the interface backup function allows the router to quickly switch services from the faulty interface to a working interfaces. This ensures non-stop transmission and network security. Interface backup provides two working modes:

  1. Active/Standby mode: Only one interface transmits services at any time. When the primary interface is faulty, a backup interface is used.

  2. Load balancing mode: Traffic is load balanced among multiple interfaces by setting the upper and lower thresholds of traffic of the primary interface.

Precautions

The standby interface command specifies a backup interface and sets the priority for the backup interface. When the primary interface becomes Down, backup interfaces are selected in ascending order of priority. The interface with the highest priority is selected as the primary interface. If backup interfaces have the same priority, the backup interface that were configured first is selected as the primary interface.

NOTE:
  • A maximum of 10 primary interfaces can be configured on a device simultaneously.

  • A primary interface has a maximum of three backup interfaces. An interface can be used as the backup interface of only one primary interface.

  • The primary interface cannot be configured as the backup interface of another interface, and the backup interface cannot be configured as the primary interface of another interface.

  • The thresholds determine whether to use the active/standby mode or load balancing mode. If the thresholds are set, the load balancing mode is used. Otherwise, the active/standby mode is used.

  • Primary interfaces: Ethernet Layer 3 interface and subinterface, dialer interface, ATM interface, ISDN BRI interface, Async interface, cellular interface, PON interface, MP-group interface, MFR interface, FR subinterface, and serial interface and subinterface.

  • Backup interfaces: Ethernet Layer 3 interface and subinterface, dialer interface, ATM interface, BRI interface, Async interface, cellular interface, MP-group interface, MFR interface and subinterface, and serial interface and subinterface.

Example

# Configure GE1/0/0 and GE2/0/0 as backup interfaces of GE3/0/0, and set the priority of GE1/0/0 to 30 and the priority of GE2/0/0 to 20.

<Huawei> system-view
[Huawei] interface gigabitethernet 3/0/0
[Huawei-GigabitEthernet3/0/0] standby interface gigabitethernet 1/0/0 30
[Huawei-GigabitEthernet3/0/0] standby interface gigabitethernet 2/0/0 20
Related Topics

standby threshold

Function

The standby threshold command sets the upper and lower thresholds of the traffic volume in load balancing mode.

The undo standby threshold command deletes the upper and lower thresholds of the traffic volume in load balancing mode.

By default, load balancing thresholds are not configured.

Format

standby threshold enable-threshold disable-threshold

undo standby threshold

Parameters

Parameter

Description

Value

enable-threshold

Specifies the upper threshold of traffic in load balancing mode.

The value is an integer ranging from 1 to 99.

disable-threshold

Specifies the lower threshold of traffic in load balancing mode.

The value is an integer ranging from 1 to 99.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When only one interface transmits services and the interface bandwidth is insufficient, traffic may be lost. You can run the standby threshold command to set the upper and lower thresholds of traffic on the primary interface so that traffic is load balanced among multiple interfaces. This improves reliability of data transmission.

Prerequisites

Interface backup has been configured by using the standby interface command.

Precautions

By default, the load balancing function of interface backup is disabled. If the thresholds are set by using the standby threshold command, the load balancing mode is used. Otherwise, the active/standby mode is used.

If the primary interface is faulty in load balancing mode, the system switches to the active/standby mode:
  • If no backup interface is started, the system uses the backup interface with the highest priority to transmit services. If backup interfaces have the same priority, the system uses the backup interface that was configured first to transmit services.

  • If a backup interface has been started, the system uses the backup interface with the highest priority to transmit services. If backup interfaces have the same priority, the system uses the backup interface that was configured first to transmit services.

NOTE:
  • The upper and lower thresholds refer to percentage of the maximum bandwidth. The maximum bandwidth can be set by using the standby bandwidth command.

  • enable-threshold must be greater than disable-threshold.

  • When you run the undo standby threshold command, if backup interfaces have been started, all the backup interfaces are shut down and only the primary interface is available.

Example

# In load balancing mode, configure GE1/0/0 as the backup interface of GE2/0/0, and set the priority of GE1/0/0 to 30, the maximum bandwidth of GE2/0/0 to 10000 kbit/s, and the upper and lower thresholds to 80% and 20%.

<Huawei> system-view
[Huawei] interface gigabitethernet 2/0/0
[Huawei-GigabitEthernet2/0/0] standby interface gigabitethernet 1/0/0 30
[Huawei-GigabitEthernet2/0/0] standby bandwidth 10000
[Huawei-GigabitEthernet2/0/0] standby threshold 80 20

standby timer delay

Function

The standby timer delay command sets the delay in switching services between the primary interface and the backup interface.

The undo standby timer delay command restores the default delay.

By default, the delay is 5s.

Format

standby timer delay enable-delay disable-delay

undo standby timer delay

Parameters

Parameter

Description

Value

enable-delay

Specifies the delay in switching services from the primary interface to the backup interface.

The value ranges from 0 to 65535, in seconds. By default, the delay is 5s.

disable-delay

Specifies the delay in switching services from the backup interface to the primary interface.

The value ranges from 0 to 65535, in seconds. By default, the delay is 5s.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To prevent frequent switchovers between the primary interface and the backup interface because of the unstable interface status, run the standby timer delay command to set the delay. After the primary interface changes from Up to Down, the system processes services in the following situations:

  • If the primary interface is still Down after the delay, the system switches services to the backup interface.

  • If the primary interface is restored during the delay, the system does not switch services.

Prerequisites

Interface backup has been configured by using the standby interface command.

Precautions

A small delay may cause route flapping and a large delay may cause traffic loss. Set the delay based on networking requirements:

  • On a network that does not require high reliability for data transmission, set a long delay to prevent route flapping.

  • On a network that requires high reliability for data transmission, set a short delay to prevent data loss.

Example

# Specify GE1/0/0 as the backup interface of GE2/0/0 and set the delay to 10s.

<Huawei> system-view
[Huawei] interface gigabitethernet 2/0/0
[Huawei-GigabitEthernet2/0/0] standby interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet2/0/0] standby timer delay 10 10
Related Topics

standby track bfd-session

Function

The standby track bfd-session command associates interface backup with BFD.

The undo standby track bfd-session command disassociates interface backup from BFD.

By default, interface backup is not associated with BFD.

Format

standby track bfd-session session-name session-name

undo standby track bfd-session session-name session-name

Parameters

Parameter

Description

Value

session-name session-name

Specifies the name of a BFD session.

The value is a string of 1 to 15 case-insensitive characters without spaces.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the upstream indirectly connected link of the primary interface is faulty, the interface backup module cannot detect the fault, causing service interruption. BFD provides fast fault detection independent of media and routing protocols. It can rapidly detect faults on the forwarding path between two adjacent routers. Association between interface backup and BFD enables the system to detect connectivity of the primary link and implement rapid switching when the primary link is faulty. This ensures reliability of service transmission.

Association between interface backup and BFD is applicable to the networks demanding high reliability and short delay.

Prerequisites

A BFD session has been created.

Example

# Configure association between interface backup and BFD on GE1/0/0, and configure the BFD session test to detect the link status of the primary interface.

<Huawei> system-view
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] standby track bfd-session session-name test

standby track nqa

Function

The standby track nqa command associates interface backup with NQA.

The undo standby track nqa command disassociates interface backup from NQA.

By default, interface backup is not associated with NQA.

Format

standby track nqa admin-name test-name

undo standby track nqa admin-name test-name

Parameters

Parameter

Description

Value

admin-name

Specifies the name of the administrator for an NQA test instance.

The value is a string of 1 to 32 case-insensitive characters without spaces.

test-name

Specifies the name of an NQA test instance.

The value is a string of 1 to 32 case-insensitive characters without spaces.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the upstream indirectly connected link of the primary interface is faulty, the interface backup module cannot detect the fault, causing service interruption. The NQA technology measures network performance and collects statistics on the delay, jitter, and packet loss ratio. Association between interface backup and NQA enables the system to detect connectivity of the primary link and implement rapid switching when the primary link is faulty.

You only need to configure association between interface backup and NQA on the backup interface. It is easy to configure and the NQA test instance detects packet statistics in addition to interface status detection. However, it takes a long time for the NQA test instance to detect faults.

Prerequisites

A specified NQA test instance with the specified administrator name has been created.

Example

# Configure association between interface backup and NQA on GE1/0/0, configure the administrator of the NQA test instance as user and the test instance name as test.

<Huawei> system-view
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] standby track nqa user test

standby track ip route

Function

The standby track ip route command associates interface backup and routing.

The undo standby track ip route command disassociates interface backup from routing.

By default, interface backup is not associated with routing.

Format

standby track ip route ip-address { mask | mask-length } [ vpn-instance vpn-instance-name ]

undo standby track ip route

Parameters

Parameter

Description

Value

ip-address

Specifies the destination IP address of the route associated with interface backup.

The value is in dotted decimal notation.

mask

Specifies the mask of the IP address.

The value is in dotted decimal notation.

mask-length

Specifies the mask length. The 32-bit mask is represented by consecutive 1s, and the mask in dotted decimal notation can be replaced by the mask length.

The value is an integer ranging from 0 to 32.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The name is a string of 1 to 31 case-sensitive characters without spaces.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the upstream indirectly connected link of the primary interface is faulty, the interface backup module cannot detect the fault, causing service interruption. When a link is faulty, the routing entry of the link is deleted or becomes inactive. Association between interface backup and routing enables the system to detect connectivity of the primary link and implement rapid switching when the primary link is faulty. This ensures reliability of service transmission.

Precautions

Only dynamic routes can be used.

Example

# Configure GE1/0/0 as a backup interface and associate it with a route on GE1/0/0.

<Huawei> system-view
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] standby track ip route 10.1.1.2 24

standby timer flow-check

Function

The standby timer flow-check command sets the interval for detecting traffic on the primary interface.

The undo standby timer flow-check command restores the default interval.

By default, the interval is 10s.

Format

standby timer flow-check time

undo standby timer flow-check

Parameters

Parameter Description Value
time Specifies the interval for detecting traffic on the primary interface. The value ranges from 10 to 600, in seconds.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

A small interval for detecting traffic on the primary interface may cause a waste of bandwidth resources, and a larger interval for detecting traffic on the primary interface may cause packet loss. Set the interval based on actual networking.

NOTE:

To ensure traffic detection correctness, do not change the configured standby interface and traffic detection interval. If the configuration is changed, the traffic detection result may be incorrect, causing an incorrect interface status switchover.

Example

# Configure GE1/0/0 as the backup interface of GE2/0/0, and set the maximum bandwidth of GE2/0/0 to 10000 kbit/s, upper and lower thresholds to 80% and 50%, and interval for detecting traffic to 60s.
<Huawei> system-view
[Huawei] interface gigabitethernet 2/0/0
[Huawei-GigabitEthernet2/0/0] standby interface gigabitethernet1/0/0 50
[Huawei-GigabitEthernet2/0/0] standby bandwidth 10000
[Huawei-GigabitEthernet2/0/0] standby threshold 80 50
[Huawei-GigabitEthernet2/0/0] standby timer flow-check 60
Related Topics
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 90160

Downloads: 124

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