easy-irf

Use easy-irf to bulk-configure basic IRF settings for an IRF member device.

Syntax

easy-irf [ member member-id [ renumber new-member-id ] domain domain-id [ priority priority ] [ irf-port1 interface-list1 ] [ irf-port2 interface-list2 ] ]

Views

System view

Predefined user roles

network-admin

Parameters

member member-id: Specifies the member ID of a member device. The value range for the member ID is 1 to 4.

renumber new-member-id: Specifies a new member ID for the device. The value range for the member ID is 1 to 4. The member device automatically reboots for the new member ID to take effect. If you do not specify this option, the command does not change the member ID.

domain domain-id: Specifies an IRF domain ID in the range of 0 to 4294967295. Assign the same domain ID to all devices you are adding to the same IRF fabric.

priority priority: Specifies an IRF priority in the range of 1 to 32. The greater the priority value, the higher the priority. A member with higher priority is more likely to be the master.

irf-port1 interface-list1: Specifies a space-separated list of up to 16 interface items. Each interface item specifies one interface in the interface-type interface-number form. The interfaces are bound to IRF-port 1.

irf-port2 interface-list2: Specifies a space-separated list of up to 16 interface items. Each interface item specifies one interface in the interface-type interface-number form. The interfaces are bound to IRF-port 2. A physical interface can be bound to only one IRF port.

Usage guidelines

This command is supported only in IRF mode.

This command bulk-configures basic IRF settings for a member device, including the member ID, domain ID, priority, and IRF port bindings.

The easy IRF feature provides the following configuration methods:

As a best practice, use the interactive method if you are new to IRF.

If you execute this command multiple times, the following settings take effect:

When you specify physical interfaces for an IRF port, you must follow the IRF port binding requirements in Virtual Technologies Configuration Guide.

If you specify physical interfaces by using the interactive method, you must also follow these restrictions and guidelines:

To remove an IRF physical interface from an IRF port, you must use the undo port group interface command in IRF port view.

Examples

# Bulk-configure basic IRF settings by using the non-interactive method. Change the member ID from 1 to 2, set the domain ID to 10, configure the member priority as 10, and bind Ten-GigabitEthernet 1/1/0/21 through Ten-GigabitEthernet 1/1/0/24 to IRF-port 1.

<Sysname> system-view
[Sysname] easy-irf member 1 renumber 2 domain 10 priority 10 irf-port1 ten-gigabitethernet 1/1/0/21 ten-gigabitethernet 1/1/0/22 ten-gigabitethernet 1/1/0/23 ten-gigabitethernet 1/1/0/24
*****************************************************************************
                  Configuration summary for member 1
IRF new member ID: 2
IRF domain ID    : 10
IRF priority     : 10
IRF-port 1       : Ten-GigabitEthernet1/1/0/21, Ten-GigabitEthernet1/1/0/22
                   Ten-GigabitEthernet1/1/0/23, Ten-GigabitEthernet1/1/0/24
IRF-port 2       : Disabled
*****************************************************************************
Are you sure to use these settings to set up IRF? [Y/N] y
Starting to configure IRF...
Configuration succeeded.
The device will reboot for the new member ID to take effect. Continue? [Y/N] y

# Bulk-configure basic IRF settings by using the interactive method. Change the member ID from 1 to 2, set the domain ID to 10, configure the member priority as 10, and bind Ten-GigabitEthernet 1/1/0/21 through Ten-GigabitEthernet 1/1/0/24 to IRF-port 1.

<Sysname> system-view
[Sysname] easy-irf
*****************************************************************************
Welcome to use easy IRF.
To skip the current step, enter a dot sign (.).
To return to the previous step, enter a minus sign (-).
To use the default value (enclosed in []) for each parameter, press Enter withou
t entering a value.
To quit the setup procedure, press CTRL+C.
*****************************************************************************
Select a member by its ID <1> [1]:1
Specify a new member ID <1~4> [1]: 2
Specify a domain ID <0~4294967295> [0]: 10
Specify a priority <1~32> [1]: 10
Specify IRF-port 1 bindings (a physical interface or a comma-separated physical
interface list)[Disabled]: ten-gigabitethernet1/1/0/21,ten-gigabitethernet1/1/0/22,ten-gigabitethernet1/1/0/23,ten-gigabitethernet1/1/0/24
Specify IRF-port 2 bindings (a physical interface or a comma-separated physical
interface list)[Disabled]:
*****************************************************************************
                  Configuration summary for member 1
IRF new member ID: 2
IRF domain ID    : 10
IRF priority     : 10
IRF-port 1       : Ten-GigabitEthernet1/1/0/21, Ten-GigabitEthernet1/1/0/22
                   Ten-GigabitEthernet1/1/0/23, Ten-GigabitEthernet1/1/0/24
IRF-port 2       : Disabled
*****************************************************************************
Are you sure to use these settings to set up IRF? [Y/N] y
Starting to configure IRF...
Configuration succeeded.
The device will reboot for the new member ID to take effect. Continue? [Y/N] y