新客网WWW.XKER.COM:致力做中国最专业的网络学院!
学院: 操作系统 - 网络应用 - 服务器 - 网络安全 - 工具软件 - 办公软件 - Web开发 - 数据库 - 网页设计 - 图形图像 - 媒体动画 - 硬件学堂 - 存储频道 - QQ专区
您的位置:首页 > 网络学院 > 网络应用 > 交换技术 > 正文:配置CiscoVLAN、VLANTrunk、VTP和STP

配置CiscoVLAN、VLANTrunk、VTP和STP

新客网 XKER.COM 2007-01-31 来源: 收藏本文
   

  SW1#sh spantree 10
VLAN1O is executing the IEEE compatible Spanning Tree Protocol
Bridge Identifier has priority 32768,address 0004.DD4E.9C81
Configured hello time 2, max age 20, forward delay 15
Current root has priority
Root port is FastEthernet0/26,cost of root path is 10
Topology change flag not set, detected flag not set
Topology changes 1, last topology change occured 0d00h04ml0s ago
Times: hold 1, topology change 8960
hello 2, max age 20, forward delay 15
Timers: hello 2, topology change 35, notification 2
Port Ethernet 0/1 of VLANIO is Forwarding
Port path cost 100, Port priority 128
Designated root has priority 32768, address 0004.27C4.2401
Designated bridge has priority 32768, address 0004.DD4E.9C81
Designated port is 1, path cost 10
Timers: message age 20, forward delay 15, hold 1
Port Ethernet 0/10 of VLANIO is Forwarding
Port path cost 100, Port priority 128
Designated root has priority 32768,address 0004.27C4.2401
Designated bridge has priority 32768,address 0004.DD4E.9C81
Designated port is 10, path cost 10
Timers: message age 20, forward delay 15, hold 1
Port FastEthernet 0/26 of VLANIO is Forwarding
Port path cost 10, Port priority 128
Designated root has priority 32768,address 0004.27C4.2401
Designated bridge has priority 32768, address 0004.27C4.2401
Designated port is 26, path cost 0
Timers: message age 20, forward delay 15, hold 1
SW1#
SW1#conft
Enter configuration commands, one per line. End with CNTL/Z
SW1(config)#no spantree 10
SW1(config)#
SW1#sh spantree 10
Error>r:-STP is not enabled for VLAN 10
SW1#

  (1)第1段是对VTP进行配置。

  在全局配置模式下,使用vtp?命令查看VTP的可配置项目。可以看到,有VTP域名、VTP模式(server、client和transparent)、VTP口令、VTP修剪和VTP陷井等几项,我们关心的是VTP域名和模式有关的命令。

  (2)首先把SW1交换机设置成为VTP Server模式,当然这也是缺省模式,不需设置即为此模式。在Server模式下,可以设置VTP的其他属性。

[责任编辑:editor]

收藏】 【评论】 【推荐】 【投稿】 【打印】 【关闭
发表评论
要记得去论坛讨论,点击注册新会员匿名评论
评论内容:不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
阅读排行
随机推荐
实用信息推荐