两台交换机堆叠
注意事项:
1、推荐使用万兆口进行堆叠
2、配置完成后需要用命令"irf-port-configuration active"激活
3、实际操作中,先配置完,最后进行插线缆
Core1配置:
[Core1]int range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/52
[Core1-if-range]shutdown
[Core1]irf member 1 priority 5
[Core1]irf-port 1/1 //创建irf虚拟接口
[Core1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/49 //irf虚拟接口与物理端口绑定
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.
//为了成功设置IRF,你必须执行以下任务:
//完成IRF配置后,请保存配置。
//执行“IRF -port-configuration active”命令激活IRF端口。
[Core1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/50
[Core1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/51
[Core1-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/52
[Core1-irf-port1/1]qu
[Core1]irf-port-configuration active
[Core1]
[Core1]int range Ten-GigabitEthernet 1/0/49 to Ten-GigabitEthernet 1/0/52
[Core1-if-range]undo shutdown
Core2配置:
[Core2]irf member 1 renumber 2
Renumbering the member ID may result in configuration change or loss. Continue?[Y/N]:y
Please reboot the device for the new member ID to take effect.
//重命名成员标号后需要重启
[Core2]int range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/52
[Core2-if-range]shutdown
[Core2-if-range]qu
[Core2]irf member 2 priority 1
[Core2]irf-port 2/2
[Core2-irf-port2/2]port group interface Ten-GigabitEthernet 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.
[Core2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/50
[Core2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/51
[Core2-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/52
[Core2-irf-port2/2]qu
[Core2]
[Core2]irf-port-configuration active
[Core2]int range Ten-GigabitEthernet 2/0/49 to Ten-GigabitEthernet 2/0/52
[Core2-if-range]shutdown
irf配置成功
[Core1]%Nov 1 23:31:30:623 2021 Core1 DEV/2/BOARD_STATE_FAULT: Board state changed to Fault on slot 2, type is unknown.
%Nov 1 23:31:32:327 2021 Core1 DEV/5/BOARD_STATE_NORMAL: Board state changed to Normal on slot 2, type is H3C S6850.
%Nov 1 23:31:54:977 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port Ten-GigabitEthernet1/0/49 (IfIndex 50), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet2/0/49.
%Nov 1 23:31:54:978 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port Ten-GigabitEthernet1/0/50 (IfIndex 51), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet2/0/50.
%Nov 1 23:31:54:803 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: -Slot=2; Nearest bridge agent neighbor created on port Ten-GigabitEthernet2/0/49 (IfIndex 178), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet1/0/49.
%Nov 1 23:31:54:804 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: -Slot=2; Nearest bridge agent neighbor created on port Ten-GigabitEthernet2/0/50 (IfIndex 179), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet1/0/50.
%Nov 1 23:31:54:983 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port Ten-GigabitEthernet1/0/51 (IfIndex 52), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet2/0/51.
%Nov 1 23:31:54:863 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: -Slot=2; Nearest bridge agent neighbor created on port Ten-GigabitEthernet2/0/51 (IfIndex 180), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet1/0/51.
%Nov 1 23:31:55:161 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: Nearest bridge agent neighbor created on port Ten-GigabitEthernet1/0/52 (IfIndex 53), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet2/0/52.
%Nov 1 23:31:55:064 2021 Core1 LLDP/6/LLDP_CREATE_NEIGHBOR: -Slot=2; Nearest bridge agent neighbor created on port Ten-GigabitEthernet2/0/52 (IfIndex 181), neighbor's chassis ID is 8878-15d6-0500, port ID is Ten-GigabitEthernet1/0/52.
查看irf:
<Core1>dis irf
MemberID Role Priority CPU-Mac Description
*+1 Master 5 8878-15d6-0504 ---
2 Standby 1 8878-1aae-0604 ---
--------------------------------------------------
* indicates the device is the master.
+ indicates the device through which the user logs in.
//“*”表示主设备
//“+”表示用户登录的设备。
The bridge MAC of the IRF is: 8878-15d6-0500
Auto upgrade : yes
Mac persistent : 6 min
Domain ID : 0
查看接口:
<Core1>dis int b
Brief information on interfaces in route mode:
Link: ADM - administratively down; Stby - standby
Protocol: (s) - spoofing
Interface Link Protocol Primary IP Description
InLoop0 UP UP(s) --
MGE0/0/0 DOWN DOWN --
NULL0 UP UP(s) --
REG0 UP -- --
Brief information on interfaces in bridge mode:
Link: ADM - administratively down; Stby - standby
Speed: (a) - auto
Duplex: (a)/A - auto; H - half; F - full
Type: A - access; T - trunk; H - hybrid
Interface Link Speed Duplex Type PVID Description
FGE1/0/53 DOWN 40G A A 1
FGE1/0/54 DOWN 40G A A 1
FGE2/0/53 DOWN 40G A A 1
FGE2/0/54 DOWN 40G A A 1
GE1/0/1 DOWN auto F A 1
GE1/0/2 DOWN auto F A 1
GE1/0/3 DOWN auto F A 1
GE1/0/4 DOWN auto F A 1
GE1/0/5 DOWN auto F A 1
GE1/0/6 DOWN auto F A 1
GE1/0/7 DOWN auto F A 1
GE1/0/8 DOWN auto F A 1
GE1/0/9 DOWN auto F A 1
GE1/0/10 DOWN auto F A 1
GE1/0/11 DOWN auto F A 1
GE1/0/12 DOWN auto F A 1
GE1/0/13 DOWN auto F A 1
GE1/0/14 DOWN auto F A 1
GE1/0/15 DOWN auto F A 1
GE1/0/16 DOWN auto F A 1
GE1/0/17 DOWN auto F A 1
GE1/0/18 DOWN auto F A 1
GE1/0/19 DOWN auto F A 1
GE1/0/20 DOWN auto F A 1
GE1/0/21 DOWN auto F A 1
GE1/0/22 DOWN auto F A 1
GE1/0/23 DOWN auto F A 1
GE1/0/24 DOWN auto F A 1
GE1/0/25 DOWN auto F A 1
GE1/0/26 DOWN auto F A 1
GE1/0/27 DOWN auto F A 1
GE1/0/28 DOWN auto F A 1
GE1/0/29 DOWN auto F A 1
GE1/0/30 DOWN auto F A 1
GE1/0/31 DOWN auto F A 1
GE1/0/32 DOWN auto F A 1
GE1/0/33 DOWN auto F A 1
GE1/0/34 DOWN auto F A 1
GE1/0/35 DOWN auto F A 1
GE1/0/36 DOWN auto F A 1
GE1/0/37 DOWN auto F A 1
GE1/0/38 DOWN auto F A 1
GE1/0/39 DOWN auto F A 1
GE1/0/40 DOWN auto F A 1
GE1/0/41 DOWN auto F A 1
GE1/0/42 DOWN auto F A 1
GE1/0/43 DOWN auto F A 1
GE1/0/44 DOWN auto F A 1
GE1/0/45 DOWN auto F A 1
GE1/0/46 DOWN auto F A 1
GE1/0/47 DOWN auto F A 1
GE1/0/48 DOWN auto F A 1
GE2/0/1 DOWN auto F A 1
GE2/0/2 DOWN auto F A 1
GE2/0/3 DOWN auto F A 1
GE2/0/4 DOWN auto F A 1
GE2/0/5 DOWN auto F A 1
GE2/0/6 DOWN auto F A 1
GE2/0/7 DOWN auto F A 1
GE2/0/8 DOWN auto F A 1
GE2/0/9 DOWN auto F A 1
GE2/0/10 DOWN auto F A 1
GE2/0/11 DOWN auto F A 1
GE2/0/12 DOWN auto F A 1
GE2/0/13 DOWN auto F A 1
GE2/0/14 DOWN auto F A 1
GE2/0/15 DOWN auto F A 1
GE2/0/16 DOWN auto F A 1
GE2/0/17 DOWN auto F A 1
GE2/0/18 DOWN auto F A 1
GE2/0/19 DOWN auto F A 1
GE2/0/20 DOWN auto F A 1
GE2/0/21 DOWN auto F A 1
GE2/0/22 DOWN auto F A 1
GE2/0/23 DOWN auto F A 1
GE2/0/24 DOWN auto F A 1
GE2/0/25 DOWN auto F A 1
GE2/0/26 DOWN auto F A 1
GE2/0/27 DOWN auto F A 1
GE2/0/28 DOWN auto F A 1
GE2/0/29 DOWN auto F A 1
GE2/0/30 DOWN auto F A 1
GE2/0/31 DOWN auto F A 1
GE2/0/32 DOWN auto F A 1
GE2/0/33 DOWN auto F A 1
GE2/0/34 DOWN auto F A 1
GE2/0/35 DOWN auto F A 1
GE2/0/36 DOWN auto F A 1
GE2/0/37 DOWN auto F A 1
GE2/0/38 DOWN auto F A 1
GE2/0/39 DOWN auto F A 1
GE2/0/40 DOWN auto F A 1
GE2/0/41 DOWN auto F A 1
GE2/0/42 DOWN auto F A 1
GE2/0/43 DOWN auto F A 1
GE2/0/44 DOWN auto F A 1
GE2/0/45 DOWN auto F A 1
GE2/0/46 DOWN auto F A 1
GE2/0/47 DOWN auto F A 1
GE2/0/48 DOWN auto F A 1
XGE1/0/49 UP 10G F -- --
XGE1/0/50 UP 10G F -- --
XGE1/0/51 UP 10G F -- --
XGE1/0/52 UP 10G F -- --
XGE2/0/49 UP 10G F -- --
XGE2/0/50 UP 10G F -- --
XGE2/0/51 UP 10G F -- --
XGE2/0/52 UP 10G F -- --