Switch vlan + vrrp + stp, vlanvrrp

Source: Internet
Author: User

Switch vlan + vrrp + stp, vlanvrrp

Topology:

Configuration code:

Sw1 ------------

Sys

Vlan 10

Vlan 20

Quit

 

Int e0/0/1

Port link-type access

Port default vlan 10

Int e0/0/2

Port link-type access

Port default vlan 20

Int e0/0/3

Port link-type trunk

Port trunk allow-pass vlan all

Int e0/0/4

Port link-type trunk

Port trunk allow-pass vlan all

Quit

 

(Each vswitch is configured)

Stp region-configuration

Region-name fxl

Revision-level 1

Instance 1 vlan 10

Instance 2 vlan 20

Active region-configuration

Quit

 

Sw2 --------------

Sys

Vlan 10

Vlan 20

Quit

 

Int e0/0/1

Port link-type access

Port default vlan 10

Int e0/0/2

Port link-type access

Port default vlan 20

Int e0/0/3

Port link-type trunk

Port trunk allow-pass vlan all

Int e0/0/4

Port link-type trunk

Port trunk allow-pass vlan all

Quit

 

Stp region-configuration

Region-name fxl

Revision-level 1

Instance 1 vlan 10

Instance 2 vlan 20

Active region-configuration

Quit

 

Sw3 --------------

Sys

Vlan 10

Vlan 20

Quit

 

(Aggregation of ports g0/0/3 and g0/0/4)

Interface eth-trunk 1

Quit

Interface g0/0/3

Eth-trunk 1

Quit

Interface g0/0/4

Eth-trunk 1

Quit

Interface eth-trunk 1

Port link-type trunk

Port trunk allow-pass vlan all

Quit

 

Int g0/0/1

Port link-type trunk

Port trunk allow-pass vlan all

Int g0/0/2

Port link-type trunk

Port trunk allow-pass vlan all

Quit

 

Stp region-configuration

Region-name fxl

Revision-level 1

Instance 1 vlan 10

Instance 2 vlan 20

Active region-configuration

Quit

Stp instance 1 priority 4096 (configure stp to make sw3 the root of vlan10)

 

 

(Configure g0/0/5ip)

Vlan 100

Int VLAN if 100

Ip add 10.0.0.1 24

Int g0/0/5

Port link-type access

Port default, vlan 100

Quit

 

(Configure vrrp to allow data passing through sw3 when sw4down)

Int vlanif 10 (compared with vlan10 in sw4)

Ip add 192.168.10.252 24

Vrrp vrid 1 virtual-ip 192.168.10.254 (both sw3 and sw4 are configured with this virtual ip)

Vrrp vrid 1 priority 200 (data passes from a higher priority)

Vrrp vrid 1 track interface g0/0/5 reduced 150

(Configure port tracing to reduce the vrid priority by 150 when the port number is 0/5 down)

Quit

 

Int vlanif 20 (compared with vlan20 in sw4)

Ip add 192.168.255.252 24

Vrrp vrid 2 virtual-ip 192.168.255.254

Vrrp vrid 2 priority 150

Quit

 

Rip

Version 2

Network 192.168.10.0

Network 192.168.20.0

Network 10.0.0.0

Quit

 

Sw4 --------------

Sys

Vlan 10

Vlan 20

Quit

 

(Aggregation of ports g0/0/3 and g0/0/4)

Interface eth-trunk 1

Quit

Interface g0/0/3

Eth-trunk 1

Quit

Interface g0/0/4

Eth-trunk 1

Quit

Interface eth-trunk 1

Port link-type trunk

Port trunk allow-pass vlan all

Quit

 

Int g0/0/1

Port link-type trunk

Port trunk allow-pass vlan all

Int g0/0/2

Port link-type trunk

Port trunk allow-pass vlan all

Quit

 

(Configure stp to make sw4 the root of vlan20)

Stp region-configuration

Region-name fxl

Revision-level 1

Instance 1 vlan 10

Instance 2 vlan 20

Active region-configuration

Quit

Stp instance 2 priority 4096

 

 

(Configure g0/0/5ip)

Vlan 200

Int VLAN if 200

Ip add 255.0.0.1 24

Int g0/0/5

Port link-type access

Port default, vlan 200

Quit

 

Int vlanif 10

Ip add 192.168.10.253 24

Vrrp vrid 1 virtual-ip 192.168.10.254

Vrrp vrid 1 priority 150

Quit

 

(Configure vrrp to allow data passing through sw3 when sw4down)

Int vlanif 20

Ip add 192.168.255.253 24

Vrrp vrid 2 virtual-ip 192.168.255.254

Vrrp vrid 2 priority 200

Vrrp vrid 2 track interface g0/0/5 reduced 150

Quit

 

Rip

Version 2

Network 192.168.10.0

Network 192.168.20.0

Network 255.0.0.0

Quit

 

 

R1 ---------

Sys

Int g0/0/0

Ip add 10.0.0.2 24

Int g0/0/1

Ip add 255.0.0.2 24

Int g0/0/2

Ip add 30.0.0.254 24

Quit

 

Rip

Version 2

Network 10.0.0.0

Network 255.0.0.0

Network 30.0.0.0

Quit

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.