18
After connecting the physical ports between two switches and bind them to the correct IRF ports, you must
use this command to activate the settings on the IRF ports to merge the two switches into one IRF fabric.
After an IRF port is activated, its link state in the
display irf topology
command output changes from
DIS
or
DOWN
to
UP
.
The system automatically activates the IRF port settings in the following situations:
•
The configuration file that the device starts with contains IRF port bindings.
•
You are binding physical ports to an IRF port after an IRF fabric is formed.
Activating IRF port settings can cause IRF merge and device reboot. To avoid configuration loss, follow
this procedure to set up your IRF fabric:
1.
Plan the IRF setup, including the IRF fabric topology, IRF fabric size, member ID assignment, and
bindings of physical ports and IRF ports.
2.
Change the IRF member ID of each switch to make sure they are unique in the IRF fabric.
3.
Connect the physical ports between neighboring switches and make sure that the peer ports can
reach each other.
4.
Enter the IRF port view.
5.
Bind the physical ports to the IRF ports on each switch.
6.
Save the configuration to the next-startup configuration file on each switch.
7.
Activate the IRF ports on each switch.
Examples
To configure and activate IRF port 1/2:
# Bind GigabitEthernet 1/0/25 to IRF port 1/2.
<Sysname> system-view
[Sysname] interface gigabitEthernet 1/0/25
[Sysname-GigabitEthernet1/0/25] shutdown
[Sysname-GigabitEthernet1/0/25] quit
[Sysname] irf-port 1/2
[Sysname-irf-port1/2] port group interface GigabitEthernet 1/0/25
[Sysname-irf-port1/2] quit
[Sysname] interface gigabitEthernet 1/0/25
[Sysname-GigabitEthernet1/0/25] undo shutdown
[Sysname-GigabitEthernet1/0/25] quit
# Save the configuration so the IRF port settings can take effect after the switch reboots.
[Sysname] save
The current configuration will be written to the device. Are you sure? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
flash:/aa.cfg exists, overwrite? [Y/N]:y
Validating file. Please wait............................
Saved the current configuration to mainboard device successfully.
Slot 1:
Save next configuration file successfully.
Configuration is saved to device successfully.
# Activate the IRF port.
[Sysname] irf-port-configuration active