首页导航栏 - 网络工程 | 网站建设 | 设计在线 | 精彩图片 | 职业前线 | 创业之路 | 启步工具 | 教程资讯 | 休闲娱乐
启步网 > 网络工程 > 思科相关
Cisco 2900XL VLAN config
作者: 不详 阅读: 来源:互连网 时间:2006-12-1 12:28:55
字体

Switch# vlan database
Stcore.com(vlan)# vtp domain domain-name
Stcore.com(vlan)# vtp domain domain-name password password-value
Stcore.com(vlan)# vtp server
Stcore.com(vlan)# show vtp status
若想Disable VTP,只须将VTP模式改为transparent
即Switch(vlan)# vtp transparent

2. 激活VTP V2(交换机默认的是VTP V1)。
Stcore.com# vlan database
stcore.com(vlan)# vtp v2-mode
Stcore.com# show vtp status

3. 增加VLAN。Catalyst 2900XL系列交换机最大支持64个激活的VLAN,
VLAN ID 号从1-1005。
Switch# vlan database
Switch(vlan)# vlan vlan-id name vlan-name
Switch# show vlan name vlan-name
Switch(vlan)# no vlan vlan-id //删除VLAN

4. 将端口加入VLAN。
Switch# configure terminal
Switch(config)# interface interface
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access vlan vlan-id
Switch(config-if)# show interface interface-id switchport

5. 配置trunk 端口。
Switch# configure terminal
Switch(config)# interface interface
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation isl
Switch(config-if)# end
Switch# show interface interface switchport
Switch# copy running-config startup-config

6. 配置trunk 上允许的VLAN。
Switch(config)# interface interface
Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk allowed vlan remove vlan-id-range
Switch(config-if)# switchport trunk allowed vlan add vlan-id-range
Switch(config-if)# end

Switch# show interface interface switchport allowed-vlan

若想取消trunk端口,只需
Switch(config-if)# no switchport mode

7. 使用STP实现负载。

实现负载分担有两种方法:
1) 使用端口优先级。
配置:
Switch_1(config-if)# interface fa0/1
Switch_1(config-if)# spanning-tree vlan 8 9 10 port-priority 10

Switch_1(config)# interface fa0/2
Switch_1(config-if)# spanning-tree vlan 3 4 5 6 port-priority 10

2) 使用路径值。例如:
Switch_1(config)# interface fa0/1
Switch_1(config-if)# spanning-tree vlan 2 3 4 cost 30

Switch_1(config)# interface fa0/2
Switch_1(config-if)# spanning-tree vlan 8 9 10 cost 30

责任编辑:一路狂奔
帐号:
密码:

Google
Google提供的相关资源
参与评论(条评论)
请遵守国家法律
笔名:
邮箱:
( 以上评论仅代表网友个人意见,不代表本站观点 )
相关资源
  • 思科产品手册、技术指导资料 [2006-12-6]
  • Cisco路由器配置信息及口令的清除 [2006-12-1]
  • 在Cisco交换机上实现隔离访问 [2006-12-1]
  • 配置CiscoVLAN、VLANTrunk、VTP和STP [2006-12-1]
  • 用SSH打造最安全的路由交换设备 [2006-12-1]
  • 思科考生最想问的12个经典问题 [2006-11-5]
  • 了解路由器中的管理间距和量度参数 [2006-9-23]
  •