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 is1 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 interfaces bound to IRF-port 1. The interface-list1 argument represents a space-separated list of up to 16 interface items. Each interface item specifies one interface in the interface-type interface-number form.

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

Usage guidelines

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 IRF 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 2 to 3, set the domain ID to 10, configure the member priority as 10, and bind Ten-GigabitEthernet 2/0/1 and Ten-GigabitEthernet 2/0/2 to IRF-port 1.

<Sysname> system-view
[Sysname] easy-irf member 2 renumber 3 domain 10 priority 10 irf-port1 ten-gigabitethernet 2/0/1 ten-gigabitethernet 2/0/2
*****************************************************************************
                  Configuration summary for member 2
IRF new member ID: 3
IRF domain ID    : 10
IRF priority     : 10
IRF-port 1       : Ten-GigabitEthernet2/0/1, Ten-GigabitEthernet2/0/2
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 2 to 3, set the domain ID to 10, configure the member priority as 10, and bind Ten-GigabitEthernet 2/0/1 and Ten-GigabitEthernet 2/0/2 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 without
entering a value.
To quit the setup procedure, press CTRL+C.
*****************************************************************************
Select a member by its ID <2> [2]:2
Specify a new member ID <1~10> [1]: 3
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-gigabitethernet2/0/1,ten-gigabitethernet2/0/2
Specify IRF-port 2 bindings (a physical interface or a comma-separated physical
interface list)[Disabled]:
*****************************************************************************
                  Configuration summary for member 2
IRF new member ID: 3
IRF domain ID    : 10
IRF priority     : 10
IRF-port 1       : Ten-GigabitEthernet2/0/1, Ten-GigabitEthernet2/0/2
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