Topology:
Interface:
Client-f0/3-f0/1-transparent-f0/2-f0/3-Server
PC Configuration:
PC0:192.168.1.1 vlan 2 f0/1
PC1:192.168.1.2 vlan 3 f0/2
PC2:192.168.1.3 vlan 2 f0/1
PC3:192.168.1.4 vlan 3 f0/2
Switch Configuration:
Server Switch:
Server>enable
Server#configure terminal
Server(config)#vtp domain domain name
Server(config)#vtp password password
Server(config)#vtp mode server
Server(config)#vlan 2
Server(config-vlan)#name vlan 2 name
Server(config-vlan)#exit
Server(config)#vlan 3
Server(config-vlan)#name vlan 3 name
Server(config-vlan)#exit
Server(config)#int f0/1
Server(config-if)#switchport mode access
Server(config-if)#switchport access vlan 2
Server(config-if)#exit
Server(config)#int f0/2
Server(config-if)#switchport mode access
Server(config-if)#switchport access vlan 3
Server(config-if)#exit
Server(config)#int f0/3
Server(config-if)#switchport trunk encapsulation dot1q
//define encapsulation, some versions of the IOS can not use this command
Server(config-if)#switchport mode trunk
Server(config-if)#exit
Client Switch:
Client>enable
Client#configure terminal
Client(config)#vtp domain domain name(same with Server Switch)
Client(config)#vtp password password(same with Server Switch)
Client(config)#vtp mode client
Client(config)#int f0/3
Client(config-if)#switchport trunk encapsulation dot1q
//define encapsulation, some versions of the IOS can not use this command
Client(config-if)#swichport mode trunk
Client(config-if)#exit
transparent Switch:
transparent>enable
transparent#vlan database
transparent(vlan)#vtp transparent
transparent(vlan)#exit
transparent#vtp domain domain name(same with Server Switch)
transparent#vtp password password(same with Server Switch)
/*no trunk configuration*/
Finish!