Chinaunix首页 | 论坛 | 博客
  • 博客访问: 802342
  • 博文数量: 102
  • 博客积分: 10011
  • 博客等级: 上将
  • 技术积分: 2301
  • 用 户 组: 普通用户
  • 注册时间: 2006-10-08 13:00
文章存档

2011年(2)

2010年(30)

2009年(25)

2008年(45)

我的朋友

分类: 系统运维

2010-09-21 11:07:53

VRRP+STP network configuration case

       In our current network  environment  , we can use the STP+VRRP classic network map to optimize . we can sort 2 modes for the STP. is single-instance model and multi-instance model.

Ø  Single-instance :  

      configure easy, maintain easy , but the traffic cannot loading balance .

Ø  Multi-instance :

configure complex, maintain complex , but the traffic can loading balance .

1 Single-instance

STP can block the redundancy port to stop the loop, for the single-instance STP, there is only one instance 0,so there is a single tree, the loop interface cannot forward all the traffic, the loading balance cannot reachable.

1.1         Single-instance STP map

PC-A ---NBR200----S3550A---------S2150G----PCB

                 |                                            |

                  ---------  S3550B------------

 The IP address plan:

Devices

IP address

Remark

PCA

192.168.100.2

 

NBR200

192.168.0.1/24

 

192.168.1.1/24

 

S3550A

192.168.0.2/24

Fa0/1

192.168.3.2/24

Fa0/3

192.168.2.0/24

Fa0/2

S3550B

192.168.1.2/24

Fa0/1

192.168.3.3/24

Fa0/3

192.168.2.0/24

Fa0/2

S2150G

192.168.3.1/24

Fa0/1

192.168.3.2/24

Fa0/2

PCB

192.168.3.100/24

 

               

1.2        Devices configuration

1.2.1           NBR200

ip route 192.168.3.0 255.255.255.0 192.168.0.2 50

ip route 192.168.3.0 255.255.255.0 192.168.1.2 100

1.2.2          S3550A

Vlan1

Vlan 2

Vlan 3

Vlan 4

Spanning-tree

Spanning-tress mst 0 priority 4096

interface fa0/1

switchport access vlan 2

spanning-tree portfast

interface fa0/2

switchport trunk encapsulation dot1q

switchport mdoe trunk

switchport trunk allowed vlan remove 1-2,5-4094

interface fa0/3

switchport access vlan 4

interface vlan 2

ip address 192.168.0.2 255.255.255.0

interface vlan 3

ip address 192.168.2.1 255.255.255.0

interface  vlan 4

ip address 192.168.3.2 255.255.255.0

standby 4 ip 192.168.3.1

standby 4 priority 150

ip route 0.0.0.0 vlan2 192.168.0.1 50

ip route 0.0.0.0 vlan3 192.168.2.2 100

 

 

1.2.3          S3350B

Vlan 1

Vlan 2

Vlan 3

Vlan 4

spanning-tree

interface fa0/1

switchport mode access

switchport access vlan 2

spanning-tree portfast

interface fa0/2

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk allowed vlan remove 1-2.5-4094

interface fa0/3

switchport mode access

switchport access vlan 4

 

interface vlan 2

ip address 192.168.1.2 255.255.255.0

interface vlan 3

ip address 192.168.2.2 255.255.255.0

interface vlan 4

ip address 192.168.3.3 255.255.255.0

standby 4 ip 192.168.3.1

ip route 0.0.0.0 0.0.0.0 vlan2 192.168.1.1 50

ip route 0.0.0.0 0.0.0.0 vlan3 192.168.2.1 100

 

1.2.4          S2150G

Spanning-tree

interface  fa0/16

spanning-tree portfast

1.3        Notes:

S3550A is the master and the tree of the root.

1.4        Network testing

1 PCB àping PCA, cut the S3350A—NBR line, the network can convergence   fast    .the traffic will road->PCBàS2150GàS3350AàNBRàPCA.

2 PCBàping PCA, recovery the S3550A-NBR line, the network can convergence fast , the traffic  will roadàPCBàS2150GàS3350AàNBRàPCA.

3 PCBàPing PCA, cut the S3550A—S2150G line, the network can convergence fast , the traffic will road àPCBàS2150GàS3550BàS3350AàPCA.

4 PCBàping PCA, recovery S3350A-S2150G line , the network can convergence fast , the traffic will road àPCBàS2150G-S3550A-NBR-PCA .

5 PCBàPing PCA, shutdown the 3550A power, the network can convergence fast  , the traffic will roadàPCBàS2150GàS3550BàNBRàPCA.

2     multi-instance STP model

      multi-instance àMSTP, we can use different instance for different vlan , and can loading traffic balancing in the large network .

2.1        multi-intance STP map

PC-A ---NBR200----S3550A---------S2150G----PCB

                 |                                            |--------PCC

                  ---------  S3550B------------

 

2.2  Devices configuration

 

2.2.1 NBR200

 

ip route 192.168.3.0 255.255.255.0 192.168.0.2 50

ip route 192.168.3.0 255.255.255.0 192.168.1.2 100

2.2.2 S3550A

Vlan 1

Vlan 2

Vlan 3

Vlan 4

Vlan 5

spanning-tress

spanning-tree mst configuration

instance 1 vlan 4

instance 2 vlan 5

instacnce 3 vlan 3

spanning-tree mst 1 priority 4096

interface fa0/1

switchport mode access

switchport access vlan 2

spanning-tree portfast

interface fa0/2

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk allowed vlan remove 1-2,6-4096

interface fa0/3

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk allowed vlan remove 1-3,6-4094

interface vlan 2

ip address 192.168.0.2 255.255.255.0

interface vlan 3

ip address 192.168.2.1 255.255.255.0

interface vlan 4

ip address 192.168.3.2 255.255.255.0

standby 4 ip 192.168.3.1

standby 4 priority 150

interface vlan 5

ip address 192.168.4.3 255.255.255.0

standby 5 ip 192.168.4.1

ip route 0.0.0.0 0.0.0.0 vlan 2 192.68.0.1 50

ip route 0.0.0.0 0.0.0.0 vlan 3  192.68.2.2 100

2.2.3 S3550B

Vlan 1

Vlan 2

Vlan 3

Vlan 4

Vlan 5

spanning-tress

spanning-tree mst configuration

instance 1 vlan 4

instance 2 vlan 5

instacnce 3 vlan 3

spanning-tree mst 2 priority 4096

interface fa0/1

switchport mode access

switchport access vlan 2

spanning-tree portfast

interface fa0/2

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk allowed vlan remove 1-2,6-4096

interface fa0/3

switchport trunk encapsulation dot1q

switchport mode trunk

switchport trunk allowed vlan remove 1-3,6-4094

interface vlan 2

ip address 192.168.1.2 255.255.255.0

interface vlan 3

ip address 192.168.2.2 255.255.255.0

interface vlan 4

ip address 192.168.3.3 255.255.255.0

standby 4 ip 192.168.3.1

interface vlan 5

ip address 192.168.4.2 255.255.255.0

standby 5 ip 192.168.4.1

standby 5 priority 150

 

ip route 0.0.0.0 0.0.0.0 vlan 2 192.68.1.1 50

ip route 0.0.0.0 0.0.0.0 vlan 3  192.68.2.1 100

2.2.5 S2150G

Vlan 1

Vlan 4

Vlan 5

spanning-tree

spanning-tree mst configuration

instance 1 vlan 4

instance 2 vlan 5

interface fa0/1

switcport mode trunk

switchport trunk allowed vlan remove 1-3,6-4096

interface  fa0/2

switchport mode trunk

switchport trunk allowed vlan remove 1-3,6-4096

interface fa0/16

switchport access vlan 4

interface fa0/17

switchport access vlan 5

2.2       notes:

S3550A is the interface vlan 4 master and the tree instance 1 of the root.

S3350B is the interface vlan 5 master and the tree instance 2 of the root.

 

2.3       Network testing

The testing same as the 1.2.5

 

 

 

 

 

 

 

阅读(1099) | 评论(1) | 转发(0) |
给主人留下些什么吧!~~

chinaunix网友2010-09-21 16:05:59

很好的, 收藏了 推荐一个博客,提供很多免费软件编程电子书下载: http://free-ebooks.appspot.com