CCNA ---LAB3

1.实验目的

 

  • 掌握VTP基本操作
  • 掌握trunk的配置
  • 理解VTP角色之间的区别

     

2.拓扑与需求

拓扑:

需求:

  1. S1,2,3之间的线路需配置为trunk,采用Dot1q封装协议
  2. S1为 VTPServer 模式,S2为VTP transparent模式,S3为VTP Client模式,Domain名为xia ,VTP密码为Xia@0,使用VTP版本为2
  3. 在S1上创建VLAN10 名字为VTP-Server ,在S2上创建VLAN20 名字为VTP-transparent,观察S1-3的VLAN数据库状态,以及VTP 状态

     

3.配置与实现

1.S1,2,3之间的线路需配置为trunk,采用Dot1q封装协议

S1-S2

Switch(config)#int e0/0
Switch(config-if)#switchport trunk encapsulation dot1q 
线路配置为trunk,采用Dot1q封装协议
Switch(config-if)#SWitchport mode trunk
接口配置为trunk

S2-S3同理,接口为e0/1与e0/0

 

2.S1为 VTPServer 模式,S2为VTP transparent模式,S3为VTP Client模式,Domain名为xia ,VTP密码为xia,使用VTP版本为2

S1

S1(config)#vtp mode server 
Device mode already VTP Server for VLANS.
S1(config)#vtp domain xia
Changing VTP domain name from NULL to xia
S1(config)#
*Apr 20 07:30:03.167: %SW_VLAN-6-VTP_DOMAIN_NAME_CHG: VTP domain name changed to xia.
S1(config)#vtp p
S1(config)#vtp pas       
S1(config)#vtp password xia
Setting device VTP password to xia
S1(config)#vtp ve
S1(config)#vtp version 2
S1(config)#


S2

S2(config)#vtp mode transparent 
Setting device to VTP Transparent mode for VLANS.
S2(config)#vtp domain xia
Changing VTP domain name from NULL to xia
S2(config)#
*Apr 20 07:33:19.461: %SW_VLAN-6-VTP_DOMAIN_NAME_CHG: VTP domain name changed to xia.
S2(config)#vtp password xia
Setting device VTP password to xia
S2(config)#vtp version 2

S3
S3(config)#vtp mode c
Setting device to VTP Client mode for VLANS.
S3(config)#vtp domain xia
Changing VTP domain name from NULL to xia
S3(config)#v
*Apr 20 07:34:09.630: %SW_VLAN-6-VTP_DOMAIN_NAME_CHG: VTP domain name changed to xia.
S3(config)#vtp password xia
Setting device VTP password to xia
S3(config)#vtp version 2
Cannot modify version in VTP client mode unless the system is in VTP version 3
S3(config)#

3.在S1上创建VLAN10 名字为VTP-Server ,在S2上创建VLAN20 名字为VTP-transparent,观察S1-3的VLAN数据库状态,以及VTP 状态

S1

S1(config)#vlan 10
S1(config-vlan)#name VTP-Server

S2

S2(config)#vlan 20
S2(config-vlan)#name VTP-Transparent

S1-3的VLAN数据库状态

S1状态如下:
S1#show vlan br

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Et0/1, Et0/2, Et0/3
10   VTP-Server                       active    
1002 fddi-default                     act/unsup 
1003 trcrf-default                    act/unsup 
1004 fddinet-default                  act/unsup 
1005 trbrf-default                    act/unsup 


S2状态如下:

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Et0/2, Et0/3
20   VTP-Transparent                  active    
1002 fddi-default                     act/unsup 
1003 trcrf-default                    act/unsup 
1004 fddinet-default                  act/unsup 
1005 trbrf-default                    act/unsup 

S3状态如下:


VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Et0/2, Et0/3
10   VTP-Server                       active    
1002 fddi-default                     act/unsup 
1003 trcrf-default                    act/unsup 
1004 fddinet-default                  act/unsup 
1005 trbrf-default                    act/unsup 

 

 

VTP状态如下:

S1

S1#show vtp status 
VTP Version capable             : 1 to 3
VTP version running             : 2
VTP Domain Name                 : xia
VTP Pruning Mode                : Disabled
VTP Traps Generation            : Disabled
Device ID                       : aabb.cc80.1000
Configuration last modified by 0.0.0.0 at 4-20-21 07:46:03
Local updater ID is 0.0.0.0 (no valid interface found)

Feature VLAN:
--------------
VTP Operating Mode                : Server
Maximum VLANs supported locally   : 1005
Number of existing VLANs          : 6
Configuration Revision            : 2
MD5 digest                        : 0xCF 0x0E 0x74 0xC3 0x05 0x66 0x1C 0xB2 
                                    0x12 0xF7 0x8C 0x92 0x5F 0x7B 0xFE 0x22 

S2

S2#SHOW VTP Status 
VTP Version capable             : 1 to 3
VTP version running             : 2
VTP Domain Name                 : xia
VTP Pruning Mode                : Disabled
VTP Traps Generation            : Disabled
Device ID                       : aabb.cc80.2000
Configuration last modified by 0.0.0.0 at 0-0-00 00:00:00

Feature VLAN:
--------------
VTP Operating Mode                : Transparent
Maximum VLANs supported locally   : 1005
Number of existing VLANs          : 6
Configuration Revision            : 0
MD5 digest                        : 0x38 0x87 0xA3 0x56 0x2C 0x93 0x69 0x8B 
                                    0x03 0xE0 0x34 0xBB 0xCF 0xD1 0x00 0xDF 

S3

S3#SHOW VTP Status 
VTP Version capable             : 1 to 3
VTP version running             : 2
VTP Domain Name                 : xia
VTP Pruning Mode                : Disabled
VTP Traps Generation            : Disabled
Device ID                       : aabb.cc80.3000
Configuration last modified by 0.0.0.0 at 4-20-21 07:46:03

Feature VLAN:
--------------
VTP Operating Mode                : Client
Maximum VLANs supported locally   : 1005
Number of existing VLANs          : 6
Configuration Revision            : 2
MD5 digest                        : 0xCF 0x0E 0x74 0xC3 0x05 0x66 0x1C 0xB2 
                                    0x12 0xF7 0x8C 0x92 0x5F 0x7B 0xFE 0x22 

实验中一些需要注意的点:

  • MD5验证问题
  • S3中的VTP-client的版本问题,都属于正常现象b

 

 

 

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值