组网技术 | VTP实验
VTP实验
VTP
是指(Vlan Trunk Protocol)
它的作用就是可以在有大量交换设备,需要配置类似的vlan划分的时候,简化配置过程,使各个交换机互相学习Vlan Database。
VTP模式
Server(默认)服务器模式,创建VLAN 删除VLAN 修改VLAN 始发VTP 转发VTP 学习VTP
Client 客户端模式 不能创建 不能删除 不能修改 不始发 转发 学习
transparent透明模式 创建VLAN 删除VLAN 修 改VLAN 不始发 转发 不学习
设置vtp模式、域名、密码
SW1(config)#vtp mode server //启动vtp server模式
SW1(config)#vtp domain VtpTest //设置vtp域名
SW1(config)#vtp password aaa //设置vtp密码
设置交换机端口安全
Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security //非常重要! 开启端口安全
Switch(config-if)#switchport port-security maximum 1
Switch(config-if)#switchport port-security mac-address sticky

浙公网安备 33010602011771号