当前位置:   article > 正文

华为框式交换机S12700E系列配置CSS集群

华为框式交换机S12700E系列配置CSS集群

搭建集群环境

a.为两台交换机上电,按照数据规划分别对两台框式交换机进行配置
  1. <HUAWEI> system-view
  2. [HUAWEI] sysname Switch1
  3. [Switch1] set css id 1
  4. [Switch1] set css priority 150 //1的集群优先级配置为150
  5. [Switch1] interface css-port 1
  6. [Switch1-css-port1] port interface xgigabitethernet 4/0/1 to xgigabitethernet 4/0/2 enable
  7. [Switch1-css-port1] quit
  8. [Switch1] interface css-port 2
  9. [Switch1-css-port2] port interface xgigabitethernet 5/0/1 to xgigabitethernet 5/0/2 enable
  10. [Switch1-css-port2] quit
  11. [Switch1] display css status saved //查看集群配置是否正确
  12. CSS port media-type: SFP+
  13. Current Id Saved Id CSS Enable CSS Mode Priority Master force
  14. ------------------------------------------------------------------------------
  15. 1 1 Off LPU 150 Off
  16. [Switch1] css enable //集群配置确认正确后,使能集群,重启设备,为保证框ID成为主交换机,先重启Switch1
  17. Warning: The CSS configuration will take effect only after the system is rebooted. The next CSS mode is CSS card. Reboot now? [Y/N]:y
  1. <HUAWEI> system-view
  2. [HUAWEI] sysname Switch2
  3. [Switch2] set css id 2 //2的集群优先级使用缺省值,不需要配置。
  4. [Switch2] interface css-port 1
  5. [Switch2-css-port1] port interface xgigabitethernet 4/0/1 to xgigabitethernet 4/0/2 enable
  6. [Switch2-css-port1] quit
  7. [Switch2] interface css-port 2
  8. [Switch2-css-port2] port interface xgigabitethernet 5/0/1 to xgigabitethernet 5/0/2 enable
  9. [Switch2-css-port2] quit
  10. [Switch2] display css status saved //查看集群配置是否正确
  11. CSS port media-type: SFP+
  12. Current Id Saved Id CSS Enable CSS Mode Priority Master Force
  13. ------------------------------------------------------------------------------
  14. 1 2 Off LPU 1 Off
  15. [Switch2] css enable //集群配置确认正确后,使能集群,重启设备
  16. Warning: The CSS configuration will take effect only after the system is rebooted. The next CSS mode is CSS card. Reboot now? [Y/N]:y
b.交换机重启后,查看集群是否组建成功

#通过交换机框上主控板的集群指示灯查看集群状态。

Switch1主控板上ACT灯绿色常亮,表示该主控板为集群系统主用主控板,Switch1为主交换机。

Switch2主控板上ACT灯绿色闪烁,表示该主控板为集群系统备用主控板,Switch2为备交换机。

#通过任意主控板上的Console口登录集群系统,使用命令行查看集群组建是否成功。

根据集群优先级,优先级大的Switch1会成为集群系统的主框,执行命令display device查看设备状态时,集群系统名为Switch1。

  1. <Switch1> display device
  2. Chassis 1 (Master Switch)
  3. S12700E-8's Device status:
  4. Slot Sub Type Online Power Register Status Role
  5. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  6. 1 - LST7X24BX6E0 Present PowerOn Registered Normal NA
  7. 2 - LST7X24BX6E0 Present PowerOn Registered Normal NA
  8. 3 - - Present PowerOn Unregistered - NA
  9. 9 - LST7MPUE0000 Present PowerOn Registered Normal Master
  10. 10 - LST7MPUE0000 Present PowerOn Registered Normal Slave
  11. PWR1 - - Present PowerOn Registered Normal NA
  12. CMU1 - EH1D200CMU00 Present PowerOn Registered Normal Master
  13. FAN1 - - Present PowerOn Registered Normal NA
  14. FAN2 - - Present PowerOn Registered Normal NA
  15. Chassis 2 (Standby Switch)
  16. S12700E-8's Device status:
  17. Slot Sub Type Online Power Register Status Role
  18. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  19. 1 - LST7X24BX6E0 Present PowerOn Registered Normal NA
  20. 2 - LST7X24BX6E0 Present PowerOn Registered Normal NA
  21. 3 - - Present PowerOn Unregistered - NA
  22. 9 - LST7MPUE0000 Present PowerOn Registered Normal Master
  23. 10 - LST7MPUE0000 Present PowerOn Registered Normal Slave
  24. PWR1 - - Present PowerOn Registered Normal NA
  25. CMU2 - EH1D200CMU00 Present - Unregistered - NA
  26. FAN1 - - Present PowerOn Registered Normal NA
  27. FAN2 - - Present PowerOn Registered Normal NA
  28. <Switch1> display css status
  29. CSS Enable switch On
  30. Chassis Id CSS Enable CSS Status CSS Mode Priority Master Force
  31. ------------------------------------------------------------------------------
  32. 1 On Master LPU 150 Off
  33. 2 On Standby LPU 1 Off
  34. <Switch1> display css channel all //查看集群链路拓扑是否与硬件连接一致
  35. CSS link-down-delay: 500ms
  36. Chassis 1 || Chassis 2
  37. ================================================================================
  38. Num [CSS port] [LPU Port] || [LPU Port] [CSS port]
  39. 1 1/1 XGigabitEthernet1/4/0/1 XGigabitEthernet2/4/0/1 2/1
  40. 2 1/1 XGigabitEthernet1/4/0/2 XGigabitEthernet2/4/0/2 2/1
  41. 3 1/2 XGigabitEthernet1/5/0/1 XGigabitEthernet2/5/0/1 2/2
  42. 4 1/2 XGigabitEthernet1/5/0/2 XGigabitEthernet2/5/0/2 2/2
  43. Chassis 2 || Chassis 1
  44. ================================================================================
  45. Num [CSS port] [LPU Port] || [LPU Port] [CSS port]
  46. 1 2/1 XGigabitEthernet2/4/0/1 XGigabitEthernet1/4/0/1 1/1
  47. 2 2/1 XGigabitEthernet2/4/0/2 XGigabitEthernet1/4/0/2 1/1
  48. 3 2/2 XGigabitEthernet2/5/0/1 XGigabitEthernet1/5/0/1 1/2
  49. 4 2/2 XGigabitEthernet2/5/0/2 XGigabitEthernet1/5/0/2 1/2
  50. <Switch1> system-view
  51. [Switch1] sysname CORE //为便于记忆,修改集群系统的设备名
c.集群组建完成,配置多主检测

集群组建完成后,为防止集群故障分裂导致多主影响业务,在两台交换机直接连接一条线缆,用于多主检测。线缆对应的接口分别为XGE1/1/0/10和XGE2/1/10

  1. [CORE] interface xgigabitethernet 1/1/0/10
  2. [CORE-XGigabitEthernet1/1/0/10] mad detect mode direct
  3. Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [CORE-XGigabitEthernet1/1/0/10] quit
  4. [CORE] interface xgigabitethernet 2/1/0/10
  5. [CORE-XGigabitEthernet2/1/0/10] mad detect mode direct
  6. Warning: This command will block the port, and no other configuration running on this port is recommended. Continue?[Y/N]:y [CORE-XGigabitEthernet2/1/0/10] return
  7. <CORE> display mad verbose //查看多主检测配置
  8. Current MAD domain: 0
  9. Current MAD status: Detect
  10. Mad direct detect interfaces configured:
  11. XGigabitEthernet1/1/0/10
  12. XGigabitEthernet2/1/0/10
  13. Mad relay detect interfaces configured:
  14. Excluded ports(configurable):
  15. Excluded ports(can not be configured):
d.在集群上配置Eth-Trunk接口
  1. <CORE> system-view
  2. [CORE] interface eth-trunk 10 //创建与AGG1相连的Eth-Trunk接口
  3. [CORE-Eth-Trunk10] mode lacp
  4. [CORE-Eth-Trunk10] quit
  5. [CORE] interface xgigabitethernet 1/1/0/1
  6. [CORE-XGigabitEthernet1/1/0/1] eth-trunk 10
  7. [CORE-XGigabitEthernet1/1/0/1] quit
  8. [CORE] interface xgigabitethernet 2/1/0/2
  9. [CORE-XGigabitEthernet2/1/0/2] eth-trunk 10
  10. [CORE-XGigabitEthernet2/1/0/2] quit
  11. [CORE] interface eth-trunk 20 //创建与AGG2相连的Eth-Trunk接口
  12. [CORE-Eth-Trunk20] mode lacp
  13. [CORE-Eth-Trunk20] quit
  14. [CORE] interface xgigabitethernet 1/1/0/2
  15. [CORE-XGigabitEthernet1/1/0/2] eth-trunk 20
  16. [CORE-XGigabitEthernet1/1/0/2] quit
  17. [CORE] interface xgigabitethernet 2/1/0/1
  18. [CORE-XGigabitEthernet2/1/0/1] eth-trunk 20
  19. [CORE-XGigabitEthernet2/1/0/1] quit

集群配置文件

  1. #
  2. sysname CORE
  3. #
  4. interface Eth-Trunk10
  5. mode lacp
  6. #
  7. interface Eth-Trunk20
  8. mode lacp
  9. #
  10. interface XGigabitEthernet1/1/0/1
  11. eth-trunk 10
  12. #
  13. interface XGigabitEthernet1/1/0/2
  14. eth-trunk 20
  15. #
  16. interface XGigabitEthernet1/1/0/10
  17. mad detect mode direct
  18. #
  19. interface XGigabitEthernet2/1/0/1
  20. eth-trunk 20
  21. #
  22. interface XGigabitEthernet2/1/0/2
  23. eth-trunk 10
  24. #
  25. interface XGigabitEthernet2/1/0/10
  26. mad detect mode direct
  27. #
  28. return

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/433027
推荐阅读
相关标签
  

闽ICP备14008679号