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

PBR Configuration Commands

NOTE:

Among the AR500 series routes, AR502G-L-D-H, AR502GR-L-D-H, AR502CG-L, AR502EG-L, AR502EGW-L, AR502EGRb-L do not support PBR.

AR510 series routes do not support IPv6 interface PBR.

apply access-vpn

Function

The apply access-vpn command configures VPN instances for forwarding packets in the local PBR.

The undo apply access-vpn command deletes the configured VPN instances for forwarding packets in the local PBR.

By default, no VPN instance is configured for forwarding packets in the local PBR.

Format

apply access-vpn vpn-instance vpn-instance-name &<1-6>

undo apply access-vpn vpn-instance [ { vpn-instance-name } &<1-6> ]

Parameters

Parameter

Description

Value

vpn-instance vpn-instance-name

Specifies the VPN instance name.

The value is a string of 1 to 31 case-sensitive characters without spaces. A maximum of six instances can be specified in a command.

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When packets enter a VPN, run the apply access-vpn vpn-instance vpn-instance-name &<1-6> command to configure a VPN instance for forwarding the packets.

Prerequisites

VPN instances have been created.

Example

# Set VPN instances vpn1 and vpn2 for forwarding packets.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply access-vpn vpn-instance vpn1 vpn2
Related Topics

apply default output-interface

Function

The apply default output-interface command configures the default outbound interface in the local PBR.

The undo apply default output-interface command deletes the default outbound interface in the local PBR.

By default, no default outbound interface is configured in the local PBR.

Format

apply default output-interface interface-type interface-number

undo apply default output-interface [ interface-type interface-number ]

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the type and number of the default outbound interface.Two outbound interfaces can be configured to implement load balancing.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
NOTE:

The outbound interface cannot be a broadcast interface, for example, an Ethernet interface.

-

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

Packets obtaining no routing information from the routing table are forwarded on the default outbound interface. Two outbound interfaces can be configured to implement load balancing.

Example

# Set the default outbound interface to Bridge-if 10.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply default output-interface bridge-if 10
Related Topics

apply ip-address backup-nexthop

Function

The apply ip-address backup-nexthop command configures a backup next hop for packet forwarding in local PBR.

The undo apply ip-address backup-nexthop command deletes the backup next hop for packet forwarding in local PBR.

By default, no backup next hop is configured for packet forwarding in local PBR.

Format

apply ip-address backup-nexthop ip-address

undo apply ip-address backup-nexthop

Parameters

Parameter

Description

Value

ip-address

Specifies a backup next-hop IP address in PBR.

The value is in dotted decimal notation.

Views

Policy-based-route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In local PBR, a next hop and backup next hop are specified for packet forwarding. If the configured next hop is unavailable, the device forwards packets according to the configured backup next hop. If the configured backup next hop is also unavailable, the device searches the routing table for a route according to the destination address of packets to forward the packets.

Prerequisites

The next hop for packet forwarding in local PBR has been specified using the apply ip-address next-hop (policy-based route view) command. If only the backup next hop is configured in local PBR, the backup next hop does not take effect.

Precautions

The backup next-hop IP address for packet forwarding cannot be a local IP address.

Example

# Set the backup next-hop IP address for packet forwarding in local PBR to 1.1.2.1.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply ip-address next-hop 1.1.1.1
[Huawei-policy-based-route-policy1-10] apply ip-address backup-nexthop 1.1.2.1

apply ip-address default next-hop

Function

The apply ip-address default next-hop command configures the default next hop in the local PBR.

The undo apply ip-address default next-hop command deletes the default next hop in the local PBR.

By default, no default next hop is configured in the local PBR.

Format

apply ip-address default next-hop ip-address1 [ ip-address2 ]

undo apply ip-address default next-hop [ ip-address1 ] [ ip-address2 ]

Parameters

Parameter

Description

Value

ip-address1

Specifies the IP address of the default next hop.

-

ip-address2

Specifies the IP address of the default next hop. Two IP addresses of the next hop can be configured to implement load balancing.

-

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

This command applies to the packets matching no route in the routing table. The IP address of the default next hop cannot be a local IP address.

Example

# Set the IP address of the default next hop to 1.1.1.1 in the local PBR.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply ip-address default next-hop 1.1.1.1
Related Topics

apply ip-address next-hop (policy-based route view)

Function

The apply ip-address next-hop command configures the next hop to which packets are forwarded in the local PBR.

The undo apply ip-address next-hop command deletes the next hop to which packets are forwarded in the local PBR.

By default, no next hop to which packets are forwarded is configured in the local PBR.

Format

apply ip-address next-hop ip-address1 [ ip-address2 ]

undo apply ip-address next-hop [ ip-address1 ] [ ip-address2 ]

Parameters

Parameter

Description

Value

ip-address1

Specifies the IP address of the next hop.

-

ip-address2

Specifies the IP address of the next hop. Two IP addresses of the next hop can be configured to implement load balancing.

-

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

The IP address of the next hop specified in the apply ip-address next-hop command cannot be a local IP address.

If you configure a next hop while two next hops have been configured, the new next hop configuration overwrites the first next hop configuration, not the second next hop configuration.

Example

# Set the IP address of the next hop to which packets are forwarded to 1.1.1.1 in the local PBR.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply ip-address next-hop 1.1.1.1
Related Topics

apply ip-address next-hop track ip-route

Function

The apply ip-address next-hop track ip-route command configures association between next hop and route in local PBR.

The undo apply ip-address next-hop command cancels association between next hop and routes in local PBR.

By default, association between next hop and route is not configured in local PBR.

Format

apply ip-address next-hop { ip-address1 track ip-route ip-address2 { mask | mask-length } } &<1-2>

undo apply ip-address next-hop [ ip-address1 ] &<1-2>

Parameters

Parameter

Description

Value

ip-address1

Specifies the next-hop IP address in PBR.

The value is in dotted decimal notation.

ip-address2 { mask | mask-length }

Specifies the IP address of the route associated with the next hop in PBR.

  • ip-address2 specifies the IP address.
  • mask specifies the mask of the IP address.
  • mask-length specifies the mask length of the IP address.
  • The value of ip-address2 is in dotted decimal notation.
  • The value of mask is in dotted decimal notation.
  • mask-length is an integer that ranges from 0 to 32.

Views

Policy-based-route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

In local PBR, a next hop is specified for packet forwarding. However, specifying a next-hop IP address can only detect whether the direct link is available. When a fault occurs on the remote link, packets cannot reach the destination if the packets are forwarded based on local PBR. You can configure association between next hop and route. Then the device detects whether the configured IP address of the route associated with the next hop in PBR is reachable.
  • If the IP address is reachable, the configured next hop takes effect, and the device forwards packets according to the configured next hop.
  • If the IP address is unreachable, the configured next hop does not take effect, and the device checks whether a backup next-hop IP address has been configured.

Precautions

The next-hop IP address specified for packet forwarding cannot be a local IP address.

You can use the apply ip-address next-hop ip-address1 track ip-route ip-address2 { mask | mask-length } or apply ip-address next-hop (policy-based route view) command to specify a maximum of two next hops for packet forwarding in local PBR. If two next hops have been configured and then another next hop is configured, this next hop replaces the first configured next hop but not the second configured next hop.

Example

# Set the next-hop IP address for packet forwarding in local PBR to 1.1.1.1, IP address of the route associated with the next hop to 1.1.2.1, and mask length of the IP address of the route to 24.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply ip-address next-hop 1.1.1.1 track ip-route 1.1.2.1 24

apply ip-precedence (policy-based route view)

Function

The apply ip-precedence command configures the priority of IP packets in the local PBR.

The undo apply ip-precedence command deletes the priority of IP packets in the local PBR

By default, the priority of IP packets is not configured in the local PBR.

Format

apply ip-precedence { precedence | routine | priority | immediate | flash | flash-override | critical | internet | network }

undo apply ip-precedence

Parameters

Parameter

Description

Value

precedence

Specifies the priority of IP packets.

The value is an integer ranging from 0 to 7. You can replace the precedence value with a keyword. Table 8-199 shows the mappings between the precedence value and the keyword.

routine Specifies the preference of IP packets as 0.

-

priority Specifies the preference of IP packets as 1.

-

immediate Specifies the preference of IP packets as 2.

-

flash Specifies the preference of IP packets as 3.

-

flash-override Specifies the preference of IP packets as 4.

-

critical Specifies the preference of IP packets as 5.

-

internet Specifies the preference of IP packets as 6.

-

network Specifies the preference of IP packets as 7.

-

Table 8-199  Mappings between the precedence value and the keyword

Value

Keyword

0

Routine

1

Priority

2

Immediate

3

Flash

4

Flash-override

5

Critical

6

Internet

7

Network

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

You can run the apply ip-precedence precedence command to change the priority of IP packets matching a PBR node in permit mode.

Example

# Set the IP packet priority to 5 (Critical).

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply ip-precedence critical
Related Topics

apply output-interface

Function

The apply output-interface command configures the outbound interface in the local PBR.

The undo apply output-interface command deletes the outbound interface in the local PBR.

By default, no outbound interface is configured in the local PBR.

Format

apply output-interface interface-type interface-number

undo apply output-interface interface-type interface-number

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the type and number of the outbound interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
NOTE:

The outbound interface cannot be a broadcast interface, for example, an Ethernet interface.

-

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run this command to set the outbound interface for matched IP packets. Two outbound interfaces can be configured to implement load balancing.

Precautions

If you configure an outbound interface while two outbound interfaces have been configured, the new outbound interface configuration overwrites the first outbound interface configuration, not the second outbound interface configuration.

Example

# Configure POS1/0/0 as the outbound interface of matched IP packets.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] apply output-interface pos 1/0/0
Related Topics

backup-interface

Function

The backup-interface command configures the next-hop IPv4 address of the outbound interface of the best-effort link in smart policy routing (SPR).

The undo backup-interface command deletes the best-effort link configuration in SPR.

By default, no next-hop IPv4 address of the outbound interface of the best-effort link is configured in SPR.

Format

backup-interface interface-type interface-number [ next-hop-address ]

undo backup-interface

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the interface type and interface number of a best-effort link.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
NOTE:
The interface of a best-effort link must be a Layer 3 interface.

-

next-hop-address

Specifies the next-hop IPv4 address of the outbound interface of a best-effort link.

NOTE:
When the best-effort link is a PPP link, you can specify only the outbound interface but not the next hop IP address for the best-effort link. If the best-effort link is a non-PPP link, for example, an Ethernet link, you must specify both the outbound interface and next hop IP address for the best-effort link. Otherwise, packets cannot be forwarded.

-

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

After a best-effort link is configured, SPR allows service flows to be transmitted over the best-effort link when links in the active and standby link groups are unavailable, ensuring high-reliability transmission.

Example

# Configure GE0/0/1 as the outbound interface of the best-effort link, and set the next hop IP address to 10.1.1.1.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] backup-interface gigabitethernet 0/0/1 10.1.1.1
Related Topics

backup-ipv6-interface

Function

The backup-ipv6-interface command configures the next-hop IPv6 address of the outbound interface of the best-effort link in SPR.

The undo backup-ipv6-interface command deletes the best-effort link configuration in SPR.

By default, no next-hop IPv6 address of the outbound interface of the best-effort link is configured in SPR.

NOTE:

The AR510 series does not support this command.

Format

backup-ipv6-interface interface-type interface-number [ next-hop-address ]

undo backup-ipv6-interface

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the interface type and interface number of a best-effort link.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
NOTE:
The interface of a best-effort link must be a Layer 3 interface.

-

next-hop-address

Specifies the next-hop IPv6 address of the outbound interface of a best-effort link.

NOTE:
When the best-effort link is a PPP link, you can specify only the outbound interface but not the next hop IP address for the best-effort link. If the best-effort link is a non-PPP link, for example, an Ethernet link, you must specify both the outbound interface and next hop IP address for the best-effort link. Otherwise, packets cannot be forwarded.

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

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After a best-effort link is configured in SPR, SPR uses the best-effort link to transmit service data when all the links in the active and standby link groups cannot meet service requirements.

Precautions

The next-hop IPv6 address configured using the backup-ipv6-interface command and next-hop IPv4 address configured using the backup-interface can belong to the same outbound interface.

If you run the backup-ipv6-interface command multiple times, only the latest configuration takes effect.

Example

# Configure GE0/0/1 as the outbound interface of the best-effort link, and set the next hop IPv6 address to FC00:0:0:2001::1.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] backup-ipv6-interface gigabitethernet 0/0/1 FC00:0:0:2001::1

cmi-method

Function

The cmi-method command configures the CMI calculation formula for SPR.

The undo cmi-method restores the default CMI calculation formula for SPR.

By default, the CMI calculation formula is 9000 − [D (delay) + J (jitter) + L (packet loss rate)].

Format

cmi-method cmi-method

undo cmi-method

Parameters

Parameter

Description

Value

cmi-method

Specifies the CMI calculation formula.

  • The CMI calculation formula is 9000 − cmi-method. The cmi-method parameter is configurable, and its default value is D + J + L.

  • In the CMI calculation formula, if there is coefficient before D, J, or L, the product of D, J, or L and the coefficient must be respectively smaller than or equal to 5000, 3000, and 1000. For example, when cmi-method is set to 10*D + 10*J + 10*L, the delay is 1000 ms, jitter is 100 ms, and packet loss rate is 10‰, the CMI is calculated as follows: CMI = 9000 − (5000 + 1000 + 100) = 2900 This is because 10 x D is 10000, which exceeds the maximum value of 5000 and can only be calculated as 5000.

The value is a string of 1 to 20 case-insensitive characters. The value contains only digits, plus sign (+), asterisk (*), slash (/), and letters (only D, d, J, j, L, or l).

Only the plus operator (+) can be used among parameters D, J, and L. These parameters can be multiplied or divided by a positive integer. For example:
  • 10*D
  • D*10+J/10
  • D*100+J*10+L/10
NOTE:
D or d indicates the delay, J or j indicates the jitter, and L or l indicates the packet loss rate.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run this command to customize the CMI calculation formula based on the service requirements. SPR determines link quality based on the CMI value and selects an optimal link to forward service data flows.

Precautions

The CMI threshold changes after you run the cmi-method command. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum value is 9000.

Example

# Set the CMI calculation formula of service profile spr1 to 9000 − (D + J).

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] cmi-method d+j
Related Topics

description (service profile view)

Function

The description command configures the description for a service profile in the SPR.

The undo description command deletes the description of a service profile in the SPR.

By default, no description is configured for a service profile in the SPR.

Format

description description

undo description

Parameters

Parameter

Description

Value

description

Specifies the description for a service profile.

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

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

This command configures the description of a service profile, helping differentiate service profiles.

Example

# Set the description of service profile spr1 to testspr.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] description testspr
Related Topics

display ip policy-based-route

Function

The display ip policy-based-route command displays the policy of local PBR applied to the local device.

Format

display ip policy-based-route

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

None

Example

# Display the policy of local PBR applied on the local device.

<Huawei> display ip policy-based-route
 Policy Name             Interface
 aaa                     local
Table 8-200  Description of the display ip policy-based-route command output

Item

Description

Policy Name

Name of a local PBR.

To set this parameter, run the ip local policy-based-route command.

Interface

local: indicates the local PBR, that is, apply PBR to the packets sent from the local host rather than the packet forwarded by the local host.

display ip policy-based-route setup

Function

The display ip policy-based-route setup command displays the configurations of local PBR.

Format

display ip policy-based-route setup local [ verbose ]

Parameters

Parameter

Description

Value

local

Displays the configurations of the local PBR on the local device.

-

verbose

Displays the details about the local PBR.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run the display ip policy-based-route setup command to display the configurations of PBR.

Example

# Display the configurations of PBR on the local device.

<Huawei> display ip policy-based-route setup local
 policy-based-route policy1 permit node 10                                      
 if-match acl 3000                                                              
 if-match packet-length  1000  2000                                             
 apply ip-precedence critical (5)                                               
 apply access-vpn vpn-instance vpn1 vpn2 vpn3 vpn4 vpn5 VPN5                    
 apply output-interface GigabitEthernet0/0/1                                    
 apply ip-address next-hop 4.4.4.4 1.1.1.1                                      
 apply default output-interface GigabitEthernet0/0/0                            
 apply ip-address default next-hop 2.2.2.2 3.3.3.3                              
 policy-based-route policy1 permit node 20                                      
 if-match packet-length  3000  65535                                            
 policy-based-route policy1 permit node 30                                      
 if-match packet-length  2001  2999 

Table 8-201  Description of the display ip policy-based-route setup command output

Item

Description

policy-based-route

Name, mode, and number of a PBR node.

To set these parameters, run the policy-based-route command.

if-match acl

Matching rules based on IP addresses.

To set this parameter, run the if-match acl (policy-based route view) command.

if-match packet-length

Matching rules based on IP packet length.

To set this parameter, run the if-match packet-length command.

apply ip-precedence

Priority of IP packets.

To set this parameter, run the apply ip-precedence (policy-based route view) command.

apply access-vpn vpn-instance

VPN instances for forwarding packets.

To set this parameter, run the apply access-vpn command.

apply output-interface

Outbound interface for sending packets.

To set this parameter, run the apply output-interface command.

apply ip-address next-hop

Next hop of forwarded packets.

To set this parameter, run the apply ip-address next-hop (policy-based route view) command.

apply default output-interface

Default outbound interface for sending packets.

To set this parameter, run the apply default output-interface command.

apply ip-address default next-hop

Default next hop of forwarded packets.

To set this parameter, run the apply ip-address default next-hop command.

display ip policy-based-route statistics local

Function

The display ip policy-based-route statistics local command displays packet statistics of the local PBR.

Format

display ip policy-based-route statistics local

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view statistics about matched packet forwarding in each PBR node of the local PBR enabled on the device.

Example

# Display packet statistics of the local PBR.

<Huawei> display ip policy-based-route statistics local
 Local policy based routing information:  
 policy-based-route: pbr1  
   permit node 1        
     apply output-interface Ethernet1/0/0   
       Denied: 0,   
       Forwarded: 0   
   permit node 2  
     apply output-interface Ethernet1/0/1  
       Denied: 0,        
       Forwarded: 0   
 Total denied: 0, forwarded: 0  
Table 8-202  Description of the display ip policy-based-route statistics local command output

Item

Description

policy-based-route

Name of a local PBR.

To set this parameter, run the policy-based-route command.

permit node

Number of a PBR node. A smaller number indicates a higher priority of the corresponding PBR node.

To set this parameter, run the policy-based-route command.

apply output-interface

Outbound interface.

Total denied

Number of unforwarded packets.

forwarded

Number of forwarded packets.

display policy-based-route

Function

The display policy-based-route command displays configurations of created local PBRs.

Format

display policy-based-route [ policy-name [ verbose ] ]

Parameters

Parameter

Description

Value

policy-name

Specifies the name of a local PBR.

The value is a string of 1 to 19 case-sensitive characters without spaces.

verbose

Displays detailed information about the specified PBR.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view configurations of created local PBRs.

When using this command, note the following points:

  • If no parameter is specified in this command, configurations of all created local PBRs are displayed. Before enabling a local PBR, run this command to view configurations of all created local PBRs.
  • If a local PBR is specified in this command, configurations of the local PBR are displayed. After configuring a local PBR, run this command to view configurations of the local PBR.

Example

# Display configurations of all created local PBRs.

<Huawei> display policy-based-route
 policy-based-route : policy1                                                   
  Node  10  permit :                                                            
    if-match acl 3000                                                           
    if-match packet-length  1000  2000                                          
    apply ip-precedence critical (5)                                            
    apply access-vpn vpn-instance vpn1 vpn2 vpn3 vpn4 vpn5 VPN5                 
    apply output-interface GigabitEthernet0/0/1                                 
    apply ip-address next-hop 4.4.4.4 1.1.1.1                                   
    apply ip-address default next-hop 2.2.2.2 3.3.3.3                           
  Node  20  permit :                                                            
    if-match packet-length  3000  65535                                         
  Node  30  deny :                                                              
    if-match packet-length  2001  2999  

Table 8-203  Description of the display policy-based-route command output

Item

Description

policy-based-route

Name of a local PBR.

To set this parameter, run the policy-based-route command.

Node

Number of a PBR node. A smaller number indicates a higher priority of the corresponding PBR node.

To set this parameter, run the policy-based-route command.

permit,deny

Mode of a PBR node.
  • permit: indicates PBR is enabled for matched packets.
  • deny: indicates PBR is disabled for matched packets.

To set this parameter, run the policy-based-route command.

if-match acl

Matching rules based on IP addresses.

To set this parameter, run the if-match acl (policy-based route view) command.

if-match packet-length

Matching rules based on IP packet length.

To set this parameter, run the if-match packet-length command.

apply ip-precedence

Priority of IP packets.

To set this parameter, run the apply ip-precedence (policy-based route view) command.

apply access-vpn vpn-instance

VPN instances for forwarding packets.

To set this parameter, run the apply access-vpn command.

apply output-interface

Outbound interface for sending packets.

To set this parameter, run the apply output-interface command.

apply ip-address next-hop

Next hop of forwarded packets.

To set this parameter, run the apply ip-address next-hop (policy-based route view) command.

apply ip-address default next-hop

Default next hop of forwarded packets.

To set this parameter, run the apply ip-address default next-hop command.

Related Topics

display smart-policy-route

Function

The display smart-policy-route command displays SPR routing configurations.

Format

display smart-policy-route

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

After configuring SPR, run display smart-policy-route command to view SPR routing configurations.

Before applying SPR to new services, you can run this command to check whether the current SPR configurations meet new services.

Example

# Display SPR routing configurations.

<Huawei> display smart-policy-route
--------------------------------------------------------------------------------
Period          :   10                                                          
WTRPeriod       :   0( seconds ) 
FlappingValue   :   20                                                          
BackupName      :   GigabitEthernet0/0/2                                        
Backup-NhpIp    :   19.0.0.2   

BackupIpv6Name  :   GigabitEthernet0/0/0
Backup-NhpIpv6  :   fc01::15B:E0EA:3524:E791
--------------------------------------------------------------------------------
Table 8-204  Description of the display smart-policy-route command output

Item

Description

Period

SPR switchover period.

To set this parameter, run the period command.

WTRPeriod

Waiting time before traffic is switched from the backup link to the primary link.

To set the time, run the wtr period command.

FlappingValue

Flapping suppression period.

To set this parameter, run the route flapping suppression command.

BackupName

Name of the IPv4 outbound interface of the best-effort link.

To set this parameter, run the backup-interface command.

Backup-NhpIp

Next hop IPv4 address of the outbound interface of the best-effort link.

To set this parameter, run the backup-interface command.

BackupIpv6Name

Name of the IPv6 outbound interface of the best-effort link.

To set the next-hop IPv6 address, run the backup-ipv6-interface command.

Backup-NhpIpv6

Next-hop IPv6 address of the outbound interface of the best-effort link.

To set the next-hop IPv6 address, run the backup-ipv6-interface command.

display smart-policy-route service-map

Function

The display smart-policy-route service-map command displays the configuration of a service profile in SPR.

Format

display smart-policy-route service-map [ name ]

Parameters

Parameter

Description

Value

name

Displays the configuration of a specified service profile. If no service profile is specified, configurations of all service profiles are displayed.

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

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When using this command, note the following points:
  • If no parameter is specified in this command, configurations of all service profiles are displayed.
  • If a service profile is specified in this command, configurations of the service profile are displayed, including service flows bound to the service profile, thresholds for link quality parameters, active link group, and standby link group.

Example

# Display configurations of all service profiles.

<Huawei> display smart-policy-route service-map
SPR service-map                                                                 
--------------------------------------------------------------------------------
service Name                  CurLink Name                                      
--------------------------------------------------------------------------------
map1                          GigabitEthernet0/0/0                              
--------------------------------------------------------------------------------

# Display the configuration of service profile map1.

<Huawei> display smart-policy-route service-map map1
--------------------------------------------------------------------------------
Match acl         : 3001                                                        
DelayThreshold    : 5000                                                        
LossThreshold     : 1000                                                        
JitterThreshold   : 1000                                                        
CmiThreshold      : 0                                                           
WTRRemainTime(s)  : 0
GroupName         : 3                                                           
BackupGroupName   : 4                                                           
Description       :                                                             
Cmi-Method        : d*10+l*5+j*10                                               
CurLinkName       : Tunnel0/0/0                                                 
--------------------------------------------------------------------------------
Table 8-206  Description of the display smart-policy-route service-map command output

Item

Description

service Name

Names of all service profiles.

To set this parameter, run the service-map command.

CurLink Name

Currently used link.

Match acl

ACL for matching service flows.

To set this parameter, run the match acl command.

DelayThreshold

Delay threshold.

To set this parameter, run the set delay threshold command.

LossThreshold

Packet loss rate threshold.

To set this parameter, run the set loss threshold command.

JitterThreshold

Jitter threshold.

To set this parameter, run the set jitter threshold command.

CmiThreshold

CMI threshold.

To set this parameter, run the set cmi threshold command.

WTRRemainTime(s)

Remaining time until traffic is switched from the backup link to the primary link.

To set the parameter, run the wtr period command.

GroupName

Name of the active link group.

To set this parameter, run the set link-group command.

BackupGroupName

Name of the standby link group.

To set this parameter, run the set link-group command.

Description

Service profile description.

To set this parameter, run the description (service profile view) command.

Cmi-Method

CMI calculation formula.

To set this parameter, run the cmi-method command.

CurLinkName

Currently used link.

if-match acl (policy-based route view)

Function

The if-match acl command configures a matching rule of IP addresses in the local PBR.

The undo if-match acl command deletes the matching rule of IP addresses in the local PBR.

By default, no matching rule of IP addresses is configured in the local PBR.

Format

if-match acl acl-number

undo if-match acl

Parameters

Parameter

Description

Value

acl-number

Specifies the ACL number.

The value is an integer ranging from 2000 to 3999. The number of a basic ACL ranges from 2000 to 2999, and the number of an advanced ACL ranges from 3000 to 3999.

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can use this command to define a matching rule of IP addresses in the local PBR.

Precautions

If you run this command multiple times for the same PBR node, only the latest configuration takes effect.

Example

# Apply PBR to packets matching ACL 2000.

<Huawei> system-view
[Huawei] policy-based-route policy1 permit node 10
[Huawei-policy-based-route-policy1-10] if-match acl 2000
Related Topics

if-match packet-length

Function

The if-match packet-length command configures a matching rule of IP packet length in the local PBR.

The undo if-match packet-length command deletes the matching rule of IP packet length in the local PBR.

By default, no matching rule of IP packet length is configured in the local PBR.

Format

if-match packet-length min-length max-length

undo if-match packet-length

Parameters

Parameter

Description

Value

min-length

Specifies the minimum length of IP packets.

The value is an integer ranging from 0 to 65535, in bytes.

max-length

Specifies the maximum length of IP packets.

The value is an integer ranging from 1 to 65535, in bytes. The value of min-length must be smaller than the value of max-length.

Views

Policy-based route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When defining a matching rule of IP packet length, run the if-match packet-length min-length max-length command to specify the IP packet length range.

Precautions

If you run this command in the same PBR node multiple times, only the latest configuration takes effect.

Example

# Apply PBR to packets that have 100 to 200 bytes.

<Huawei> system-view
[Huawei] policy-based-route map1 permit node 10
[Huawei-policy-based-route-map1-10] if-match packet-length 100 200
Related Topics

ip policy-based-route

Function

The ip policy-based-route command enables PBR on an MPLS TE interface.

The undo ip policy-based-route command disables PBR on the MPLS TE interface.

By default, disable PBR on the interface.

Format

ip policy-based-route policy-name

undo ip policy-based-route policy-name

Parameters

Parameter Description Value
policy-name Specifies the policy name. It is a string of 1 to 19 characters.

Views

Interface view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Enable PBR named AAA on GE 1/0/0.

<Huawei> system-view
[Huawei] interface gigabitethernet 1/0/0
[Huawei-GigabitEthernet1/0/0] ip policy-based-route AAA

ip policy-based-route refresh-time

Function

The ip policy-based-route refresh-time command sets the interval at which policy-based local PBR updates LSPs.

The undo ip policy-based-route refresh-time command restores the default interval at which local PBR updates LSPs.

By default, the interval at which local PBR updates LSPs is 5000 ms.

Format

ip policy-based-route refresh-time [ refreshtime-value ]

undo ip policy-based-route refresh-time

Parameters

Parameter Description Value
refreshtime-value Specifies the value of the refresh timer. The value is an integer that ranges from 1000 to 65535, in milliseconds.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

To speed up packet forwarding, PBR must save forwarding information for LSPs. The forwarding information changes according to the network status change. When the network status changes, the forwarding information for LSPs also needs to be updated. In this situation, you can use the ip policy-based-route refresh-time refreshtime-value command to set the interval at which PBR updates LSPs.

Example

# Set the interval at which PBR updates LSPs to 4000 ms.

<Huawei> system view
[Huawei] ip policy-based-route refresh-time 4000

ip local policy-based-route

Function

The ip local policy-based-route command enables the local PBR.

The undo ip local policy-based-route command disables the local PBR.

By default, the local PBR is disabled.

Format

ip local policy-based-route policy-name

undo ip local policy-based-route [ policy-name ]

Parameters

Parameter

Description

Value

policy-name

Specifies the name of a local PBR.

The value is a string of 1 to 19 case-sensitive characters without spaces.

Views

System view, Interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the ip local policy-based-route command to enable the local PBR that applies only to locally generated packets.

Precautions

If you run the ip local policy-based-route command multiple times, only the latest configuration takes effect.

Example

# Enable local PBR named AAA.

<Huawei> system-view
[Huawei] ip local policy-based-route AAA
Related Topics

ip route re-search acl

Function

The ip route re-search acl command enables the SPR function for IPv4 protocol packets generated on a device.

The undo ip route re-search acl command disables the SPR function for IPv4 protocol packets generated on a device.

By default, the SPR function is disabled for IPv4 protocol packets generated on a device.

The following protocols support this command: DNS, HTTP, HWTACACS, ICMP, RADIUS, SNMP, SSH, Telnet, BGP, GRE (GRE-KeepAlive), UDP (UDP-Helper), NQA, NHRP, CAPWAP, and SSL VPN.

Format

ip route re-search acl acl-number

undo ip route re-search acl

Parameters

Counter

Description

Value

acl-number

Specifies the number of an ACL.

It is configured using the acl [ number ] acl-number [ match-order { auto | config } ] command.

The value is an integer that ranges from 3000 to 3999.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the SPR function cannot be enabled for IPv4 protocol packets generated on a device. For example, when POTS phones are directly connected through FXS interfaces on the device, the device converts voice signals on the phones into voice packets. These voice packets do not support the SPR function. When the quality of the voice transmission link changes, the service data link must be dynamically switched to ensure voice quality. In this case, run the ip route re-search acl command to enable the SPR function for IPv4 protocol packets generated on the device.

Before applying the SPR function to IPv4 protocol packets generated on the device, you must run the rule (advanced ACL view) command to create an ACL and then run the match acl command to bind SPR to the ACL.

Precautions

The ACL number of protocol packets enabled with SPR must be the same as the ACL number specified in match acl acl-number.

Example

# Enable the SPR function for HTTP packets generated on a device.

<Huawei> system-view
[Huawei] acl 3000
[Huawei-acl-adv-3000] rule 1 permit 80
[Huawei-acl-adv-3000] quit
[Huawei] ip route re-search acl 3000

ipv6 route re-search acl

Function

The ipv6 route re-search acl command enables the SPR function for IPv6 protocol packets generated on the device.

The undo ipv6 route re-search acl command disables the SPR function for IPv6 protocol packets generated on the device.

By default, the SPR function is disabled for IPv6 protocol packets generated on a device.

The following commands support this command: DNSv6, SSH, TELNET, SNMP, ICMPv6, and BGP4+.

NOTE:

The AR510 series does not support this command.

Format

ipv6 route re-search acl acl6-number

undo ipv6 route re-search acl

Parameters

Parameter

Description

Value

acl6-number

Specifies the number of an IPv6 ACL.

The value is an integer that ranges from 3000 to 3999.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

By default, the SPR function cannot be enabled for IPv6 protocol packets generated on a device. For example, when POTS phones are directly connected through FXS interfaces on the device, the device converts voice signals on the phones into voice packets. These voice packets do not support the SPR function. When the quality of the voice transmission link changes, the service data link must be dynamically switched to ensure voice quality. In this case, run the ip route re-search acl command to enable the SPR function for IPv6 protocol packets generated on the device.

Before applying the SPR function to IPv6 protocol packets generated on the device, you must run the rule (advanced ACL6 view) command to create an IPv6 ACL and then run the match acl ipv6 command to bind SPR to the IPv6 ACL.

Precautions

  • Before running the ipv6 route re-search acl command, you can run the display acl ipv6 command to check whether the ACL used to match service traffic exists. If not, run the acl ipv6 command to create an IPv6 ACL that needs to be bound to the service profile of SPR.
  • The IPv6 ACL number used in the ipv6 route re-search acl command must be the same as that configured in the match acl ipv6 acl6-number command.
  • If you run the ipv6 route re-search acl command multiple times, only the latest configuration takes effect.

Example

# Enable the SPR function for HTTP packets generated on a device.

<Huawei> system-view
[Huawei] acl ipv6 3000
[Huawei-acl6-adv-3000] rule 1 permit 80
[Huawei-acl6-adv-3000] quit
[Huawei] ipv6 route re-search acl 3000

match acl

Function

The match acl command binds an IPv4 ACL to a service profile of SPR.

The undo match acl command unbinds an IPv4 ACL from a service profile of SPR.

By default, no IPv4 ACL is bound to a service profile of SPR.

Format

match acl acl-number &<1-10>

undo match acl acl-number &<1-10>

Parameters

Parameter

Description

Value

acl-number

Specifies the ACL number.

The value is an integer ranging from 2000 to 3999.

The number of a basic ACL ranges from 2000 to 2999, and the number of an advanced ACL ranges from 3000 to 3999.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

ACLs can define different service flows. You can run the match acl command to bind an IPv4 ACL to a service profile of SPR for route selection.

Prerequisites

The service profile has been configured using the service-map command.

Precautions

  • Before running the match acl command, ensure that the IPv4 ACL has been created. You can run the display acl command to check whether the IPv4 ACL used to match service traffic exists. If not, run the acl command to create an IPv4 ACL that needs to be bound to the service profile of SPR.
  • Before you run the undo match acl command, the IPv4 ACL specified by acl-number must have been bound to the service profile of SPR.
  • If you run the match acl command multiple times, all the configurations take effect.

Example

# Bind service profile spr1 to an ACL.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] match acl 2000

match acl ipv6

Function

The match acl ipv6 command binds an IPv6 ACL to a service profile of SPR.

The undo match acl ipv6 command unbinds an IPv6 ACL from a service profile of SPR.

By default, no IPv6 ACL is bound to a service profile of SPR.

NOTE:
The AR510 series does not support this command.

Format

match acl ipv6 acl6-number &<1-10>

undo match acl ipv6 acl6-number &<1-10>

Parameters

Parameter

Description

Value

acl6-number

Specifies the IPv6 ACL number.

NOTE:

You can create a maximum of 10 IPv6 ACLs.

The value is an integer ranging from 2000 to 3999. The number of a basic ACL ranges from 2000 to 2999, and the number of an advanced ACL ranges from 3000 to 3999.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

ACLs can define different service flows. You can run the match acl ipv6 command to bind an IPv6 ACL to a service profile of SPR for route selection.

Prerequisites

The service profile has been configured using the service-map command.

Precautions

  • Before running the match acl ipv6 command, ensure that the IPv6 ACL has been created. You can run the display acl ipv6 command to check whether the IPv6 ACL used to match service traffic exists. If not, run the acl ipv6 command to create an IPv6 ACL that needs to be bound to the service profile of SPR.
  • Before you run the undo match acl ipv6 command, the IPv6 ACL specified by acl6-number must have been bound to the service profile of SPR.
  • IPv4 and IPv6 ACLs cannot be bound to the same SPR service profile.
  • If you run the match acl ipv6 command multiple times, all the configurations take effect.

Example

# Bind service profile spr1 to an IPv6 ACL.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] match acl ipv6 2000

nqa-client

Function

The nqa-client command specifies an NQA client port number.

The undo nqa-client command deletes an NQA client port number.

By default, an NQA client port number is not configured.

Format

nqa-client interface-type interface-number port port-num

undo nqa-client interface-type interface-number

Parameters

Parameter Description Value
interface-type interface-number Specifies the type and number of an interface.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
port port-num Specifies an NQA client port number. The value is an integer that ranges from 1025 to 49151.

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The test result of an NQA test instance is saved on the NQA client, so the NQA client can select the optimal route based on the test result. To select an optimal route on the NQA server, create an NQA server link where the test result of an NQA test instance can be sent from the NQA client to the NQA server, and run the nqa-client command to configure an NQA client port number.

Prerequisites

A detection link has been configured using the prober command.

Precautions

The NQA client port number must be the same as the NQA server port number.

Example

# Configure NQA client port 10000.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] nqa-client gigabitethernet 1/0/0 port 10000
Related Topics

period

Function

The period command sets the SPR switchover period.

The undo period command restores the default SPR switchover period.

The default SPR switchover period is 60 seconds.

Format

period period-value

undo period

Parameters

Parameter

Description

Value

period-value

Specifies the SPR switchover period.

The value is an integer ranging from 1 to 65535, in seconds. The default value is 60 seconds.

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

SPR periodically obtains NQA test results to determine whether a link needs to be switched. If the optimal link calculated based on obtained NQA test results is not the currently used link, SPR starts the switchover timer. If the optimal link calculated based on obtained NQA test results is the currently used link before the switchover timer expires, SPR resets the timer and starts the timer the next time the two links become different. If the two links are always different before the switchover timer expires, SPR triggers a link switchover.

Set the SPR switchover period based on service characteristics. You can set a short switchover period for delay-sensitive services such as voice services.

Example

# Set the SPR switchover period to 3600 seconds.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] period 3600

policy-based-route

Function

The policy-based-route command creates or modifies a policy and a PBR node of the local PBR and displays the local PBR view.

The undo policy-based-route command deletes a policy or a PBR node of the local PBR.

By default, no policy or PBR node is created for the local PBR.

Format

policy-based-route policy-name { permit | deny } node node-id

undo policy-based-route policy-name [ permit | deny | node node-id ]

Parameters

Parameter

Description

Value

policy-name

Specifies the name of a local PBR.

The value is a string of 1 to 19 case-sensitive characters without spaces.

permit

Indicates a PBR mode in which PBR is enabled for matched packets.

-

deny

Indicates a PBR mode in which PBR is disabled for matched packets.

-

node node-id

Specifies the sequence number of a PBR node. A smaller number indicates a higher priority of the corresponding PBR node.

The value is an integer ranging from 0 to 65535.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Before configuring local PBR, run the policy-based-route command to enter the local PBR view.

Example

# Create a PBR named pbr1 and PBR node 1, and specify PBR node 1 in permit mode.

<Huawei> system-view
[Huawei] policy-based-route pbr1 permit node 1
[Huawei-policy-based-route-pbr1-1]

prober

Function

The prober command configures an SPR detection link.

The undo prober command deletes an SPR detection link.

By default, no SPR detection link is configured.

Format

prober interface-type interface-number nqa admin-name test-name

undo prober interface-type interface-number nqa admin-name test-name

undo prober all

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the interface type and interface number of a detection link.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
NOTE:
The interface of a detection link must be a Layer 3 interface.

-

all

All the interfaces of a detection link.

-

nqa

Indicates the NQA test instance.

-

admin-name

Specifies the administrator of the NQA test instance.

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

test-name

Specifies the name of the NQA test instance.

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

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

SPR uses detection links to implement intelligent route selection. You can specify an NQA test instance to probe a link. One or more detection links are added to a link group that is then associated with a service profile.

To enable an NQA test instance to probe a link, specify the NQA test instance and interface in the prober command.

Prerequisites

The specified NQA test instance has been configured.

Precautions

The local end and remote end of the detection link is the NQA client and NQA server respectively.

Example

# Configure the link connected to GE0/0/1 to be probed by an NQA test instance jitter with the administrator admin.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] prober gigabitethernet 0/0/1 nqa admin jitter

redirect backup-nexthop

Function

The redirect backup-nexthop command configures an action of redirecting packets to the backup next hop IP address in a traffic behavior.

The undo redirect backup-nexthop command deletes an action of redirecting packets to the backup next hop IP address in a traffic behavior.

By default, an action of redirecting packets to the backup next hop IP address is not configured.

Format

redirect backup-nexthop ip-address

undo redirect backup-nexthop

Parameters

Parameter

Description

Value

ip-address

Specifies the backup next hop IP address.

The value is in dotted decimal notation.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The redirect backup-nexthop command configures an action of redirecting packets to the backup next hop IP address in a traffic behavior. When redirection to a next hop IP address does not take effect, packets are forwarded according to the backup next hop IP address. If redirection to the backup next hop IP address does not take effect, packets are forwarded according to the routing table or discarded. Redirection to the backup next hop IP address ensures user network robustness.

Prerequisites

The redirect ip-nexthop command has been executed to configure an action of redirecting packets to a next hop IP address in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to a next hop IP address.

Precautions

A traffic policy containing redirection to the backup next hop IP address can be only applied in the inbound direction.

Example

# In the traffic behavior b1, configure redirection to the next hop IP address 10.0.0.1 and backup next hop IP address 20.0.0.1.

<Huawei> system-view
[Huawei] traffic behavior b1
[Huawei-behavior-b1] redirect ip-nexthop 10.0.0.1
[Huawei-behavior-b1] redirect backup-nexthop 20.0.0.1

redirect interface

Function

The redirect interface command configures an action of redirecting packets to an interface in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, an action of redirecting packets to an interface is not configured in a traffic behavior.

Format

redirect interface interface-type interface-number [ track { nqa admin-name test-name | ip-route ip-address { mask | mask-length } | ipv6-route ipv6-address mask-length } ] [ discard ]

undo redirect

Parameters

Parameter

Description

Value

interface-type interface-number

Specifies the interface to which packets are redirected.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

-

track

Enables the track function.

-

nqa admin-name test-name

Specifies the NQA test instance associated with redirection.
  • admin-name specifies the administrator of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.
  • test-name specifies the name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.
NOTE:
Only an NQA test instance of ICMP can be associated with redirection.

-

ip-route ip-address { mask | mask-length }

Specifies the IP route associated with redirection.
  • ip-address specifies the destination IP address. The value is in dotted decimal notation.

  • mask specifies the subnet mask. The value is in dotted decimal notation.

  • mask-length specifies the length of the subnet mask. The value is an integer that ranges from 0 to 32.

-

ipv6-route ipv6-address mask-length

Specifies the IPv6 route associated with redirection.
  • ipv6-address specifies the destination IPv6 address. The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.

  • mask-length specifies the length of the subnet mask. The value is an integer that ranges from 1 to 128.

-

discard

Indicates that the device is configured to discard packets when redirection becomes invalid.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The redirect interface command configures an action of redirecting packets to an interface in a traffic behavior.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to an interface.

Precautions

A traffic policy containing redirection can be applied to only the inbound direction of an interface.

Currently, the device only supports redirection to 3G/LTE and dialer interfaces. In MPoEoA scenarios, the device does not support redirection to a dialer interface.

Example

# Redirect packets to Dialer2 in the traffic behavior b1.
<Huawei> system-view
[Huawei] interface Dialer 2
[Huawei-Dialer2] quit
[Huawei] traffic behavior b1
[Huawei-behavior-b1] redirect interface Dialer 2
Related Topics

redirect ip-nexthop

Function

The redirect ip-nexthop command configures an action of redirecting packets to a next hop IP address in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, an action of redirecting packets to a next hop IP address is not configured in a traffic behavior.

Format

redirect ip-nexthop ip-address [ vpn-instance vpn-instance-name ] [ track { nqa admin-name test-name | ip-route ip-address { mask | mask-length } } ] [ post-nat ] [ discard ]

undo redirect

Parameters

Parameter

Description

Value

ip-address

Specifies a next hop IP address.

The value is in dotted decimal notation.

vpn-instance vpn-instance-name

Specifies the name of a VPN instance.

The value is a string of 1 to 31 case-sensitive characters, spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string.

nqa admin-name test-name

Specifies the NQA test instance associated with redirection.
  • admin-name specifies the administrator of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.
  • test-name specifies the name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.
NOTE:
Only an NQA test instance of ICMP can be associated with redirection.

-

ip-route ip-address { mask | mask-length }

Specifies the IP route associated with redirection.
  • ip-address specifies the destination IP address. The value is in dotted decimal notation.

  • mask specifies the subnet mask. The value is in dotted decimal notation.

  • mask-length specifies the length of the subnet mask. The value is an integer that ranges from 0 to 32.

-

post-nat

Indicates that packets are redirected after packets are translated using NAT.

-

discard

Indicates that the device is configured to discard packets when redirection becomes invalid.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can configure redirection in a traffic behavior to implement PBR.

After the track nqa admin-name test-name or track ip-route ip-address { mask | mask-length } command is executed, the system determines whether to activate redirection based on the result of the link detected by the NQA test instance or routing module:
  • If the NQA test instance or routing module detects a reachable destination IP address, redirection takes effect.
  • When the NQA test instance or routing module detects a reachable destination IP address, redirection is invalid. The device forwards packets based on the original forwarding path if discard is not specified. If discard is specified, the device discards packets.
post-nat is valid for packets transmitted from the public network to the private network and redirected to the SAE board. After post-nat is specified:
  • If NAT is configured for these packets, packets are redirected after NAT is performed.
  • If NAT is not configured for these packets, post-nat does not take effect.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to a next hop IP address.

Precautions

This action is valid for only IPv4 packets.

A traffic policy containing the redirection action can be only used on an interface in the inbound direction.

If the device has no ARP entry matching the specified next hop IP address, ARP learning is triggered. If no ARP entry is learned, redirection is invalid. The device forwards packets based on the original forwarding path if discard is specified; otherwise, the device discards packets.

Example

# Redirect packets to next hop 10.0.0.1 in the traffic behavior b1.

<Huawei> system-view
[Huawei] traffic behavior b1
[Huawei-behavior-b1] redirect ip-nexthop 10.0.0.1
Related Topics

redirect ipv6-nexthop

Function

The redirect ipv6-nexthop command configures an action of redirecting packets to a next hop IPv6 address in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, an action of redirecting packets to a next hop IPv6 address is not configured in a traffic behavior.

Format

redirect ipv6-nexthop ipv6-address [ track { nqa admin-name test-name | ipv6-route ipv6-address mask-length } ] [ discard ]

undo redirect

Parameters

Parameter

Description

Value

ipv6-address

Specifies a next hop IPv6 address.

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

track

Enables the track function.

-

nqa admin-name test-name

Specifies the NQA test instance associated with redirection.
  • admin-name specifies the administrator of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.
  • test-name specifies the name of an NQA test instance. The value is a string of 1 to 32 case-sensitive characters without spaces.
NOTE:
Only an NQA test instance of ICMP can be associated with redirection.

-

ipv6-route ipv6-address mask-length

Specifies the IPv6 route associated with redirection.
  • ipv6-address specifies the destination IPv6 address. The address is a 32-digit hexadecimal number, in the format X:X:X:X:X:X:X:X.

  • mask-length specifies the length of the subnet mask. The value is an integer that ranges from 1 to 128.

-

discard

Indicates that the device is configured to discard packets when redirection becomes invalid.

-

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can configure redirection in a traffic behavior to implement PBR.

Follow-up Procedure

Run the traffic policy command to create a traffic policy and run the classifier behavior command in the traffic policy view to bind the traffic classifier to the traffic behavior containing redirection to a next hop IPv6 address.

Precautions

This action is valid for only IPv6 packets.

A traffic policy containing redirection can be applied to only the inbound direction of an interface.

If the device does not match the neighbor entry corresponding to the next-hop IPv6 address, the device sends NS packets to check whether the neighbor is reachable. If the neighbor is unreachable, packets are forwarded based on the original path and redirection is invalid. The device forwards packets based on the original forwarding path if discard is not specified. If discard is specified, the device discards packets.

If you run the redirect ipv6-nexthop command in the same traffic classifier view multiple times, only the latest configuration takes effect.

Example

# Configure a next hop IPv6 address in the traffic behavior b1: FC00:0:0:2001::1.

<Huawei> system-view
[Huawei] traffic behavior b1
[Huawei-behavior-b1] redirect ipv6-nexthop fc00:0:0:2001::1
Related Topics

redirect vpn-instance

Function

The redirect vpn-instance command configures an action of redirecting packets to a VPN instance in a traffic behavior.

The undo redirect command deletes the redirection configuration.

By default, the action of redirecting packets to a VPN instance is not configured in a traffic behavior.

Format

redirect vpn-instance vpn-instance-name

undo redirect

Parameters

Parameter

Description

Value

vpn-instance-name

Specifies the name of a VPN instance to which packets need to be redirected.

The value is a string of 1 to 31 case-sensitive characters without spaces. If the character string is quoted by double quotation marks, the character string can contain spaces.

Views

Traffic behavior view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When there are multiple egresses to the external network and some packets need to be forwarded through a specified egress, you can configure redirection.

After the redirect vpn-instance command is used, the device redirects packets matching traffic classification rules to a specified VPN instance.

As shown in Figure 8-1, Interface1 and Interface2 are bound to different VPN instances, and the action of redirecting packets to a VPN instance is configured on Interface3.

Figure 8-1  Networking of redirection
Packet forwarding rules are as follows:
  1. The device searches for the routing table according to the redirected VPN instance. If no routing entry is found, packets are discarded.
  2. If packets are not redirected to a specified VPN instance, packets are forwarded according to the path before redirection.

Prerequisites

A traffic behavior has been created using the traffic behavior command in the system view.

Precautions

  • This command is valid for only incoming packets on an interface.
  • The command is delivered only to the SRU but not the interface card.
  • When Layer 3 traffic does not pass through the SRU and there is no reachable route, the packets match the default route and is sent to the multi-core forwarding engine. In this case, the redirection takes effect.

Example

# Configure the device to redirect packets to the VPN instance vpna in the traffic behavior b1.

<Huawei> system-view
[Huawei] traffic behavior b1
[Huawei-behavior-b1] redirect vpn-instance vpna
Related Topics

route flapping suppression

Function

The route flapping suppression command sets the flapping suppression period of SPR.

The undo route flapping suppression command deletes the flapping suppression period of SPR.

By default, the flapping suppression period is not set for SPR.

Format

route flapping suppression period-value

undo route flapping suppression

Parameters

Parameter

Description

Value

period-value

Specifies the flapping suppression period.

The value is an integer, in seconds. The maximum value is 131070 , and the minimum value is two times the SPR switchover period, the minimum value is 120 .

Views

Smart policy route view

Default Level

2: Configuration level

Usage Guidelines

If SPR performs link switchover frequently because of link flappings, service forwarding efficiency deteriorates. To prevent frequent link switchovers, run the route flapping suppression command to set a flapping suppression period. SPR does not perform link switchovers within the flapping suppression period.

NOTE:
  • The flapping suppression function is disabled by default, and the flapping suppression period is configurable. After traffic is switched to a new link, SPR starts the flapping suppression timer. Within a flapping suppression period, SPR does not perform a link switchover even if it does not obtain link NQA test results indicating that the link meets service requirements within a switchover period. After the flapping suppression timer expires, if SPR still does not obtain NQA test results indicating that the link meets service requirements within a switchover period, SPR performs a link switchover. If SPR obtains NQA test results indicating that the link meets service requirements within a switchover period, SPR retains traffic on the link.
  • You are advertised to set the flapping suppression period to a multiple of the switchover period. The minimum flapping suppression period is two times the SPR switchover period that is set using the period command.

Example

# Set the flapping suppression period to 360 seconds.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] route flapping suppression 360
Related Topics

route-policy nonexistent-config-check

Function

The route-policy nonexistent-config-check command controls whether the system allows a nonexistent route-policy to be specified in a command.

The undo route-policy nonexistent-config-check disable command forbids a nonexistent route-policy to be specified in a command.

By default, the system does not allow a nonexistent route-policy to be specified in a command.

Format

route-policy nonexistent-config-check { disable | enable }

undo route-policy nonexistent-config-check disable

Parameters

Parameter Description Value
disable Indicates that the system allows a nonexistent route-policy to be specified in a command. -
enable Indicates that the system does not allow a nonexistent route-policy to be specified in a command. -

Views

System view

Default Level

2: Configuration level

Usage Guidelines

By default, if you specify a nonexistent route-policy in a command, the command does not take effect. To enable the system to allow a nonexistent route-policy to be specified in a command, run the route-policy nonexistent-config-check disable command.

Example

# Enable the system to allow a nonexistent route-policy to be specified in a command.

<Huawei> system-view
[Huawei] route-policy nonexistent-config-check disable

service-map

Function

The service-map command creates a service profile of SPR and displays the service profile view.

The undo service-map command deletes a service profile of SPR.

By default, no service profile is configured for SPR.

Format

service-map name

undo service-map name

Parameters

Parameter

Description

Value

name

Specifies the name of a service profile.

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

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

The service traffic that needs to be forwarded based on smart policies must be associated with service profiles. The link group, service delay threshold, service packet loss threshold, and service CMI threshold must be configured for the service profiles. SPR matches service traffic with the service profile to select routes for the service traffic.

Example

# Create service profile spr1 and enter the service profile view.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1]

set cmi threshold

Function

The set cmi threshold command sets the composite measure indicator (CMI) threshold for SPR.

The undo set cmi threshold command restores the default CMI threshold of SPR.

The default CMI threshold is 0.

Format

set cmi threshold threshold-value

undo set cmi threshold

Parameters

Parameter

Description

Value

threshold-value

Specifies a CMI threshold.

The value is an integer, and the value range varies according to the CMI calculation formula, and thresholds of the delay, jitter, and packet loss rate. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum value is 9000.

For example, when the delay threshold is 1000 ms, jitter threshold is 1000 ms, packet loss rate threshold is 100‰, and CMI calculation formula is 9000 – (D + J + L), the CMI threshold ranges from 6900 to 9000.

NOTE:

The CMI threshold ranges from 0 to 9000 when the default CMI calculation formula and the default thresholds of the delay, jitter, and packet loss rate are used.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure the CMI calculation formula, run the cmi-method command. The default CMI calculation formula is 9000 – [D (delay) + J (jitter) + L (loss)]. Many services have requirements for link delay, jitter, and packet loss rate. Therefore, users need to configure the correct CMI calculation formula according to service requirements and run the set cmi threshold command to set the CMI threshold. When the calculated CMI value is smaller than the configured CMI threshold, SPR determines that the link CMI does not meet service requirements.

Precautions

The CMI threshold range varies according to values set using the cmi-method, set delay threshold, set jitter threshold, and set loss threshold commands. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum value is 9000.

Example

# Set the CMI threshold for service profile spr1 to 7000.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] set cmi threshold 7000

set delay threshold

Function

The set delay threshold command sets the service delay threshold of SPR.

The undo set delay threshold command restores the service delay threshold of SPR.

The default service delay threshold is 5000 ms.

Format

set delay threshold threshold-value

undo set delay threshold

Parameters

Parameter

Description

Value

threshold-value

Specifies a service delay threshold.

The value is an integer ranging from 0 to 5000, in milliseconds.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The service delay threshold is the maximum service delay allowed by services on a link. If services require a short delay, this threshold needs to be set. When the link delay is longer than the threshold, the link quality is unsatisfied.

Precautions

The CMI threshold changes after you run the set delay threshold command. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum value is 9000.

Example

# Set the service delay threshold for service profile spr1 to 1000 ms.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] set delay threshold 1000

set jitter threshold

Function

The set jitter threshold command sets the service jitter threshold of SPR.

The undo set jitter threshold command restores the default service jitter threshold of SPR.

The default service jitter threshold of SPR is 3000 ms.

Format

set jitter threshold threshold-value

undo set jitter threshold

Parameters

Parameter

Description

Value

threshold-value

Specifies a service jitter threshold.

The value is an integer ranging from 0 to 3000, in milliseconds.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The service jitter threshold is the maximum service jitter allowed by services on a link. If services require a low jitter, this threshold needs to be set. When the link jitter is higher than the threshold, the link quality is unsatisfied.

Precautions

The CMI threshold changes after you run the set jitter threshold command. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum value is 9000.

Example

# Set the service jitter threshold for service profile spr1 to 1000 ms.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] set jitter threshold 1000

set loss threshold

Function

The set loss threshold command sets the packet loss rate threshold of SPR.

The undo set loss threshold command restores the default packet loss rate threshold of SPR.

The default packet loss rate threshold of SPR is 1000‰.

Format

set loss threshold threshold-value

undo set loss threshold

Parameters

Parameter

Description

Value

threshold-value

Specifies a packet loss rate threshold.

The value is an integer ranging from 0 to 1000, in permillage.

Views

Service profile view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The packet loss rate threshold is the maximum packet loss rate allowed by services on a link. If services require a low packet loss rate, this threshold needs to be set. When the packet loss rate of a link is higher than this threshold, the link quality is unsatisfied.

Precautions

The CMI threshold changes after you run the set loss threshold command. The minimum CMI threshold is the value calculated in the CMI calculation formula using the thresholds of the delay, jitter, and packet loss rate. The maximum value is 9000.

Example

# Set the packet loss ratio for the service profile spr1 to 100‰.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] service-map spr1
[Huawei-smart-policy-route-service-map-spr1] set loss threshold 100

smart-policy-route

Function

The smart-policy-route command creates SPR and displays the SPR view.

The undo smart-policy-route command deletes SPR.

By default, the SPR is not configured.

Format

smart-policy-route

undo smart-policy-route

Parameters

None

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Before configuring SPR, run the smart-policy-route command to enter the SPR view.

NOTE:
If an SPR exists, the smart-policy-route command displays the smart-policy-route view.

Example

# Create SPR and enter the SPR view.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route]

standby-interface (smart-policy-route view)

Function

The standby-interface command configures an interface that can be automatically shut down when the backup link is not selected in SPR.

The undo standby-interface command restores the default configuration.

By default, no interface is automatically shut down when the backup link is not selected in SPR.

Format

standby-interface { interface-type interface-number } [ track nqa admin-name test-name re-probe interface-type interface-number ]

undo standby-interface { interface-type interface-number | all }

Parameters

Parameter

Description

Value

interface-type interface-number
Specifies the type and number of the interface that can be automatically shut down when the backup link is not selected in SPR.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.

If you select the track nqa admin-name test-name re-probe interface-type interface-number parameter, standby-interface interface-type interface-number specifies a backup link interface, and re-probe interface-type interface-number specifies a master link interface.

Currently, only a cellular or GigabitEthernet interface can function as an SPR backup link interface.

track nqa admin-name test-name

Specifies the administrator and name of an NQA test instance.

  • admin-name: specifies the name of the administrator for an NQA test instance.
  • test-name: specifies the name of an NQA test instance.

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

re-probe interface-type interface-number
Specifies the interface type and number of the master link.
  • interface-type specifies the interface type.
  • interface-number specifies the interface number.
-
all

All the interfaces that can be automatically shut down when the backup link is not selected in SPR.

-

Views

Smart-policy-route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the standby-interface command to shut down the backup link that is not selected in SPR to save traffic and reduce the costs.

In SPR, an NQA test instance is automatically performed on the master link at a long interval, failing to meet complex scenario requirements. If you select the track nqa admin-name test-name re-probe interface-type interface-number parameter, the device adds an associated NQA test instance for the specified master link interface according to the re-probe interface-type interface-number parameter. The added NQA test instance can work with the NQA test instance on the master link to provide more frequent link detection, removing the need to change the interval for performing the NQA test instance on the master link. Subsequently, link information can be obtained in a more timely manner.

Prerequisites

An SPR detection link has been configured using the prober command when only the standby-interface interface-type interface-number command is executed.

Precautions

When the CMIs of all the links in SPR are smaller than the threshold, the SPR detection link activates the shutdown interface to set up a connection again for SPR route selection.

If you need to select the track nqa admin-name test-name re-probe interface-type interface-number parameter, pay attention to the following points:
  • The configured interval for performing an NQA test instance on the backup link must be shorter than that on the master link. To set the interval for performing NQA test instances on the master and backup links, run the frequency command.
  • The NQA test instance must be an ICMP test.
  • The backup link must use a different interface than the master link. That is, the backup link interface configured by standby-interface interface-type interface-number cannot be the same as the master link interface configured by re-probe interface-type interface-number.

Example

# Configure Cellular0/0/0 to be automatically shut down when the backup link is not selected in SPR. Cellular0/0/0 is the detection link interface, NQA test instance is nqa1, and the administrator is admin.

<Huawei> system-view
[Huawei] nqa test-instance admin nqa1
[Huawei-nqa-admin-nqa1] start now
[Huawei-nqa-admin-nqa1] quit
[Huawei] smart-policy-route
[Huawei-smart-policy-route] prober cellular 0/0/0 nqa admin nqa1
[Huawei-smart-policy-route] standby-interface cellular 0/0/0

# Configure the backup link interface Cellular0/0/0 to be automatically shut down when the backup link is not selected in SPR. Cellular0/0/1 is the master link interface, NQA test instance is nqa2, and the administrator is admin.

<Huawei> system-view
[Huawei] nqa test-instance admin nqa2
[Huawei-nqa-admin-nqa2] test-type icmp
[Huawei-nqa-admin-nqa2] destination-address ipv4 10.1.1.1
[Huawei-nqa-admin-nqa2] frequency 10
[Huawei-nqa-admin-nqa2] source-interface Cellular 0/0/1
[Huawei-nqa-admin-nqa2] start now
[Huawei-nqa-admin-nqa2] quit
[Huawei] smart-policy-route
[Huawei-smart-policy-route] standby-interface cellular 0/0/0 track nqa admin nqa2 re-probe cellular 0/0/1

standby-limit-time (smart-policy-route view)

Function

The standby-limit-time command sets the delay in automatically shutting down an interface when the backup link is not selected in SPR.

The undo standby-limit-time command restores the default delay.

By default, the delay in automatically shutting down an interface when the backup link is not selected in SPR is 3600 seconds.

Format

standby-limit-time standby-limit-time

undo standby-limit-time

Parameters

Parameter

Description

Value

standby-limit-time

Specifies the delay in automatically shutting down an interface when the backup link is not selected in SPR.

The value is an integer that ranges from 60 to 28800, in seconds.

Views

Smart-policy-route view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After the standby-interface (smart-policy-route view) command configures an interface that can be automatically shut down when the backup link is not selected in SPR, the interface is shut down if the backup link is not selected as the primary link within the configured delay.

Precautions

When the CMIs of all the links in SPR are smaller than the threshold, the SPR detection link activates the shutdown interface to set up a connection again for SPR route selection. The connection needs to be set up again after a certain period. Therefore, a large delay in automatically shutting down the interface ensures service stability, while a small delay saves traffic.

Example

# Set the delay in automatically shutting down an interface when the backup link is not selected in SPR to 7000s.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] standby-limit-time 7000

wtr period

Function

The wtr period command sets the waiting time before the SPR switches from the backup link to the primary link.

The undo wtr period command deletes the configured waiting time.

By default, SPR switches from the backup link to the primary link immediately after it detects that the primary link recovers.

Format

wtr period { seconds | days days | hours hours | minutes minutes }

undo wtr period

Parameters

Parameter

Description

Value

seconds

Specifies the waiting time before traffic is switched from the backup link to the primary link, in seconds.

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

days days

Specifies the waiting time before traffic is switched from the backup link to the primary link, in days.

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

hours hours

Specifies the waiting time before traffic is switched from the backup link to the primary link, in hours.

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

minutes minutes

Specifies the waiting time before traffic is switched from the backup link to the primary link, in minutes.

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

Views

Smart policy routing view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When the primary link fails, SPR switches from the primary link to the backup link. When the primary link recovers, SPR switches back from the backup link to the primary link immediately. If some important services are being transmitted on the backup link, some traffic is lost in the switchover process. To ensure transmission reliability for important services on the backup link, configure the waiting time before traffic is switched from the backup link to the primary link.

After the waiting time is configured, the device starts calculating the waiting time when SPR switches to the backup link, the flapping suppression time ends, and the primary link recovers. If the device detects that the primary link is working properly within the configured waiting time, the device switches traffic from the backup link to the primary link after the waiting time ends. If the device detects that the primary link does not meet traffic forwarding requirements within the waiting time, the device starts calculating the waiting time again next time it detects that the primary link recovers.

Example

# Set the waiting time before SPR switches from the backup link to the primary link to 24 hours.

<Huawei> system-view
[Huawei] smart-policy-route
[Huawei-smart-policy-route] wtr period hours 24
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 48028

Downloads: 102

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