A-A+

配置 Cisco VSS 的方法和命令行、脚本

2016年01月04日 站长资讯 暂无评论

一、将2台VSS65从单机箱模式切换到虚拟机箱模式

基本步骤:

1.分别在交换机1、2上配置SSO高可用性协议:

2.配置虚拟交换机的域(Virtual Switch Domain and Switch Numbers)

3.配置两台交换机之间的VSL 端口(利用引擎上的2个万兆光口进行连接)

4.转换机箱变成虚拟交换机模式

详细配置:

1.分别在交换机1、2上配置SSO高可用性协议:

  1. Switch1:  
  2. Step 1    
  3. Switch-1(config)# redundancy  
  4. Enters redundancy configuration mode.  
  5.   
  6. Step 2    
  7. Switch-1(config-red)# mode sso  
  8. Configures SSO. When this command is entered, the redundant supervisor engine is reloaded and begins to work in SSO mode.  
  9. Step 3    
  10. Switch-1(config-red)# exit  
  11. Switch-1# show running-config  
  12. Switch-1# show redundancy states  //Displays the operating redundancy mode.  
  13. Switch2:  
  14. Switch-2(config)# redundancy  
  15. Switch-2(config-red)# mode sso  
  16. Switch-2(config-red)# exit  
  17. Switch-2# show running-config  
  18. Switch-2# show redundancy states  

2.配置虚拟交换机的域(Virtual Switch Domain and Switch Numbers)

  1. Switch1:  
  2. Step 1    
  3. Switch-1(config)# switch virtual domain 100    
  4. Step 2    
  5.   
  6. Switch-1(config-vs-domain)# switch 1  
  7. Step 3    
  8. Switch-1(config-vs-domain)# exit  
  9. Switch2:  
  10. Switch-2(config)# switch virtual domain 100     
  11. Switch-2(config-vs-domain)# switch 2  
  12. Switch-2(config-vs-domain)# exit  

3.配置两台交换机之间的VSL 端口(利用引擎上的2个万兆光口进行连接)

1)配置channel

  1. Switch1:  
  2. Step 1    
  3. Switch-1(config)# interface port-channel 10  
  4.   
  5. Step 2    
  6. Switch-1(config-if)# switch virtual link 1  
  7. Step 3    
  8. Switch-1(config-if)# no shutdown  //Activates the port channel.  
  9. Step 4    
  10. Switch-1(config-if)# exit  
  11. Switch2:  
  12. Switch-2(config)# interface port-channel 20  
  13. Switch-2(config-if)# switch virtual link 2  
  14. Switch-2(config-if)# no shutdown  
  15. Switch-2(config-if)# exit  

2)把引擎上的万兆端口加入channel(假设引擎在slot3,一定先确认port-channel已加入switch virtual link)

  1. Switch1:  
  2. Switch-1(config)# interface range tengigabitethernet 3/1-2  
  3. Switch-1(config-if)# channel-group 10 mode on  
  4. Switch-1(config-if)# no shutdown  
  5. Switch2:  
  6. Step 1    
  7. Switch-2(config)# interface range tengigabitethernet 3/1-2  
  8. Switch-2(config-if)# channel-group 20 mode on  
  9. Switch-2(config-if)# no shutdown  

4.转换机箱变成虚拟交换机模式

1)先查看机箱的PFC模式,保证2个机箱相同

  1. Step 1    
  2. Switch-1# show platform hardware pfc mode    
  3. Ensures that the PFC operating mode matches on both chassis, to ensure that the VSS comes up in SSO redundancy mode.  
  4.   
  5. Step 2    
  6. Switch-2# show platform hardware pfc mode  
  7. Step 3    
  8. Switch-1(config)# platform hardware vsl pfc mode pfc3c  
  9. (Optional) Sets the PFC operating mode to PFC3C on Chassis A.  
  10. Step 4    
  11. Switch-2(config)# platform hardware vsl pfc mode pfc3c   
  12. (Optional) Sets the PFC operating mode to PFC3C on Chassis B.  

2)切换机箱模式

  1. Switch1:  
  2. Switch-1# switch convert mode virtual  
  3. Converts Switch 1 to virtual switch mode.  
  4. After you enter the command, you are prompted to confirm the action. Enter yes.  
  5.   
  6. The system creates a converted configuration file, and saves the file to the RP bootflash.  
  7. Switch2:  
  8. Switch-2# switch convert mode virtual  

5.查看VSS信息

  1. Router# show switch virtual  
  2. Displays the virtual switch domain number, and the switch number and role for each of the chassis.  
  3. Router# show switch virtual role  
  4. Displays the role, switch number, and priority for each of the chassis in the VSS.  
  5. Router# show switch virtual link http://www.xiaoxiongboke.com  
  6. Displays the status of the VSL.  
  7. The following example shows the information output from these commands:  
  8. Router# show switch virtual  
  9. Switch mode                  : Virtual Switch  
  10. Virtual switch domain number : 100  
  11. Local switch number          : 1   
  12. Local switch operational role: Virtual Switch Active  
  13. Peer switch number           : 2  
  14. Peer switch operational role : Virtual Switch Standby  
  15. Router# show switch virtual role  
  16. Switch  Switch Status  Preempt    Priority  Role     Session ID  
  17.         Number         Oper(Conf) Oper(Conf)         Local  Remote  
  18. ------------------------------------------------------------------  
  19.   
  20. LOCAL    1     UP      FALSE(N)   100(100)  ACTIVE   0      0     
  21. REMOTE   2     UP      FALSE(N)   100(100)  STANDBY  8158   1991  
  22. In dual-active recovery mode: No  
  23. Router# show switch virtual link  
  24. VSL Status: UP  
  25. VSL Uptime: 4 hours, 26 minutes  
  26. VSL SCP Ping: Pass OK  
  27. VSL ICC (Ping): Pass  
  28. VSL Control Link: Te 1/5/1  
标签:

给我留言