Basic Cisco Switch Configuration - 2. Create and Modify VLAN

 What is VLAN..? How Create VLAN..? 

πŸ‘‡πŸ‘‡Please Find Below.. πŸ‘‡πŸ‘‡


VLANs allow you to logically segment a LAN into different broadcast domains. In scenarios where sensitive data may be broadcast on a network, VLANs can be created to enhance security by designating a broadcast to a specific VLAN. Only users that belong to a VLAN are able to access and manipulate the data on that VLAN. VLANs can also be used to enhance performance by reducing the need to send broadcasts and multicasts to unnecessary destinations.

Click on HERE to reach video tutorial. 


Below is the steps to be followed

  1. Crate a Packet Tracer Topology Lab
  2. Log into the switch using console or SSH (πŸ‘ˆ Click on here to see how enable SSH access on switch )
  3. Configure Initial Setup on switch
  4. Create VLAN ID and give proper name
  5. Assign Ports/Multiple Ports to VLAN
  6. Modify VLAN (Rename, Delete, Change assigned Ports, Etc..)

Crate a Packet Tracer Topology Lab




Configure Initial Setup on switch

Please refer our previous post here..


Create VLAN ID and give proper name

To create VLAN we can follow below commands.

     We`re in EXEC Privileged mode

Floor-1#


Moving to Global config mode

Floor-1#conf t


Floor-1(config)#


Initiate VLAN ID

Floor-1(config)#VLAN 10


Giving name to to VLAN

Floor-1(config-vlan)#Name HR

Floor-1(config-vlan)#


Moving back to global config mode

Floor-1(config-vlan)#exit


Floor-1(config)#


Confirmation of VLAN creation

To get confirmed about created VLANs we can use following two commands.

Floor-1#show vlan


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa0/2, Fa0/3, 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

Gig0/1, Gig0/2

10 HR active

20 IT active


30 ADMIN active

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

10 enet 100010 1500 - - - - - 0 0

20 enet 100020 1500 - - - - - 0 0

1002 fddi 101002 1500 - - - - - 0 0

1003 tr 101003 1500 - - - - - 0 0

1004 fdnet 101004 1500 - - - ieee - 0 0

1005 trnet 101005 1500 - - - ibm - 0 0


VLAN Type SAID MTU Parent RingNo BridgeNo Stp BrdgMode Trans1 Trans2

---- ----- ---------- ----- ------ ------ -------- ---- -------- ------ ------


Remote SPAN VLANs

------------------------------------------------------------------------------


Primary Secondary Type Ports

------- --------- ----------------- ------------------------------------------

Floor-1#

Floor-1#


***********************************************************************

Floor-1#show vlan brief


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/1, Fa0/2, Fa0/3, 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

Gig0/1, Gig0/2

10 HR active

20 IT active


30 ADMIN active

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active




Assign Ports
/Multiple Ports to VLAN

The port modes are defined as follows:

  • Access Port - The frames received on the interface are assumed to not have a VLAN tag and are assigned to the specified VLAN. Access ports are used primarily for hosts and can only carry traffic for a single VLAN.
  • Trunk Port - The frames received on the interface are assumed to have VLAN tags. Trunk ports are for links between switches or other network devices and are capable of carrying traffic for multiple VLANs.

To assign switch ports to VLANs we can follow below commands.

Floor-1(config)#


Select single interface need to effect config

Floor-1(config)#interface fastEthernet 0/1 -- Option 1


Floor-1(config-if)#


Select multiple interface range need to effect config


Floor-1(config)#interface range fastEthernet 0/1-10 -- Option 2


Floor-1(config-if-range)#


Change port mode to access


Floor-1(config-if)#switchport mode access


Assign port to VLAN

Floor-1(config-if)#switchport access vlan 10

Floor-1(config-if)#


Make port status UP (Enable)

Floor-1(config-if)#no shutdown


Moving back to global config mode

Floor-1(config-if)#exit


Floor-1(config)#



Confirmation on after Assign Ports


Floor-1#show vlan brief


VLAN Name Status Ports

---- -------------------------------- --------- -------------------------------

1 default active Fa0/2, Fa0/3, Fa0/4, Fa0/5

Fa0/6, Fa0/7, Fa0/8, Fa0/9

Fa0/10, Fa0/12, Fa0/13, Fa0/14

Fa0/15, Fa0/16, Fa0/17, Fa0/18

Fa0/19, Fa0/20, Fa0/22, Fa0/23

Fa0/24, Gig0/1, Gig0/2

10 HR active Fa0/1

20 IT active Fa0/11

30 ADMIN active Fa0/21

1002 fddi-default active

1003 token-ring-default active

1004 fddinet-default active

1005 trnet-default active

Floor-1#

Floor-1#



Modify VLAN (Rename, Delete, Change assigned Ports, Etc..)


For Rename any VLAN we just need to follow same config that followed to give name to VLAN. 

Floor-1(config)#


Initiate VLAN ID

Floor-1(config)#VLAN 10


Giving name to to VLAN

Floor-1(config-vlan)#Name HR



For Delete VLAN we can follow below command.

Floor-1(config)#no vlan <ID>

Floor-1(config)#no vlan 10


For Remover ports from VLAN we can follow below commands.


Select single interface need to effect config

Floor-1(config)#interface fastEthernet 0/1 -- Option 1


Floor-1(config-if)#


Floor-1(config-if)#no switchport access vlan


Select multiple interface range need to effect config


Floor-1(config)#interface range fastEthernet 0/1-10 -- Option 2


Floor-1(config-if-range)#


Floor-1(config-if-range)#no switchport access vlan






                                                              *** NetConsole ***









Comments

Post a Comment

Popular posts from this blog

Basic Cisco Switch Configuration - 1. Enable SSH

Basic Cisco Switch Configuration - 3. Create and Enable VTP on Network