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

HSB Configuration Commands

NOTE:
  • HSB allows only two devices to back up each other. In addition, the model and software version of the two devices must be the same.

  • Only firewall HSB is supported.

  • In a hot standby system, the master and slave systems exchange TCP plain-text data, which brings security risk. It is recommended to configure IPSec between the master and slave systems to protect data.

bind-service

Function

The bind-service command binds an HSB service to an HSB group.

The undo bind-service command unbinds the HSB service from the HSB group.

By default, no HSB service is bound to an HSB group.

Format

bind-service service-index

undo bind-service service-index

Parameters

Parameter

Description

Value

service-index

Specifies the ID of an HSB service.

The value is fixed as 0.

Views

HSB group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An HSB group synchronizes backup information and responds to link status changes through the HSB channel established by the HSB service. To make the HSB group work properly, bind an HSB service to the HSB group.

Prerequisites

An HSB group has been configured.

Example

# Bind HSB service 0 to an HSB group.

<Huawei> system-view
[Huawei] hsb-group 0
[Huawei-hsb-group-0] bind-service 0
Related Topics

display firewall hsb statistics event

Function

The display firewall hsb statistics event command displays statistics on firewall HSB events.

Format

display firewall hsb statistics event

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

To view statistics on firewall HSB events, run this command.

Example

# Display statistics on firewall HSB events.

<Huawei> display firewall hsb statistics event
Firewall HSB Statistic Event:
----------------------------------------------------------
  Firewall Notify Fecd Enable Error  : 0  
  Firewall Notify Fecd Working Error : 0  
  Firewall Notify Fecd Tunnel  Error : 0  
  Firewall Notify Fecd Status  Error : 0  
  Firewall Notify Fecd Purge   Error : 0  
  Firewall Notify Fecd Backup  Error : 0  

  Firewall Recive Purge Entry        : 1  
  Firewall Recive Purge Event        : 0  
  Firewall Purge Write Error         : 0  

  Firewall Recive Backup Entry:      : 0  
  Firewall Recive Backup Event       : 0  
  Firewall Backup Write Error        : 0  

  Firewall Recive Event Error        : 0  
  Firewall Deal Event Event          : 0  
  Firewall Deal Event Independent    : 0  
  Firewall Deal Event Del            : 1  
  Firewall Deal Event Add            : 0  
  Firewall Deal Event Switch         : 0  

  Firewall Recive Pkt Error          : 0  
  Firewall Deal Pkt Event            : 0  
  Firewall Deal Pkt Switch End       : 0  
  Firewall Deal Pkt Backup End       : 1  
  Firewall Write Event End Error     : 0  

  Firewall Recive Tunnel Cfg Error   : 0  
  Firewall Send Fecd Cfg Error       : 0  
  Firewall Deal Tunnel Add           : 1  
  Firewall Deal Tunnel Del           : 0  

----------------------------------------------------------

Table 13-4  Description of the display firewall hsb statistics event command output

Item

Description

Firewall Notify Fecd Enable Error

The control plane notifies the forwarding plane of the failure in enabling the firewall HSB function.

Firewall Notify Fecd Working Error

The control plane notifies the forwarding plane of the failure in enabling the firewall function.

Firewall Notify Fecd Tunnel Error

The control plane notifies the forwarding plane of the failure in setting HSB service channel parameters.

Firewall Notify Fecd Status Error

The control plane notifies the forwarding plane of the failure in backup.

Firewall Notify Fecd Purge Error

The control plane notifies the forwarding plane of the batch deletion failure.

Firewall Notify Fecd Backup Error

The control plane notifies the forwarding plane of the batch backup failure.

Firewall Recive Purge Entry

Entrance for receiving the batch deletion end event from the forwarding plane on the control plane.

Firewall Recive Purge Event

Failure in receiving the batch deletion end event from the forwarding plane on the control plane.

Firewall Purge Write Error

Errors occur when the control plane completes writing HSB mechanism batch deletion events.

Firewall Recive Backup Entry

Entrance for receiving the batch backup end event from the forwarding plane on the control plane.

Firewall Recive Backup Event

Failure in receiving the batch backup end event from the forwarding plane on the control plane.

Firewall Backup Write Error

Errors occur when the control plane completes writing HSB mechanism batch backup events.

Firewall Recive Event Error

Errors occur when firewall HSB receives HSB group events.

Firewall Deal Event Event

Firewall HSB fails to process HSB group events.

Firewall Deal Event Independent

Firewall HSB processes HSB group independent events.

Firewall Deal Event Del

Firewall HSB processes HSB group batch deletion events.

Firewall Deal Event Add

Firewall HSB processes HSB group batch backup events.

Firewall Deal Event Switch

Firewall HSB processes HSB group switch events.

Firewall Recive Pkt Error

Errors occur when firewall HSB receives HSB mechanism packets.

Firewall Deal Pkt Event

Firewall HSB fails to process HSB mechanism packets.

Firewall Deal Pkt Switch End

Firewall HSB receives the peer firewall master/backup switch end packets.

Firewall Deal Pkt Backup End

Firewall HSB receives the peer firewall batch backup end packets.

Firewall Write Event End Error

Errors occur when the control plane completes writing HSB mechanism batch backup or switch events.

Firewall Recive Tunnel Cfg Error

Errors occur when firewall HSB receives HSB channel configurations.

Firewall Send Fecd Cfg Error

Firewall HSB fails to deliver channel configurations to the forwarding plane.

Firewall Deal Tunnel Add

Firewall HSB receives channel adding events.

Firewall Deal Tunnel Del

Firewall HSB receives channel deletion events.

display hsb statistics hsb-group

Function

The display hsb statistics hsb-group command displays statistics on processes of an HSB group.

Format

display hsb statistics hsb-group group-index event

Parameters

Parameter

Description

Value

group-index

Specifies the index of an HSB group.

The value is 0 and only one HSB group is supported.

event

Indicates process statistics.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display hsb statistics hsb-group command displays statistics on processes. Two main processes are involved: negotiation process and switching process.

Example

# Display statistics on processes of the HSB public mechanism.

<Huawei> display hsb statistics hsb-group 0 event
Hot Standby Statistic Event:
----------------------------------------------------------
Hot Standby Group Dealed Vrrp Group Record: 
  Local_Vrrp Peer_Vrrp  Batch_Status  Systime  
  BACKUP     BACKUP     Ind             No   2013-4-23 11:55:2
  MASTER     BACKUP     Ind             No   2013-4-23 11:55:8

Hot Standby Group Event Record:  
  Run Independent Event   : 0
  Realtime Sync Event     : 0
  Delete Event(Snd, Recv) : 0, 0
  Add Event(Snd, Recv)    : 1, 0
  Switch Event(Snd, Recv) : 0, 0

Hot Standby Group Process Record: 
  Negotiate Start Entry                 : 1                                        
  Negotiate Has Started                 : 0                                          
  Negotiate Start Send Pkt Failed       : 0                                     
                                                                                                      
  Negotiate Req Entry                   : 0                                 
  Negotiate Req Failed                  : 0 
  Negotiate Req Batch Status Error      : 0  
  Negotiate Req Vrrp Status Error       : 0                           
  Negotiate Req Check Para Failed       : 0           
  Negotiate Req Notify Event Failed     : 0                     
                                                                                                      
  Negotiate Del Entry                   : 0                              
  Negotiate Del Batch Status Error      : 0            
  Negotiate Del Vrrp Status Error       : 0                      
  Negotiate Del Send Pkt Failed         : 0             
                                                                                                      
  Negotiate Ack Entry                   : 1                                   
  Negotiate Ack Failed                  : 0                       
  Negotiate Ack Batch Status Error      : 0             
  Negotiate Ack Vrrp Status Error       : 0                    
  Negotiate Ack Notify Event Failed     : 0               
                                                                                                      
  Negotiate Add Entry                   : 0                             
  Negotiate Add Batch Status Error      : 0             
  Negotiate Add Vrrp Status Error       : 0                       
  Negotiate Add Send Pkt Failed         : 0                        
                                                                                                      
  Negotiate End Entry                   : 1                                          
  Negotiate End Failed                  : 0                       
  Negotiate End Batch Status Error      : 0             
  Negotiate End Vrrp Status Error       : 0                      
                                                                                                      
  Switch Start Entry                    : 0                                    
  Switch Has Started                    : 0          
  Switch Start Send Pkt Failed          : 0                                
                                                                                                      
  Switch Req Entry                      : 0                              
  Switch Req Failed                     : 0                               
  Switch Req Batch Status Error         : 0                
  Switch Req Notify Event Failed        : 0                      
                                                                                                      
  Switch Switching Entry                : 0                        
  Switch Switching Batch Status Error   : 0     
  Switch Switching Send Pkt Failed      : 0              
  Switch Switching Vrrp Changed         : 0                     
  Switch Switching Notify Vrrp Failed   : 0   
                                                                                                      
  Switch End Entry                      : 0                                         
  Switch End Failed                     : 0                         
  Switch End Batch Status Error         : 0           
  Switch End Vrrp Changed               : 0                    
  Switch End Notify Vrrp Failed         : 0   
                                                                                                      
  HSB Group Vrrp All Master             : 0                             
  HSB Group Vrrp All Backup             : 0                             
                                                                                                      
  HSB Group Notify All Group Event Error: 0                          
  HSB Group Notify One Group Event Error: 0                          
  HSB Group Recive Group Event Error    : 0                     
  HSB Group Vrrp State Event            : 2 
  HSB Group Vrrp State Dealed Event     : 0                                   
  HSB Group Packet To Task Error        : 0                        
  HSB Group Packet To Task Failed       : 0 
----------------------------------------------------------

display hsb statistics hsb-service

Function

The display hsb statistics hsb-service command displays statistics on packets or processes of the HSB public mechanism.

Format

display hsb statistics hsb-service service-index { event | packet }

Parameters

Parameter

Description

Value

service-index

Specifies the index of an HSB service.

The value is 0 and only one HSB service is supported.

packet

Indicates packet statistics.

-

event

Indicates process statistics.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

The display hsb statistics hsb-service command displays statistics on received, sent, and discarded packets or processes of the HSB public mechanism.

Example

# Display statistics on packets of the HSB public mechanism.

<Huawei> display hsb statistics hsb-service 0 packet
Hot Standby Service Packet Statistics:
----------------------------------------------------------
  Packet Sent    : 5                                      
  Packet Recived : 4                                      
  Packet Dropped : 0                                      
----------------------------------------------------------

# Display statistics on processes of the HSB public mechanism.

<Huawei> display hsb statistics hsb-service 0 event
Hot Standby Service Process Record:
----------------------------------------------------------
  HSB Service Packet To Group Failed    : 0               
  HSB Service Packet To Group Error     : 0               
  HSB Service Packet To Task Error      : 0               
  HSB Service Packet To Outer Error     : 0               
  HSB Service Tunnel State Event        : 1               
----------------------------------------------------------
Table 13-5  Description of the display hsb statistics hsb-service command output

Item

Description

Packet Sent

Number of sent packets.

Packet Recived

Number of received packets.

Packet Dropped

Number of discarded packets.

HSB Service Packet To Group Failed

An error occurs when the HSB service delivers HSB service packets to the HSB group.

HSB Service Packet To Group Error

Failure to deliver HSB service packets to the HSB group.

HSB Service Packet To Task Error

Failure to deliver HSB service packets to the backup service.

HSB Service Packet To Outer Error

Failure to deliver HSB service packets to the external module (HSB group or HSB service).

HSB Service Tunnel State Event

HSB service tunnel status event.

display hsb-group

Function

The display hsb-group command displays information about an HSB group.

Format

display hsb-group group-index

Parameters

Parameter

Description

Value

group-index

Specifies the ID of an HSB group.

The value is 0.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view information about an HSB group.

Example

# Display information about HSB group 0.

<Huawei> display hsb-group 0
Hot Standby Group Configuration:
----------------------------------------------------------
  HSB-group ID                : 0                                
  Vrrp Group ID               : 2                                
  Vrrp Interface              : Vlanif100                        
  Service Index               : 0                                
  Group Vrrp Status           : Master                           
  Group Status                : Active                           
  Group Backup Process        : Realtime                         
  Peer Group Device Name      : AR530                     
  Peer Group Software Version : V200R005C60                
  Group Backup Modules        : Firewall                
Table 13-6  Description of the display hsb-group command output

Item

Description

HSB-group ID

ID of an HSB group.

Vrrp Group ID

VRID of the Virtual Router Redundancy Protocol (VRRP) group.

Vrrp Interface

Interface configured with the VRRP group.

Service Index

HSB service ID.

Group Vrrp Status

Status of the VRRP group:

  • Master
  • Backup
  • Initialize

Group Status

HSB group status:

  • Active
  • Inactive
  • Independent
  • Switching

Group Backup Process

Backup process status:

  • Independent: independent backup state
  • Batch-Started: batch backup negotiation state
  • Batch-Deleting: batch deletion state
  • Batch-Delete-End: batch deletion end state
  • Batch-Adding: batch backup state
  • Realtime: real-time backup state
  • Switching: switching state

Peer Group Device Name

Device name corresponding to the peer HSB group.

Peer Group Software Version

Software version corresponding to the peer HSB group.

Group Backup Modules

Service module bound to the HSB group.

display hsb-service

Function

The display hsb-service command displays information about an HSB service.

Format

display hsb-service service-index

Parameters

Parameter

Description

Value

service-index

Specifies the ID of an HSB service.

The value is fixed as 0.

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

You can run this command to view information about an HSB service.

Example

# Display information about HSB service 0.

<Huawei> display hsb-service 0
Hot Standby Service Information:
----------------------------------------------------------
  Local IP Address       : 192.168.4.1
  Peer IP Address        : 192.168.4.2
  Source Port            : 10245
  Destination Port       : 10245
  Keep Alive Times       : 5
  Keep Alive Interval    : 3
  Service State          : Not Valid
  Service Batch Modules  :
----------------------------------------------------------
Table 13-7  Description of the display hsb-service command output

Item

Description

Local IP Address

IP address of the local device.

Peer IP Address

IP address of the peer device.

Source Port

Local port number.

Destination Port

Destination port number.

Keep Alive Times

Number of times that heartbeat packets are sent.

Keep Alive Interval

Interval for sending heartbeat packets.

Service State

Status of the HSB service:

  • Connected
  • Disconnected
  • Not Valid

Service Batch Modules

Service modules bound to to an HSB service.

display hsb-service-type firewall hsb-group

Function

The display hsb-service-type firewall hsb-group command displays firewall HSB group information.

Format

display hsb-service-type firewall hsb-group

Parameters

None

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

When the firewall service works in HSB mode, you can run this command to view firewall HSB group information.

Example

# Display firewall HSB group information.

<Huawei> display hsb-service-type firewall hsb-group
Firewall HSB Group Backup Information:
----------------------------------------------------------
  Firewall HSB Group : 0
----------------------------------------------------------
Table 13-8  Description of the display hsb-service-type firewall hsb-group command output

Item

Description

Firewall hsb group

ID of the HSB group.

display hsb-service-type vpn-instance

Function

The display hsb-service-type vpn-instance command displays information about the HSB service bound to a VPN instance.

Format

display hsb-service-type vpn-instance hsb-service

Parameters

Parameter

Description

Value

hsb-service

Information about the HSB service.

-

Views

All views

Default Level

1: Monitoring level

Usage Guidelines

Usage Scenario

The display hsb-service-type vpn-instance command displays information about the HSB service bound to a VPN instance.

Example

# Display information about the HSB service bound to a VPN instance.

<Huawei> display hsb-service-type vpn-instance hsb-service
Vpn-instance HSB Service Information:                                           
----------------------------------------------------------                      
  Vpn-instance HSB Service : 0                                                  
---------------------------------------------------------- 

display hsb-service-type vpn-instance information

Function

The display hsb-service-type vpn-instance information command displays HSB information about VPN instances.

Format

display hsb-service-type vpn-instance information

Parameters

None

Views

All views

Default Level

3: Management level

Usage Guidelines

You can run this command to view the mapping between the VPN instance name, VPN instance ID on the local device, and VPN instance ID on the remote device.

Example

# Display HSB information about VPN instances.

<Huawei> display hsb-service-type vpn-instance information
Vpn-instance HSB information:
------------------------------------------------------------------
  Vpn-Name                         Local Vpn-ID     Remote Vpn-ID   
  aaa                              1                1               
  abcd                             2                -               
  bbb                              3                3               
  ddd                              4                4               
  eee                              5                5               
  asdf                             -                2               
------------------------------------------------------------------
Table 13-9  Description of the display hsb-service-type vpn-instance information command output

Item

Description

Vpn-Name

VPN instance name.

Local Vpn-ID

VPN instance ID on the local device.

Remote Vpn-ID

VPN instance ID on the remote device.

hsb enable

Function

The hsb enable command enables HSB for an HSB group.

The undo hsb enable command disables HSB for an HSB group.

By default, HSB is disabled.

Format

hsb enable

undo hsb enable

Parameters

None

Views

HSB group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After HSB is enabled for an HSB group, the HSB group configuration takes effect and the HSB group can notify service modules of link status changes. You can run the hsb enable command to enable HSB for an HSB group after the HSB group configuration is complete.

Precautions

Do not run the undo hsb enable command when the master and backup devices perform batch backup.

Example

# Enable HSB for HSB group 0.

<Huawei> system-view
[Huawei] hsb-group 0
[Huawei-hsb-group-0] hsb enable
Related Topics

hsb-group

Function

The hsb-group command creates an HSB group.

The undo hsb-group command deletes an HSB group.

By default, no HSB group is created.

Format

hsb-group group-index

undo hsb-group group-index

Parameters

Parameter

Description

Value

group-index

Specifies the ID of an HSB group.

The value is fixed as 0.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To configure HSB functions, create an HSB group first. An HSB group instructs service modules to perform batch backup, real-time backup, and status synchronization. An HSB group supports status negotiation and event notification functions, implementing service synchronization on master and backup devices.

Precautions

After HSB is enabled for an HSB group, an HSB service cannot be bound to the HSB group.

Example

# Create HSB group 0.

<Huawei> system-view
[Huawei] hsb-group 0
[Huawei-hsb-group-0]

hsb-service

Function

The hsb-service commands creates an HSB services and displays the HSB service view.

The undo hsb-service command deletes an HSB service.

By default, no HSB service is created.

Format

hsb-service service-index

undo hsb-service service-index

Parameters

Parameter

Description

Value

service-index

Specifies the ID of an HSB service.

The fixed value is 0.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

An HSB service establishes an HSB channel for transmitting packets of other services and maintains the link status by notifying the HSB group of the faulty link. Only after an HSB group is bound to an HSB service, the HSB function can be implemented.

Example

# Create HSB service 0.

<Huawei> system-view
[Huawei] hsb-service 0

hsb-service-type firewall

Function

The hsb-service-type firewall command enables the firewall HSB function and binds the firewall to an HSB group.

The undo hsb-service-type firewall command disables the firewall HSB function.

By default, the firewall HSB function is disabled.

Format

hsb-service-type firewall hsb-group group-index

undo hsb-service-type firewall hsb-group group-index

Parameters

Parameter

Description

Value

hsb-group group-index

Specifies the ID of an HSB group.

The value is fixed as 0.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

All traffic must pass through the firewall. If the firewall fails, all traffic is interrupted. To prevent traffic from being interrupted, solve single-point failures on the firewall by configuring two firewalls to work in backup mode.

Prerequisites

An HSB group has been created using the hsb-group command.

Precautions

When enabling the firewall HSB function, ensure that flows in one interzone need to be backed up.

Example

# Enable the firewall HSB function and bind the firewall to the created HSB group.

<Huawei> system-view
[Huawei] hsb-service-type firewall hsb-group 0
Related Topics

hsb-service-type vpn-instance

Function

The hsb-service-type vpn-instance command enables backup of VPN information.

The undo hsb-service-type vpn-instance command disables backup of VPN information.

By default, backup of VPN information is disabled.

Format

hsb-service-type vpn-instance hsb-service service-index

undo hsb-service-type vpn-instance hsb-service service-index

Parameters

Parameter

Description

Value

hsb-service service-index

Specifies the index of the HSB service.

The value is 0.

Views

System view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

To back up VPN information on the HSB channel, run the hsb-service-type vpn-instance command.

Prerequisites

The HSB service has been created using the hsb-service command.

Example

# Enables backup of VPN information.

<Huawei> system-view
[Huawei] hsb-service-type vpn-instance hsb-service 0

reset firewall hsb statistics event

Function

The reset firewall hsb statistics event command clears statistics on firewall HSB events.

Format

reset firewall hsb statistics event

Parameters

None

Views

User view

Default Level

3: Management level

Usage Guidelines

During routine maintenance, to view firewall HSB statistics within a period, clear historical statistics so that the device recollects firewall HSB statistics. You can run this command to clear statistics on firewall HSB events.

Example

# Clear statistics on firewall HSB events.

<Huawei> reset firewall hsb statistics event

reset hsb statistics hsb-group

Function

The reset hsb statistics hsb-group command clears statistics on HSB processes.

Format

reset hsb statistics hsb-group group-index event

Parameters

Parameter

Description

Value

group-index

Specifies the index of an HSB group.

The value is 0 and only one HSB group is supported.

event

Indicates process statistics.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Before collecting HSB statistics within a certain period, run this command to clear the existing HSB statistics. You can run this command to clear statistics about HSB processes. Two main processes are involved: HSB negotiation process and HSB switching process.

Example

# Clear statistics about HSB processes.

<Huawei> reset hsb statistics hsb-group 0 event

reset hsb statistics hsb-service

Function

The reset hsb statistics hsb-service command clears statistics on packets or processes of the HSB public mechanism.

Format

reset hsb statistics hsb-service service-index { packet | event }

Parameters

Parameter

Description

Value

service-index

Specifies the index of an HSB service.

The value is 0 and only one HSB service is supported.

packet

Indicates packet statistics.

-

event

Indicates process statistics.

-

Views

User view

Default Level

3: Management level

Usage Guidelines

Before collecting HSB statistics within a certain period, run this command to clear the existing HSB statistics. You can run this command to clear statistics on packets or processes of the HSB public mechanism.

Example

# Clear statistics on packets of the HSB public mechanism.

<Huawei> reset hsb statistics hsb-service 0 packet

# Clear statistics on processes of the HSB public mechanism.

<Huawei> reset hsb statistics hsb-service 0 event

service-ip-port

Function

The service-ip-port command configures IP addresses and port numbers for an HSB service.

The undo service-ip-port command deletes IP addresses and port numbers of an HSB service.

By default, no IP address or port number is configured for an HSB service.

Format

service-ip-port local-ip local-ip-address peer-ip peer-ip-address local-data-port local-port peer-data-port peer-port

undo service-ip-port [ local-ip local-ip-address peer-ip peer-ip-address local-data-port local-port peer-data-port peer-port ]

Parameters

Parameter

Description

Value

local-ip local-ip-address

Specifies the local IP address of the HSB service.

The value is in dotted decimal notation.

peer-ip peer-ip-address

Specifies the peer IP address of the HSB service.

The value is in dotted decimal notation.

local-data-port local-port

Specifies the local port number of the HSB service.

The value is an integer that ranges from 10240 to 49152.

peer-data-port peer-port

Specifies the peer port number of the HSB service.

The value is an integer that ranges from 10240 to 49152.

Views

HSB service view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

After you create an HSB service using the hsb-service command, run the service-ip-port command to configure IP addresses and port numbers for the local and peer devices. When the configuration is complete, the HSB service establishes a Transmission Control Protocol (TCP) channel to transmit packets of other services and notifies service modules of link status changes.

Prerequisites

An HSB service has been created.

Precautions

It is recommended that the HSB channel be configured on an independent and highly reliable physical link.

Example

# Configure IP addresses and port numbers for the local and peer devices for the HSB service 0.

<Huawei> system-view
[Huawei] hsb-service 0
[Huawei-hsb-service-0] service-ip-port local-ip 192.168.1.1 peer-ip 192.168.1.2 local-data-port 10240 peer-data-port 10240
Related Topics

service-keep-alive detect

Function

The service-keep-alive detect command sets the retransmission times and interval of HSB packets.

The undo service-keep-alive command restores the default retransmission times and interval of HSB packets.

The default retransmission times is 5, and the default retransmission interval is 3 seconds.

Format

service-keep-alive detect retransmit retransmit-times interval interval-value

undo service-keep-alive [ detect retransmit retransmit-times interval interval-value ]

Parameters

Parameter

Description

Value

retransmit retransmit-times

Specifies the retransmission times of HSB packets.

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

interval interval-value

Specifies the retransmission interval of HSB packets.

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

Views

HSB service view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

An HSB service sends and retransmits HSB packets to prevent long TCP interruption that is not detected by the protocol stack. If a device does not receive an HSB packet from the peer device within the period (value of retransmit-times x value of interval-value), the local device receives a message indicating the exception and then re-establishes a channel to the peer.

Prerequisites

An HSB service has been configured.

Example

# Set the retransmission times of HSB service 0 to 5, and the retransmission interval to 1 second.

<Huawei> system-view
[Huawei] hsb-service 0
[Huawei-hsb-service-0] service-keep-alive detect retransmit 5 interval 1
Related Topics

track vrrp

Function

The track vrrp command binds a VRRP group to an HSB group.

The undo track vrrp command unbinds a VRRP group from an HSB group.

By default, no HSB group is bound to a VRRP group.

Format

track vrrp vrid virtual-router-id interface interface-type interface-number

undo track vrrp [ vrid virtual-router-id interface interface-type interface-number ]

Parameters

Parameter

Description

Value

vrid virtual-router-id

Specifies the ID of a VRRP group bound to an HSB group.

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

interface-type interface-number

Specifies the type and number of the interface in a VRRP group.

  • interface-type specifies the interface type.

  • interface-number specifies the interface number.

-

Views

HSB group view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

You can run the track vrrp command to bind a VRRP group to an HSB group. The HSB group negotiates the service status based on the VRRP status. By monitoring the changes in the bound HSB channel status and VRRP status, the HSB group instructs service modules to perform batch backup, real-time backup, and status synchronization.

Prerequisites

An HSB group has been configured.

Precautions

  • By default, the device in the VRRP group uses the preemption mode. Before preemption, data on the original device is backed up to the local device in a batch. Because batch backup of data takes a period of time, you can run the vrrp vrid preempt-mode timer delay command to set the preemption delay on the master. This ensures that data is successfully backed up in a batch during switching and data is transmitted continuously. It is recommended that the preemption delay be set according to the batch backup time required by services and be larger than the batch backup time.
  • When the uplink is reachable, you are advised to run the vrrp vrid preempt-mode disable command to configure the device in a VRRP group in non-preemption mode. In non-preemption mode, after a device becomes the master, devices with higher priorities cannot become the master until the master fails.

Example

# Bind GE0/0/1 in VRRP group 4 to HSB group 0.

<Huawei> system-view
[Huawei] hsb-group 0
[Huawei-hsb-group-0] track vrrp vrid 4 interface gigabitethernet 0/0/1
Translation
Download
Updated: 2019-05-29

Document ID: EDOC1000097293

Views: 60576

Downloads: 107

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