Sharing Ilmu

Sharing for useful things

How To Configure VLAN on Cisco Packet Tracer

In this tutorial I’ll discuss about how to configuration vlan on switch cisco packet tracer.  Vlan are used for divide single broadcast domain become several broadcast domain. Default vlan is VLAN 1. For vlan number can be use number 2 – 1001. You can configure vlan on managable switch.

The following is the topologi are used :

 

Configure ip address for PC :

 

Fist test ping between pc, connection is successfull because the network still in one segment.

 

Create vlan 10 with name Staff on global configuration mode :

MySW(config)#vlan 10
MySW(config-vlan)#name Staff
MySW(config-vlan)#exit

 

Create vlan 20 with name IT :

MySW(config)#vlan 20
MySW(config-vlan)#name IT
MySW(config-vlan)#exit

 

Assign port on each vlan interface.  int fa0/1 and fa0/2 to vlan10, fa0/3 and 0/4 to vlan20.

MySW(config)#int fa0/1
MySW(config-if)#switchport mode access
MySW(config-if)#switchport access vlan 10
MySW(config-if)#exit
MySW(config)#
MySW(config)#int fa0/2
MySW(config-if)#switchport mode access
MySW(config-if)#switchport access vlan 10
MySW(config-if)#exit
MySW(config)#
MySW(config)#int fa0/3
MySW(config-if)#switchport mode access
MySW(config-if)#switchport access vlan 20
MySW(config-if)#exit
MySW(config)#int fa0/4
MySW(config-if)#switchport mode access
MySW(config-if)#switchport access vlan 20
MySW(config-if)#exit
MySW(config)#

 

Use show vlan on privileges mode to display vlan configuration.

Now test ping between pc.

From PC0 to PC1 can still be connected because it is in one network segment or one vlan group.

PC0 to PC2 it can’t connected because it’s different vlan network.

As well as with PC2 from network vlan20 it can still connected with same vlan network, but can’t connected with different vlan network.

 

z

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>