You are on page 1of 10

c

VLAN, Port Types & VTP Lab


KHAWAR BUTT
CCIE # 12353 [R/S, SECURITY, SP, DC, VOICE, STORAGE & CCDE]
Overview
 Creating VLANs and assigning Ports to VLANs
 Configuring Trunks
c
 Configuring VTP for VLAN Propagation
Physical Network Diagram
SW1 SW2
G 0/0

G 0/0
c
G 0/1 G 0/3 G 0/1 G 0/3

VLAN 10

VLAN 20

PC1 PC2 PC3 PC4

IP : 192.168.1.51 IP : 192.168.2.52 IP : 192.168.1.53 IP : 192.168.2.54


Configuring VLANs
 Configure the VLANs required on the 2 switches. This is done by using the
“VLAN” command under global configuration mode.
 Optionally, you can also assign them names. Let’s create VLAN 10 as Red
c
and VLAN 20 as Green on both switches.

SW1 SW2

VLAN 10 VLAN 10
name Red name Red
VLAN 20 VLAN 20
name Green name Green
Assigning Ports to VLANs
 Now that the VLANs are created on both the switches, lets assign the ports
to the appropriate VLAN based on the Physical Network Diagram.

c
SW1 SW2

Interface G 0/1 Interface G 0/1


switchport mode access switchport mode access
switchport access vlan 10 switchport access vlan 10
! !
Interface G 0/3 Interface G 0/3
switchport mode access switchport mode access
switchport access vlan 20 switchport access vlan 20
Configuring a Trunk between the Switches
 All the ports in VLAN 10 ports on SW1 can communicate to each other and
all the VLAN 10 ports on SW2 can communicate to each other.
 The same holds good for VLAN 20 on
c both the switches.
 Now we need them to talk to each other. This is done by created a trunk
between the 2 switches so that the VLAN tag information is carried from
SW1 to SW2.
 This will allow PC1 on SW1 to communicate to PC3 on SW2 and PC2 on
SW1 to communicate to PC4 on SW2.
 The trunk creates a single Switch fabric between the 2 switches allowing
them to pass traffic within the VLAN.
Configuring a Trunk between the Switches
 We will use Dot1q (Industry Standard) encapsulation to link the switches to
each other.
c
SW1 SW2

Interface G 0/0 Interface G 0/0


switchport trunk encap dot1q switchport trunk encap dot1q
switchport mode trunk switchport mode trunk

 Ping PC3 from PC1 to verify connectivity.


 Ping PC4 from PC2 to verify connectivity.
Configuring VTP for VLAN Propagation
 We had to create the VLANs on both switches.
 VTP allows us the ability to manage the creation, editing and deletion of
VLANs from a central switch. c
 The central switch is set to the VTP Mode Server.
 We will configure SW1 as a VTP Server and SW2 as a VTP Client.
 We will configure them in a Domain called CCNA.
 From this point, you will only be able to create the VLANs on SW1.
 They will automatically propagate to the other Switch(s).
Configuring VTP for VLAN Propagation
 Configure a VTP Domain called CCNA on both Switches. Configure SW1 as
the VTP Server and SW2 as a Client.
 Configure VLANs 10, 20 & 30 onc SW1. They should be created on SW2
automatically.
SW1 SW2

Vtp domain CCNA Vtp domain CCNA


Vtp mode server Vtp mode client
!
Vlan 10, 20, 30

 Type “Show VLAN” on SW2 to verify the creation of the VLANs.


Whiteboard

You might also like