Configuration of vlan using packet tracer software step by step guide



Configuration of Vlan Commands| In this article we learn about configuration of vlan, how assign port to particular vlan.

Concept of native vlan

Native vlan is useful to send untagged frame .Tagged frame  sends  the traffic for the particular vlan but untagged frame can any traffic which is not gone through to any particular vlan.

Concept of Dynamic trunk protocol

Dynamic Trunk Protocol is a cisco proprietary protocol which automatically negotiates the switch mode. Three types of mode is available in  cisco switch port.

·         Access portAccess port is the port where end gadget is associated. 

·         Trunk port: Trunk port is the port which conveys labeled and untagged traffic both between the switch.

·         Dynamic

Configuration of vlan


Lets take a example

Suppose in an organization there is two departments one is hr and other is sales.
So we configure two vlans for two departments by which any department can not communicate the other department.

To configure the vlan we need  to enter the global configuration mode and execute  the following command.

Switch(config)#vlan <vlan no>

After running the above  command we got the following promt in which we can define the name of the vlan  as per our example.

We configure vlan10 for hr department and vlan20 for sales department.


 
Configuration of vlan,vlan configuration on cisco switch, vlan configuration on cisco router, vlan configuration on hp switch,vlan configuration commands,trunk port configuration
Configuration of vlan



Switch(config)#vlan 10
Switch(config-vlan)#name hr
Switch(config-vlan)#exit
Switch(config)#vlan 20
Switch(config-vlan)#name sales
Switch(config-vlan)#exit

Assign port to vlan

After configuration of vlan we need to assign port on the switch to the configured vlan.
Here pc0 is connected to fa0/1.As access port is configure for the end gadget.
To assign the port to the vlan we go to interface configuration and execute the following  command.
Switch(config)#int fa0/1
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 10
Switch(config-if)#exit
Switch(config)#int fa0/2
Switch(config-if)#switchport mode access
Switch(config-if)#switchport access vlan 20
Switch(config-if)#exit

Configure Trunk port

Trunk port is the port which conveys labeled and untagged traffic both between the switch.To configure trunk port we need to move  interface config mode and execute the below command.

Here fa0/3 is the trunk port because it creates the trunk link between two switches.


Switch(config)#int fa0/3
Switch(config-if)#switchport mode trunk
Switch(config-if)#exit

 If this article is helpful to about Configuration of Vlan please share this article.


SHARE

Admin

  • Image
  • Image
  • Image
  • Image
  • Image
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment