拓朴图建立完成,先把交换机之间相连的端口配置成trunk模式。(这个不会的话就别往下看了)
配置一台交换机为vtp服务器(我选的Switch0)
Switch>enable //进入特权模式
Switch#configure terminal //进入全局模式
Switch(config)#vtp mode server //配置vtp服务器
Switch(config)#vtp domain xxhh //配置域名 vtp domain 域名
Switch(config)#vtp password 123456 //配置密码 vtp password 密码
配置一台交换机为vtp客户端(我选的Switch2)
Switch>enable
Switch#configure terminal
Switch(config)#vtp mode client //配置vtp客户端
Switch(config)#vtp domain xxhh
Switch(config)#vtp password 123456
配置一台交换机为vtp透明模式(我选的Switch1)
Switch>enable
Switch#configure terminal
Switch(config)#vtp mode transparent //配置vtp透明模式
Switch(config)#vtp domain xxhh
Switch(config)#vtp password 123456
所有交换机都与服务器的domain相同,设置密码与相同