Configuring Static VLAN on Cisco Switch Configuring Static VLAN on Cisco Switch There is an organization which have three departments, Sal...
Configuring Static VLAN on Cisco Switch
Configuring Static VLAN on Cisco Switch
There is an organization which have three departments, Sales, Marketing and Account. The organization want to make individual VLAN for every department.
Step:1 Connect switch with console cable or Telnet to the computer/laptop
Step:2 Now in switch console go to the configure terminal mode
Switch>enable
Switch#
Switch#configure terminal
Step:2 Now create Vlan
VLAN's | Usage |
1 | This is default VLAN, we can use this vlan but can't delete it |
2-1001 | For Eathernet - We can crate and delete these VLAN's |
1002-1005 | Deafult VLAN's for FDDI and Token Ring |
1006 - 4094 | Extended VLAN - For Eathernet VLAN only |
0, 4095 | Reserved for system use only, Can't delete, can’t see |
In our example we are creating three VLAN’s with following configuration
Vlan name – Vlan Number
1. Sales 10
2. Marketing 20
3. Account 30
To crate VLANs Run the following commands one by one
Switch(config)#vlan 10
Switch(config-vlan)#name sales
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#vlan 20
Switch(config-vlan)#name marketing
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#vlan 30
Switch(config-vlan)#name account
Switch(config-vlan)#exit
Switch(config)#
Switch(config)#exit
Switch#
Step:3 Now save this configuration
Switch#write
Building configuration...
[OK]
Step:4 Now assign VLAN port Membership
VLAN's | Port No. | Department |
Vlan 10 | fastEthernet 0/1 fastEthernet 0/2 | Sales |
Vlan 20 | fastEthernet 0/3 fastEthernet 0/4 | Marketing |
Vlan 30 | fastEthernet 0/5 fastEthernet 0/6 | Account |
To assign VLAN membership on LAN port run the commands
Switch#
Switch#configure terminal
Switch(config)#
Switch(config)#interface fastEthernet 0/1
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#interface fastEthernet 0/2
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#
Switch(config)#interface fastEthernet 0/3
Switch(config-if)#
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#
Switch(config)#interface fastEthernet 0/4
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit
Switch(config)#
Switch(config)#interface fastEthernet 0/5
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit
Switch(config)#
Switch(config)#interface fastEthernet 0/6
Switch(config-if)#switchport access vlan 30
Switch(config-if)#exit
Switch(config)#exit
Step:5 Now save this configuration
Switch#write
Switch#show vlan
Select Multiple port
You can select multiple Ethernet ports at a time and give the VLAN membership.
Command to select multiple ethernet ports at a time.
(interface range fastethernet 0/1 - 10) to select 10 ports at a time.
Switch(config)#interface range fastEthernet 0/1 - 2
Switch(config-if-range)#switchport access vlan 10
Switch(config-if-range)#exit
==============================================================
#Technicalhakim #Networking Technical hakim
No comments