23-Root Guard根防护 //IOU模拟

一、实验拓扑:
23-Root Guard根防护 //IOU模拟
二、实验命令:
1、基本部署:
IOU1(config)#int range e1/0 - 1
IOU1(config-if-range)#no shutdown
IOU1(config-if-range)#switchport trunk encapsulation dot1q
IOU1(config-if-range)#switchport mode trunk

IOU2(config)#int range e1/0 - 1
IOU2(config-if-range)#no shutdown
IOU2(config-if-range)#switchport trunk encapsulation dot1q
IOU2(config-if-range)#switchport mode trunk

IOU3(config)#int range e1/0 - 1
IOU3(config-if-range)#no shutdown
IOU3(config-if-range)#switchport trunk encapsulation dot1q
IOU3(config-if-range)#switchport mode trunk

IOU3(config)#int e1/2
IOU3(config-if)#no shutdown
IOU3(config-if)#switchport mode access

2、重点命令:
IOU3(config)#int e1/2
IOU3(config-if)#no shutdown
IOU3(config-if)#spanning-tree guard root
IOU3(config-if)#
*Apr 26 06:19:34.814: %SPANTREE-2-ROOTGUARD_CONFIG_CHANGE: Root guard enabled on port Ethernet1/2

IOU3#show spanning-tree vlan 1
Et0/0 Desg FWD 100 128.1 Shr
Et0/1 Desg FWD 100 128.2 Shr
Et0/2 Desg FWD 100 128.3 Shr
Et0/3 Desg FWD 100 128.4 Shr
Et1/0 Altn BLK 100 128.5 Shr
Et1/1 Root FWD 100 128.6 Shr
Et1/2 Desg FWD 100 128.7 Shr

接着在Hacker上做:
Hacker(config)#spanning-tree vlan 1 priority 0
IOU3上提示:
*Apr 26 06:23:14.796: %SPANTREE-2-ROOTGUARD_BLOCK: Root guard blocking port Ethernet1/2 on VLAN0001.

结果验证:
IOU3#show spanning-tree vlan 1
VLAN0001
Interface Role Sts Cost Prio.Nbr Type
Et0/0 Desg FWD 100 128.1 Shr
Et0/1 Desg FWD 100 128.2 Shr
Et0/2 Desg FWD 100 128.3 Shr
Et0/3 Desg FWD 100 128.4 Shr
Et1/0 Altn BLK 100 128.5 Shr
Et1/1 Root FWD 100 128.6 Shr
Et1/2 Desg BKN100 128.7 Shr ROOT_Inc

23-Root Guard根防护 //IOU模拟

转载于:https://blog.51cto.com/13856092/2137436

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值