闫辉 发表于 2020-11-13 16:26:46

思科VLAN同步实验:

本实验描述有关如何配置VLAN中继协议 (VTP) 的信息。VTP 可简化交换网络中的管理。在一台 VTP 服务器上配置新的 VLAN 时,该 VLAN 将通过域中的所有交换机进行分发。这样可以减少在各处配置相同 VLAN 的需求。VTP 是一种 Cisco 专有协议,适用于大多数 Cisco Catalyst 系列产品 https://upload-images.jianshu.io/upload_images/24325874-383c3c29cb3e34da.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


实验要求:全局配置vtp,SW1为VTP服务器,SW2为VTPclient实验准备,先在SW1看一下VTP的信息
https://upload-images.jianshu.io/upload_images/24325874-46802d9de31b5ea0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


上图信息: VTP Version capable    : 1 to 3                     支持的版本1 to 3VTP version running    : 1                           目前运行的是版本1VTP Domain Name:域名为空VTP Pruning Mode: Disabled                           Mode修剪没有开启VTP Operating Mode   : Server                     当前模式为server模式Maximum VLANs supported locally   : 1005             共支持1005个vlanNumber of existing VLANs       : 5               当前只有5个存在。Configuration Revision : 0                            配置寄存器的值为0MD5 digest         : 0x57 0xCD 0x40 0x65 0x63 0x59 0x47 0x 实验开始:部署VTP之前先将两台sw之间的级联链路改为trunk模式。 https://upload-images.jianshu.io/upload_images/24325874-985bcb1378aae81b.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


上图为SW1,下图为SW2配置
https://upload-images.jianshu.io/upload_images/24325874-f946909d724f4df4.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


做完trunk之后,在任何一个switch上写入域名,另外一个为空域名的交换机自动同步vtp domain cisco配置域名为ciscovtp password cisco配置密码为cisco (此处没有配置,注意配置秘钥,需两端秘钥一致。)vtp client配置vtp模式为客户端模式
https://upload-images.jianshu.io/upload_images/24325874-b93b7fcaadc56b72.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


验证:SW2发现域名已经同步为Cisco
https://upload-images.jianshu.io/upload_images/24325874-08bd17f3cfc7c493.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


如果再次修改SW1的域名,SW2因为已经有了域名,就不会再重复学习,如果想让SW2继续同步,可以启用vtp 版本2 ,然后启用vtp 剪裁。SW1启用vtp 版本2启用 pruning
https://upload-images.jianshu.io/upload_images/24325874-0c42eace49b3c788.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


sw2同样
https://upload-images.jianshu.io/upload_images/24325874-177a29523e5b2e8c.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


验证:
https://upload-images.jianshu.io/upload_images/24325874-f25e31bef3caa9ef.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


SW1SW2现在都是vtp版本2
https://upload-images.jianshu.io/upload_images/24325874-7475859e609648a0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


现在SW1更改域名,SW2会同步。----------------------------------------------------------------------------------------------------------------------------开启vlan同步将SW1设置为Server模式, SW2为Client模式因SW1默认为Server模式,这里我就不配置了。命令:vtp mode serverSW2 Client模式
https://upload-images.jianshu.io/upload_images/24325874-94c51361702fe36f.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


检查SW2上面的vlan,只有默认的五个vlan存在
https://upload-images.jianshu.io/upload_images/24325874-70d41ff43be558b0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


检查SW1上面的VLAN,只有默认的五个vlan存在
https://upload-images.jianshu.io/upload_images/24325874-c557df04453a4d35.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


在SW1上面创建两个VLAN。VLAN100 VLAN200
https://upload-images.jianshu.io/upload_images/24325874-a4c215c2d708e009.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


验证SW2已经同步了vlan和修订号
https://upload-images.jianshu.io/upload_images/24325874-8a4827fdf3e639f0.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


SW2 VLAN信息
https://upload-images.jianshu.io/upload_images/24325874-5965ea5335748020.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240


页: [1]
查看完整版本: 思科VLAN同步实验: