1、华为三台堆叠环形配置三台交换机堆叠例如环形拓扑图1配置环形堆叠组网图组网需求在一个新建的企业网络中,要求接入设备具有充足的端口数目,并且希望网络构造简单,易于配置和管理。如图1所示,SwitchA、SwitchB和SwitchC三台接入交换机组成环形堆叠系统。配置思路采用如下的思路配置:1.提前规划好堆叠方案。2.按照前期的规划,完成各台交换机的堆叠配置,包括堆叠成员ID、堆叠优先级、堆叠域编号、堆叠端口等。完成后保存配置并将交换机下电。3.连接交换机之间的堆叠线缆,然后将交换机上电。4.检查堆叠组建是否成功。说明:本例如以先配置软件再连接线缆的方式组建堆叠。如果是先连接线缆再配置软件方式,请
2、参照配置两台交换机堆叠例如先连线后配置方式的思路进展配置。操作步骤1.提前规划堆叠方案。规划SwitchA的堆叠成员ID为1,SwitchB的成员ID为2,SwitchC的成员ID为3。规划SwitchA作为主交换机,其堆叠优先级最高,为150。SwitchB的堆叠优先级为120。SwitchC的堆叠优先级为90。规划堆叠域编号Domain ID为10,不与网络中其他堆叠系统的域编号冲突。规划堆叠连接拓扑为环形。成员设备间用于堆叠连接的端口如图2所示。图2堆叠端口连接示意图2.配置堆叠属性。# 配置SwitchA的堆叠优先级为150,Domain ID为10。缺省情况下,设备的堆叠成员ID为1
3、。此处默认SwitchA的堆叠成员ID为1,无需配置。 system-viewHUAWEI sysname SwitchA*HUAWEI mitSwitchA stackSwitchA-stack stack member 1 priority 150*SwitchA-stack stack member 1 domain 10*SwitchA-stack quit*SwitchA mit# 配置SwitchB的堆叠成员ID为2,优先级为120,Domain ID为10。 system-viewHUAWEI sysname SwitchB*HUAWEI mitSwitchB stackSwit
4、chB-stack stack member 1 priority 120*SwitchB-stack stack member 1 domain 10*SwitchB-stack stack member 1 renumber 2 inherit-configWarning: The stack configuration of member ID 1 will be inherited to member ID 2 after the device resets. Continue? Y/N: y*SwitchB-stack quit*SwitchB mit说明:因SwitchB尚未重启,
5、当前堆叠成员ID还是1,所以此时仍使用member 1来进展堆叠配置。因为修改堆叠成员ID时指定了inherit-config参数,所以SwitchB重启后会继承member 1的堆叠配置;如果不指定inherit-config参数,那么SwitchB重启后不会继承member 1的堆叠配置,需要使用member 2重新进展堆叠配置。# 配置SwitchC的堆叠成员ID为3,优先级为90,Domain ID为10。 system-viewHUAWEI sysname SwitchC*HUAWEI mitSwitchC stackSwitchC-stack stack member 1 prio
6、rity 90*SwitchC-stack stack member 1 domain 10*SwitchC-stack stack member 1 renumber 3 inherit-configWarning: The stack configuration of member ID 1 will be inherited to member ID 3 after the device resets. Continue? Y/N: y*SwitchC-stack quit*SwitchC mit3.配置堆叠端口。# 将SwitchA的业务口10GE1/0/110GE1/0/2参加堆叠端
7、口1/1,10GE1/0/310GE1/0/4参加堆叠端口1/2。SwitchA interface stack-port 1/1*SwitchA-Stack-Port1/1 port member-group interface 10ge 1/0/1 to 1/0/2Warning: After the configuration is plete,1.The interface(s) (10GE1/0/1-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger
8、 error-down mand if the configuration does not exist. 2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? Y/N: y*SwitchA-Stack-Port1/1 quit*SwitchA interface stack-port 1/2*SwitchA-Stack-Port1/2 port member-group interface 10ge
9、 1/0/3 to 1/0/4*SwitchA-Stack-Port1/2 quit*SwitchA mitSwitchA quit被配置为堆叠物理成员端口后,端口下会自动配置port crc-statistics trigger error-down。# 将SwitchB的业务口10GE1/0/110GE1/0/2参加堆叠端口1/1,10GE1/0/310GE1/0/4参加堆叠端口1/2。SwitchB interface stack-port 1/1*SwitchB-Stack-Port1/1 port member-group interface 10ge 1/0/1 to 1/0/2W
10、arning: After the configuration is plete,1.The interface(s) (10GE1/0/1-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger error-down mand if the configuration does not exist. 2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown
11、 configuration on the interfaces.Continue? Y/N: y*SwitchB-Stack-Port1/1 quit*SwitchB interface stack-port 1/2*SwitchB-Stack-Port1/2 port member-group interface 10ge 1/0/3 to 1/0/4*SwitchB-Stack-Port1/2quit*SwitchB mitSwitchB quit# 将SwitchC的业务口10GE1/0/110GE1/0/2参加堆叠端口1/1,10GE1/0/310GE1/0/4参加堆叠端口1/2。S
12、witchC interface stack-port 1/1*SwitchC-Stack-Port1/1 port member-group interface 10ge 1/0/1 to 1/0/2Warning: After the configuration is plete,1.The interface(s) (10GE1/0/1-1/0/4) will be converted to stack mode and be configured with the port crc-statistics trigger error-down mand if the configurat
13、ion does not exist. 2.The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? Y/N: y*SwitchC-Stack-Port1/1 quit*SwitchC interface stack-port 1/2*SwitchC-Stack-Port1/2 port member-group interface 10ge 1/0/3 to 1/0/4*SwitchC-Stack-Port
14、1/2 quit*SwitchC mitSwitchC quit4.检查堆叠配置信息。# 上述配置完成后,执行命令display stack configuration查看配置是否与规划的一致,如果不一致,需要修改配置。以查看SwitchA为例。 display stack configurationOper : OperationConf : Configuration* : Offline configurationIsolated Port : The port is in stack mode, but does not belong to any Stack-PortAttribut
15、e Configuration:- MemberID Domain Priority Switch Mode Uplink PortOper(Conf) Oper(Conf) Oper(Conf) Oper(Conf) Oper(Conf)-1(1) -(10) 100(150) Auto(Auto) 4*40GE(4*40GE)-Stack-Port Configuration:-Stack-Port Member Ports-Stack-Port1/1 10GE1/0/1 10GE1/0/2Stack-Port1/2 10GE1/0/3 10GE1/0/4-5.保存配置后将设备下电。# 保
16、存SwitchA、SwitchB和SwitchC的配置,然后将设备下电。SwitchB和SwitchC的配置与SwitchA一样,略。 saveWarning: The current configuration will be written to the device. Continue? Y/N: y6.按照前期规划及配置,连接堆叠线缆。线缆连接完成后将设备上电。建议先将高优先级设备上电,以使其先完成启动,优先竞争为主交换机。7.验证配置结果# 通过Console口或管理网口登录堆叠系统,使用命令display stack查看堆叠是否组建成功。当通过管理网口登录时,需要使用主交换机的IP
17、地址。 display stack-MemberID Role MAC Priority DeviceType Description-+1 Master 0004-9f31-d520 150 CE6850-48T4Q-EI 2 Standby 0004-9f62-1f40 120 CE6850-48T4Q-EI 3 Slave 0004-9f69-a391 90 CE6850-48T4Q-EI -+ indicates the device where the activated management interface resides.如上所示,显示三台交换机的信息,表示堆叠建立成功,且主
18、交换机为成员ID为1的设备,即SwitchA。# 查看堆叠系统拓扑信息。 display stack topologyStack Topology:- Stack-Port 1 Stack-Port 2 MemberID Status Neighbor Status Neighbor -1 up 2 up 3 2 up 1 up 3 3 up 2 up 1 -Stack Link:-Stack-Port Port Status PeerPort PeerStatus-Stack-Port1/1 10GE1/0/1 up 10GE2/0/1 upStack-Port1/1 10GE1/0/2 u
19、p 10GE2/0/2 upStack-Port1/2 10GE1/0/3 up 10GE3/0/3 upStack-Port1/2 10GE1/0/4 up 10GE3/0/4 upStack-Port2/1 10GE2/0/1 up 10GE1/0/1 upStack-Port2/1 10GE2/0/2 up 10GE1/0/2 upStack-Port2/2 10GE2/0/3 up 10GE3/0/1 upStack-Port2/2 10GE2/0/4 up 10GE3/0/2 upStack-Port3/1 10GE3/0/1 up 10GE2/0/3 upStack-Port3/1
20、 10GE3/0/2 up 10GE2/0/4 upStack-Port3/2 10GE3/0/3 up 10GE1/0/3 upStack-Port3/2 10GE3/0/4 up 10GE1/0/4 up-8.保存堆叠系统配置。说明:在检查堆叠已成功建立后,建议用户立即使用save命令保存堆叠系统配置。 saveWarning: The current configuration will be written to the device. Continue? Y/N: y配置文件堆叠系统的配置文件#sysname SwitchA#stack # stack member 1 domain
21、 10 stack member 1 priority 150 # stack member 2 domain 10 stack member 2 priority 120 # stack member 3 domain 10 stack member 3 priority 90#interface Stack-Port1/1#interface Stack-Port1/2#interface Stack-Port2/1#interface Stack-Port2/2# interface Stack-Port3/1# interface Stack-Port3/2# interface 10
22、GE1/0/1 port mode stack stack-port 1/1 port crc-statistics trigger error-down#interface 10GE1/0/2 port mode stack stack-port 1/1 port crc-statistics trigger error-down#interface 10GE1/0/3 port mode stack stack-port 1/2 port crc-statistics trigger error-down#interface 10GE1/0/4 port mode stack stack-
23、port 1/2 port crc-statistics trigger error-down#interface 10GE2/0/1 port mode stack stack-port 2/1 port crc-statistics trigger error-down#interface 10GE2/0/2 port mode stack stack-port 2/1 port crc-statistics trigger error-down#interface 10GE2/0/3 port mode stack stack-port 2/2 port crc-statistics t
24、rigger error-down#interface 10GE2/0/4 port mode stack stack-port 2/2 port crc-statistics trigger error-down#interface 10GE3/0/1 port mode stack stack-port 3/1 port crc-statistics trigger error-down#interface 10GE3/0/2 port mode stack stack-port 3/1 port crc-statistics trigger error-down#interface 10GE3/0/3 port mode stack stack-port 3/2 port crc-statistics trigger error-down#interface 10GE3/0/4 port mode stack stack-port 3/2 port crc-statistics trigger error-down#return
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1