Fa0/21 Desg FWD 200000 128.21 P2p Pre-STD-Rx Po2 Desg FWD 100000 128.65 P2p MST2
Spanning tree enabled protocol mstp Root ID Priority 8194
Address 0013.80e2.4880 This bridge is the root
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 8194 (priority 8192 sys-id-ext 2) Address 0013.80e2.4880
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------- Fa0/21 Desg FWD 200000 128.21 P2p Pre-STD-Rx Po2 Desg FWD 100000 128.65 P2p
23. 配置ED-SW BPDU Guard
ed-sw(config-if)#int f0/24
ed-sw(config-if)#spanning-tree bpduguard enable ed-sw(config-if)#
02:51:16: %SPANTREE-2-BLOCK_BPDUGUARD: Received BPDU on port FastEthernet0/24 with BPDU Guard enabled. Disabling port. //端口启用此功能后,收到任何BPDU信息,则此端口进入
err-disable状态
02:51:16: %PM-4-ERR_DISABLE: bpduguard error detected on Fa0/24, putting Fa0/24 in err-disable state
02:51:17: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/24, changed state to down
24. 配置ED-SW F0/24端口,启用Guard Root功能
ed-sw(config-if)#spanning-tree guard root
02:54:56: %SPANTREE-2-ROOTGUARD_CONFIG_CHANGE: Root guard enabled on port FastEthernet0/24. 02:54:56: %SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port FastEthernet0/24 on MST00. //启用此功能后, 如果
F0/24端口接入了>=目前根交换机生成树优先级的交换
机,则Block此端口
25. 验证ED-SW的STP状态
ed-sw#sh spanning-tree MST00
Spanning tree enabled protocol mstp Root ID Priority 32768
Address 000d.65dc.8800 Cost 0
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32768 (priority 32768 sys-id-ext 0) Address 000d.bdbb.7480
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------- Fa0/2 Desg FWD 200000 128.2 Edge P2p Fa0/4 Desg FWD 200000 128.4 P2p Fa0/23 Root FWD 200000 128.23 P2p
Fa0/24 Desg BKN*200000 128.24 P2p *ROOT_Inc // F0/24收到了相同优先级
BPDU,则阻塞此端口,并提示根不一致信息
MST01
Spanning tree enabled protocol mstp Root ID Priority 16385
Address 0013.80e2.4880 Cost 300000
Port 23 (FastEthernet0/23)
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Bridge ID Priority 32769 (priority 32768 sys-id-ext 1) Address 000d.bdbb.7480
Hello Time 2 sec Max Age 20 sec Forward Delay 15 sec
Interface Role Sts Cost Prio.Nbr Type
---------------- ---- --- --------- -------- -------------------------------- Fa0/2 Desg FWD 200000 128.2 Edge P2p Fa0/4 Desg LRN 200000 128.4 P2p Fa0/23 Root FWD 200000 128.23 P2p
Fa0/24 Desg BKN*200000 128.24 P2p *ROOT_Inc
26. 配置Core1与Core2互联的接口启用udld功能
Core1,Core2:
interface range F0/23 - 24 udld port
27. 验证udld配置
Core1#sh udld f0/23
Interface Fa0/23 ---
Port enable administrative configuration setting: Enabled //配置启用 Port enable operational state: Enabled //已经正常运行 Current bidirectional state: Bidirectional //双向学到对等体, Current operational state: Advertisement - Single neighbor detected //检测到一个邻居 Message interval: 7 Time out interval: 5
Entry 1 ---
Expiration time: 41 Cache Device index: 1
Current neighbor state: Bidirectional Device ID: CAT0912R1HW Port ID: Fa0/23
Neighbor echo 1 device: CAT0730X1HN Neighbor echo 1 port: Fa0/23
Message interval: 15 Time out interval: 5 CDP Device name: Core2
28. 实验完成
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库生成树的详细配置及实验(3)在线全文阅读。
相关推荐: