- Table of Contents
- Related Documents
-
| Title | Size | Download |
|---|---|---|
| 11-Failover group commands | 66.69 KB |
Failover group commands
bind-vrrp
Use bind vrrp to bind a failover group to a VRRP group.
Use undo bind vrrp to unbind a failover group from a VRRP group.
Syntax
bind-vrrp virtual-router-id interface interface-type interface-number
undo bind-vrrp
Default
A failover group is not bound to any VRRP group.
Views
Failover group view
Predefined user roles
network-admin
Parameters
virtual-router-id: Specifies a VRRP group by its virtual router ID in the range of 1 to 255.
interface interface-type interface-number: Specifies an interface by its type and number. The VRRP group is created on the interface.
Usage guidelines
To back up services for nodes on two independent systems, configure inter-system service backup by binding the failover group to a VRRP group. VRRP determines the status of the nodes in the failover group and backs up services from the node on the master to the node on the backup.
You cannot bind a failover group to a VRRP group if the following conditions exist:
· The failover group is associated with a service instance group.
· The service instance group is used by a NAT instance configured with load sharing or bound to a static address pool.
Examples
# Bind failover group group1 to VRRP group 1 created on Ten-GigabitEthernet 3/0/1.
<Sysname> system-view
[Sysname] failover group Group1
[Sysname-failover-group-Group1] bind-vrrp 1 interface ten-gigabitethernet 3/0/1
display failover
Use display failover to display failover group information.
Syntax
display failover { group [ group-name ] | group-name group-name }
Views
Any view
Predefined user roles
network-admin
network-operator
Parameters
group-name: Specifies a failover group by its name, a case-sensitive string of 1 to 63 characters. If you do not specify a failover group, this command displays brief information about all failover groups. If you specify a failover group used for inter-system service backup, this command displays detailed information about the specified failover group.
Usage guidelines
You can use either the display failover group [ group-name ] or display failover group-name group-name command to display failover group information. The commands have the same output. To display information about a failover group named >, >>, or |, use the display failover group-name group-name command.
Examples
# Display information about all failover groups. (Devices that support inter-system service backup.)
<Sysname> display failover group
Stateful failover remote group information:
ID Name Local Peer Active status
1 group1 NA 1.1.1.2 Local
# Display detailed information about failover group group3. (Devices that support inter-system service backup.)
<Sysname> display failover group group3
ID : 3
Active status : Local
Local node : NA
Local IP address : NA
Peer IP address : NA
Port number : NA
Bound VRRP ID : NA
VRRP interface : NA
VRRP status : Inactive
Table 1 Command output
|
Field |
Description |
|
Stateful failover remote group information |
Information about the failover group used for inter-system service backup. |
|
ID |
ID of the failover group. |
|
Name |
Name of the failover group. |
|
Local |
The node on the local system. |
|
Peer |
IP address of the peer interface on the backup link. |
|
Active status |
The state of the failover group: · Primary—The primary node is processing services. · Secondary—The secondary node is processing services. · Initial—No node in the failover group is processing services. · Local—The local node is processing services. · Peer—The peer node is processing services. |
|
Local node |
The node on the local system. |
|
Local IP address |
IP address of the local interface on the backup link. |
|
Peer IP address |
IP address of the peer interface on the backup link. |
|
Port number |
Port number of the failover group. |
|
Bound VRRP ID |
Number of the VRRP group that is bound to the failover group. |
|
VRRP interface |
Interface where the VRRP group is created. |
|
VRRP status |
Role of the device in the VRRP group. |
failover group
Use failover group to create a failover group and enter its view, or enter the view of an existing failover group.
Use undo failover group to delete a failover group.
Syntax
failover group group-name [ id group-id ]
undo failover group group-name
Default
No failover groups exist.
Views
System view
Predefined user roles
network-admin
Parameters
group-name: Specifies a failover group by its name, a case-sensitive string of 1 to 63 characters.
id group-id: Specifies a failover group by its ID, in the range of 1 to 64. This option is required when you create a failover group. It is optional when you enter failover group view. The group ID and the group name can both identify a failover group. The group name is mainly used to identify a failover group on the local device. The group ID is mainly used to exchange messages between devices in a failover group.
Usage guidelines
A failover group backs up services (such as NAT) between two CPUs to ensure high availability.
You can execute this command multiple times to create more failover groups.
Examples
# Create failover group Group1 with group ID 1 and enter its view. (Devices that support inter-system service backup.)
<Sysname> system-view
[Sysname] failover group Group1 id 1
[Sysname-failover-group-group1]
remote-backup
Use remote-backup to specify a backup channel for inter-system service backup.
Use undo remote-backup to remove the backup channel configuration.
Syntax
remote-backup local ip-address peer peer-ip-address port port-number
undo remote-backup
Default
No backup channel is specified for inter-system service backup.
Views
System view
Predefined user roles
network-admin
Parameters
local ip-address: Specifies a local IP address.
peer peer-ip-address: Specifies a peer IP address.
port port-number: Specifies a port number in the range of 1024 to 55535. The port number cannot be a known port number or port number in use.
Usage guidelines
Set up the backup link by using two IP addresses that can reach each other.
This command applies to inter-system service backup. You must execute this command on both of the systems and configure the same port number for them.
As a best practice, use a direct link for backup packets. If the physical interface on the link transmits multiple types of traffic, create a dedicated subinterface for each kind of traffic.
Examples
# Specify a backup channel for inter-system service backup. The local IP address is 192.168.2.125, the peer IP address is 192.168.3.142, and the port number is 3000.
<Sysname> system-view
[Sysname] failover group group1 id 1
[Sysname-failover-group-group1] remote-backup local 192.168.2.125 peer 192.168.3.142 port 3000
