Difference between revisions of "Cisco VSS"

From HackerNet
Jump to: navigation, search
m (Kategori)
Line 91: Line 91:
 
  Redundancy force-switchover
 
  Redundancy force-switchover
  
[[Category:Nätverk]]
+
[[Category:Cisco]]

Revision as of 20:20, 11 October 2015

VSS(Virtual Switching System) används för att göra två stycken fysiska switchar till en logisk. Med detta så slipper man HSRP samt VRRP

Installation

Man behöver 2st cisco 4500-x, 4500-e eller 6500-e i -e modellerna så behövs Cisco Catalyst Supervisor Engine 7-E eller 7-LE men den är inbyggd i -x modellen

Konfiguration

sätt Virtual Switch domain samt switch nummer

SW1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW1(config)#switch virtual domain 10
Domain ID 10 config will take effect only
after the exec command 'switch convert mode virtual' is issued
SW1(config-vs-domain)#switch 1
SW1(config-vs-domain)#exit
SW1(config)#
SW2#conf t
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#switch virtual domain 10
Domain ID 10 config will take effect only
after the exec command 'switch convert mode virtual' is issued
SW2(config-vs-domain)#switch 2
SW2(config-vs-domain)#exit
SW2(config)#

Konfigurera VSL Port Channel

SW1(config)#int port-channel 5
SW1(config-if)#switchport
SW1(config-if)#switch virtual link 1
SW1(config-if)#no shut
SW1(config-if)#exit
*Jan 24 05:19:57.092: %SPANTREE-6-PORTDEL_ALL_VLANS: Port-channel5 deleted from all Vlans
SW2(config)#int port-channel 10
SW2(config-if)#switchport
SW2(config-if)#switch virtual link 2
SW2(config-if)#no shut
SW2(config-if)#exit
SW2(config)#
*Jan 24 05:14:17.273: %SPANTREE-6-PORTDEL_ALL_VLANS: Port-channel10 deleted from all Vlans

Konfigurera VSL portarna

SW1(config)#int range gig7/3 - 4
SW1(config-if-range)#switchport mode trunk
SW1(config-if-range)#channel-group 5 mode on
WARNING: Interface GigabitEthernet7/3 placed in restricted config mode. All extraneous configs removed!
WARNING: Interface GigabitEthernet7/4 placed in restricted config mode. All extraneous configs removed!
SW1(config-if-range)#exit
SW2(config)#int range gig4/45 - 46
SW2(config-if-range)#switchport mode trunk
SW2(config-if-range)#channel-group 10 mode on
WARNING: Interface GigabitEthernet4/45 placed in restricted config mode. All extraneous configs removed!
WARNING: Interface GigabitEthernet4/46 placed in restricted config mode. All extraneous configs removed!
SW2(config-if-range)#exit

Switcha över till VSS från vanlig

SW1#switch convert mode virtual 
SW2#switch convert mode virtual 

Kolla så att det fungerar

SW1#sh switch virtual 

Executing the command on VSS member switch role = VSS Active, id = 1 

Switch mode                  : Virtual Switch
Virtual switch domain number : 10
Local switch number          : 1
Local switch operational role: Virtual Switch Active
Peer switch number           : 2
Peer switch operational role : Virtual Switch Standby 

Executing the command on VSS member switch role = VSS Standby, id = 2  

Switch mode                  : Virtual Switch
Virtual switch domain number : 10
Local switch number          : 2
Local switch operational role: Virtual Switch Standby
Peer switch number           : 1
Peer switch operational role : Virtual Switch Active

Felsökning

Kör sh switch virtual och kolla så det ser ut som det gör i konfigurationssteget.

Tips N Trix

Man kan använda sig av 10ge interface också och inte enbart 1ge som står i guiden. Kommando för att byta vilken switch som är aktiv.

Redundancy force-switchover