CCNA
当前位置:首页 > 学习资料 > CCNA >

CCNA实验手册 03——VTP

更新时间:2018年11月20日   作者:spoto

03-VTP - 需求

实验目的

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

拓扑与需求

拓扑:

需求:

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状态



03-VTP - 答案

配置与实现

 

 
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

 

 
2. 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

 

 
3. 在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校验不一致也是正常现象

CCNA5Ux7R35lxzxVieI8dQpZpOFF0Z8tRwqQpxX1SlONWVLkl7Oi6jnKFZO%0AdVzfspRsrnqZt4kca4vizMsLRzqpTw8qFTkquFWnTgvqNCpCtKjyT9jh5VpVJU68%0AZTrSqP2MoKKufkV+1L4W/ZZ8Hv4a0b4CeGPi94T8VB5ZNatfilDp1ufIIUQNbR2U%0AccmS4kDmQYwBt5zXyJX7c/8ABST4waNrP7L/AOz38F/if8dvC/7Tf7WHg7XrzUtY%0A8S+FvIu7ew02RJ4/sLX0McSvK8hgLoEViYN0qgrGz/iNX9f+Cud4nMMgpV8XCamp%0A1I805SnzqM5JVIynCnN05rWHNCL5bbrV/wB5fR34jxmacL0cTjqc1NVKsOapOdT2%0AkYVJRjVhOpTo1JU6iXNT5qcXy23VpP8Ae/4Rf8E3f2VTq/wM/Z5+MWpfEnXv2ovj%0Ax4Rj8ZXkvhOK1OkeFrKYO0JvS8Up2s6/Z5ZN0qmQLjyRJGzfnz8T/wDgnt8fvh34%0Aa+MvjiwsrLxv4Q+B/i658J602mzK+oQtFKEhu5bIFpY7e5V4pEwzMFlUkbQzL+++%0Ak/tOaD8cfh3+yt49+G/7VXw6/Z3+GPhu10O6+MNve6gtn4sf+w2R49JRiI5ZLO4m%0ASaFT+6MqOWTzY5Hgk+VP2ev2ufgt8KPit+2X/wAFCfG/xTiutB+LWvtoXhr4YaPf%0A2smsarZLdRrFqd3pskweAwQRloWnEZUNcAHbJGJP474R8VuPcNUx2LnGdaouVPDz%0AjObdd4hw9jBqEI0PaU3NxUXUhTp0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fFr9krwB8Svjyfix4K8b+HvHWp+I/Ez%0AaXYWEF2NLW1v9Pmk+zIUhFpYSSxZtnUT7PMdDn5f8w/E7x68ScrznF4bB4zDKDqY%0At0abo1HN0cM67b5/Z+ylJRouLjGo588oqUV73L/jb4x/Sc8Xclz/AB2DwGPwipur%0AjpYek6FWVR4fCSxLb9oqXsJzUcO4uEazqKcoKcY+/wAn4Uf8OCP2xP8AopPw0/8A%0ABhqn/wAp6P8AhwR+2J/0Un4af+DDVP8A5T1++uj/ALQmu/G74/8Ag/w18DviIifC%0AP4gfBbVPFun6p9iiljXU59StLPT7swzpFdlrZRcb7ZmRCflkUMAR4P8As+fHj4lR%0A/tjeGfgRpv7YWlftr+BvEHhHUdY8Q3Fnp+l28nh650+WGKOQXGkgROt1LMImglLN%0AHwc/MM/CYf6TPipLD4irUxWGhUo0nWlTlQqKajHn5lJqm6cJrkl7tScHJ2jG8nY/%0AM8N9MTxqnhcXWq43CU6tCg8ROjLDVVUUI+05lJqk6VOa9nK0KtSm5O0Yc03yn8YF%0AFf0o/Bf/AIJkfsnyeB/gBr3jbx94C+JFtH4a8beIPFerafr+pRwa3FYzxw2E9oYn%0AiSKz0cOw1B0WNllCqwlG7H87vj/wpB4F8beKPB1r4q0vxxbeG72W0j1jRJTPYXix%0AtgTW8jKheJxypKiv9HfDvxoyfifF4vB5YqnNQvzOcHFO1SpS93VvenzWkovlnDTm%0A54w/1s8KfpCZBxljsdl+TxqqeGvzOpTcIytWq0XyttvelzWkovkqQ05ueMOQooor%0A9aP3IKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigA%0AooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigA%0AooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigA%0AooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAP/0Pyz/Yb8TfFub/gn1+z9%0A8O9M/Ydh/at+Emu6Trc9zcT61pFrEL4+IdZVraWy1PblUjWORbhC2C5AXK5rntd/%0A4J4ftQr8Av2fvhj4X0c+EjcfEDxIda0jSdZiuYPCvgzxfGLW8slnvpVe/NtbNIx8%0AoSs8jM22RzuP3j/wR+/5R1fs8f8Ace/9Pup1+llf4OeIXjjmGQcXZ5h8rwlGPLjs%0ATOTftp+0kp16alKEqzpp8tSWtOEL6J3jdP8A5mPFP6SGa8L8d8R4XJsFQhyZljJy%0AcvrE/azVTE0lKcJ15UlLlrS1pU6d9E7xvF/j5+y5+y38cP2Uvjn+1X4i0X4dN4y+%0AEPhTw8+n/CLTE1K0ha5tru9utYl0yEyTM1qEvLkwtNdqm4qjZdRkdJ4J+CPxZ+KP%0A7WvwT+Pd5+ytpP7H3hr4M22qrqtymoWNzq/iI6jbGGO0ePSHNv8AZLaQ+dvundi3%0AEarlt36v0V+VZh445nisRisdWoU3ia9L2Mqn71S5XS9jN8qq+zlOonKU5ThL95OU%0A4qL5bfiWa/SQzjG4rG5jiMNReLxND6vOsvbqXI6HsKj5FW9jKdWLnOcqlOf72pOp%0ABRfLy/zT2v8AwVW/Z+sPBem2th4Y+HljrGifAm5tbbTYfCl6lpH4tv5UM3h+HAxH%0Ao7pEGuIgBbynZ/pR2kV/OR4t8QHxb4q8TeKjoun+Gj4m1C51D+ztIh+zWNr9okaT%0AyLWHLeTbxbtkUeTtQAZOK56iv93/AA08GMl4UqYmrlSnzVrcznJPZt2VktLyb1u7%0Avc/6Y/CD6PnD3BFTGVslVTmxDXM5yUrJOUrK0Y6c0m3e7u9wooor9ZP3EKKKKACi%0AiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACi%0AiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACi%0AiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACi%0AiigAooooAKKKKACiiigAooooAKKKKAP/2Q==" style="box-sizing: border-box; border: 0px; max-width: 100%;" />

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

思博SPOTO在线咨询

7天无条件退款
24小时实验室开放
全程跟踪服务
无条件免费重读