一、拓扑图
二、组网需求
将SW1 SW2 建立堆叠
三、配置步骤
1.更改板卡层数
- 将SW2板卡层数从1改为2
[SW2]irf member 1 renumber 2
- 保存SW2并重启
<SW2>save f
<SW2>reboot
检查:在SW2上查看,板卡层数为2
2.配置IRF
- 关闭SW1、SW2上的互连端口
[SW1]interface range Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50
[SW1-if-range]shutdown
[SW2]interface range Ten-GigabitEthernet 2/0/49 Ten-GigabitEthernet 2/0/50
[SW2-if-range]shutdown
- 将SW1、SW2上的互连端口,放出 irf 组
[SW1]irf-port 1/1
[SW1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49
[SW1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[SW2]irf-port 2/2
[SW2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/49
[SW2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/50
- 开启SW1、SW2上的互连端口,并保存
[SW1]interface range Ten-GigabitEthernet 1/0/49 Ten-GigabitEthernet 1/0/50
[SW1-if-range]undo shutdown
[SW1-if-range]save
[SW2]interface range Ten-GigabitEthernet 2/0/49 Ten-GigabitEthernet 2/0/50
[SW2-if-range]undo shutdown
[SW2-if-range]save
- 激活 irf
[SW1]irf-port-configuration active
[SW2]irf-port-configuration active
- 配置完成,备用 irf 重启后同步