You are on page 1of 3

VIRTUAL LAN

• A Layer 2 Security
• Divides a Single Broadcast domain into Multiple Broadcast domains.
• By default all ports of the switch are in VLAN1. This VLAN1 is known
as
• Administrative VLAN or Management VLAN
• VLAN can be created from 2 – 1001
• Can be Configured on a Manageable switch only
• VLANs can enhance network security.
• • VLANs increase the number of broadcast domains while decreasing
their size.

VLAN using command :


• Creation of VLAN:-
Switch # vlan database
Switch(vlan)# vlan <vlan id> name <vlan name>
Switch(vlan)# exit
Verify using
Switch # show vlan
VLAN Creation in config Mode:
Switch(config)# vlan <no>
Switch(config-Vlan)# name <name>

Switch(config-Vlan)# Exit
Assigning ports in Vlan
Switch(config)# interface <interface type> <interface no.>
Switch(config-if)# switchport mode access
Switch(config-if)# switchport access Vlan <no>
The range command (Assigning multiple ports at same time)
The range command, you can use on switches to help you configure multiple
ports at the same time
Switch(config)# interface range fastEthernet 0/1 - 12

TYPES of links/ports
• Access links
– This type of link is only part of one VLAN, and it’s referred to as the native
VLAN of the port.
• Trunk links
– Trunks can carry multiple VLANs.
– A trunk link is a 100- or 1000Mbps point-to-point link between two switches,
between a switch and router, or between a switch and server. These carry thetraffic
of multiple VLANs—from1 to 1005 at a time.

SW1
Creating Vlan
Switch# vlan database
Switch(vlan)# vlan 2 name sales
Switch(vlan)# exit
Switch# vlan database
Switch(vlan)# vlan 3 name finance
Switch(vlan)# exit
Switch(config)# Int fa0/1
Switch(config-if)# Switchport mode access
Switch(config-if)# Switchport access vlan2
Switch(config-if)# exit
Switch(config)# Int fa0/2
Switch(config-if)# Switchport mode access
Switch(config-if)# Switchport access vlan3
Switch(config-if)# exit
Switch(config)# Int fa0/3
Switch(config-if)# Switchport mode access
Switch(config-if)# Switchport access vlan2
Switch(config-if)# exit
Switch(config)# Int fa0/4
Switch(config-if)# Switchport mode access
Switch(config-if)# Switchport access vlan3
Switch(config-if)# exit
SW1#show vlan brief
SW1#show vlan <no>
SW1#show vlan

Discussion
Q1:- What is the advantage of Creating Vlan?

You might also like