How Configuration Virtual Local Area Network(V-LAN) - Trunking
Trunk or Trunking is a concept whereby the communication system can provide network access for clients that much to share one frequency, not of giving invidually.
from the definition above, if connected with computer network concept that can said as the concept of shared access across a network by using a network device. Its more simple, trunk concept restrict access among one network to other network.
On Cisco Devices, VTP (VLAN Trunking Protocol) maintains VLAN configuration consistency across the entire network. VTP uses Layer 2 trunk frames to manage the addition, deletion, and renaming of VLANs on a network-wide basis from a centralized switch in the VTP server mode. VTP is responsible for synchronizing VLAN information within a VTP domain and reduces the need to configure the same VLAN information on each switch.
However, in order that the concept of trunk to easier understand. Then I will provide a example for VTP(V-LAN Trunking Protocol) configuration with packet tracer below:
Above The Switch Configuration
switch-above#configure terminal
switch-above#vlan10
switch-above(config-vlan)#
switch-above(config-vlan)#vlan20
switch-above(config-vlan)#name costumerswitch-above(config)#int fa0/1
switch-above(config-if)#switchport access vlan10
switch-above(config)#int fa0/2
switch-above(config-if)#switchport access vlan10switch-above(config)#int fa0/3
switch-above(config-if)#switchport access vlan20
switch-above(config)#int fa0/4
switch-above(config-if)#switchport access vlan20switch-above(config)#int fa0/24
switch-above(config-if)#switchport mode trunk
switch-above(config)#vtp mode server
switch-above(config)#vtp domain tes456
switch-above(config)#vtp password secure
Under The Switch Configuration
switch-above(config)#vtp mode client
switch-above(config)#vtp domain tes456
switch-above(config)#vtp password secureswitch-above(config)#int fa0/24
switch-above(config-if)#switchport mode trunkswitch-above(config)#int fa0/1
switch-above(config-if)#switchport access vlan10
switch-above(config)#int fa0/2
switch-above(config-if)#switchport access vlan10switch-above(config)#int fa0/3
switch-above(config-if)#switchport access vlan20
switch-above(config)#int fa0/4
switch-above(config-if)#switchport access vlan20
For Verification
#show vlan
#Show int trunk
#show int status