Network Lab Material
Network Lab Material
Objectives
• Download and install cisco packet tracer.
• Know basic concept of packet tracer.
• Demonstrates how to create, arrange, delete, and
connect devices.
• Demonstrates how to configure devices using the
Config tab.
• Building peer-to-peer network using CPT
• To demonstrate hub and switch
• To Simulate LAN using packet tracer
GUI of cisco packet tracer
Peer-to-peer LAN
• Design and configure the following LAN.
100 student 6
200 Teachers 4
300 Administrator 3
400 support 2
Exercise
• Design the following VLAN. Desktop computers are in the same
VLAN whereas Laptops in an other VLAN.
Configuring switch with CLI
• Commands:
– enable: to move from user mode to privileged mode.
– Switch> ……..user mode
– Switch#........privileged mode
– configure: to move from privileged mode to global configuration mode.
– switch(config)#.........configuration mode
– interface: to select a port/interface
– Switch(config-if)# …………….interface mode
– switchport: for interface configuration mode:
• switchport mode access: to configure the port as an access port
• switchport mode trunk: to configure the port as a trunk port
– exit/end: to move back one step
– show vlan/do show vlan: to display list of VLANs at configuration and
interface modes, respectively.
– show interfaces status: to show status of each port
• https://techlensfocus.com/index.php/2024/04/22/cisco-packet-
tracer-tutorial-vlan-configuration.html
• https://itexamanswers.net/3-3-12-packet-tracer-vlan-configuration-
instructions-answer.html
Vlan configuration using CLI
Configuring the switch
Design and configure computer
• enable
• configure terminal
• To create vlans:
– vlan 10
– name sales_department
– Vlan 20
– name mangment_department
• To accessing ports:
– interface fastethernet0/1
– switchport mode access
– switchport access vlan 10
– Repeate the above 3 commands
to all ports.
Remove a VLAN from a Remove a VLAN assignment from
database: an interface.
• Int fa 0/4
• Switchport mode access
• Switchport access vlan 20
• Int fa 0/5
• Switchport mode trunck
Switch configuration
• enable
• conf t
• hostname staff # to give hostname
• enable password 12345 # to change password
• Exit
• Exit
• Show vlan # to display the existing vlans
– Or
• show vlan brief
Inter-VLAN Configuration
• 192.168.1.128 to 192.168.1.255
• Interface fastethernet0/1
• Ip add 172.16.1.1 255.255.0.0
• No shutdown
Using CLI PC and Router Configuration
• Router :
– host Hilco
– int fa0/0
– ip add 192.168.1.1 255.255.255.0
– no shut
– int fa0/1
– ip add 172.16.1.1 255.255.0.0
– no shut
• R#show interfaces
192.168.3.1
Static routing configuration
Connecting A,B and C network
Configuring using CLI
• Syntax to configure computers using ipconfig command:
– Ipconfig ip_address subnet_mask_value gateway_value
• PC0:
– ipconfig 192.168.1.2 255.255.255.0 192.168.1.1
• PC1:
– ipconfig 10.10.1.2 255.0.0.0 10.10.1.1
• Router 0:
– Enable
– Configure terminal
– int fa0/0
– Ip address 192.168.1.1 255.255.255.0
– no shut down
– Int fa0/1
– Ip add 172.16.100.2 255.255.0.0
– No shut
• ROUTER 1:
– ENABLE #Case insensitive
– Conf t
– Int fa0/0
– Ip add 172.16.100.2 255.255.0.0
– No shut down
– Int fa0/1
– Ip add 10.10.1.1 255.0.0.0
– No shut
Routing Configuration
• Router 0:
– Ip route 10.0.0.0 255.0.0.0 172.16.100.2
– Ip route 150.200.0.0 255.255.0.0 172.16.100.1
• Router 1:
– Ip route 192.168.1.0 255.255.255.0 172.16.100.1
Inserting Expansion slot/ Interface
• 1st . Power off a router.
• 2nd . Select and insert the required interface
on empty slot.
• 3rd . Power on the router
Homework 1: CLI configuration
Homework 2: Design and configure routing using GUI and CLI