Skip to content

This repository contains various network models and designs to learn Cisco Packet Tracer. This is also a part of my Computer Network Course.

Notifications You must be signed in to change notification settings

H-K-R/Cisco-Packet-Tracer

Repository files navigation

Cisco-Packet-Tracer

This repository contains various network models and designs that I created or assigned to learn Cisco Packet Tracer. This is also a part of my Computer Network Course.



01. Connecting 2 PCs with a Cross FastEthernet Cable







02. Multiple End Devices are Connected with 1 Switch







03. Behaviour Analysis of Hub and Switch





04. Setup a DHCP Server (Automatic IP Assigning to multiple end devices)





05. Setup a DHCP Server with 3 Switches






06. Setup a VLAN (Virtual LAN)





CLI Commands to setup VLAN on Switch


To add a device (connected with FastEthernet Port 0/1) to VLAN 101, simply write :

enable
configure terminal

interface fastEthernet 0/1

switch port mode access
switchport access vlan 101

no shutdown
exit

To add another device (connected with FastEthernet Port 0/4) to VLAN 101, simply write :

interface fastEthernet 0/4

switch port mode access
switchport access vlan 101

no shutdown
exit

After separting devices to different VLANs, save data permanently to non-volatile memory with this command:

do write memory


07. Setup a Truncated VLAN between 2 Switches





CLI Commands to truncate VLAN on Switch


Suppose, 2 Switches are connected together with each of its FastEthernet 0/24 Port, Then we will write the following command on both of the switches :

enable
configure terminal

interface fastEthernet 0/24

switch port mode trunk



no shutdown
exit

do write memory


08. Send Packets between 2 Different Network with a Router





To setup a router's port (suppose gigabitEthernet 0/1) with an ip address 192.168.5.1, we will write:

enable
configure terminal

interface gigabitEthernet 0/1

ip address 192.168.5.1 255.255.255.0

no shutdown
exit

do write memory


09. Send Packets between 2 Different Network with 3 Router and Static Routing





  • To setup a router's port (suppose gigabitEthernet 0/1) with an ip address 192.168.5.1, we will write:
enable
configure terminal

interface gigabitEthernet 0/1

ip address 192.168.5.1 255.255.255.0

no shutdown
exit

do write memory
  • To forward an ip address of a network (192.168.5.0) to neighbour's router (192.168.60.7), we will write:
enable
configure terminal

ip route 192.168.5.0 255.255.255.0 192.168.60.7

no shutdown
exit

do write memory


10. Inter VLAN Routing

  • VLAN1 and VLAN2 are created using CLI.
  • Usually, we know, same VLAN can communicate together
  • But here, VLAN1 can also send a message to VLAN2 by using the router.
  • For setting up default gateways, never forget to add them also into the same VLAN.




11. Alternative Solution for Inter VLAN Routing (without VLAN)

  • All PCs are set to default VLAN(1)
  • Usually, we know, switch can only communicate with the devices with same IP series.
  • As the IP series of VLAN 1 and VLAN 2 devices are different, so using this concept, switch will only pass messages to same IP devices.
  • But here, there is an one major fault. Changing the device IP will change their VLAN which is unsafe for a network.




© Most Humayra Khanom Rime

About

This repository contains various network models and designs to learn Cisco Packet Tracer. This is also a part of my Computer Network Course.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published