Cisco-Packet-Tracer | Watch Tutorials in Bangla on YouTube
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 conducted by one of the most favourite teacher from CSE-RU, Dr. Asif Zaman Sir.
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
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
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 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
- 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.
- 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.
© Akif Islam