本帖最后由 tianjt 于 2023-10-31 08:28 编辑
H3C交换机堆叠配置的详细命令:
进入系统视图:
[color=rgba(0, 0, 0, 0.85)]<H3C>system-view
创建并进入VLAN 100,同时将管理VLAN设置为100:
[H3C-vlan100]management-vlan 100[H3C]vlan 100
进入堆叠端口G1/1/2,并配置为中继模式:
[H3C-GigabitEthernet1/1/2]undo shutdown
[H3C-GigabitEthernet1/1/2]port link-type trunk
配置堆叠使用的IP地址范围:
[H3C]stacking ip-pool 192.168.1.1 2 255.255.240.0
这里的IP地址范围是根据实际需要配置的,第一个IP地址是网关地址,第二个IP地址是子网掩码位数,第三个IP地址是子网掩码。
建立堆叠:
在配置模式下,执行以下命令:
[H3C]irf-port 1/1 interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 shutdown irf-port 1/1 port group interface ten-gigabitethernet 1/0/49 port group interface ten-gigabitethernet 1/0/50 # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 undo shutdown quit save irf-port-configura # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 shutdown # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 undo shutdown quit save interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 shutdown # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 undo shutdown quit save irf-port-configura # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 shutdown # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 undo shutdown quit save irf-port-configura # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 shutdown # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 undo shutdown quit save irf-port-configura # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 shutdown # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1/0/50 undo shutdown quit save irf-port-configura # interface range ten-gigabitethernet 1/0/49 to ten-gigabitethernet 1 |