思科设备交换机vtp学习功能配置.docx_第1页
思科设备交换机vtp学习功能配置.docx_第2页
思科设备交换机vtp学习功能配置.docx_第3页
思科设备交换机vtp学习功能配置.docx_第4页
思科设备交换机vtp学习功能配置.docx_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

本次讲解交换机vtp的vlan学习功能(相对于上一期各交换机vlan配置,使用中继线相连的交换机都需要进行相应的配置。如果更改 VLAN,所有的相关交换机也要做变更,这样工作就太大了。采用VTP (VLAN Trunking Protocol)协议可以简化配置工作。VTP有三种工作模式:服务器模式、客户端模式和透明(transparent)模式,默认是服务器模式。 服务器模式的交换机可以设置VLAN配置参数,服务器会将配置参数发给其他交换机。客户端模式的交换机不能设置VLAN配置参数,只能接受服务器模式的交换机发送的VLAN配置参数。透明模式的交换机是相对独立的,它允许设置VLAN配置参数,但不向其他交换机发送自己的配置参数。当透明模式的交换机收到服务器模式的交换机 发送的VLAN配置参数时,仅仅是简单地转发给其他交换机,并不用来设置自己的VLAN参数。当交换机处于VTP服务器模式时,如果删除一个VLAN,则该VLAN将在所有相同VTP的交换机上被删除。当在透明模式下删除时,只在当前交换机上被删除)本例配置模型图命令行:SwitchA配置如下:SwitchenableSwitch#vlan database /进入vlan配置模式% 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)#vtp domain tzt /配置switchA为vtp域名为tztChanging VTP domain name from NULL to tzt Switch(vlan)#vtp password 123 /配置switchA为vtp密码为123Setting device VLAN database password to 123Switch(vlan)#vtp server /配置switchA为vtp服务器(默认为服务器模式)Device mode already VTP SERVER.Switch(vlan)#vlan 2 name TztA /配置vlan 2 名字为TztAVLAN 2 added: Name: TztASwitch(vlan)#vlan 3 name TztB /配置vlan3 名字为TztBVLAN 3 added: Name: TztBSwitch(vlan)#exitAPPLY completed.Exiting.Switch#show vtp statusVTP Version : 2Configuration Revision : 2Maximum VLANs supported locally : 255Number of existing VLANs : 7VTP Operating Mode : Server /显示switchA为vtp服务器模式VTP Domain Name : tzt /显示switchB的vtp域名为tztVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0xF6 0x64 0x53 0x6B 0xF9 0x2F 0xA3 0xC2 Configuration last modified by 0.0.0.0 at 3-1-93 00:02:05Local updater ID is 0.0.0.0 (no valid interface found)Switch#show vlan /查看已配置vlan信息VLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, 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 /此处为刚才配置的vlan3 TztB active 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 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 101005 1500 - - - ibm - 0 0 Remote SPAN VLANs-Primary Secondary Type Ports- - - -Switch#conf t /进入全局模式Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1 Switch(config-if)#switchport mode trunk /配置trunk模式%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)#switchport trunk allowed vlan all /允许所有vlan通过switchA的端口g1/1Switch(config-if)#exitSwitch(config)#exitSwitchB配置如下:SwitchenableSwitch#show vlan /查看当前已配置vlan信息。可以看出当前没有配置vlan信息VLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, 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/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 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#vlan database /进入vlan配置模式% 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)#vtp domain tzt /配置switchB的 vtp域名与switchA相同Changing VTP domain name from NULL to tztSwitch(vlan)#vtp password 123 /配置switchB的 vtp密码与switchA相同Setting device VLAN database password to 123Switch(vlan)#vtp client /配置switchB为vtp客户端模式Setting device to VTP CLIENT mode.Switch(vlan)#exitSwitch#show vtp status /查看vtp配置信息VTP Version : 2Configuration Revision : 0Maximum VLANs supported locally : 255Number of existing VLANs : 5VTP Operating Mode : client /显示switchA为vtp客户端模式VTP Domain Name : tzt /显示switchB的vtp域名为tztVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x16 0xF9 0xA2 0xD7 0xCB 0x87 0x66 0x3E Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00Local updater ID is 0.0.0.0 (no valid interface found)Switch#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.APPLY completed.Exiting.Switch#show vlan /查看switchB的vlan配置信息VLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, 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/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 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#%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#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1Switch(config-if)#sw mode truSwitch(config-if)#sw tru allowed vlan all /配置允许所有vlan通过switchB的端口g1/1Switch(config-if)#exitSwitch(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleSwitch#show vlanVLAN Name Status Ports- - - -1 default active Fa0/1, Fa0/2, 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/22 TztA active 3 TztB

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论