STP and HSRP Configuration

Source: Internet
Author: User

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. 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

    1. 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

  1. 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.

  2. 4.      SW1 and 192.168.0.0/30 sw2 r2 192.168.1.0/30

  3. 5.      Configure r1 loopback ip 192.168.100.1/24

  4. 6. links between switches for the relay link ( Trunk ), and use static routing for Network interoperability.

Experimental steps:

  1. 1.      Configure basic information for devices (interfaces Span style= "FONT-SIZE:16PX;" >ip address, vlan trunk , routing, etc configuration)

  2. 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

    1. 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

    1. 4. Validation HSRP

command: Show Standby

Show Standby Brief


STP and HSRP Configuration

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.