Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2099872
  • 博文数量: 433
  • 博客积分: 4775
  • 博客等级: 上校
  • 技术积分: 8054
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-19 16:15
文章存档

2014年(9)

2013年(20)

2012年(77)

2011年(323)

2009年(4)

分类:

2012-02-07 20:43:51

可以使用一系列show命令来验证你上面的配置是否正确。建议每次改变配置后都进行这些验证,以便及时发现问题。

下面先来验证Distribution 1已作为了VLANs 103100这三个VLAN的根交换机,然后验证网络中各条转发路径是否满足你的要求(主要检查各VLAN中的各端口转发状态,参见输出信息中的粗体字部分)。

Distribution 1#show spanning-tree vlan 10

 

VLAN0010

  Spanning tree enabled protocol rstp

  Root ID    Priority    24586

             Address     0015.63f6.b700

             This bridge is the root

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    24586  (priority 24576 sys-id-ext 10)

             Address     0015.63f6.b700

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface        Role Sts Cost      Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

Fa1/0/1          Desg FWD 19        128.1    P2p

Fa1/0/3          Desg FWD 19        128.3    P2p

Fa1/0/5          Desg FWD 19        128.5    P2p

Fa1/0/23         Desg FWD 19        128.23   P2p

Fa1/0/24         Desg FWD 19        128.24   P2p

 

Access 1#show spanning-tree summary

Switch is in rapid-pvst mode

Root bridge for: none

Extended system ID           is enabled

Portfast Default             is disabled

PortFast BPDU Guard Default  is enabled

Portfast BPDU Filter Default is disabled

Loopguard Default            is disabled

EtherChannel misconfig guard is enabled

UplinkFast                   is disabled

BackboneFast                 is disabled

Configured Pathcost method used is short

 

Name                   Blocking Listening Learning Forwarding STP Active

---------------------- -------- --------- -------- ---------- ----------

 

VLAN0010                  1         0        0          1          2

VLAN0020                  1         0        0          1          2

---------------------- -------- --------- -------- ---------- ----------

2 vlans                      2         0        0          2          4

 

Access 2> (enable) show spantree 30

VLAN 30

Spanning tree mode          RAPID-PVST+

Spanning tree type          ieee

Spanning tree enabled

 

Designated Root             00-15-63-f6-b7-00

Designated Root Priority    24606

Designated Root Cost        19

Designated Root Port        3/3

Root Max Age   20 sec   Hello Time 2  sec   Forward Delay 15 sec

 

Bridge ID MAC ADDR          00-d0-00-50-30-1d

Bridge ID Priority          32768

Bridge Max Age 20 sec   Hello Time 2  sec   Forward Delay 15 sec

 

Port                     State         Role Cost      Prio Type

------------------------ ------------- ---- --------- ---- --------------------

 3/3                     forwarding    ROOT        19   32 P2P

 3/4                     blocking      ALTR        19   32 P2P

 

Access 2> (enable) show spantree 40

VLAN 40

Spanning tree mode          RAPID-PVST+

Spanning tree type          ieee

Spanning tree enabled

 

Designated Root             00-15-c6-c1-30-00

Designated Root Priority    24616

Designated Root Cost        19

Designated Root Port        3/4

Root Max Age   20 sec   Hello Time 2  sec   Forward Delay 15 sec

 

Bridge ID MAC ADDR          00-d0-00-50-30-27

Bridge ID Priority          32768

Bridge Max Age 20 sec   Hello Time 2  sec   Forward Delay 15 sec

 

Port                     State         Role Cost      Prio Type

------------------------ ------------- ---- --------- ---- --------------------

 3/3                     blocking      ALTR        19   32 P2P

 3/4                     forwarding    ROOT        19   32 P2P

 

Services 1#show spanning-tree vlan 100

 

VLAN0100

  Spanning tree enabled protocol rstp

  Root ID    Priority    24676

             Address     0015.63f6.b700

             Cost        18

             Port        7 (FastEthernet0/5)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32868  (priority 32768 sys-id-ext 100)

             Address     0003.fd63.bb80

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface        Role Sts Cost      Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

Fa0/5            Root FWD 18        128.7    P2p

Fa0/46           Desg FWD 19        128.50   P2p

Fa0/47           Desg FWD 19        128.51   P2p

 

Services 1#show spanning-tree vlan 200

 

VLAN0200

  Spanning tree enabled protocol rstp

  Root ID    Priority    24776

             Address     0015.c6c1.3000

             Cost        37

             Port        51 (FastEthernet0/47)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32968  (priority 32768 sys-id-ext 200)

             Address     0003.fd63.bb80

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface        Role Sts Cost      Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

Fa0/5            Altn BLK 19        128.7    P2p

Fa0/46           Altn BLK 19        128.50   P2p

Fa0/47           Root FWD 19        128.51   P2p

 

Services 2#show spanning-tree vlan 100

 

VLAN0100

  Spanning tree enabled protocol rstp

  Root ID    Priority    24676

             Address     0015.63f6.b700

             Cost        37

             Port        42 (GigabitEthernet0/42)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32868  (priority 32768 sys-id-ext 100)

             Address     00d0.2bfc.7d80

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface        Role Sts Cost      Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

Fa0/6            Altn BLK 19        128.6    P2p

Fa0/42           Root FWD 19        128.42   P2p

Fa0/43           Altn BLK 19        128.43   P2p

 

Services 2#show spanning-tree vlan 200

 

VLAN0200

  Spanning tree enabled protocol rstp

  Root ID    Priority    24776

             Address     0015.c6c1.3000

             Cost        18

             Port        6 (GigabitEthernet0/6)

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

 

  Bridge ID  Priority    32968  (priority 32768 sys-id-ext 200)

             Address     00d0.2bfc.7d80

             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec

             Aging Time 300

 

Interface        Role Sts Cost      Prio.Nbr Type

---------------- ---- --- --------- -------- --------------------------------

Fa0/6            Root FWD 18        128.6    P2p

Fa0/42           Desg FWD 19        128.42   P2p

Fa0/43           Desg FWD 19         64.43   P2p

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