Tuesday, February 5, 2019

Configure VLANS in Cisco packet tracer

VLAN is a group of devices on one or more LANs that are configured to communicate as if they were attached to the same wire, when in fact they are located on a number of different LAN segments. Because VLANs are based on logical instead of physical connections, they are extremely flexible.

Basic commands used:

Ping : you can send ICMP request to destination and wait for response. 
enable: To enter privileged Exec mode or any other security level.
exit: to close an active terminal.

 Procedure:

  1. Create a network diagram with 4 pcs.
    • select end device option and drag two generic pcs in to the work space.
    • click on the pcs and configure the IP Address of them.
      • for ex : pc1 : IP =192.100.162.10
  2. Connect all the pcs using copper straight wire to the switch. as shown in the figure in fast ethernet port.

  3. Configure the switch using the following caomnds in cci.
    • router> en
    • # config t
    • (config)# int fa 0/1
    • (config -if) vlan 2
    • (config -vlan)#exit
    • (config)# int fa 0/3
      • (config -if) vlan 3
      • (config -vlan)#exit
    • similarly configure other connections.
  4. Now go to command prompt and use ping IP address to trace the packets.

Configuration of router in cisco packet tracer

Routers: A router is a network device that forwards data packets  between computer network. Routers perform the traffic directing functions on the internet . Data sent through the internet, such as a web page or email, is in the form of data packets. A packet is typically forwarded from one router to another router through the networks that constitute an internetwork until it reaches its destination node.

How to configure a router in cisco packet tracer?

fig 1: router configuration.

  • the figure has two routers (namely 1910). taken from the tool box.
  • the HWC2t port is configured by double clicking on the router and dragging the module present on the right on the router. While the router is off
  • connect the router using DCE serial cable.
  • now drag and drop switches and pcs
  • connect switches and pcs using copper straight wires in the fast ethernet ports.
  • provide pc with ip address and gateway to the pcs.
    • add IP address to the pc by double clicking on the pc and going to IP configuration mode.


  • connect routers and switches using Gigabit port.
  • Configuration of routers :
    • enable  (enables the router.)
    • >router # config t       (enters into configuration mod)
    • (#config ) Interface gig 0/1    (enter into interfacing gig port 0/1).
    • #(config-if)IP add 192.168.100.10 255.255.255.0 (assign ip address to the network )
    • #(config -if) no shut (exit out from the config mode).
    • similarly for all the routers.
    • after this config the wire turn green. that means connection is verified.
  • configuring the serial ports of the routers:
    • #interface Serial0/1/0
      Router(config-if)#ip address 192.162.100.10 255.255.255.0
      Router(config-if)#ip address 192.162.100.10 255.255.255.0
      Router(config-if)#no ip address
      no shut.
    • similarly for the other router.
The packets can be verified using the ping command in command prompt.