12-Reliability Command


Chapter 1  Backup Center Configuration Commands

1.1  Backup Center Configuration Commands

1.1.1  debugging standby event

Syntax

debugging standby event

undo debugging standby event

View

User view

Parameter

event: Enables event debugging.

Description

Use the debugging standby event command to enable debugging of the backup center.

Use the undo debugging standby event command to disable debugging of the backup center.

Example

# Enable debugging of the backup center.

<H3C> debugging standby event

1.1.2  display standby flow

Syntax

display standby flow

View

Any view

Description

Use the display standby flow command to view statistics about the traffic on the main interfaces participating in backup load sharing.

Example

# Set Serial 1/0/0, Serial 0/0/0 and Logic-channel0 to back up interface Serial 3/0/0 and configure backup load sharing on Serial 3/0/0.

[H3C] interface serial3/0/0

[H3C-Serial3/0/0] standby interface serial1/0/0 10

[H3C-Serial3/0/0] standby interface serial0/0/0 30

[H3C-Serial3/0/0] standby interface logic-channel0

[H3C-Serial3/0/0] standby threshold 80 50

[H3C-Serial3/0/0] standby timer flow-check 100

[H3C-Serial3/0/0] standby bandwidth 9

# Display statistics about the traffic on the main interfaces participating in backup load sharing.

[H3C-Serial3/0/0] display standby flow

Interfacename :Serial3/0/0

Flow-interval(s) : 100

LastInOctets : 868168

LastOutOctets : 1818667

InFlow(Octets) : 50070

OutFlow(Octets) : 100088

BandWidth(b/s) :9000

UsedBandWidth(b/s) : 8000

The following table describes the fields of the command.

Table 1-1 Description on the fields of the display standby flow command

Field

Description

Flow-interval(s)

Intervals for checking traffic on the main interface.

LastInOctets

The sum of the octets received on the main interface until the last check.

LastOutOctets

The sum of the octets sent on the main interface until the last check.

InFlow(Octets)

The sum of the octets received on the main interface during the last interval.

OutFlow(Octets)

The sum of the octets sent on the main interface during the last interval.

BandWidth(b/s)

Bandwidth of the main interface.

UsedBandWidth(b/s)

Actual bandwidth of the interface during the last interval.

 

1.1.3  display standby state

Syntax

display standby state

View

Any view

Description

Use the display standby state command to view information about the main and standby interfaces.

The following table describes the information that the command provides and the possible values.

Table 1-2 Information about the main and standby interfaces

Item

Main interface

Standby interface

Interface state

UP, DOWN

UP, DOWN, STANDBY

Standby state

MUP, MUPDELAY, MDOWN, MDOWNDELAY, MDESERT

UP, UPDELAY, DOWN, DOWNDELAY, STANDBY, DESERT

Standby flag

M---MAIN: the interface is a main interface.

S---Standby: the interface is a standby interface.

V---MOVED: the interface or its main interface is removed, or all standby interfaces of the interface are removed.

U---USED: the interface is in use as a main or standby interface.

D---LOAD: the interface participates in backup load sharing as a main interface.

P---PULLED: the interface card where this interface is located is not in place.

G---LOGICCHANNEL: the interface is a logical channel interface.

Pri

Priority of the standby interface

Load state

WAKE, TO-HYPNOTIZE, TO-WAKE, STABLE

 

Example

# Configure Serial 1/0/0 to back up Serial 3/0/0, and configure backup load sharing on Serial 3/0/0.

[H3C] interface Serial3/0/0

[H3C-Serial3/0/0] standby interface serial1/0/0 10

[H3C-Serial3/0/0] standby threshold 80 50

# Display information about the main and standby interfaces.

[H3C-Serial3/0/0] display standby state

Interface            Interfacestate Standbystate Standbyflag Pri Loadstate

Serial3/0/0                  UP      UP           MU

Serial1/0/0                  DOWN    DOWN         BU         10

 

Standby-flag meaning:

 M---MAIN  S---Standby     V---MOVED    U---USED

 D---LOAD  P---PULLED     G---LOGICCHANNEL

1.1.4  standby bandwidth

Syntax

standby bandwidth number

undo standby bandwidth

View

Interface view

Parameter

number: Interface bandwidth in the range 0 to 4000000 kilobits. It defaults to 0.

Description

Use the standby bandwidth command to configure the actual bandwidth that the main interface uses in backup load sharing.

Use the undo standby bandwidth command to restore the default, that is, 0, to disable backup load sharing.

When the main interface participates in backup load sharing, the backup center uses the backup bandwidth that you configured preferentially on the main interface. If it is not configured, the backup center automatically obtains the information that the system provides on the physical bandwidth of the main interface. In case the information is not available, the backup center would require you to assign backup bandwidth to the main interface.

Before you can use this command, you must use the standby interface command to specify physical interfaces or logical channels to back up the interface.

Example

# Configure interface Serial 0/0/0 to use interface Serial 1/0/0 for back up, and assign it bandwidth for backup load sharing.

[H3C] interface serial0/0/0

[H3C-Serial0/0/0] standby interface serial1/0/0 50

[H3C-Serial0/0/0] standby bandwidth 10000

[H3C-Serial0/0/0] standby threshold 80 50

1.1.5  standby interface

Syntax

standby interface type number [ priority ]

undo standby interface type number

View

Interface view

Parameter

type: Interface type.

number: Interface number.

priority: Priority of the standby interface, in the range 0 to 255. It defaults to 0. The greater the value is, the higher the priority is.

Description

Use the standby interface command to specify a physical interface to back up the interface.

Use the undo standby interface command to remove the specified standby interface.

By default, no standby interface is specified.

You can configure multiple standby interfaces for a main interface. The order in which they are used depends on the assigned priority. The standby interface with higher priority is used first.

Example

# Specify interface Serial 1/0/0 to back up interface Serial 0/0/0, and assign it the priority of 50.

[H3C-Serial0/0/0] standby interface serial1/0/0 50

1.1.6  standby threshold

Syntax

standby threshold enable-threshold disable-threshold

undo standby threshold

View

Interface view

Parameter

enable-threshold: Percentage of the available bandwidth that the traffic load must exceed to bring up a standby interface or logical channel. It is in the range 2 to 99.

disable-threshold: Percentage of the available bandwidth that the traffic load must be less than to close a standby interface or logical channel. It is in the range 1 to 98.

Description

Use the standby threshold command to configure backup load sharing on an interface or logical channel.

Use the undo standby threshold command to disable backup load sharing on the interface or logical channel.

By default, backup load sharing is disabled.

This command applies to the main interface in the backup center. When the traffic on all the active interfaces reaches the enable-threshold, the backup center enables the standby interface with the highest priority. When the total traffic on all active interfaces decreases below the disable-threshold, the backup center disables the standby interface with the lowest priority.

The enable-threshold argument must not be less than the disable-threshold argument.

Executing the undo standby threshold command shuts down all standby interfaces that have been enabled, if there is any. After that, only the main interface works.

Related command: standby interface.

Example

# Configure backup load sharing on interface Serial 0/0/0.

[H3C-Serial0/0/0] standby threshold 80 50

1.1.7  standby timer delay

Syntax

standby timer delay enable-delay disable-delay

undo standby timer delay

View

Interface view

Parameter

enable-delay: Failover delay, or the delay for the interface to switch its state from main to standby. It is in the range 0 to 65,535 (in seconds).

disable-delay: Fallback delay, or the delay for the interface to switch from backup to main. It is in the range 0 to 65,535 (in seconds).

Description

Use the standby timer delay command to set failover and fallback delays on the interface, avoiding frequent switchover caused by instability of interface state.

Use the undo standby timer delay command to restore the default.

By default, both the failover delay and the fallback delay are 5 seconds.

Before you can use this command, you need to use the standby interface command to specify physical interfaces or logical channels to back up the interface.

 

&  Note:

l      If you set the failover or fallback delay to 0, you immediately switch the state of an interface from main to standby.

l      Immediate switch may cause link instability. Therefore, you are not recommended to set the delay to 0.

 

Example

# Configure interface Serial 0/0/0 to use interface Serial 1/0/0 for backup, and to experience 10 seconds of delay before failover or fallback.

[H3C-Serial0/0/0] standby interface serial1/0/0

[H3C-Serial0/0/0] standby timer delay 10 10

1.1.8  standby timer flow-check

Syntax

standby timer flow-check interval-time

undo standby timer flow-check

View

Interface view

Parameter

interval-time: Flow checking interval, in the range 30 to 600 seconds. It defaults to 30 seconds.

Description

Use the standby timer flow-check command to configure the interval for checking the traffic size on the main interface.

Use the undo standby timer flow-check command to restore the default or 30 seconds.

When the main interface participates in backup load sharing, the backup center automatically checks the traffic size on the main interface at intervals configured using this command.

Before you can use this command, you must use the standby interface command to specify physical interfaces or logical channels to back up the interface.

Example

# Set Serial 1/0/0 to the standby interface of Serial 0/0/0, and configure the backup bandwidth of the main interface on Serial 0/0/0.

[H3C] interface serial 0/0/0

[H3C-Serial0/0/0] standby interface serial10/0/0 50

[H3C-Serial0/0/0] standby bandwidth 10000

[H3C-Serial0/0/0] standby threshold 80 50

[H3C-Serial0/0/0] standby timer flow-check 60

 


Chapter 2  VRRP Configuration Commands

2.1  VRRP Configuration Commands

2.1.1  debugging vrrp

Syntax

debugging vrrp { packet | state }

undo debugging vrrp { packet | state }

View

User view

Parameter

packet: Enables VRRP packet debugging.

state: Enables VRRP state debugging.

Description

Use the debugging vrrp command to enable VRRP debugging.

Use the undo debugging vrrp command to disable VRRP debugging.

By default, VRRP debugging is disabled.

Example

# Enable VRRP packet debugging.

<H3C> debugging vrrp packet

2.1.2  display vrrp

Syntax

display vrrp [ interface type number [ vrid virtual-router-ID ] ]

View

Any view

Parameter

interface type number: Specifies an interface by its name. The type of the interface must be Ethernet.

virtual-router-ID: Standby group number.

Description

Use the display vrrp command to display the brief information of VRRP.

You can use the command to view the current configuration and status information about VRRP. If the interface name and standby group number are not specified, the status information about all the standby groups on the router is displayed. If the interface name is specified, the status information about all the standby groups on the interface is displayed. If both arguments are specified, the status information about the specified standby group is displayed.

Example

# Display brief information about all standby groups on the router.

<H3C> display vrrp

Virtual Ip Ping : Disable

 The total number of the virtual routers:  3

  Interface         VRID   State       Run     Adver.   Auth      Virtual

                                       Pri     Time     Type      IP

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

  Eth0/0/0           1      Initialize   90     1         MD5      2.2.2.100

  Eth0/0/0            2       Master      100     1         MD5      2.2.2.102

  Eth0/0/0            5       Master      100     1         MD5      2.2.2.200

Table 2-1 Description on the fields of the display vrrp command

Field

Description

Virtual Ip ping

Whether you can ping the virtual IP address

Interface

Configure VRRP interface name

VRID

Virtual router ID

State

Running status of the virtual router

Run Pri

Running priority

Adver. Timer

VRRP advertisement interval

Auth Type

Authentication type

Virtual IP

Virtual IP address list of the virtual router

 

2.1.3  display vrrp verbose

Syntax

display vrrp verbose [ interface type number [ vrid virtual-router-ID ] ]

View

Any view

Parameter

interface type number: Interface name, which can be an Ethernet interface only.

virtual-router-ID: Specifies a standby group by its group number, in the range 1 to 255.

Description

Use the display vrrp verbose command to display the detailed information of VRRP.

You can use the command to view the current configuration and status information about VRRP. If you specify both interface and standby group, only the status information of the specified standby group is displayed; if you only specify an interface, the status information of all the standby groups on the interface is displayed; if you specify neither, the status information of all the standby groups on the device is displayed.

Example

# Display the detailed information of all standby groups.

<H3C> display vrrp verbose

Virtual Ip Ping : Enable

 Interface       : Ethernet0/0

 VRID            : 1                    Adver. Timer    : 1

 Admin Status    : UP                   State           : Master

 Config Pri      : 100                  Run Pri         : 100

 Preempt Mode    : YES                  Delay Time      : 0

 Auth Type       : NONE

 Virtual IP      : 1.1.1.10

                   1.1.1.20

 Virtual MAC     : 0000-5e00-0101

 Master IP       : 1.1.1.2

 

 Interface       : Ethernet0/0

 VRID            : 20                   Adver. Timer    : 1

 Admin Status    : UP                   State           : Master

 Config Pri      : 100                  Run Pri         : 100

 Preempt Mode    : YES                  Delay Time      : 0

 Auth Type       : NONE

 Virtual IP      : 1.1.1.50

 Virtual MAC     : 0000-5e00-0114

 Master IP       : 1.1.1.2

Table 2-2 Description on the fields of the display vrrp command

Field

Description

Virtual Ip Ping

Whether you can ping the virtual IP address of the standby group

Ethernet1/0/0

Interface to which the standby group belongs

Virtual Router ID

Number of the virtual standby group

Adver. Timer

VRRP advertisement interval

Admin Status

Administrative state: UP or DOWN

State

Status of the router in the standby group, master, backup, or initialize

Virtual IP

Virtual IP address

Config Priority

Configured priority

Run Priority

Running priority

Preempt

Preemption mode

Delay Time

Preemption delay

Auth Type

Authentication type

Virtual IP

Virtual IP addresses of the standby group

Virtual MAC

Virtual MAC address corresponding to the virtual IP address of the standby group. It is displayed only when the router is in the state of master.

Master IP

Master IP address of the interface to which the router in the state of master belongs

 

2.1.4  vrrp vrid authentication-mode

Syntax

vrrp vrid virtual-router-id authentication-mode { md5 key | simple key }

undo vrrp vrid virtual-router-id authentication-mode

View

Ethernet interface view, bridge template view

Parameter

virtual-router-ID: Specifies a standby group by its group number, in the range 1 to 255.

simple: Simple text authentication.

md5: Authentication header (AH) authentication using the MD5 algorithm.

key: Authentication key. When simple authentication applies, the authentication key is in clear text with a length of 1 to 8 characters. When md5 authentication applies, the authentication key is in MD5 ciphertext and the length of the key depends on its input format. If the key is input in clear text, its length is 1 to 8 characters, such as 1234567; if the key is input in ciphertext, its length must be 24 characters, such as _(TT8F]Y\5SQ=^Q`MAF4<1!!.

Description

Use the vrrp authentication-mode command to configure authentication mode and authentication key for the VRRP standby groups on the interface.

Use the undo vrrp authentication-mode command to disable authentication in the VRRP standby groups on the interface.

By default, authentication is disabled.

With this command, all standby groups on the interface share the same authentication type and authentication key.

Note that the members of the same standby group must use the same authentication mode and authentication key.

The authentication key is case sensitive.

Example

# Set the authentication mode and authentication key of all VRRP standby groups on interface Ethernet 0/2/0.

[H3C-Ethernet0/2/0] vrrp authentication-mode simple h3c

2.1.5  vrrp ping-enable

Syntax

vrrp ping-enable

undo vrrp ping-enable

View

System view, bridge template view

Parameter

None

Description

Use the vrrp ping-enable command to enable users to ping the virtual IP addresses of standby groups.

Use the undo vrrp ping-enable command to disable users to ping the virtual IP addresses of standby groups.

By default, users cannot ping the virtual IP addresses of standby groups.

Example

# Enable users to ping the virtual IP addresses of standby groups.

[H3C] vrrp ping-enable

2.1.6  vrrp un-check ttl

Syntax

vrrp un-check ttl

undo vrrp un-check ttl

View

Ethernet interface view, bridge template view

Parameter

None

Description

Use the vrrp un-check ttl command to disable the VRRP standby group to check the TTL field in VRRP packets.

Use the undo vrrp un-check ttl command to enable the VRRP standby group to check the TTL field in VRRP packets. Any packet with TTL value other than 255 will be dropped.

By default, TTL check on VRRP packets is enabled.

Example

# Disable the VRRP standby group to check the TTL field in VRRP packets.

[H3C-Ethernet0/0/0] vrrp un-check ttl

# Enable the VRRP standby group to check the TTL field in VRRP packets.

[H3C-Ethernet0/0/0] undo vrrp un-check ttl

2.1.7  vrrp vrid preempt-mode

Syntax

vrrp vrid virtual-router-ID preempt-mode [ timer delay delay-value ]

undo vrrp vrid virtual-router-ID preempt-mode

View

Ethernet interface view, bridge template view

Parameter

virtual-router-ID: Virtual router ID or VRRP standby group number, in the range 1 to 255.

delay-value: Delay in the range 0 to 255 seconds. It defaults to 0 seconds.

Description

Use the vrrp vrid preempt-mode command to enable preemption on the router and configure its preemption delay in the specified standby group.

Use the undo vrrp vrid preempt-mode command to disable preemption on the router in the specified standby group.

The default mode is preemption without delay.

To allow a backup router in a standby group to preempt the current master when it has a higher priority, you must enable preemption on it. If immediate preemption is not desired, you can set a preemption delay. The delay automatically changes to 0 seconds when preemption is disabled.

Example

# Enable preemption on the router in standby group 1.

[H3C-Ethernet0/2/0] vrrp vrid 1 preempt-mode

# Set the preemption delay to five seconds.

[H3C-Ethernet0/2/0] vrrp vrid 1 preempt-mode timer delay 5

# Disable preemption on the router in standby group 1.

[H3C-Ethernet0/2/0] undo vrrp vrid 1 preempt-mode

2.1.8  vrrp vrid priority

Syntax

vrrp vrid virtual-router-ID priority priority-value

undo vrrp vrid virtual-router-ID priority

View

Ethernet interface view, bridge template view

Parameter

virtual-router-ID: VRRP standby group number, in the range 1 to 255.

priority-value: Priority value of the router in the specified standby group, in the range 1 to 254. It defaults to 100.

Description

Use the vrrp vrid priority command to configure the priority of the router in the specified standby group.

Use the undo vrrp vrid priority command to restore the default.

In VRRP, the role that a router plays in a standby group depends on its priority. A higher priority means that the router is more likely to become the master. Note that priority 0 is reserved for special use and 255 for the IP address owner.

Example

# Set the priority of the router in standby group 1 to 150.

[H3C-Ethernet0/2/0] vrrp vrid 1 priority 150

2.1.9  vrrp vrid timer advertise

Syntax

vrrp vrid virtual-router-ID timer advertise adver-interval

undo vrrp vrid virtual-router-ID timer advertise

View

Ethernet interface view, bridge template view

Parameter

virtual-router-ID: VRRP standby group number, in the range 1 to 255.

adver-interval: Interval at which the master in the specified standby group sends VRRP packets. It is in the range 1 to 255 seconds and defaults to 1 second.

Description

Use the vrrp vrid timer advertise command to configure the Adver_Timer of the specified standby group.

Use the undo vrrp vrid timer advertise command to restore the default.

The Adver_Timer controls the interval at which the master sends VRRP packets.

Example

# Set the master in standby group 1 to send VRRP packets at intervals of five seconds.

[H3C-Ethernet0/2/0] vrrp vrid 1 timer advertise 5

2.1.10  vrrp vrid track

Syntax

vrrp vrid virtual-router-ID track interface interface-type interface-number [ reduced priority-reduced ]

undo vrrp vrid virtual-router-ID track interface interface-type interface-number

View

Ethernet interface view, bridge template view

Parameter

virtual-router-ID: VRRP standby group number, in the range 1 to 255.

interface-type interface-number: Type and number of the Interface to be tracked.

priority-reduced: Value by which the priority is reduced. It is in the range 1 to 255 and defaults to 10.

Description

Use the vrrp vrid track command to configure the interface to be tracked.

Use the undo vrrp vrid track command to disable tracking the specified interface.

The interface tracking function expands the backup functionality of VRRP. It provides backup not only when routers fail but also when network interfaces go down.

After the monitored interface specified in this command goes down, the priority of the router owning this interface automatically decreased by the value specified by value-reduced, allowing a higher priority router in the standby group to take over as the master. When the router is the IP address owner, however, you cannot configure interface tracking on it.

 

&  Note:

VRRP monitored VT and Dialer interfaces only support MP, PPPoE, and PPPoA, rather than the normal dial up such as the ISDN dialer interface.

 

Example

# Track interface Serial 0/0/0.

[H3C-Ethernet0/2/0] vrrp vrid 1 track serial0/0/0 reduced 50

# Disable the router to track interface Serial 0/0/0.

[H3C-Ethernet0/2/0] undo vrrp vrid 1 track serial0/0/0

2.1.11  vrrp vrid virtual-ip

Syntax

vrrp vrid virtual-router-ID virtual-ip virtual-address

undo vrrp vrid virtual-router-ID virtual-ip [ virtual-address ]

View

Ethernet interface view, bridge template view

Parameter

virtual-router-ID: VRRP standby group number, in the range 1 to 255.

virtual-address: Virtual IP address.

Description

Use the vrrp vrid virtual-ip command to create a standby group the first time that you add a virtual IP address or add a virtual IP address to it after that. Each standby group can accommodate up to 16 virtual IP addresses.

Use the undo vrrp vrid virtual-ip virtual-router-ID command to remove a standby group.

Use the undo vrrp vrid virtual-router-ID virtual-ip virtual-address command to delete a virtual IP address from the specified standby group.

The system removes a standby group after you delete all the virtual IP addresses in it.

If there is non-Ethernet interface in a bridge set, then VRRP is not allowed to be configured on the bridge template corresponding to that bridge set.

By default, no standby group exists.

Example

# Create a standby group.

[H3C-Ethernet0/2/0] vrrp vrid 1 virtual-ip 10.10.10.10

# Add a virtual IP address to the existing standby group.

[H3C-Ethernet0/2/0] vrrp vrid 1 virtual-ip 10.10.10.11

# Delete a virtual IP address.

[H3C-Ethernet0/2/0] undo vrrp vrid 1 virtual-ip 10.10.10.10