Create VLAN and Assign VLAN on Switch Port:
Create VLAN
Switch>enable
Switch#configure
terminal
Enter
configuration commands, one per line.
End with CNTL/Z.
Switch(config)#vlan
2
Switch(config-vlan)#name
IT
Switch(config-vlan)#exit
Switch(config)#vlan
3
Switch(config-vlan)#name
HR
Switch(config-vlan)#exit
Assign
Switch Port to Access VLAN
Switch#configure
terminal
Switch(config)#interface
FastEthernet0/2
Switch(config-if)#switchport mode access //assign switchport for only one vlan
Switch(config-if)#switchport mode access //assign switchport for only one vlan
Switch(config-if)#switchport
access vlan 2 //assign vlan in switchport
Switch(config-if)#exit
Switch(config)#interface
FastEthernet0/3
Switch(config-if)#switchport mode
access
Switch(config-if)#switchport access vlan 3
Switch(config-if)#switchport access vlan 3
Switch(config-if)#exit
Show VLAN
Switch#show
vlan
VLAN
Name
Status Ports
----
-------------------------------- --------- -------------------------------
1 default active Fa0/4, Fa0/5, Fa0/6, Fa0/7
Fa0/8,
Fa0/9, Fa0/10, Fa0/11
Fa0/12, Fa0/13, Fa0/14, Fa0/15
Fa0/16, Fa0/17, Fa0/18, Fa0/19
Fa0/20, Fa0/21,
Fa0/22, Fa0/23
Fa0/24
2
IT
active Fa0/2
3
HR
active Fa0/3
1002
fddi-default active
1003
token-ring-default
active
1004
fddinet-default
active
1005
trnet-default
active
VLAN
Type SAID MTU
Parent RingNo BridgeNo Stp
BrdgMode Trans1 Trans2
---- -----
---------- ----- ------ ------ -------- ---- -------- ------ ------
1 enet
100001 1500 -
- - -
- 0 0
2 enet
100002 1500 -
- - -
- 0 0
3 enet
100003 1500 -
- - -
- 0 0
1002
enet 101002 1500
- - -
- - 0
0
1003
enet 101003 1500
- - -
- - 0
0
1004
enet 101004 1500
- - -
- - 0
0
1005
enet 101005 1500
- - -
- - 0
0
Switch#
Delete VLAN:
Switch#configure
terminal
Enter
configuration commands, one per line.
End with CNTL/Z.
Switch(config)#no vlan
2
Switch(config)#exit
Switch(config)#exit
Switch#wr
VLAN type: show vlan command show a list of vlan in my switch. Where VLAN 3 and VLAN 2 was created manually. Other VLAN 1 and VLAN 1002-5 was exist by default. So we can create vlan from 2 to 1001 and
1006 – 4094. Where VLAN 2 to 1001 is normal range and VLAN 1006 - 4094 is extended range.
VLAN Mode: VLAN have two mode access mode and trunk mode.
Access Mode: In Access Mode a port use for single vlan data transmission. Data transfer without VLAN tag.
VLAN type: show vlan command show a list of vlan in my switch. Where VLAN 3 and VLAN 2 was created manually. Other VLAN 1 and VLAN 1002-5 was exist by default. So we can create vlan from 2 to 1001 and
1006 – 4094. Where VLAN 2 to 1001 is normal range and VLAN 1006 - 4094 is extended range.
VLAN Mode: VLAN have two mode access mode and trunk mode.
Access Mode: In Access Mode a port use for single vlan data transmission. Data transfer without VLAN tag.
Trunk Mode: In Trunk mode multiple vlan use same port for data transmission. Data
transfer by individual VLAN tag.
No comments:
Post a Comment