Here's how to configure VSS on a Cisco switch with the following configuration://Configure the VSS domain on CISCO1, both devices are in the same domaincisco-1(CONFGI) #switch virtual domain - //Configuring Virtual Switch Domain on Cisco-1cisco-1(Config-vs-domain) #switch1 //the virtual Switch number for configuration Cisco-1 is 1//Configuring VSL Port channel and Portscisco-1(config) #interface Port-channelTen //Configure the Port Channel on the Cisco 1cisco-1(config-if) # switch Virtual link1 //Configuring the Cisco 1 Port Channnel 10 as a VSL linkcisco-1(config-if) #no shutdown//activating the port Channel//Configuring physical ports on Cisco-1 to join the VSL-associated port channelcisco-1(config) #interface range tengigabitethernet1/1-2 //access to the Cisco 1 interface range T1/1-2cisco-1(config-if) #channel-groupTenMode on//add these interfaces to channel Groupcisco-1(config-if) #no shutdown//Activate the above interface//configuration made on the Cisco 2cisco-2(CONFGI) #switch virtual domain - //Configuring Virtual Switch Domain on Cisco-2cisco-2(Config-vs-domain) #switch2 //the virtual Switch number for configuration Cisco-2 is 2//Configuring VSL Port channel and Portscisco-2(config) #interface Port-channelTen //Configure the Port Channel on the Cisco2cisco-2(config-if) # switch Virtual link2 //Configuring the Cisco 2 Port Channnel 10 as a VSL linkcisco-2(config-if) #no shutdown//activating the port Channel//Configuring physical ports on Cisco-2 to join the VSL-associated port channelcisco-2(config) #interface range tengigabitethernet1/2-3 //access to the Cisco 2 Interface range t1/2-3cisco-2(config-if) #channel-groupTenMode on//add these interfaces to channel Groupcisco-2(config-if) #no shutdown//Activate the above interface//when the above information is configured, confirm the PFC pattern matching on the two switches, if it does not match,
VSS will enter RPR mode, which can be entered in Show platform hardware PFC mode to display the current PDC pattern.
If only one switch is in PFC3CXL mode, you can use the following command platform hardware VSL PFC mode pfc3cCisco-1# Show platform hardware PFC mode//Verify that the PFC operation mode on the two switches matches, confirming that VSS is in SSO modecisco-2#show Platform Hardware PFC mode//Verify that the PFC operation mode on the two switches matches, confirming that VSS is in SSO modecisco-1# Platform Hardware VSL PFC mode pfc3c//set the PFC operation mode for switch 1 to PFC3C, which is optionalcisco-2# Platform Hardware VSL PFC mode pfc3c//Finally, two devices are switched to virtual mode, which is the form of VSS. Remember that VSS does not take effect until you save the configuration restart. cisco-1# switch Convert mode virtual Cisco-2# switch Convert mode virtual Note: The update configuration on the primary and standby switches is automatically saved to its startup configuration file when the switch accept Mode virtual command is entered on the switches.
Optimized configuration
Configuring dual host detection and exception ports
1. When all the physical links of VSL are abnormally disconnected, from the chassis that the host box is lost will be switched to the host box, the network will appear two host box, the configuration of the two chassis is identical, on the three layer, the two chassis of any one virtual interface (VLAN interface and loopback interface, etc.) configuration of the same, An IP address conflict will occur in the network, causing the network to become unavailable.
2. After configuring the dual-host detection mechanism, the BFD dedicated link will detect the presence of dual host boxes according to the two-host message transceiver, the system will select a chassis (Low priority chassis) into the recovery (recovery) mode according to the double host detection rule, in addition to the VSL port, MGMT ports and administrator-specified exception ports (which can be telnet when remaining as a device other port shutdown) are forced to shut down.
VSS Virtual Switching system