思科设备交换机vlan-trunk配置.docx_第1页
思科设备交换机vlan-trunk配置.docx_第2页
思科设备交换机vlan-trunk配置.docx_第3页
思科设备交换机vlan-trunk配置.docx_第4页
思科设备交换机vlan-trunk配置.docx_第5页
全文预览已结束

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论