Configuration of VLANs in Packet Tracer

Configuration of VLANs in Packet Tracer


A VLAN is a group of devices on one or more LANs that are either on the same LAN network or in different LAN networks. Using VLAN, we can set up the communication between different devices in such a way that they may be assumed on the same LAN Network. 

VLANs are used to give same level of priorities to different devices either in the same network or in a different network. Since VLANs are based on logical connections instead of physical connections, they are extremely flexible. Switches are used to logically divide the network on different LANs. Switches are multi port bridges which allow you to create multiple broadcast domains. Each broadcast domain is like a distinct bridge within a switch.


















To configure the VLAN, we need to type the following commands on CLI (Command Line Interface):
  • Type enable on the CLI to enter into the terminal.
  • Type config t to enter into configuration mode.
  • Type vlan vlan_id to create a VLAN with vlan_id as VLAN number. Note that the number ranges from 1 to 4094.
  • Then you may give name to the created vlan by using command name vlan_name
  • Then to change the interface state to up, use command no shut.
  • Then exit the configuration of VLAN using exit as the command.
  • Now, to set a PC on a new VLAN, enter into configuration mode again using config t.
  • Now add port to newly created vlan using command int fa0/1 (say for example).
  • Now type switchport access vlan vlan_id. Here I add fast-Ethernet port number 0/1 to the vlan just created above.
  • To verify that the port was successfully added to new vlan, check using show vlan command. And done! You have added your port to new vlan.

To know more about the command and vlan visit Cisco configuration of VLAN.


Comments