VLAN LAB

VLAN CONFIGURATION

SW1(config)#vlan 10
SW1(config-vlan)#name accounts
SW1(config)#vlan 20
SW1(config-vlan)#name finance

SW2(config)#vlan 10
SW2(config-vlan)#name accounts
SW2(config)#vlan 20
SW2(config-vlan)#name finance

SW3(config)#vlan 10
SW3(config-vlan)#name accounts
SW3(config)#vlan 20
SW3(config-vlan)#name finance

Vlan verification

SW1#show vlan
SW1#show vlan brief

Trunk port confgiuration

SW1#config t
SW1(config)#interface fa0/4
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk
SW1(config)#interface fa0/5
SW1(config-if)#switchport trunk encapsulation dot1q
SW1(config-if)#switchport mode trunk

SW2#config t
SW2(config)#interface fa0/4
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switchport mode trunk
SW2(config)#interface fa0/5
SW2(config-if)#switchport trunk encapsulation dot1q
SW2(config-if)#switchport mode trunk

SW3#config t
SW3(config)#interface fa0/4
SW3(config-if)#switchport trunk encapsulation dot1q
SW3(config-if)#switchport mode trunk
SW3(config)#interface fa0/5
SW3(config-if)#switchport trunk encapsulation dot1q
SW3(config-if)#switchport mode trunk

Trunk port verification

SW1#show interface trunk

SW1#show interface <interface> switchport