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

2014年(9)

2013年(20)

2012年(77)

2011年(323)

2009年(4)

分类:

2012-02-07 20:08:48

【注意】使用以下命令要注意。对于大多数情形,建议使用spanning-tree vlan vlan_ID hello-time seconds root primaryspanning-tree vlan vlan_ID hello-time seconds root secondary命令随根交换机或从根交换机的指定一起来编辑hello时间。

hello时间是指一台交换机发送两个通知到其他交换机,通知它仍然存在并能正常工作的BPDU包的发送时间间隔。这个时间间隔一般来说要根据网络规模的大小而定,小网络一般可以设置低些(发送的频率就更高),大网络的值可以设置高些(发送的频率低些)。但总体来说,这个参数并不是很重要,可以采用默认设置——2秒,也就是默认每隔2秒交换机就会发送一次BPDU包到VLAN中的邻居交换机上。

VLAN配置hello时间的步骤如表12-9所示。

12-9  VLAN配置hello时间的步骤

步骤

命令

用途说明

1

Switch#configure terminal

进入全局配置模式

Switch(config)# spanning-tree vlan vlan_ID hello-time hello_time

配置VLAN hello时间。参数hello_time的取值范围为110秒,默认为2秒;参数vlan_ID的取值范围是14094,保留VLAN除外。可以用no spanning-tree vlan vlan_ID hello-time命令恢复hello时间为默认值

该命令在12.1(8a)EW12.1(12c)EW12.2(53)SE212.2(54)SG12.2(55)SE2IOS版本中支持

Switch(config)# end

退出全局配置模式

校验以上配置

5

Switch#copy running-config startup-config

把以上配置更改保存在启动配置文件中

【示例1配置当前交换机在VLAN 200中的hello包发送时间间隔为7秒。

Switch# configure terminal

Switch(config)# spanning-tree vlan 200 hello-time 7

Switch(config)# end

Switch#

【示例2校验上例中当前交换机在VLAN 200中的hello包发送时间间隔配置(注意输出信息中的粗体字部分)。

Switch# show spanning-tree vlan 200 bridge

                                      Hello Max  Fwd

Vlan                   Bridge ID      Time  Age Delay  Protocol

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

VLAN200          49152 0050.3e8d.64c8    7   20    15  ieee

Switch#

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