1、组网拓扑


1649226725(1).jpg
图1:机堆叠组网图

2、组网需求

图1所示,CE交换机SwitchA和SwitchB组成堆叠系统。

  • 100GE1/0/1和100GE1/0/2为堆叠口
  • 10GE1/0/48为双主检测口

3、配置步骤

3.1、操作步骤

1)交换机上电,先不接堆叠线缆
2)配置堆叠属性:
配置SwitchA

<HUAWEI> system-view
[~HUAWEI] sysname SwitchA
[*HUAWEI] commit      \\提交配置
[~SwitchA] stack      \\进入堆叠视图
[~SwitchA-stack] stack member 1 priority 200      \\配置堆叠成员ID为1,优先级为200
[*SwitchA-stack] stack member 1 domain 10      \\Domain为10
[*SwitchA-stack] quit
[*SwitchA] commit

配置SwitchB

<HUAWEI> system-view
[~HUAWEI] sysname SwitchB
[*HUAWEI] commit
[~SwitchB] stack
[*SwitchB-stack] stack member 1 domain 10
[*SwitchB-stack] stack member 1 renumber 2 inherit-config  \\指定inherit-config参数,member 2可直接继承member 1的堆叠配置
Warning: 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] commit



3)配置堆叠口
配置SwitchA

[~SwitchA] interface stack-port 1/1     \\创建堆叠端口并进入堆叠端口视图
[*SwitchA-Stack-Port1/1] port member-group interface 100ge1/0/1 to 1/0/2  \\加入堆叠端口1/1
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] commit
[*SwitchA-stack] quit
[*SwitchA] quit
<SwitchA> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y

配置SwitchB

[~SwitchB] interface stack-port 1/1
[*SwitchA-Stack-Port1/1] port member-group interface 100ge1/0/1 to 1/0/2
The interface(s) may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces.Continue? [Y/N]:y
[*SwitchB-Stack-Port1/1] commit
[*SwitchB-stack] quit
[*SwitchB] quit
<SwitchB> save
Warning: The current configuration will be written to the device. Continue? [Y/N]: y



4)重启交换机,插上堆叠线
先将高优先级设备重启,以使其先完成启动,优先竞争为主交换机。等待大约30秒,便可连接堆叠线缆,完成配置。

<SwitchA> reboot
slot 1:
Next startup system software: flash:/CE6800_V200R020C10SPC600.cc
Next startup saved-configuration file: flash:/vrpcfg.zip
Next startup paf file: default
Next startup patch package: NULL
Warning: The system will reboot. Continue? [Y/N]:y



5)验证配置结果

<SwitchA> dis stack
--------------------------------------------------------------------------------
MemberID Role     MAC              Priority   DeviceType         Description    
--------------------------------------------------------------------------------
1        Master   b076-1be1-e880   200        CE6881-48S6CQ                     
2        Standby  b076-1be1-e0f0   100        CE6881-48S6CQ                     
--------------------------------------------------------------------------------



6)配置双主检测(Eth-Trunk口方式)
配置SWA

[~SwitchA] interface eth-trunk 1
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/48
[*SwitchA-Eth-Trunk10] trunkport 10ge 2/0/48
[*SwitchA-Eth-Trunk10] dual-active detect mode relay
[*SwitchA-Eth-Trunk10] commit

配置SWC

[~SwitchA] interface eth-trunk 1
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/47
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/48
[*SwitchA-Eth-Trunk10] dual-active proxy
[*SwitchA-Eth-Trunk10] commit



7)验证配置结果

<SwitchA> display dual-active
Stack domainID: 10
Dual-active status: Normal
Dual-active detect mode: Relay
Dual-active detect configuration of MEth: Disable
Dual-active direct detect interfaces configured:
 --
Dual-active relay detect interfaces configured:
 Eth-Trunk10
   10GE1/0/48       up  (Physical)  up  (Protocol)  10   (PeerDomain)
   10GE2/0/48       up  (Physical)  up  (Protocol)  10   (PeerDomain)
Excluded ports(configurable):
 --
Excluded ports(can not be configured):
--

3.2、操作步骤

1)交换机上电,先不接堆叠线缆
2)配置堆叠属性:
配置SwitchA

[HUAWEI] sysname SwitchA
[SwitchA] interface stack-port 0/1
[SwitchA-stack-port0/2]port interface 40GE 0/0/1 to 40GE 0/0/2 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 slot 0 priority 200
Warning: Do not frequently modify the priority because it will make the stack split. Continue? [Y/N]:y
[SwitchA] 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......
[SwitchB] quit
<SwitchB> save
<SwitchB> reboot
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y

配置SwitchB

[HUAWEI] sysname SwitchB
[SwitchB] interface stack-port 0/2
[SwitchA-stack-port0/2]port interface 40GE 0/0/1 to 40GE 0/0/2 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 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......
[SwitchB] quit
<SwitchB> save
<SwitchB> reboot
Info: If want to reboot with saving diagnostic information, input 'N' and then execute 'reboot save diagnostic-information'.
System will reboot! Continue?[Y/N]:y



3)配置双主检测(Eth-Trunk口方式)
配置SwitchA

[~SwitchA] interface eth-trunk 1
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/48
[*SwitchA-Eth-Trunk10] trunkport 10ge 2/0/48
[*SwitchA-Eth-Trunk10] mad detect mode relay

配置SwitchC

[~SwitchA] interface eth-trunk 1
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/47
[*SwitchA-Eth-Trunk10] trunkport 10ge 1/0/48
[*SwitchA-Eth-Trunk10] mad relay