下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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 TztA
2、VLAN 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 f0/1Switch(config-if)#sw mo acSwitch(config-if)#sw acc
3、 vlan 2Switch(config-if)#int f0/2Switch(config-if)#sw mo acSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console by consoleSwitch#show vlanVLAN Name Status Ports- - - -1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6 Fa0/7, Fa0/8, Fa0/9, F
4、a0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15, Fa0/16, Fa0/17, Fa0/18 Fa0/19, Fa0/20, Fa0/21, Fa0/22 Fa0/23, Fa0/24, Gig1/1, Gig1/22 TztA active Fa0/13 TztB active Fa0/21002 fddi-default act/unsup 1003 token-ring-default act/unsup 1004 fddinet-default act/unsup 1005 trnet-default act/unsup VLAN Type S
5、AID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2- - - - - - - - - - -1 enet 100001 1500 - - - - - 0 02 enet 100002 1500 - - - - - 0 03 enet 100003 1500 - - - - - 0 01002 fddi 101002 1500 - - - - - 0 0 1003 tr 101003 1500 - - - - - 0 0 1004 fdnet 101004 1500 - - - ieee - 0 0 1005 trnet 10100
6、5 1500 - - - ibm - 0 0 Remote SPAN VLANs-Primary Secondary Type Ports- - - -Switch#wrBuilding configuration.OKSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1 /进入端口g1/1配置vlan trunk模式Switch(config-if)#sw trunk encaSwitch(config-if)#sw trunk allowed vlan
7、 all /配置允许所有vlan通过switchASwitch(config-if)#exitSwitch(config)#exitSwitch#Switch#wr /保存已有配置Building 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 d
8、ocumentation for configuring VTP/VLAN in config mode.Switch(vlan)#vlan 2 name TztAVLAN 2 added: 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 f0/1Sw
9、itch(config-if)#sw mo accSwitch(config-if)#sw acc vlan 2Switch(config-if)#int f0/2Switch(config-if)#sw mo accSwitch(config-if)#sw acc vlan 3Switch(config-if)#exitSwitch(config)#show vlan % Invalid input detected at '' marker.Switch(config)#exitSwitch#%SYS-5-CONFIG_I: Configured from console
10、by consoleSwitch#show vlan /显示所有vlan配置信息VLAN Name Status Ports- - - -1 default active Fa0/3, Fa0/4, Fa0/5, Fa0/6 Fa0/7, Fa0/8, Fa0/9, Fa0/10 Fa0/11, Fa0/12, Fa0/13, Fa0/14 Fa0/15, Fa0/16, Fa0/17, Fa0/18 Fa0/19, Fa0/20, Fa0/21, Fa0/22 Fa0/23, Fa0/24, Gig1/1, Gig1/22 TztA active Fa0/13 TztB active Fa0
11、/21002 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 02 enet 100002 1500 - - - - - 0 03 enet 100003 1500 - -
12、- - - 0 01002 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-Primary Secondary Type Ports- - - -Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1Switch(config-if)#switchport mode trunkSwitch(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/1, changed state to upSwitch(config-if)#sw
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 临邑初二期末考试试卷及答案
- 光伏电池组件培训课件
- 先进材料技术演讲
- 某市智慧校园能耗智能可视化管理项目技术方案-2
- 2024-2025学年人教版八年级物理上册同步讲义:第5章 透镜及其应用(9大考向48题)学生版+解析版
- 余热发电安全培训课件
- 高二语文考试试卷及答案
- 2024北师大版八年级生物上册 第14章《健康的生活方式》每节课教学设计汇编(含两个教学设计)
- 法考试题库及答案
- 2026年东莞松山湖科学城公开招聘15人备考题库及一套参考答案详解
- 儿童心肺复苏操作要点与急救流程
- 水电解制氢设备运行维护手册
- 2025-2026学年部编版八年级数学上册期中考试试卷及答案
- 实验室生物安全评估报告模板
- GB 38304-2025手部防护防寒手套
- 无人机专业英语 第二版 课件 6.1 The Basic Operation of Mission Planner
- 弱电智能化总体设计方弱电智能化总体设计方案
- 规范使用执法记录仪课件
- 餐厨垃圾高温好氧堆肥技术方案
- 可转债券投资协议书范本
- (2025秋新版)人教版八年级地理上册全册教案
评论
0/150
提交评论