0% found this document useful (0 votes)
2 views

3. VLAN Commands

COMMANDS

Uploaded by

Tanvi Maheshwari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

3. VLAN Commands

COMMANDS

Uploaded by

Tanvi Maheshwari
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Assignment 3: Configuration of VLAN

Step 1: Design LAN with Switch and machines.

Step 2: Assign IP addresses to all PCs/Laptops


Step 3: Configure Switch
 Click on switch
 Go to CLI (Command Line interface)
 Give following commands
Command 1: Enable
Command 2: Show VLAN

You can see just single Vlan with number 1 and name as default.
Give following commands in succession

Switch0>enable or en ; enable command line


Switch0>show vlan ;can see all information
Switch0#config terminal ;now in switch configuration mode
Switch0(config)# vlan 10 ;vlan 10 is for CR
Switch0(config-vlan) # name CR ; give name for vlan 10 as CR
Switch0(config-vlan) # exit
Switch0(config) # exit
Switch0#
Switch0>show vlan ;now we can see one more
vlan is created as 10
Switch0(config) # interface fa0/4 ;from CR one interface
Switch0(config-if)# switchport access vlan 10 ;for CR
Switch0(config-if)# switchport mode access
Switch0# show vlan

Keep adding interfaces in VLAN 10. Then create another VLAN


and add all interfaces.

Testing:
1. Run show vlan command and check if VLANs are created.
2. Execute ping command. It should work for PCs within same
VLANs and must fail for “Acress the VLANs”.

For Trunk Mode:


1. Take 2 switches
2. Replicate the scenario on the second switch also.
3. The interface connecting two switches is called trunk as this
interface uses the working mode as “Trunk mode”.
4. Let us say interface no. if Fa0/12 is used as trunk then it can be
configured by giving following commands.

Switch0(config) # interface fa0/12 ;from CR one interface


Switch0(config-if)# switchport mode trunk

You might also like