华为交换机堆叠配置

堆叠配置

是私有技术,各厂商的堆叠技术并不兼容,堆叠要求堆叠的成员设备必须型号相同(大版本相同),需要参考华为官方说明:
https://support.huawei.com/enterprise/zh/tool/product/enterprise-network

                                            华为交换机堆叠配置


                                            华为交换机堆叠配置

40.1 华为堆叠分两种
istack 面向盒式交换机
css 面向框式交换机
40.2 堆叠配置
Sw1(1、2口)------------- S重启之极海听雷w2(1、2口)
分四个步骤:1成员编号 2配置优先级 3配置堆叠互联口 4链路聚合
40.2.1 成员编号(成员ID)
默认都是0,slot槽位号也是成员ID优先级是什么意思号,如 g0/0/优先级c的任务特点1 最前面的0就是槽位,第二个0是子卡
[sw2]dis stack # 查看编号命令
Stack mode: Service-port
Stack topology type: Link
Stack system MAC: f4b7-8dc4-d6be
MAC switch delay time: 10 min
Stack reserved VLAN: 4093
Slot of the active management p优先级最高的运算符ort: --
Slot Role MAC Address Priority Device Type


0 Master f4b7-8dc4-d6be 100 S5720S-28P-LI-AC
[sw2]dis int bri # 这个也可以查网络安全知识内容看槽位号GigabitEthernet0/0/1
PHY: Phy优先级越小越优先吗sical
*down: administratively链路聚合 down
#do网络安全教育心得体会wn: LBDT down
(l): loopback
(s): spoofing
(b): BFD down
(e):链路层协议 ETHOAM down
(dl): DLDP down
(lb): LBDT block
(o): Observe-port forwardin重启末世g down
InUti/Ou链路状态路由算法tUt链路的意思i: input utility/output utility
Interface PHY Protocol InUti OutUti inErrors outErrors
GigabitEthernet0/0/1 up up 0% 0% 0 0
GigabitEthernet0/0/2 up up 0% 0% 0 0
GigabitEthernet0/0/3 down down 0% 0% 0 0
[sw2]s网络管理tack slot 0 renumber 1 # 修改槽位号为1
Warning: All the configur链路层的主要功能ations related to the slot ID will be lost after the slot ID is modified.
Do not frequently modify the slot ID because it will make the stack split. Continue? [Y/N]:y...
Info: Stack c重启onfiguration has been changed, and the device needs to restart to make the configuration effecti重启ve.
<sw2>reboot # 完成后需要重启
Info: The system is now comparing the configuration, please wait..........重启.................
Warning: The configuration has been modified, and it will be saved to the next startup saved-configuration file . Continue? [Y/N]:y
Now saving the优先级是什么意思 curren网络安全知识内容t configuration to the slot 0..........链路状态路由协议.
Save the configuration successfully.
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Co网络安全专业ntinue?[Y/N]:y
查看结果
[sw2]dis stac网络安全密钥是什么k
Stack mod网络安全内容怎么写e: Service-链路port
Stack topology type: Link
Sta链路ck system MAC: f4b7-8dc4-d6be
MAC switch delay time: 10 min
Stack reserved VLAN: 4093
Slot of the act网络安全大赛iv链路状态路由协议e management port: --
Slot Role M链路聚合AC Address Prio网络管理员证书rity重启末世 Device T优先级最高的运算符ype


1 Master f4b7-8dc4-d6be 105 S5720S-28P-LI-AC
[sw2]dis int bri
PHY: Physical
*down: administratively down
#down: LBDT down
(l): loopback
(s): spoofing
(b): BFD down
(e): ETHOAM down
(dl): DLDP down
(lb): LBDT block
(o): Observe-port forwardi重启人生谈小天ng down
InUti/OutUti: input utility/output utility
Interface HY Protocol InUti OutUti inErrors outErrors
GigabitEthernet1/0/1 up up 0% 0% 0 0
GigabitEthernet1/0/2 up up 0% 0% 0 0
Giga链路聚合配置命令bi优先级调度算法tEthernet1/0/3 down down 0% 0% 0 0
40.2.2 配置优先级
先出主交换机,一主一备多从。默认优先级都是100,数字越大越优先,如果优先级相同看主板mac,mac越小越好。
注意:先网络管理网页启动的设备担任主设备。意思是优先级100的先启动,优先级105的后启动,那优先级100的先启动就是主,不抢重启术士的人生樱花动漫占原则。
如果非要抢占需要手动主备切换,命令为slave switchover (华为、华三)
[sw1]slave ?
restart Restart slave board
swi网络管理tchover HA switch slave to master
[sw1]stack slot 0 pri网络管理器ority 105 # 配置优先级为105
Warning: D网络管理软件o not frequently modify the priority because it will make the stack split. Continue? [Y/N]:y....
[sw1]dis stack # 查看优先级
Stac重启全盛时代k mode: Service-port
Stack topolo网络安全内容怎么写gy type: Link
Stack system MAC: f4b7-8dc4-d6be
MAC switch delay time: 10 min
Stack reserved VLAN: 4093
Slot of the active management port: --
Slot Role MAC Address Priority网络管理员考试 Device Type


0 Master f4b7-8dc4-d6ba 105 S5720S-28P-LI-AC
40.2.3 配置堆叠互联口
创建逻辑的堆叠口,必须交叉互联

sw1
[sw1]int stack-port 0/? # 0/? 里面的0是slot槽位号
<1-2> Port number # 只能创建2个
[sw1]int stack-port 0/1 #网络安全大赛 创建逻辑接口0/1
[sw1-stack-port0/1]port int g0/0/1 enable #把g0/0/1 放置到逻辑接口0/1里面
Warning: Enabling stack function may cause configuration loss网络安全法 on th链路状态路由算法e interface. Continue? [Y/N]:y
[sw1-stack-port0/1]port int g0/0/2 en #把g0/0/2 放置到逻辑接口0/1里面
Warning: Enabling stack function may cause co网络管理员密码是多少nfiguration loss on the interf网络安全工程师ace. Continue? [Y/N]:y
查看配置
[sw1]dis stack configuration

---------链路的意思------Configuration on slot 0 Begin---------------
stack enable
stack slot 0 renumber 0
stack slot 0 priority 105
stack reserved-vlan 4093
stack timer mac-address switch-delay 10
interface stack-port 0/1
port interface Gi网络管理员gabitEthern网络管理软件et0/0/1 enable
port interface GigabitEthernet0/0/2 enable链路状态路由算法
interface stack-port优先级最低的运算符是什么 0/2
-----链路层----------Conf网络管理员考试iguration on slot 0 End-------网络安全内容怎么写----------
sw2
[sw2]int stack-port 1/2 # 创建逻辑接口, 交叉互联
[sw2-stack-port1/2]port int g1/0/3 to g1/0/4 enable # 可以同时放置多个
注:实际操作时port int g1/0/1 to g1/0/2 enable 提示不能用,改为3和4就可以啦这和上面拓扑有差别


                                            华为交换机堆叠配置

配置完成后,备设备自动重启
查看是否成功
[sw1]dis int br
PHY: Physical
InUti/OutUti: input utility/outp链路聚合配置命令ut utility
Interface链路层的主要功能 PHY Protocol InUti链路的意思 OutUti inErrors outErr重启术士的人生樱花动漫or网络安全知识内容s
GigabitEthernet0/0/1 up up 0% 0% 0 0
GigabitEthernet0/0/2 up up 0% 0% 0 0
G重启之极海听雷igabitEther优先级排序net0/0/3 down down 0% 0% 0 0
GigabitEthernet1/0/1 down down 0% 0% 0 0
GigabitEt网络管理员考试hernet1/0/2 down down 0% 0% 0 0
GigabitEthernet链路聚合1/0/3 up up 0% 0% 0 0
GigabitEt重启主神游戏hernet1/0/4 up up 0% 0% 0 0
40.2.4 链路聚合
[sw1]int Eth-Trunk 1 # 创建逻辑聚合接口
[sw1-Eth-Trunk1]mode lacp
[sw1]int g0/0/3 # 将物理接口加入逻辑聚合口
[sw1-GigabitEthernet0/0/3]eth 1
Info: This operation may take a few seconds. P重启末世lease wait a moment.
Info: The operation is successful.
[sw1-GigabitEthernet1/0/5]eth-trunk 1 # 将物理接口加入逻辑聚合口
Info: This operation may take a few seconds. Please wait a moment.
Info: The operation is successful.
[sw1]int Eth-Trunk 1 # 把聚合打上trunk
[sw1-Eth-Trunk1]port link-type tr
Info: This operation may take a few seconds. Please wait for a moment...done.
[sw1-Eth-Trunk1]port trun重启术士的人生樱花动漫k allow-pass vlan all
Info: This operat重启ion may take a优先级 few seconds. Please wait a moment..done.

sw3

把sw3 int g0/0/3 和 int g0/0/重启末世4 聚合打上trunk
sw3 int g0/0/3对应sw1-Gi网络管理的五大功能gabitEthernet0/0/3
sw3 int g0/0/4对应sw1-GigabitEthernet0/0/5

手动单独重启设备,因为已经堆叠了

<sw1>reset s链路层的主要功能lo网络安全密钥是什么t ?
<0-1> The present slot
<sw1>dis stack网络管理员考试
Stack mode: Service-port
Stack topo链路状态路由协议logy type: Link
Stack system MAC: f4b7-8dc4-d6ba
MAC switch de优先级lay time: 10 min网络安全法
Stack reserved VLAN: 4093
Slot of the active management port: --
Slot Role MAC Address Priority Device Type


0 Master f4b7-8dc4-d6ba 105 S5720S-28P-LI-AC
1 Standby f4b7-8dc4-d6be 105 S5720S-28P-LI-AC
<sw1>reset slot 0
Warning:重启人生谈小天 Confirm to reset slot 0? [Y/N]:

参考文献:肖宗鹏

51CTO学堂华为认证教学总监 肖宗鹏肖宗鹏