Switch>en Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vlan 10 Switch(config-vlan)#exit Switch(config)#vlan 20 Switch(config-vlan)#exit Switch(config)#int f0/1 Switch(config-if)#switchpo Switch(config-if)#switchport mode trunk ;对连接交换机的端口使用中继链路 Switch(config)#vtp mode server ;将此交换机设置为vtp server Device mode already VTP SERVER. Switch(config)#vtp domain d1 ;新建一个名为d1的域 Changing VTP domain name from NULL to d1 Switch(config)#vtp password 123.com ;vtp密码 Setting device VLAN database password to 123.com Switch(config)#exit
sw2
1 2 3 4 5 6 7 8 9 10 11 12 13
Switch>ena Switch#conf t Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#vtp mode client ;将此交换机设置为vtp client Switch(config)#vtp domain d1 Changing VTP domain name from NULL to d1 Switch(config)#vtp password 123.com Setting device VLAN database password to 123.com Switch(config)#exit Switch(config)#int f0/3 Switch(config-if)#switchport mode trunk ;对连接交换机的端口使用中继链路 Switch(config-if)#exit Switch(config)#do sh vlan