A. STP(Spanning Tree Protocol)
command: spanning-tree VLAN 1 root primary ( Vlan1 Root bridge)
spanning-tree VLAN 2 root secondary ( vlan2 backup bridge)
two. Hot Backup Route selection protocol (HSRP)
Cisco the private protocol.
Lab Environment:
Configuration HSRP two three-layer switches, the VLAN IP The address cannot be the same, but the virtual IP must be the same, the same VLAN , HSRP The group must be the same.
Network planning:
1. in the SW1 of the Switch VLAN physical of virtual interfaces IP Address:
Vlan 2:192.168.2.1/24
Vlan 3:192.168.3.1/24
2. in the SW2 of the Switch VLAN physical of virtual interfaces IP Address:
Vlan 2:192.168.2.2/24
Vlan 3:192.168.3.2/24
3. PC1of theIPaddress is192.168.2.10/24, the gateway is192.168.2.254/24;PC2of theIPaddress is192.168.3.10/24, the gateway is192.168.3.254/24.
-
4. SW1 and 192.168.0.0/30 sw2 r2 192.168.1.0/30
-
5. Configure r1 loopback ip 192.168.100.1/24
6. links between switches for the relay link ( Trunk ), and use static routing for Network interoperability.
Experimental steps:
-
1. Configure basic information for devices (interfaces Span style= "FONT-SIZE:16PX;" >ip address, vlan trunk , routing, etc configuration)
2. Configuration HSRP :
SW1 Configuration:
int VLAN 2 (and configure IP address)
Standby 2 IP 192.168.2.254 Configure virtual IP Address
Standby 2 Priority Configuration Priority
Standby 2 preempt Configure preemptive rights
stanyby 2 track F0/1 Configure Port tracking
stanyby 2 track F0/14 Configure Port tracking
Int VLAN 3 (and configure IP address, priority default - , no port tracking required)
Standby 3 IP 192.168.3.254
Standby 3 Preempt
Sw2 Configuration:
int VLAN 2 (and configure IP address)
Standby 2 IP 192.168.2.254
Standby 2 preempt
int VLAN 3 (and configure IP address)
Standby 3 IP 192.168.3.254
Standby 3 Priority 150
Standby 3 preempt
Standby 3 track F0/1 100
Standby 3 track F0/14 100
3. Configuration STP Implement VLAN load Balancing.
SW1 Configuration:
Spanning-tree VLAN 2 Root Primary
Spanning-tree VLAN 3 Root Secondary
Sw2 Configuration:
Spanning-tree Valn 2 Root Secondary
Spanning-tree VLAN 3 Root Primary
4. Validation HSRP
command: Show Standby
Show Standby Brief
STP and HSRP Configuration