
VLAN
- A single LAN divided into multiple LANs logically is called VLAN
- Reduce broadcast
- Improve performance
- Improve security (user from one VLAN can’t communicate with other VLAN utill configured routing)
VLAN1
- By default available
- All the ports are member of VLAN 1 (by default)
S1 (config) # vlan 2
# name sales
S2 (config) # vlan 3
# name mar
S # show vlan
Port Assign on Vlan
For a single interface:
S1(conf) # int fa 0/1
S1(config-if) # switchport access vlan 2
S1 # show vlan
For a range of interfaces:
S1(config)#int range FastEthernet 0/11 – 20
S1(config-if-range)#switchport access vlan 2
S1(config-if-range)#do show vlan
Note: we assign ip address to vlan 1 to remotely access it.
# int vlan 1
#ip address 20.0.0.1 255.0.0.0
#no shut





