[H3C]sysname device1
[device1]interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/5 进入范围实际的1/0/49到1/0/50端口
0
[device1-if-range]shutdown 关闭
[device1-if-range]quit
[device1]irf-port 1/2 进入1/2的堆叠口
[device1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/49 将1/0/49加入到堆叠口中
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.
[device1-irf-port1/2]port group interface Ten-GigabitEthernet 1/0/50 将1/0/50加入到堆叠口中
[device1-irf-port1/2]quit
[DeviceA]interface range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/5 再进入到1/0/49-1/0/50端口
[device1-if-range]undo shutdown 激活端口
[device1-if-range]quit
[device1]save force 强制保存
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
[device1]irf-port-configuration active 激活堆叠口配置
[device1]
三、配置第二台交换机
<device2>system-view
System View: return to User View with Ctrl+Z.
[device2]undo info-center enable
Information center is disabled.
[device2]sysname device2
[device2]irf member 1 renumber 2 将堆叠口成员1更改为2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
[device2]quit
<device2>reboot 重启
Start to check configuration with next startup configuration file, please wait.........DONE!
Current configuration may be lost after the reboot, save current configuration? [Y/N]:y
Please input the file name(*.cfg)[flash:/startup.cfg]
(To leave the existing filename unchanged, press the enter key):
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
This command will reboot the device. Continue? [Y/N]:y
Now rebooting, please wait...
<device2>system-view
System View: return to User View with Ctrl+Z.
[device2]interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/5
0 进入范围实际的1/0/49到1/0/50端口
[device2-if-range]shutdown 关闭四个接口才能配置
[device2-if-range]quit
[device2]irf-port 2/1 进入2/1的堆叠口
[device2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/49 将2/0/49加入到堆叠口中
You must perform the following tasks for a successful IRF setup:
Save the configuration after completing IRF configuration.
Execute the "irf-port-configuration active" command to activate the IRF ports.
[device2-irf-port2/1]port group interface Ten-GigabitEthernet 2/0/50 将1/0/50加入到堆叠口中
[device2-irf-port2/1]quit
[device2]interface range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/5 进入范围实际的1/0/49到1/0/50端口
0
[device2-if-range]undo shutdown 激活端口
[device2-if-range]quit
[device2]save force 强制保存
Validating file. Please wait...
Saved the current configuration to mainboard device successfully.
四、在第一台交换机上查看堆叠信息
<device1>display irf 查看堆叠信息
MemberID Role Priority CPU-Mac Description
*+1 Master 1 46c8-cf18-0104 --- 成员1是主
2 Standby 1 46c8-dac6-0204 --- 成员2是备份
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 46c8-cf18-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
五、再第二台交换机上查看堆叠信息
<device1>display irf
MemberID Role Priority CPU-Mac Description
*1 Master 1 46c8-cf18-0104 ---
+2 Standby 1 46c8-dac6-0204 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
The bridge MAC of the IRF is: 46c8-cf18-0100
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
<device1>
六、在第一台上创建vlan10、20
<device1>system-view
System View: return to User View with Ctrl+Z.
[device1]vlan 10
[device1-vlan10]vlan 20
[device1-vlan20]quit
[device1]
七、在第二台模拟器上查看
<device1>display vlan
Total VLANs: 3
The VLANs include:
1(default), 10, 20
<device1>