Cisco交换机vtp配置

合集下载

交换机VTP配置

交换机VTP配置
学习到VTP服务 端的VLAN 配置。 • 同一VALN的主机可以相互通信
VTP client 配置步骤
一、配置VTP client (配置交换机客户端) Vtp mode client Vtp domain test Vtp password 123 二、将相应的端口模式配置为trunk模式 Int fa 1 Switchprot mode trunk 三、将相应端口划分到相应VLAN int fa 0/2 switchprot access vlan 2
网络拓扑结构
VTP server 配置步骤
一、配置VTP server(配置VTP服务端) Vtp mode server Vtp domain test Vtp password 123 二、将相应的端口模式配置为trunk模式 Int range fa 0/1 -2 Switchprot mode trunk 三、创建VLAN Vlan 2 Vlan 3
交换机VTP配置
郑海其
什么是VTP
• VTP(VLAN Trunking Protocol):是 VLAN中继协议,也被称为虚拟局域网干道 协议。它是思科私有协议。作用是十几台 交换机在企业网中,配置VLAN工作量大, 可以使用VTP协议,把一台交换机配置成 VTP Server, 其余交换机配置成VTP Client, 这样他们可以自动学习到server 上的VLAN 信息。

Cisco VTP中继协议配置实践

Cisco VTP中继协议配置实践

Cisco VTP中继协议配置实践1.VTP协议:VLAN中继协议,VTP,VLAN TRUNKING PROTOCOL,是CISCO专用协议,大多数交换机都支持该协议。

VTP负责在VTP域内同步VLAN信息,这样就不必在每个交换上配置相同的VLAN信息。

VTP还提供一种映射方案,以便通信流能跨越混合介质的骨干。

VTP 最重要的作用是,将进行变动时可能会出现在的配置不一致性降至最低。

不过,VTP也有一些缺点,这些缺点通常都与生成树协议有关。

知识点:VLAN中继协议(VTP)利用第2层中继帧,在一组交换机之间进行VLAN通信.VTP从一个中心控制点开始,维护整个企业网上VLAN的添加和重命名工作,确保配置的一致性。

2.设计思路及需求:1、Cisco C3560配置成为VTP server并设置VTP管理域名称CCTV2、Cisco C3560创建三个VLAN(VLAN10 VLAN20 VLAN 30)并配置每个VLAN动态获取IP3、Cisco C3650 分配三个端口fa 0/1-3 设置为trunk4、三台Cisco C2960配置成为VTP client5、C2960_01 分配fa 0/1-5给VLAN 10 ,并设置fa0/24端口为trunk6、C2960_02 分配fa 0/1-5给VLAN 20 ,并设置fa0/24端口为trunk7、C2960_03 分配fa 0/1-5给VLAN 30 ,并设置fa0/24端口为trunk3.网络拓扑图:4.配置(1)Cisco C3560配置如下:##设置VTP 域名名称及VTP ServerC3560>enableC3560#vlan databaseC3560(vlan)#vtp domain CCTVC3560(vlan)#vtp server##创建VLAN 10 VLAN 20 VLAN 30 C3560(vlan)#vlan 10 name VLAN10C3560(vlan)#vlan 20 name VLAN20C3560(vlan)#vlan 30 name VLAN30C3560(vlan)#exit##VLAN配置IP地址3560#configure terminalC3560(config)#interface vlan 10C3560(config-if)#ip address 192.168.10.1 255.255.255.0C3560(config-if)#exitC3560(config)#interface vlan 20C3560(config-if)#ip address 192.168.20.1 255.255.255.0C3560(config-if)#exitC3560(config)#interface vlan 30C3560(config-if)#ip address 192.168.30.1 255.255.255.0C3560(config-if)#exit##配置DCHPC3560(config)#service dhcpC3560(config)#ip dhcp pool vlan10_dhcpC3560(dhcp-config)#network 192.168.10.0 255.255.255.0C3560(dhcp-config)#default-router 192.168.10.1C3560(dhcp-config)#dns-server 114.114.114.114C3560(dhcp-config)#exitC3560(config)#ip dhcp excluded-address 192.168.10.1 192.168.10.10 C3560(config)#ip dhcp pool vlan20_dhcpC3560(dhcp-config)#network 192.168.20.0 255.255.255.0C3560(dhcp-config)#default-router 192.168.20.1C3560(dhcp-config)#dns-server 114.114.114.114C3560(dhcp-config)#exitC3560(config)#ip dhcp excluded-address 192.168.20.1 192.168.20.10 C3560(config)#ip dhcp pool vlan30_dhcpC3560(dhcp-config)#network 192.168.30.0 255.255.255.0C3560(dhcp-config)#default-router 192.168.30.1C3560(dhcp-config)#dns-server 114.114.114.114C3560(dhcp-config)#exitC3560(config)#ip dhcp excluded-address 192.168.30.1 192.168.30.10##设置三个端口fastEthernet 0/1-3为trunk知识点:VLAN的封装类型,目前有ISL和802.1q(dot1q)两种协议,ISL是思科私有的VLAN封装协议,思科部分交换机支持ISL协议,使用该协议能提高VLAN传输性能。

CISCO交换机配置实例

CISCO交换机配置实例

CISCO交换机配置实例(VTP、VLAN、TRUNK、channel)本文通过实例为大家介绍CISCO交换机的一些常用功能的配置方法,包括VTP 配置、VLAN划分、Trunk配置、channel通道配置、双工模式配置等。

掌握这些配置方法基本上可以满足CISCO交换机一般的日常维护要求了。

网络拓扑图:1、配置VTP, 设置domain为dgmobile, Sw1为server, 其它switch配置为client。

Sw1(config)# vtp mode severSw1(config)# vtp domain dgmobileSw2(config)# vtp mode client2、在Sw1建立三个vlan, 要求在其它Sw2上通过VTP可以看到同样的vlan。

vlan2:engineering,vlan6:marketing,vlan9:accouting.Sw1(config)# vlan 2Sw1(config-vlan)#name engineeringSw1(config)# vlan 6Sw1(config-vlan)#name marketingSw1(config)# vlan 9Sw1(config-vlan)#name accouting3、把sw2的端口5,8,13划入vlan2;端口3,4,9划入vlan6;端口6,7,16划入vlan9。

Sw2(config)#int range fa0/5 , fa0/8 , fa0/13Sw2(config-if-range)#switchport access vlan 2Sw2(config)#int range fa0/3 , fa0/4 , fa0/9Sw2(config-if-range)#switchport access vlan 6Sw2(config)#int range fa0/6 , fa0/7 , fa0/16Sw2(config-if-range)#switchport access vlan 94、Sw1和Sw2的23和24端口互连,配置交换机间的Trunk,用802.1q封装。

思科设备交换机vtp学习功能配置

思科设备交换机vtp学习功能配置

本次讲解交换机vtp的vlan学习功能(相对于上一期各交换机vlan配置,使用中继线相连的交换机都需要进行相应的配置。

如果更改 VLAN,所有的相关交换机也要做变更,这样工作就太大了。

采用VTP (VLAN Trunking Protocol)协议可以简化配置工作。

VTP有三种工作模式:服务器模式、客户端模式和透明(transparent)模式,默认是服务器模式。

服务器模式的交换机可以设置VLAN配置参数,服务器会将配置参数发给其他交换机。

客户端模式的交换机不能设置VLAN配置参数,只能接受服务器模式的交换机发送的VLAN配置参数。

透明模式的交换机是相对独立的,它允许设置VLAN配置参数,但不向其他交换机发送自己的配置参数。

当透明模式的交换机收到服务器模式的交换机发送的VLAN配置参数时,仅仅是简单地转发给其他交换机,并不用来设置自己的VLAN参数。

当交换机处于VTP服务器模式时,如果删除一个VLAN,则该VLAN将在所有相同VTP的交换机上被删除。

当在透明模式下删除时,只在当前交换机上被删除)本例配置模型图命令行:SwitchA配置如下:Switch>enableSwitch#vlan database //进入vlan配置模式% 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)#vtp domain tzt //配置switchA为vtp域名为tztChanging VTP domain name from NULL to tztSwitch(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 名字为T ztBVLAN 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/4Fa0/5, Fa0/6, Fa0/7, Fa0/8Fa0/9, Fa0/10, Fa0/11, Fa0/12Fa0/13, Fa0/14, Fa0/15, Fa0/16Fa0/17, Fa0/18, Fa0/19, Fa0/20Fa0/21, Fa0/22, Fa0/23, Fa0/24Gig1/1, Gig1/22 TztA active //此处为刚才配置的vlan3 TztB active1002 fddi-default act/unsup1003 token-ring-default act/unsup1004 fddinet-default act/unsup1005 trnet-default act/unsupVLAN 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 01003 tr 101003 1500 - - - - - 0 01004 fdnet 101004 1500 - - - ieee - 0 01005 trnet 101005 1500 - - - ibm - 0 0Remote SPAN VLANs------------------------------------------------------------------------------Primary Secondary Type Ports------- --------- ----------------- ------------------------------------------Switch#conf t //进入全局模式Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int g1/1Switch(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/1 Switch(config-if)#exitSwitch(config)#exitSwitchB配置如下:Switch>enableSwitch#show vlan //查看当前已配置vlan信息。

交换机上vtp的配置

交换机上vtp的配置

任务3 在catalyst2950 交换机上配置vtp一、实验目的:掌握vtp的配置,深入了解vtp的工作原理,并掌握调试和检查方法。

二、背景描述:企业有采购部和销售部两个部门,采购部需要实时了解销售部的销售情况,以便做出合理的采购方案。

为了保持通信通畅,采购部与销售部在相同的vlan下。

三、实验拓扑结构:VTP网络拓扑图四、实验步骤:1.交换机Host name和Trunk配置Switch1>e nableSwitch1#config tSwitch1(co nfig)#host name SwitchA // SwitchA(co nfig)#i nterface faO/1SwitchA(c on fig-if)#switchport mode trunk // SwitchA(co nfig-if)#exitSwitch2>e nable更改switch1 为switchA 设置fa0/1为trunk模式更改switch2 为switchBSwitch2#config tSwitch2(co nfig)#host name SwitchB // SwitchB(config)#interface fa0/1SwitchB(config-if)#switchport mode trunk // SwitchB(config-if)#exitSwitchB(config)#interface fa0/2SwitchB(config-if)#switchport mode trunk // SwitchB(config-if)#exit 设置fa0/1 为trunk 模式设置fa0/2 为trunk 模式Switch3#config tSwitch3(config)#hostname SwitchCSwitchC(config)#interface fa0/1// 更改switch3 为switchCSwitchC(config-if)#switchport mode trunk SwitchC(config-if)#exit // 设置fa0/2 为trunk 模式Switch3>enable 2. 配置交换机的VTPSwitchA(config)#vtp domain Cisco // Change VTP domain from NULL to Cisco SwitchA(config)#vtp mode server // Device mode already VTP SERVER. 设置SwitchA 的域名为Cisco 设置vtp 为serverSwitchB(config)#vtp domain Cisco // 设置SwitchB 的域名为CiscoDomain name already ser to CiscoSwitchB(config)#vtp mode transparent // 设置vtp 为transparentSwitchC(config)#vtp domain Cisco // Change VTP domain from NULL to Cisco SwitchC(config)#vtp mode client // 设置SwitchC 的域名为Cisco 设置vtp 为client3. 验证VTPSwitchA# show vtp statusSwitchAt3haw vtp VTP VeraianCcnfiguration RevisionMaximum VLANs supported locally : 2S6:S :Server:Cisco:Di^abl&di Disabled:Disabled:0xA9 OxCB 0x52 0x12 0x94 0x71 0x£9 OxSCLocal updates ID is 0.0.0.0 ■:nc valid interface found)SwitchAtSwitchB# show vtp statusSwitchB^en^ble SuitchBtshow vtp VTF VersionCcnfiguraticn ReviHicnMaxinum VLANm supported locally Number cf exiating VLANm VTF Operaring - Mode VTF Domain Nans VTF Pruning Mede VTP V2 MadeVTP Tcaps Generation MD5 digestConfiguration last modified by SwitchB#|SwitchC# show vtp statusSwitch-C^shcw vtp srstus VTF VersionCcnfiguraticfi P.evisicnMaximuni VLAMs supperted locally Humber of existing '/LANs VTF Dperi^inj Mede VTF Domain Name VTF Pruning Me de VTP V2 Mede VTF Traps Generaticn MD5 digestConfiguraticn last modified by 0 SwirchC#| :0 :2S5 z S :Client:Cisco :Disabled :Disabled :Disabled:0xA9 0X C8 0K 52 0X 12 0X 94 0X 71 0x^9+ 0.0*0 at 0-0-00 00:00:00Ccnfiguraticn lasr modified by0.0.0.0ar 0-0-0000:00:00tTumbez of existing ^TANs VTP Opecoting Mede VTP Oqjnain VTP Pruning Mode VTP V2 Mede VTP Traps {Jeneration MDS digest:2SS :5Transparent :Cisco Disabled Dinabled Disabled0xA9 QxCB 0xS2 0x1: 094 0x71 QxZS QxSC4•配置交换机的vlan,并验证vtp各模式的特点(1) SwitchA交换机vlan的配置SwitchA# vlan database SwitchA(vlan)#vlan 2 // SwitchA(vlan)#vlan 3 //SwitchA(vlan)#exit(2) SwitchB 交换机 vlan 的配置 SwitchB# vlan databaseSwitchB(vlan)#vlan 4 // SwitchB(vlan)#vlan 5 //SwitchB(vlan)#exit6.在交换机 SwitchC 上 show vlan ,结果是 SwitchC 加入了 vlan2 , vlan3,如下图所示:5.配置交换机的 vtp 口令 (1) SwitchA 交换机 vtp 口令配置: SwitchA# config tSwitchA(config)#vtp password cisco SwitchA(config)#exit (2) SwitchB 交换机 vtp 口令配置: SwitchB# config t SwitchB(config)#vtp password cisco SwitchB(config)#exit (3) SwitchC 交换机 vtp 口令配置: SwitchC# config t SwitchC(config)#vtp password cisco SwitchC(config)#exit // 设置 vtp 密码为 cisco// 设置 vtp 密码为 cisco// 设置 vtp 密码为 cisco新建 vlan2 新建 vlan3新建 vlan4 新建 vlan5r VTP Client ?Physical Config ) CLIIOS Command Line Interfacen w 亠LT-riiZIM X JL-I H IT 丄■-Na.zDiz百七口P 口:rf■1d-ef eu.lt activeFaO/JL, Fa0/3p Fa0-/4r FaO/SFsOZ€, FaO/7.FaO/3FaO/10r Fa0/ll…. FaO/12,FaO/13FaO/14, FaO/l£p FaO/lfi,FaQ/17FaO/lB, FaO/13. FaO/20,F*O/22, Faa/23,. F*O/24FaO/2X z1^LAN0002active3VUUST0003ac t iiu p e1002 f dd.±—-daf aigrt/u-Tiaup1003c-a k*n-£ 丄ng— defaixl 匚A et/unaup10-0-4 f d.d.ina 七—da f at口JLt a iTt/11 Fl a up1005t me t - <le f au.1 匸aet/unsupT^pa SAID MTU Paxrenx; SfexnyTJo Brl-dgeNo Stp B■若旦Gtcd 冒Tran al Trans^ 1ono七10QQG1l&QQ—— -一一O02enet 100Q口21500= = =- = 00□■anst 10QQQ31B0Q- - -- - 00二1QQ2ra<ii laioaz15QQ- - -一一Q0■=Copy | PasteL. -J在SwitchA上新建vlan 6,发现SwitchC上的vlan与SwitchA实现同步更新: SwitchA# vla n database SwitchA(vlan)#vlan 6 // 新建vlan6SwitchA(co nfig)#exitSwitchC的show vlan结果如下图:。

思科Cisco交换机配置——VTP管理交换机的VLAN配置实验操作详解

思科Cisco交换机配置——VTP管理交换机的VLAN配置实验操作详解

思科Cisco交换机配置——VTP管理交换机的VLAN配置实验操作详解本⽂讲述了思科Cisco VTP管理交换机的VLAN配置。

分享给⼤家供⼤家参考,具体如下:⼀、实验⽬的:将S1配置成VTP-Server,S2配置成VTP-Transparent,S3配置成VTP-Client,S4配置成VTP-Client⼆、拓扑图如下三、具体步骤:(1)S1交换机的配置Switch>enable --进⼊特权模式Switch#config terminal --进⼊全局配置模式Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S1 --修改交换机名为S1S1(config)#vtp domain test --创建test域Changing VTP domain name from NULL to testS1(config)#vtp mode server --设置S1为ServerDevice mode already VTP SERVER.S1(config)#vlan 7 --创建并进⼊vlan 7端⼝,并开启S1(config-vlan)#vlan 8 --创建并进⼊vlan 8 端⼝,并开启S1(config-vlan)#interface f0/1 --进⼊f0/1端⼝S1(config-if)#switchport mode trunk --将端⼝改为trunk模式S1(config-if)#%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up(2)S2交换机的配置Switch#enable --进⼊特权模式Switch#config terminal --进⼊全局配置模式Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S2 --修改交换机名为S2S2(config)#vtp mode transparent --将S2设置为TransparentDevice mode already VTP TRANSPARENT.S2(config)#interface range f0/1-2 --进⼊f0/1和f0/2端⼝S2(config-if)#switchport mode trunk --将端⼝改为trunk模式(3)S3交换机配置Switch#enable --进⼊特权模式Switch#config terminal --进⼊全局配置模式Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S3 --修改交换机名为S3S3(config)#vtp mode client --将S3设置为ClientDevice mode already VTP CLIENT.S3(config)#interface range f0/1-2 --进⼊f0/1和f0/2端⼝S3(config-if)#switchport mode trunk --将端⼝改为trunk模式(4)S4交换机配置Switch#enable --进⼊特权模式Switch#config terminal --进⼊全局配置模式Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S4 --将交换机名修改为S4S4(config)#vtp mode client --将S4设置为ClientDevice mode already VTP CLIENT.S4(config)#interface f0/1 --进⼊f0/1端⼝S4(config-if)#switchport mode trunk --将端⼝改为trunk模式四、验证,分别在各台交换机上查看VLAN(1)S1(2)S2解释:S2因为是隐藏模式,所以看不见vlan 7 和 vlan 8(3)S3解释:S3是客户端模式所以可以查看到vlan 7 和vlan 8(4)S4解释:S4因为是客户端模式,所以可以查看到vlan 7 和 vlan 8。

实验8 CISCO交换机VTP配置

实验8 CISCO交换机VTP配置

实验8 CISCO交换机VTP配置【实验目的】1、掌握VTP的配置。

2、掌握三层交换机的配置。

【实验任务】1.配置两个VLAN:VLAN2、VLAN 3并为其分配静态成员。

2.测试VLAN分配结果。

3. 通过三层交换机VLAN网关的配置,可实现跨VLAN的相互访问。

【实验设备】Cisco三层交换机1台,Cisco二层交换机1台,PC 机6台,连接线若干条。

【实验拓扑图】【实验要求】在交换机S-3550上划分2个VLAN:VLAN2、VLAN3。

两台交换机的端口1为Trunk 口。

交换机S-3550的VLAN、端口和计算机的划分:交换机S-2950的VLAN、端口和计算机的划分:【实验步骤】1、按照拓扑图把相应的设备连接好。

2、配置交换机S3550的VTP模式:Server模式、域名MYVTP、密码CISCO。

3、在交换机S3550上创建VLAN2、VLAN3。

4、把交换机S3550的端口2、3划分到VLAN2中。

5、把交换机S3550的端口4、5划分到VLAN3中。

6、查看S3550已经划分好的VLAN及相应的端口7、把交换机S3550端口1配置为主干道trunk模式8、配置交换机S2950的VTP模式:Client模式、域名MYVTP、密码CISCO9、查看S2950的VLAN划分情况10、把交换机S2950端口2、3划分到VLAN2中11、把交换机S2950端口1配置为主干道trunk模式12、配置各台PC机的IP地址、子网掩码(注意:同一VLAN的PC机必须处于同一个子网内)13、测试各台PC间的连通性(测试可得,同一VLAN的PC可以ping通,但不同VLAN的PC机不可以ping通)14、在交换机S3550上配置三层交换机,分别把VLAN2、VLAN3的网关(即VLAN的IP地址)设置为10.2.0.254/24、10.3.0.254/2415、配置各台PC机的网关(注意:处于哪一个VLAN内的PC机就必须配置其网关为对应VLAN的网关)16、再次测试各台PC间的连通性(测试可得,无论是相同VLAN或者不同VLAN的PC都可以ping通,即可以实现不同VLAN间的通信)。

vtp说明

vtp说明

Device mode already VTP SERVER.
Switch0(config)#vtp domain vtp1 *设置vtp域名称
Changing VTP domain name from NULL to vtp1
Switch0(config)#vtp password vtp *设置vtp域的密码
Switch0#show vtp status *显示vtp的配置结果
VTP Version : 2
Configuration Revision : 1
Maximum VLANs supported locally : 1005
Switch(config-if)#switchport trunk allowed vlan except 3 *除vlanID为3的vlan不允许通过其他都可以通过
Switch(config-if)#switchport trunk allowed vlan none *不允许任何vlan通过
switch(config)#vtp mode client
配置VTP透明模式
switch(config)#vtp domain domain-name
switch(config)#vtp mode transparent
Server模式配置过程
Switch0(config)#vtp mode server *设置为server模式
VTP V2 Mode : Enabled
VTP Traps Generation : Disabled
MD5 digest : 0x87 0xF5 0xCC 0x62 0x0D 0x7E 0x44 0xDF
  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Cisco交换机vtp配置实验环境:cisco Packet Tracer5.3拓扑图:1.Ds的配置Switch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname Ds1Ds1(config)#vtp domain jvtcChanging VTP domain name from NULL to jvtcSwitch(config)#vtp mode serverDs1(config)#interface gigabitEthernet 0/1Ds1(config-if)#switchport mode accessDs1(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to down%LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet0/1, changed state to upDs1(config-if)#exitDs1#show vtp statusVTP Version : 2Configuration Revision : 0Maximum VLANs supported locally : 1005Number of existing VLANs : 5VTP Operating Mode : ServerVTP Domain Name : jvtcVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x97 0x15 0xF7 0x52 0x62 0x24 0x0B 0xECConfiguration 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)Ds1#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]Ds1#2.As1的配置Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname As1As1(config)#interface gigabitEthernet 1/1As1(config-if)#switchport mode trunkAs1(config-if)#exitAs1(config)#interface gigabitEthernet 1/2As1(config-if)#switchport mode trunkAs1(config-if)#exitAs1(config)#vtp domain jvtcDomain name already set to jvtc.As1(config)#vtp mode clientSetting device to VTP CLIENT mode.As1(config)#exitAs1#show vtp statusVTP Version : 2Configuration Revision : 0Maximum VLANs supported locally : 255Number of existing VLANs : 5VTP Operating Mode : ClientVTP Domain Name : jvtcVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x97 0x15 0xF7 0x52 0x62 0x24 0x0B 0xECConfiguration last modified by 0.0.0.0 at 0-0-00 00:00:00As1#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]As1#3.As2的配置Switch>enSwitch#conf tEnter configuration commands, one per line. End with CNTL/Z. Switch(config)#hostname As1As1(config)#interface gigabitEthernet 1/1As1(config-if)#switchport mode trunkAs1(config-if)#exitAs1(config)#vtp domain jvtcDomain name already set to jvtc.As1(config)#vtp mode clientSetting device to VTP CLIENT mode.As1(config)#exitAs1#show vtp statusVTP Version : 2Configuration Revision : 0Maximum VLANs supported locally : 255Number of existing VLANs : 5VTP Operating Mode : ClientVTP Domain Name : jvtcVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x97 0x15 0xF7 0x52 0x62 0x24 0x0B 0xECConfiguration last modified by 0.0.0.0 at 0-0-00 00:00:00As2#copy running-config startup-configDestination filename [startup-config]?Building configuration...[OK]As2#4.vlan中继查看Ds1#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.Ds1(vlan)#vlan 10VLAN 10 added:Name: VLAN0010Ds1(vlan)#vlan 20VLAN 20 added:Name: VLAN0020Ds1(vlan)#vlan 30VLAN 30 added:Name: VLAN0030Ds1(vlan)#vlan 40VLAN 40 added:Name: VLAN0040Ds1(vlan)#exitAPPLY completed.Exiting....As1#show vtp statusVTP Version : 2Configuration Revision : 4Maximum VLANs supported locally : 255Number of existing VLANs : 9VTP Operating Mode : ClientVTP Domain Name : jvtcVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x4A 0xDC 0x4A 0x49 0x15 0xD9 0x91 0xF7Configuration last modified by 0.0.0.0 at 3-1-93 00:42:47#As2#show vtp statusVTP Version : 2Configuration Revision : 4Maximum VLANs supported locally : 255Number of existing VLANs : 9VTP Operating Mode : ClientVTP Domain Name : jvtcVTP Pruning Mode : DisabledVTP V2 Mode : DisabledVTP Traps Generation : DisabledMD5 digest : 0x4A 0xDC 0x4A 0x49 0x15 0xD9 0x91 0xF7Configuration last modified by 0.0.0.0 at 3-1-93 00:42:47As2#。

相关文档
最新文档