自学内容网 自学内容网

华为s5720s-28p-power-li-ac堆叠配置

叠物理约束:
• 连线推荐示意图选用产品子系列中固定的一款设备做示例,与选择产品时指定型号的外观可能不同。示意图主要用于让用户了解相同子系列设备可以用作堆叠的端口的位置,以及使用不同的连线方式时如何连接设备上的端口。因此,即使使用不同外观的设备,但是端口位置、外观及使用方法是一样的。
• 请保证光纤、电缆的弯曲半径大于最小弯曲半径。SFP+电缆、AOC光线缆的最小弯曲半径分别为25mm、30mm,光纤的弯曲半径一般≥40mm。
• 堆叠成员设备之间,本端设备的逻辑堆叠端口stack-port n/1必须与对端设备的逻辑堆叠端口stack-port m/2相连。
• 链型
在这里插入图片描述
环型:
在这里插入图片描述
配置思路

  1. 为了能够在堆叠的成员交换机之间转发数据报文,需要配置逻辑堆叠端口,并添加物理成员端口。
  2. 为方便用户管理,配置成员交换机的堆叠ID和优先级。
  3. SwitchA、SwitchB、SwitchC下电。按照图1所示,使用SFP+堆叠电缆连接各物理成员端口后再上电。

基本配置步骤:
操作步骤

  1. 执行命令system-view,进入系统视图。
  2. 执行命令interface stack-port member-id/port-id命令,创建并进入逻辑堆叠端口视图。
  3. 执行命令port interface { interface-type interface-number1 [ to interface-type interface-number2 ] } &<1-10> enable,配置业务口为物理成员端口并将其加入到逻辑堆叠端口中。
  4. 执行命令quit,退回到系统视图。
  5. (可选)执行命令stack slot slot-id renumber new-slot-id,配置设备的堆叠ID。
  6. (可选)执行命令stack slot slot-id priority priority,配置成员交换机的堆叠优先级。

案例:
如图1所示,根据用户需求,SwitchA、SwitchB和SwitchC三台接入交换机采用环形堆叠组网,并通过跨设备Eth-Trunk连接上层设备SwitchD。其中,SwitchA、SwitchB和SwitchC的角色分别为主、备、从,堆叠ID分别为0、1、2,优先级分别为200、100、100。由于组成堆叠的成员交换机在逻辑上是一个整体,所以整个网络在扩展了端口数量的同时也方便了用户对网络的管理和维护。
组网以S5720-LI交换机为例。
在这里插入图片描述
本端设备逻辑堆叠端口stack-port n/1里的物理成员端口只能与对端设备逻辑堆叠端口stack-port m/2里的物理成员端口相连。
如果SwitchA、SwitchB、SwitchC设备款型不完全一致,也必须使用可以混堆的设备款型。设备是否可以混堆,请参见堆叠配置注意事项中的描述。
组建堆叠时,最终生效的软件版本是竞争为主交换机的设备使用的软件版本。备交换机和从交换机会自动同步主交换机的软件版本。

操作步骤

  1. 配置逻辑堆叠端口并加入物理成员端口

配置SwitchA的业务口GigabitEthernet0/0/27、GigabitEthernet0/0/28为物理成员端口,并加入到相应的逻辑堆叠端口。

最好是先把要加入的物理口提前shutdown
system-view
[HUAWEI] sysname SwitchA
[SwitchA] interface stack-port 0/1
[SwitchA-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.
[SwitchA-stack-port0/1] quit
[SwitchA] interface stack-port 0/2
[SwitchA-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.
[SwitchA-stack-port0/2] quit

配置SwitchB的业务口GigabitEthernet0/0/27、GigabitEthernet0/0/28为物理成员端口,并加入到相应的逻辑堆叠端口。

system-view
[HUAWEI] sysname SwitchB
[SwitchB] interface stack-port 0/1
[SwitchB-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.
[SwitchB-stack-port0/1] quit
[SwitchB] interface stack-port 0/2
[SwitchB-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.
[SwitchB-stack-port0/2] quit

配置SwitchC的业务口GigabitEthernet0/0/27、GigabitEthernet0/0/28为物理成员端口,并加入到相应的逻辑堆叠端口。

system-view
[HUAWEI] sysname SwitchC
[SwitchC] interface stack-port 0/1
[SwitchC-stack-port0/1] port interface gigabitethernet 0/0/27 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.
[SwitchC-stack-port0/1] quit
[SwitchC] interface stack-port 0/2
[SwitchC-stack-port0/2] port interface gigabitethernet 0/0/28 enable
Warning: Enabling stack function may cause configuration loss on the interface. Continue? [Y/N]:y
Info: This operation may take a few seconds. Please wait.
[SwitchC-stack-port0/2] quit
2. 配置堆叠ID和堆叠优先级

配置SwitchA的堆叠优先级为200。

[SwitchA] stack slot 0 priority 200
Warning: Do not frequently modify the Priority because it will make the stack split. Continue? [Y/N]:y

配置SwitchB的堆叠ID为1。

[SwitchB] stack slot 0 renumber 1
Warning: All the configurations 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 configuration has been changed, and the device needs to restart to make the configuration effective.

配置SwitchC的堆叠ID为2。

[SwitchC] stack slot 0 renumber 2
Warning: All the configurations 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 configuration has been changed, and the device needs to restart to make the configuration effective.
3. SwitchA、SwitchB、SwitchC下电,使用SFP+电缆连接后再上电。
4. 下电前,建议通过命令save保存配置。
5. 本设备的stack-port 0/1必须连接邻设备的stack-port 0/2,否则堆叠组建不成功。
6. 为保证堆叠组建成功,建议按照以下顺序进行连线上电(如果用户希望某台交换机为主交换机可以先为其上电。例如,按以下顺序连线上电后,SwitchA为主交换机):

  1. 为SwitchA、SwitchB、SwitchC下电;
  2. 连接SwitchA与SwitchB之间的堆叠线缆;
  3. 先为SwitchA上电,SwitchA启动后,再为SwitchB上电;
  4. 检查SwitchA与SwitchB的堆叠组建是否成功,详细检查方法可参见检查堆叠组建是否成功;
  5. 与上一步类似:连接SwitchC与SwitchB和SwitchA之间的堆叠线缆,再为SwitchC上电;
  6. 检查SwitchA、SwitchB、SwitchC的堆叠组建是否成功,详细检查方法可参见检查堆叠组建是否成功。
  7. 验证配置结果

查看堆叠系统的基本信息。

[SwitchA] display stack
Stack mode: Service-port
Stack topology type : Ring
Stack system MAC: xxxx-xxxx-xxx5
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      xxxx-xxxx-xxx5   200        S5720-28P-LI-AC
1     Standby     xxxx-xxxx-xxx4   100        S5720-28P-LI-AC
2     Slave       xxxx-xxxx-xxx1   100        S5720-28P-LI-AC

配置文件
堆叠配置不记入配置文件,直接写入Flash。

多活配置

在这里插入图片描述
组网需求
如图1所示,SwitchA和SwitchB组成堆叠系统,SwitchA的堆叠ID为0,SwitchB的堆叠ID为1。
为防止堆叠分裂时,网络中存在两个配置冲突的堆叠系统,用户可以启用多主检测功能,减少堆叠分裂给网络带来的影响。
操作步骤

  1. 配置接口采用直连方式多主检测功能

配置接口GigabitEthernet0/0/5采用直连方式多主检测功能。

system-view
[HUAWEI] interface gigabitethernet 0/0/5
[HUAWEI-GigabitEthernet0/0/5] mad detect mode direct
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y
[HUAWEI-GigabitEthernet0/0/5] quit
[HUAWEI] quit

配置接口GigabitEthernet1/0/5采用直连方式多主检测功能。

system-view
[HUAWEI] interface gigabitethernet 1/0/5
[HUAWEI-GigabitEthernet1/0/5] mad detect mode direct
Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y
[HUAWEI-GigabitEthernet1/0/5] quit
[HUAWEI] quit

  1. 查看配置结果

查看堆叠系统多主检测详细配置信息。

display mad verbose
Current MAD domain: 0
Current MAD status: Detect
Mad direct detect interfaces configured:
GigabitEthernet0/0/5
GigabitEthernet1/0/5
Mad relay detect interfaces configured:
Excluded ports(configurable):
Excluded ports(can not be configured):
GigabitEthernet0/0/27
GigabitEthernet1/0/27


原文地址:https://blog.csdn.net/ydaxia110/article/details/136336665

免责声明:本站文章内容转载自网络资源,如本站内容侵犯了原著者的合法权益,可联系本站删除。更多内容请关注自学内容网(zxcms.com)!