锐捷S2952G-E V3 VSU(堆叠)原理及配置

端口角色

  • Active:主设备
  • Standby:从设备
  • Candidate:候选设备

域编号(Domain ID

域编号(Domain ID)是VSU的一个属性,是VSU的标识符,用来区分不同的VSU。两台交换机的domain ID相同,才能组成VSU。取值范围是1到255,缺省100

设备编号:    

  • 设备编号Switch ID是成员设备的一个属性,是交换机在VSU中的成员编号,取值是1到8,缺省1。
  • 在单机模式,接口编号采用二维格式(如GigabitEthernet 2/3);而在VSU模式中,接口编号采用三维格式(如GigabitEthernet 1/2/3),第一维(数字1)表示机箱成员编号,后面两维(数字2和3)分别表示槽位号和该槽位上的接口编号。因此,在VSU中必须保证所有成员的设备编号都是唯一的。
  • 如果建立VSU时成员设备的编号不唯一,系统会通过VSU自动编号机制为所有成员设备重新设定编号来保证编号的唯一性。

设备优先级:    

  • 优先级是成员设备的一个属性,在角色选举过程用到。优先级越高,被选举为主设备的可能性越大。取值范围是1到255缺省优先级是100,如果想让某台设备被选举为主设备,应该提高该设备的优先级
  • 成员设备的优先级分为配置优先级和运行优先级。运行优先级等于启动时配置文件中保存的配置优先级,在VSU运行过程中不会变化,管理员修改了配置优先级,运行优先级还是原来的值,保存配置并重启后新配置的优先级才会生效。

VSL    

  • 虚拟交换链路(Virtual Switching Link,简称VSL)是VSU系统的设备间传输控制信息和数据流的特殊聚合链路。VSL端口以聚合端口组的形式存在,由VSL传输的数据流根据流量平衡算法在聚合端口的各个成员之间就进行负载均衡。
  • 设备上可以用于VSL端口连接的物理端口称之为VSL成员端口。VSL成员端口可能是堆叠端口、以太网接口或者光口(设备上哪些端口可用作VSL成员端口与设备的型号有关,请以设备的实际情况为准)。

VSU工作模式:    

  • 交换机有两种工作模式:单机模式和VSU模式,缺省工作模式是单机模式,要想组建VSU,必须把交换机的工作模式从单机模式切换到VSU模式。
  • 对于支持使用堆叠口作为VSL成员端口的VSU系统而言,若系统在启机阶段识别到堆叠口,则自动激活到VSU模式,而不需要用户手工激活VSU模式。

VSU连接介质:    

多台设备要组成VSU,需要先将成员设备的 VSL端口进行连接。设备支持的VSL端口的类型不同使用的连接介质不同。

1)如果使用堆叠口作为VSL端口,则需要使用堆叠专用线缆连接VSL端口。堆叠专用线缆能够为成员设备间报文的传输提供很高的可靠性和性能。(S26I)

2)如果使用以太网接口作为 VSL端口,则使用交叉网线连接VSL端口即可。这种连接方式提高了现有资源的利用率(以太网接口没有与VSL绑定时用于上下层设备间业务报文转发,与VSL绑定后专用于成员设备间报文转发,这种绑定关系可以通过命令行配置),有利于节约成本(不需要购置堆叠专用接口卡或者光模块等)。

3)如果使用光口作为 VSL端口,则使用光纤连接 VSL端口。这种连接方式可以将距离很远的物理设备连接组成VSU,使得应用更加灵活。

组网拓扑

配置步骤

1、配置SW1SW2VSU域标识,设备编号和优先级 

SW1交换机配置    

SW1>enable

SW1# configure terminal

SW1(config)# switch virtual domain 1     ------>创建VSU domain id,取值范围1~255    

SW1(config-vs-domain)# switch 1         ------>创建switch id,ID号为1    

SW1(config-vs-domain)# switch 1 priority 200  ------>配置switch id的优先级为200,默认100,取值范围:1-255   

SW1(config-vs-domain)# switch 1 description VSU1-SW1   ------>配置switch id 1的描述信息    

SW1(config-vs-domain)# exit

SW1(config)# vsl-port  ------>进入VSL配置模式,建议至少采用2条VSL链路来提升VSU的可靠性,如果条件限制,一条VSL链路也可以    

SW1(config-vsl-port)# port-member interface G0/51  ------>将G0/51接口加入VSL

SW1(config-vsl-port)# port-member interface G0/52  ------>将G0/52接口加入VSL

SW1(config-vsl-port)# exit

SW1(config)# exit

SW2交换机配置

SW2>enable

SW2# configure terminal

SW2(config)# switch virtual domain 1    

SW2(config-vs-domain)# switch 2             

SW2(config-vs-domain)# switch 2 priority 150 

SW2(config-vs-domain)# switch 2 description VSU1-SW2   

SW2(config-vs-domain)# exit

SW2(config)# vsl-port      

SW2(config-vsl-port)# port-member interface G0/51  

SW2(config-vsl-port)# port-member interface G0/52 

SW2(config-vsl-port)# exit

SW2(config)# exit

2、把SW1SW2转换到VSU模式    

SW1# switch convert mode virtual   ------>将交换机转换为VSU模式    

Convert switch mode will automatically backup the "config.text" file and then delete it, and reload the switch. Do you want to convert switch to virtual mode? [no/yes]y------>输入y    

SW2# switch convert mode virtual   ------>将交换机转换为VSU模式    

Convert switch mode will automatically backup the "config.text" file and then delete it, and reload the switch. Do you want to convert switch to virtual mode? [no/yes]y------>输入y    

接着交换机会进行重启,并且进行VSU的选举,这个时间可能会比较长,请耐心等待  

3、配置验证

Ruijie# show switch virtual role

Switch_id     Domain_id     Priority     Position     Status     Role          Description                     

----------------------------------------------------------------------------------------------------------------

1(1)          1(1)          200(200)     LOCAL        OK         ACTIVE        vsu-domain1-1_S2952G-E_V3       

2(2)          1(1)          150(150)     REMOTE       OK         STANDBY       vsu-domain1-2_S2952G-E_V3    

SW1-2# show switch virtual config

switch_id: 1 (mac: 8005.8825.db9f)

!

switch virtual domain 1

!

switch 1

switch 1 priority 200

switch 1 description vsu-domain1-1_S2952G-E_V3

!

port-member interface GigabitEthernet 0/51

port-member interface GigabitEthernet 0/52

switch convert mode virtual

!

switch_id: 2 (mac: 8005.8825.d9f9)

!

switch virtual domain 1

!

switch 2

switch 2 priority 150

switch 2 description vsu-domain1-2_S2952G-E_V3

!

port-member interface GigabitEthernet 0/51

port-member interface GigabitEthernet 0/52

switch convert mode virtual

!

SW1-2# show switch virtual topology

Introduction: '[num]' means switch num, '(num/num)' means vsl-aggregateport num.

Chain topology:

[1](1/1)---(2/1)[2]

Switch[1]: master, MAC: 8005.8825.db9f, Description: vsu-domain1-1_S2952G-E_V3

Switch[2]: standby, MAC: 8005.8825.d9f9, Description: vsu-domain1-2_S2952G-E_V3

SW1-2# show switch virtual balance

Aggregate port LFF: enable

ECMP LFF: enable

SW1-2# show switch virtual link    

VSL-AP   State   Peer-VSL   Rx                       Tx                       Uptime        

----------------------------------------------------------------------------------------

1/1      UP      2/1        25918                    19890                    0d,0h,13m     

1/2      DOWN    -          0                        0                        -             

2/1      UP      1/1        18450                    23656                    0d,0h,13m     

2/2      DOWN    -          0                        0                        -         

SW1-2# show switch virtual dual-active summary

BFD dual-active detection enabled: No

Aggregateport dual-active detection enabled: No

Interfaces excluded from shutdown in recovery mode:

In dual-active recovery mode: No

SW1-2# show switch virtual dual-active bfd   

BFD dual-active detection enabled: No

SW1-2# show switch virtual dual-active aggregateport

Aggregateport dual-active detection enabled: No

Ruijie# show switch virtual link port

switch 1:

Port                          AP    State Peer-port                     Rx                    Tx                    Uptime        

--------------------------------------------------------------------------------------------------------------------------------

GigabitEthernet 1/0/51        1     OK    GigabitEthernet 2/0/51        5024                  5523                  0d,0h,10m     

GigabitEthernet 1/0/52        1     OK    GigabitEthernet 2/0/52        15555                 11230                 0d,0h,10m     

switch 2:

Port                          AP    State Peer-port                     Rx                    Tx                    Uptime        

--------------------------------------------------------------------------------------------------------------------------------

GigabitEthernet 2/0/51        1     OK    GigabitEthernet 1/0/51        4801                  3889                  0d,0h,10m     

GigabitEthernet 2/0/52        1     OK    GigabitEthernet 1/0/52        10507                 14414                 0d,0h,10m

  • 1
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
首先,要确定两台锐捷 RG-S6250-48XS8CQ的硬件是否支持堆。如果支持堆,可以按照以下步骤进行配置: 1. 确保两台交换机的管理口 IP 地址不同。 2. 用网线连接两台交换机的堆口,一般是编号为 XG1 的口。 3. 在两台交换机上分别执行以下命令: ``` <SW1> system-view [SW1] sysname Switch1 [Switch1] stack enable [Switch1] quit <SW2> system-view [SW2] sysname Switch2 [Switch2] stack enable [Switch2] quit ``` 执行以上命令后,两台交换机会自动重启,并建立起堆关系。可以通过以下命令查看堆状态: ``` [Switch1] display stack Stack Topology: Stack Port Link Status Role MAC Address Priority Device Type Device ID ------------------------------------------------------------------------------ XGigabitEthernet1/0/1 UP Master 0000-5e00-0101 128 S6250-48X-S8CQ 0000-5e00-0101 XGigabitEthernet1/0/2 DOWN Slave 0000-0000-0000 128 S6250-48X-S8CQ 0000-0000-0000 ``` 其中,Master 表示主交换机,Slave 表示备份交换机。 4. 配置端口,将端口加入到堆端口中。在主交换机上执行以下命令: ``` [Switch1] interface XGigabitEthernet1/0/1 [Switch1-XGigabitEthernet1/0/1] port link-type stack [Switch1-XGigabitEthernet1/0/1] quit [Switch1] quit ``` 在备份交换机上执行以下命令: ``` [Switch2] interface XGigabitEthernet1/0/1 [Switch2-XGigabitEthernet1/0/1] port link-type stack [Switch2-XGigabitEthernet1/0/1] quit [Switch2] quit ``` 5. 配置主备份关系。在主交换机上执行以下命令: ``` [Switch1] stack member 1 priority 200 [Switch1] stack member 2 priority 100 [Switch1] quit ``` 在备份交换机上执行以下命令: ``` [Switch2] stack member 1 priority 100 [Switch2] stack member 2 priority 200 [Switch2] quit ``` 其中,priority 值越大表示优先级越高,主交换机的优先级一般设置比备份交换机高。 6. 检查堆状态,查看主备份关系是否正常。在主交换机上执行以下命令: ``` [Switch1] display stack ``` 在备份交换机上执行以下命令: ``` [Switch2] display stack ``` 配置完成后,两台交换机就可以作为一个逻辑实体来管理。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值