思科设备交换机vlan trunk配置

上传人:飞*** 文档编号:40524872 上传时间:2018-05-26 格式:DOCX 页数:5 大小:44.34KB
返回 下载 相关 举报
思科设备交换机vlan trunk配置_第1页
第1页 / 共5页
思科设备交换机vlan trunk配置_第2页
第2页 / 共5页
思科设备交换机vlan trunk配置_第3页
第3页 / 共5页
思科设备交换机vlan trunk配置_第4页
第4页 / 共5页
思科设备交换机vlan trunk配置_第5页
第5页 / 共5页
亲,该文档总共5页,全部预览完了,如果喜欢就下载吧!
资源描述

《思科设备交换机vlan trunk配置》由会员分享,可在线阅读,更多相关《思科设备交换机vlan trunk配置(5页珍藏版)》请在金锄头文库上搜索。

1、本次讲解本次讲解 vlan trunk 配置方法:配置方法:本例配置模型图命令行:命令行:以下为以下为 switchA 配置配置: Switch Switchenable Switch#vlan database % Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#

2、vlan 2 name TztA VLAN 2 added:Name: TztA Switch(vlan)#vlan 3 name TztB VLAN 3 added:Name: TztB Switch(vlan)#exit APPLY completed. Exiting.Switch#wr Building configuration. OK Switch#config t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#int f0/1 Switch(config-if)#sw mo

3、ac Switch(config-if)#sw acc vlan 2 Switch(config-if)#int f0/2 Switch(config-if)#sw mo ac Switch(config-if)#sw acc vlan 3 Switch(config-if)#exit Switch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console by consoleSwitch#show vlanVLAN Name Status Ports - - - - 1 default active Fa0/3, Fa0/4,

4、 Fa0/5, Fa0/6Fa0/7, Fa0/8, Fa0/9, Fa0/10Fa0/11, Fa0/12, Fa0/13, Fa0/14Fa0/15, Fa0/16, Fa0/17, Fa0/18Fa0/19, Fa0/20, Fa0/21, Fa0/22Fa0/23, Fa0/24, Gig1/1, Gig1/2 2 TztA active Fa0/1 3 TztB active Fa0/2 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 t

5、rnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004

6、 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs-Primary Secondary Type Ports - - - - Switch#wr Building configuration. OK Switch#conf t Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1 /进入端口 g1/1 配置 vlan trunk 模式 Switch(config-if)#sw

7、 trunk encaSwitch(config-if)#sw trunk allowed vlan all /配置允许所有 vlan 通过 switchA Switch(config-if)#exit Switch(config)#exit Switch#Switch#wr /保存已有配置 Building configuration. OK Switch#以下为以下为 switchB 配置:配置: Switchenable Switch#vlan database % Warning: It is recommended to configure VLAN from config mode

8、,as VLAN database mode is being deprecated. Please consult userdocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2 name TztA VLAN 2 added:Name: TztA Switch(vlan)#vlan 3 name TztB VLAN 3 added:Name: TztB Switch(vlan)#exit APPLY completed. Exiting. Switch#config t Enter configura

9、tion commands, one per line. End with CNTL/Z. Switch(config)#int f0/1 Switch(config-if)#sw mo acc Switch(config-if)#sw acc vlan 2 Switch(config-if)#int f0/2 Switch(config-if)#sw mo accSwitch(config-if)#sw acc vlan 3 Switch(config-if)#exit Switch(config)#show vlan % Invalid input detected at marker.S

10、witch(config)#exit Switch# %SYS-5-CONFIG_I: Configured from console by consoleSwitch#show vlan /显示所有 vlan 配置信息VLAN Name Status Ports - - - - 1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6Fa0/7, Fa0/8, Fa0/9, Fa0/10Fa0/11, Fa0/12, Fa0/13, Fa0/14Fa0/15, Fa0/16, Fa0/17, Fa0/18Fa0/19, Fa0/20, Fa0/21, Fa0/2

11、2Fa0/23, Fa0/24, Gig1/1, Gig1/2 2 TztA active Fa0/1 3 TztB active Fa0/2 1002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2 - - - - - - - - - - - 1 enet 100001 1500 - - - - - 0 0 2 enet 100002 1500 - - - - - 0 0 3 enet 100003 1500 - - - - - 0 0 1002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs -

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号