4.没有生成树的情况下的广播风暴(实验)

1.两台交换机上配置trunk
SW1(config)#interface ethernet 0/0
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config-if)#no shutdown
 
SW1(config)#interface ethernet 0/1
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config-if)#no shutdown
 
SW2(config)#interface ethernet 0/0
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switchport mode trunk
SW2(config-if)#no shutdown
 
SW2(config)#interface ethernet 0/1
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switchport mode trunk
SW2(config-if)#no shutdown
2.把两台PC分别划分到各自相邻的交换机
(其实默认就在Vlan 1里面)
SW1#show vlan brief
SW2#show vlan brief
3.查看在当前配置下spaning-tree的运行状态
(发现其中SW2的E0/1口是不运行的状态)
SW1#show spanning-tree vlan 1
Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/0               Desg FWD 100       128.1    Shr
Et0/1               Desg FWD 100       128.2    Shr
SW2#show spanning-tree vlan 1
Interface           Role Sts Cost      Prio.Nbr Type
------------------- ---- --- --------- -------- --------------------------------
Et0/0               Root FWD 100       128.1    Shr
Et0/1               Altn BLK 100       128.2    Shr
4.现在尝试把spanning tree关闭
SW1(config)#no spanning-tree vlan 1
SW2(config)#no spanning-tree vlan 1
5.在路由器上配置IP 
R1(config-if)#ip address 10.1.1.1 255.255.255.0
R1(config-if)#no shutdown
R2(config-if)#ip address 10.1.1.2 255.255.255.0
R2(config-if)#no shutdown
6.在R1上去ping R2
会发现ping不通,查看交换机其中一个接口,转发上千万个包
SW1#show interfaces ethernet 0/0

 

posted on 2019-06-23 13:19  Erica程  阅读(382)  评论(0)    收藏  举报

导航