




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、本次讲解vlan trunk配置方法:命令行:以下为switchA配置:Switch>Switch>enableSwitch#vlan database% Warning: It is recommended to configure VLAN from config mode, as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2 name TztAVLAN 2
2、added:Name: TztASwitch(vlan)#vlan 3 name TztBVLAN 3 added:Name: TztBSwitch(vlan)#exitAPPLY completed.Exiting.Switch#wrBuilding configuration.OKSwitch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fO/1Switch(config-if)#sw mo acSwitch(config-if)#sw acc vlan 2Sw
3、itch(config-if)#int fO/2Switch(config-if)#sw mo acSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_l: Configured from console by consoleSwitch#show vlanVLAN NameVLAN Name1 default2 TztA3 TztB1002 fddi-default1003 token-ring-default1004 fddinet-default1005
4、trnet-defaultStatus Portsactive FaO/3, FaO/4, FaO/5, FaO/6FaO/7, FaO/8, FaO/9, Fa0/10FaO/11, FaO/12, FaO/13, FaO/14FaO/15, FaO/16, FaO/17, FaO/18FaO/19, FaO/20, FaO/21, FaO/22FaO/23, FaO/24, Gigl/1, Gigl/2 activeFaO/1activeFaO/2act/unsupact/unsupact/unsupVLAN Type SAIDVLAN Type SAIDMTUParent RingNo
5、BridgeNo StpBrdgMode Transl Trans2act/unsup1 enet1000011500 - -002 enet1000021500 - -003 enet1000031500 - -001002 fddi1010021500 - -001003 tr1010031500 - -001004fdnet1010041500 -ieee -001005 trnet1010051500 -ibm 00Remote SPAN VLANsPrimary Secondary TypePrimary Secondary TypePortsSwitch#wrBuilding co
6、nfiguration.OKSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int gl/1进入端口 gl/1 配置 vlan trunk 模式Switch(config-if)#sw trunk encaSwitch(config-if)#sw trunk allowed vlan all /配置允许所有 vlan 通过 switchASwitch(config-if)#exitSwitch(config)#exitSwitch#Switch#wr 保存己有配置Bu
7、ilding configuration.OKSwitch#以下为switchB配置:Switch>enableSwitch#vlan database% Warning: It is recommended to configure VLAN from config mode,as VLAN database mode is being deprecated. Please consult user documentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2 name TztAVLAN 2 adde
8、d:Name: TztASwitch(vlan)#vlan 3 name TztBVLAN 3 added:Name: TztBSwitch(vlan)#exitAPPLY completed.Exiting.Switch#config tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int fO/1Switch(config-if)#sw mo accSwitch(config-if)#sw acc vlan 2Switch(config-if)#int fO/2Switch(config
9、-if)#sw mo accSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#show vlanA% Invalid input detected at,A,marker.Switch(config)#exitSwitch#%SYS-5-C0NFIG_l: Configured from console by consoleVLAN Type SAIDVLAN Type SAIDMTUSwitch#show vlan 显示所有vlan配置信息Parent RingNo BridgeNo StpVLAN Nam
10、eStatusPorts1 defaultactiveFaO/3, FaO/4, FaO/5, FaO/6FaO/7, FaO/8, FaO/9, Fa0/10FaO/11, FaO/12, FaO/13, FaO/14FaO/15, FaO/16, FaO/17, FaO/18FaO/19, Fa0/20, FaO/21, FaO/22FaO/23, FaO/24, Gigl/1, Gigl/22 TztAactiveFaO/13 TztBactiveFaO/21002 fddi-defaultact/unsup1003 token-ring-defaultact/unsup1004 fdd
11、inet-defaultact/unsup1005 trnet-defaultact/unsupBrdgMode Transl Trans21 enet1000011500 -.- -002 enet1000021500 - -003 enet1000031500 - -001002 fddi1010021500 - -001003 tr1010031500 - -001004fdnet1010041500 -ieee -001005 trnet1010051500 -ibm -00Remote SPAN VLANsPrimary Secondary TypePortsSwitch#conf
12、tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int gl/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernetl/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernetl/1, changed state to upSwitch(config-if)#switchport tr
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 幼儿园停电安全应对指南
- 医疗机构护士自查与整改措施
- 语言艺术教育教研组工作计划
- 输血的健康教育
- 在线教育行业发展与创新教育模式研究
- 非常规油气开发中的压裂安全与环保措施
- 化妆品生产半成品防护措施
- 2025年人教版三年级语文教学计划
- 环保项目质量保证与创新方案
- 语文写作兴趣培养计划(小学三年级)
- 啤酒采购合同协议书模板
- 大车司机劳务协议书
- 中医把脉入门培训课件
- 学生军训教官合同协议
- 期刊编辑的学术期刊内容审核标准考核试卷
- 高血糖症的急救与护理
- 成人失禁性皮炎的预防与护理
- 知识产权监管培训课件
- 油田节能降耗技术-全面剖析
- 广西钦州市钦州港经济技术开发区中学2025年初三第二学期第一次区模拟化学试题含解析
- 技术信息收集与分析方法考核试卷
评论
0/150
提交评论