本帖最后由 徐富荣 于 2023-3-24 09:43 编辑
华三交换机堆叠(主机配置)
[H3C]irf domain 10
[H3C]irf member 1 priority 32
[H3C]dis cu
interface Ten-GigabitEthernet 1/0/23
shut
qu
interface Ten-GigabitEthernet 1/0/24
shut
qu
[H3C]irf-port 1/1
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/23
[H3C-irf-port1/1]port group interface Ten-GigabitEthernet 1/0/24
[H3C-irf-port1/1]qu
[H3C]interface Ten-GigabitEthernet1/0/23
[H3C-Ten-GigabitEthernet1/0/23]undo shut
[H3C-Ten-GigabitEthernet1/0/23]qu
[H3C]interface Ten-GigabitEthernet1/0/24
[H3C-Ten-GigabitEthernet1/0/24]undo shut
[H3C-Ten-GigabitEthernet1/0/24]qu
[H3C]irf-port-configuration active
[H3C]save
[H3C]qu
备机配置 [H3C]irf member 1 renumber 2 [H3C]irf member 1 priority 16 [H3C]qu <H3C>save <H3C>reboot <H3C>sys [H3C]inter Ten-GigabitEthernet2/0/23 [H3C-Ten-GigabitEthernet2/0/49]shut [H3C-Ten-GigabitEthernet2/0/49]qu [H3C]interface Ten-GigabitEthernet2/0/24 [H3C-Ten-GigabitEthernet2/0/50]shut [H3C]irf-port 2/2 [H3C-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/23 [H3C-irf-port2/2]port group interface Ten-GigabitEthernet 2/0/24 [H3C-irf-port2/2]qu [H3C]interface Ten-GigabitEthernet2/0/23 [H3C-Ten-GigabitEthernet2/0/23]undo shut [H3C-Ten-GigabitEthernet2/0/23]qu [H3C]interface Ten-GigabitEthernet2/0/24 [H3C-Ten-GigabitEthernet2/0/24]undo shut [H3C-Ten-GigabitEthernet2/0/24]qu [H3C]save [H3C]qu <H3C>reboot 等待重启堆叠完成 聚合口配置 超融合聚合口配置(mode2): 华三交换机聚合模式: <H3C>system-view //进入配置模式 静态链路聚合: [SW]dis cu //查看所有配置端口信息 [SW]int Bridge-Aggregation 1 //创建链路聚合组端口1 [SW-Bridge-Aggregation1]interface gigabitethernet 1/0/1 //进入网口 [SW-Ethernet1/0/1]port link-aggregation group 1 //加入链路聚合组 [SW-Ethernet1/0/1]quit //退出 [SW]interface Ethernet(gigabitethernet) 1/0/2 [SW-Ethernet1/0/2]port link-aggregation group 1 //加入链路聚合组 [SW-Ethernet1/0/1]quit [SW-Bridge-Aggregation1]port link-type trunk //改为trunk模式 [SW-Bridge-Aggregation1]port trunk permit vlan all //所有的vlan适用
删除链路聚合: 步骤1 将原来已加入的聚合组的端口退出 步骤2 删除聚合组 命令参考如下,(具体的端口号,聚合组 请根据你的实际情况修改): interface GigabitEthernet 0/8 undo port link-aggregation group 1 quit undo link-aggregation group 1
华三交换机堆叠单点故障替换 1.现网备设备 (display irf 显示standby设备)不能敲保存配置,确保两个堆叠口打开状态2.将新设备(用来替换宕机设备)上架上电,不要接线 ---重要步骤1 3.新设备刷入irf堆叠配置 (完全按照现网主设备来配置,优先级大小不影响) 1.命令提示: 这里以交换机51/52端口为例; interface Ten-GigabitEthernet1/0/51 shutdown interface Ten-GigabitEthernet1/0/52shutdown irf domainX #与堆叠设备保持一致 irf member X priority X #与替换设备保持一致 irf member X description xxxxxxxx #与换设备保一致 irf-port1/1#雄叠端口可以自由指定 port group interface Ten-GigabitEthernet1/0/51port group interface Ten-GigabitEthernet1/0/52 4.堆叠端口打开,激活堆叠功能,保存配置 interface Ten-GigabitEthernet1/0/51 undo shutdown interface Ten-GigabitEthernet1/0/52undo shutdown和 irf-port-configuration active #激活新设备的irf功能save force #保存配置 5.断电----重要步骤2 6.连接堆叠端口的线缆或使用专用堆叠线 7.加电开机---重要步骤3由于inf没有抢占机制,所以重启完成后备设备主动同步配置给新设备8.在主设备上(宕机替换的新设备) 保存配置; 9.完成,检查堆叠设备的状态;display irf |