CCNA上机实验_03-VTP

1、实验目的

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

2、拓扑与需求

拓扑:
在这里插入图片描述
需求:

  1. SW1、SW2和SW3之间的线路需配置为Trunk,采用Dot1q封装协议
  2. SW1为VTP Server模式,SW2为VTP Transparent模式,SW3为VTP Client模式,Domain名为 SPOTO, VTP密码为 P@s5w0rd
  3. 在SW1上创建VLAN 10 名字为VTP-Server,在SW2上创建VLAN 20 名字为VTP-Transparent,观察SW1~3的VLAN数据库以及VTP状态

3、配置与实现

  1. SW1、SW2和SW3之间的线路需配置为Trunk,采用Dot1q封装协议

SW1 & SW2

SWX(config)#interface ethernet 0/0
SWX(config-if)#switchport trunk encapsulation dot1q 
SWX(config-if)#switchport mode trunk

SW2 & SW3

SWX(config)#interface ethernet 0/1
SWX(config-if)#switchport trunk encapsulation dot1q 
SWX(config-if)#switchport mode trunk
  1. SW1为VTP Server模式,SW2为VTP Transparent模式,SW3为VTP Client模式,Domain名为 SPOTO, VTP密码为 P@s5w0rd ,使用VTP 版本2
    SW1
SW1(config)#vtp mode server
Device mode already VTP Server for VLANS.
SW1(config)#vtp domain SPOTO
Changing VTP domain name from NULL to SPOTO
SW1(config)#vtp password P@s5w0rd
Setting device VTP password to P@s5w0rd
SW1(config)#vtp version 2

IOS默认VTP模式为Server,域名和密码为空

SW2

SW2(config)#vtp mode transparent 
Setting device to VTP Transparent mode for VLANS.
SW2(config)#vtp domain SPOTO
Domain name already set to SPOTO.
SW2(config)#vtp password P@s5w0rd
Setting device VTP password to P@s5w0rd
SW2(config)#vtp version 2

SW3

SW3(config)#vtp mode client 
Setting device to VTP Client mode for VLANS.
SW3(config)#vtp domain SPOTO
Changing VTP domain name from NULL to SPOTO
SW3(config)#vtp password P@s5w0rd
Setting device VTP password to P@s5w0rd
SW3(config)#vtp version 2
  1. 在SW1上创建VLAN 10 名字为VTP-Server,在SW2上创建VLAN 20 名字为VTP-Transparent,观察SW1~3的VLAN数据库以及VTP状态
    SW1
SW1(config)#vlan 10
SW1(config-vlan)#name VTP-Server

SW2

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

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

此处出现*** MD5 digest checksum mismatch on trunk: Et0/0 ***
消息,不需理会,SW2为透明模式,不会同步和被同步SW1的VLAN数据库,所以MD5校验不一致也是正常现象

在这里插入图片描述

查看SW1和SW3的MD5 digest部分,如果此部分完全一致,则表示VTP已经同步

发布了56 篇原创文章 · 获赞 50 · 访问量 2万+

猜你喜欢

转载自blog.csdn.net/weixin_43883625/article/details/104572428