Configuring VTP
Configuring VTP
In this lab exercise you’ll be configuring VTP (VLAN Trunk Protocol) server and client mode on Cisco Switches. Create a
topology like shown below:
In this lab SW1 will be the VTP server for VTP domain – PyNet.
SW1(config)#int fa 0/2
SW1(config-if)#switchport mode trunk
For SW1 – interface fa 0/2, for SW2 – interface fa 0/1 and interface fa 0/2 and for SW3 – interface fa 0/1.
Now, let’s configure the VTP domain. Use the commands below to configure SW1 as the server.
Go to the global configuration mode of SW1 and set the domain name to PyNet.
SW1(config)#
SW1(config)#vtp domain PyNet
Changing VTP domain name from NULL to PyNet
Now, I’ll change the mode of SW2 and SW3 using the command ‘vtp mode client’.
SW2:
SW2(config)#
SW2(config)#vtp mode client
Setting device to VTP CLIENT mode.
SW2(config)#
SW 3:
SW3(config)#
SW3(config)#vtp mode client
Setting device to VTP CLIENT mode.
The next step is to create VLAN 10 on the VTP server and check if it replicates the data base on our VTP Clients.
SW1(config)#
SW1(config)#vlan 10
SW1(config-vlan)#name Sales
You’ll observe VLAN 10 automatically appearing in the VLAN database of Client switches. You can check the details by
using the command ‘show vlan brief’ in the enable mode.
Assign interfaces to the VLAN 10 on SW1 and SW3 and then try to ping from PC 0 to PC 1.
C:\>ping 192.168.1.2
Pinging 192.168.1.2 with 32 bytes of data:
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Reply from 192.168.1.2: bytes=32 time<1ms TTL=128
Ping statistics for 192.168.1.2:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms