华为交换机istack堆叠配置

简介:

拓扑图:

wKiom1h_CpuDD5ztAAAd2JyxG5Q856.png

操作步骤

  1. 提前规划堆叠方案。



    • 规划SwitchA的堆叠成员ID为1,SwitchB的成员ID为2。

    • 规划SwitchA作为主交换机,其堆叠优先级最高,为150。SwitchB的堆叠优先级为120。

    • 规划堆叠域编号(Domain ID)为10,不与网络中其他堆叠系统的域编号冲突。

    • 规划SwitchA和SwitchB用于堆叠连接的端口为10GE1/0/1~10GE1/0/4。

  2. 配置堆叠属性。


    # 配置SwitchA的堆叠优先级为150,Domain ID为10。缺省情况下,设备的堆叠成员ID为1。此处默认SwitchA的堆叠成员ID为1,无需配置。

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchA
    [*HUAWEI] commit
    [~SwitchA] stack
    [~SwitchA-stack] stack member 1 priority 150
    [*SwitchA-stack] stack member 1 domain 10
    [*SwitchA-stack] quit
    [*SwitchA] commit

    # 配置SwitchB的堆叠成员ID为2,优先级为120,Domain ID为10。

    <HUAWEI> system-view
    [~HUAWEI] sysname SwitchB
    [*HUAWEI] commit
    [~SwitchB] stack
    [~SwitchB-stack] stack member 1 priority 120
    [*SwitchB-stack] stack member 1 domain 10
    [*SwitchB-stack] stack member 1 renumber 2 inherit-config
    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

    说明:

    因SwitchB尚未重启,当前堆叠成员ID还是1,所以此时仍使用member 1来进行堆叠配置。

    因为修改堆叠成员ID时指定了inherit-config参数,所以SwitchB重启后会继承member 1的堆叠配置;如果不指定inherit-config参数,那么SwitchB重启后不会继承member 1的堆叠配置,需要使用member 2重新进行堆叠配置。


  3. 配置堆叠端口。


    # 将SwitchA的业务口10GE1/0/1~10GE1/0/4加入堆叠端口1/1。

    [~SwitchA] interface stack-port 1/1
    [*SwitchA-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/4
    Warning: 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 command if the configuration does not exist. After the configuration is complete, these interfaces may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces. [Y/N]: y
    [*SwitchA-Stack-Port1/1] commit
    [~SwitchA-Stack-Port1/1] return

    被配置为堆叠物理成员端口后,端口下会自动配置port crc-statistics trigger error-down

    # 将SwitchB的业务口10GE1/0/1~10GE1/0/4加入堆叠端口1/1。

    [~SwitchB] interface stack-port 1/1
    [*SwitchB-Stack-Port1/1] port member-group interface 10ge 1/0/1 to 1/0/4Warning: 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 command if the configuration does not exist. After the configuration is complete, these interfaces may go Error-Down (crc-statistics) because there is no shutdown configuration on the interfaces. [Y/N]: y
    [*SwitchB-Stack-Port1/1] commit
    [~SwitchB-Stack-Port1/1] return


  4. 检查堆叠配置信息。


    # 上述配置完成后,执行命令display stack configuration查看配置是否与规划的一致,如果不一致,需要修改配置。以查看SwitchA为例。

    <SwitchA> display stack configurationOper          : Operation
    Conf          : Configuration
    *             : Offline configuration
    Isolated Port : The port is in stack mode, but does not belong to any Stack-Port
    
    Attribute Configuration:
    ----------------------------------------------------------------------------
     MemberID      Domain         Priority       Switch Mode     Uplink Port
    Oper(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/2           10GE1/0/3
                    10GE1/0/4
    --------------------------------------------------------------------------------


  5. 保存配置后将设备下电。


    # 保存SwitchA和SwitchB的配置,然后将设备下电。SwitchB的配置与SwitchA相同,略。

    <SwitchA> saveWarning: The current configuration will be written to the device. Continue? [Y/N]: y


  6. 按照前期规划及配置,连接堆叠线缆。线缆连接完成后将设备上电。


    建议先将高优先级设备上电,以使其先完成启动,优先竞争为主交换机。


  7. 验证配置结果。


    # 通过Console口或管理网口登录堆叠系统,使用命令display stack查看堆叠是否组建成功。当通过管理网口登录时,需要使用主交换机的IP地址。


============================================================================================

注意:本设备的stack-port 0/1必须连接邻设备的stack-port 0/2,否则堆叠组建不成功。


拆除堆叠的操作:

1、拆除成员交换机之间的堆叠线缆。拆除堆叠线缆后,堆叠系统分裂,会导致部分成员交换机重启。由于堆叠成员交换机IP地址等部分配置相同,远程登录可能不成功,因此请通过Console口登录交换机进行后续配置。

2、执行命令system-view,进入系统视图。

3、执行命令interface stack-port member-id/port-id,进入逻辑堆叠端口视图。

4、执行命令shutdown interface { interface-type interface-number1 [ to interface-typeinterface-number2 ] } &<1-10>,关闭物理成员端口。

5、执行命令undo port interface interface-type interface-number1 [ to interface-typeinterface-number2 ] } &<1-10> enable,还原物理成员端口为业务口。

6、执行命令quit,退出逻辑堆叠端口。

7、执行命令stack slot slot-id renumber 0,将成员交换机的堆叠ID恢复为缺省值0。

8、将成员交换机下电。











本文转自 qq8658868 51CTO博客,原文链接:http://blog.51cto.com/hujizhou/1892874,如需转载请自行联系原作者
目录
相关文章
|
2月前
|
网络协议 安全 网络虚拟化
思科交换机配置命令归纳
【11月更文挑战第8天】本文总结了思科交换机的常见配置命令,包括模式转换、基本配置、查看命令、VLAN 配置、Trunk 配置、以太网通道配置、VTP 配置、三层交换机配置、生成树配置以及其他常用命令,适用于网络管理和维护。
216 2
|
3月前
|
安全 网络安全 数据安全/隐私保护
Cisco-交换机配置聚合端口
Cisco-交换机配置聚合端口
|
5月前
|
数据中心
配置案例 | CE交换机如何配置堆叠?
配置案例 | CE交换机如何配置堆叠?
|
5月前
盒式交换机又是如何配置堆叠的呢?
盒式交换机又是如何配置堆叠的呢?
|
5月前
|
前端开发 数据中心
数据中心框式交换机如何配置堆叠?
数据中心框式交换机如何配置堆叠?
100 0
|
5月前
|
Shell 网络安全 Python
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
网络工程师如何在ensp模拟器上玩python自动化配置交换机。
313 0
|
8月前
|
网络性能优化 网络虚拟化 网络架构
配置接口限速示例(盒式交换机)
接口限速简介 接口限速对通过整个端口的全部报文流量速率进行限制,不对具体流量进行区分,可以实现给某个接口分配固定的带宽,控制方式单一,配置简单。 入方向与出方向的接口限速属于并列关系,用户可以根据需要同时配置,也可以单独配置。
118 2
|
6月前
|
网络安全 数据安全/隐私保护 网络虚拟化
|
8月前
|
网络协议 网络虚拟化 网络架构
交换机入门快速配置
交换机入门快速配置
|
5月前
|
网络虚拟化 数据安全/隐私保护
手把手教网络工程师2种方法如何恢复交换机配置
手把手教网络工程师2种方法如何恢复交换机配置
118 0

热门文章

最新文章