CN_LAB_Assignment1
CN_LAB_Assignment1
Kartik Gupta
2200291520096
Connect two PCs using Packet Tracer.
Ring Topology
Start Topology
Mesh Topology
Scenario # 2
Step 1:
Step 2:
In this step, you will assign static IPv4 addressing information to the PC interfaces. Use
the information in the Addressing Table to complete the task.
● Configure the IPv4 address, subnet mask, and default gateway settings on
PCA .
● Configure the IPv4 address, subnet mask, and default gateway settings on
PCB .
PCA Desktop
Hint: The following values are found in the Addressing Table. Enter them in the IP
Configuration for PCA .
● IP Address: 192.168.1.3
● Subnet Mask: 255.255.255.0
● Default Gateway: 192.168.1.1
PCA IP Configuration
The following values are found in the Addressing Table. Enter them in the IP
Configuration for PCB .
● IP Address: 192.168.0.3
● Subnet Mask: 255.255.255.0
● Default Gateway: 192.168.0.1
PCB IP Configuration
Step 3:
In this step, you will Test connectivity between PCA and PCB.
● Yes
The router interfaces, which are the default gateways for each PC, have not been
configured yet; therefore, the ping traffic is not being routed between the PCA and PCB
networks. Note that link lights on the connections from the router are red. This
indicates that the links are not functioning.
In this step, you will use the CLI tab for R1 to configure basic settings. You can connect a
Console cable and access the CLI from PCA or PCB, if you wish. However, in this
activity, you can also just click R1 to open it.
R1 Configuration
Router(config)# hostname R1
Configure the privileged EXEC mode password in global configuration mode with the
following command:
Enter line configuration mode in global configuration mode with the following
command:
R1(config-line)# login
● Encrypt the plaintext passwords.
Encrypt plaintext passwords with the following command in global configuration mode:
● Create a banner that warns anyone accessing the device that unauthorized
access is prohibited.
Configure the G0/0/0 interface with the following command with the following
command:
R1(config-if)# no shutdown
R1(config)# exit
Building configuration...
[OK]
You can also use the abbreviated copy run start or the write mem command
Step 5:
Now, let’s test connectivity between PCA and PCB again.
Hint: In the PCA Command Prompt, Enter the ping 192.168.0.3 command. You can also
open the PCB Command Prompt, and then enter the ping 192.168.1.3 command.
● Yes
The router is routing the ping traffic across the two networks. The default settings for
the 2960 switch will automatically enable the interfaces that are connected to devices.
Route Links are UP
Step 6:
In this step, you will use the CLI tab for S1 to configure basic settings. You can connect a
console cable and access the CLI from PCA or PCB, if you wish. However, in this activity,
you can also just click S1 to open it.
S1 Configuration
Switch(config)# hostname S1
Configure the privileged EXEC mode password in global configuration mode with the
following command:
Enter line configuration mode in global configuration mode with the following
commands:
S1(config-line)# login
Encrypt plaintext passwords with the following command in global configuration mode:
S1(config)# service password-encryption
● Create a banner that warns anyone accessing the device that unauthorized
access is prohibited.
S1(config-if)# no shutdown
S1(config)# exit
You can also use the abbreviated copy run start or the write mem command
Step 7:
Hint: If necessary, log back in to R1 with the password cisco, enter privileged EXEC
mode with the password class.
● On R1, configure the domain name as academy.net.
Enter 1024 for How many bits in the modulus [512] question.
● Create a user with SSHuser as the username and cisco as the secret
password.
● Configure the VTY lines to use the local username database for login
credentials. The VTY lines should only allow SSH for remote access.
● From PCA or PCB, use the Command Prompt to establish a secure session
with R1. At the prompt, use the ssh
▪ RIP is an open source routing protocol, what it means RIP is compatible with all routers
more than Cisco.
– What is an IGP? An Interior Gateway Protocol (IGP) is a kind of protocol used for
interchanging routing information between gateways (commonly routers) within an
Autonomous System
– What is Distance vector? Distance vector protocols use a distance calculation together
with outgoing network interface (a vector) to choose the best path to a destination network.
▪ RIP is the simplest and easiest routing protocol to configure. Every routing protocol has
its own metric to calculate best path available.
▪ RIP utilizes ‘hop count’ as metric to decide the best path among two locations (Here hop
count is calculated by Distance Vector Algorithm).
(I will be posting separate article covering Metric, Administrative Distance, Distance Vector, etc.)
– Hop count: Which is the number of routers the packet need go through until it reaches the
destination network.
▪ The extreme acceptable number of hops in RIP network is 15 hops. Means the packet
will not be able to reach at the target if the destination is apart from 15 hops.
▪ When a router receives a neighbor’s RIP table, it updates its own routing table from the
received information and then broadcast updated routing table to the adjacent router
RIP Configuration
Create a practice lab as shown in following figure or download this pre-created practice lab and
load in packet tracer.
Scenario 1
Consider the following network.
The main IP address is 192.168.1.0/24, which refers to the 24 subnet masks you
see here. The first subnet mask is therefore 3 octets filled with 1’s and 1 octet
filled with 0's.
For example, I want to split this network into 4 subnets so I have to calculate the
bits I will borrow in the subnet mask. For this, there is a formula called
2^m=subnet.
Replacing it, the number of bits I need is 2. If we take these two bits from the
subnet mask, you will see that the two bits of the last octet are one. This is my
new subnet mask. If we convert the subnet mask from binary to base decimal by
using the places of one bits, 2⁷ +2⁶= 192. So my new subnet mask is
255.255.255.192.
- use the remaining 6 host bits to determine the number of IPs that will fall on
each subnet. 2⁶-2=62 units. The reason we do minus 2 is that one of these IPs
is for Subnet IP and the other is for broadcast IP.
- created a topology. These are routers and these networks are subnet
İmprovement
1. PC PC 6
2. Switch PT-Switch 3
3. Router PT-router 3
IP Addressing Table:
IPv4 Default
S.NO Device Subnet mask
Address Gateway
1. PC0 192.168.10.2 255.255.255.0 192.168.10.1
others.
Step 2: Configure the PCs (hosts) with IPv4 address and Subnet Mask
according to the IP addressing table given above.
● To assign an IP address in PC0, click on PC0.
IPv4 configuration.
gateway>(if needed)
thoroughly.
thoroughly.
Step 4: After configuring all of the devices we need to assign the routes to
the routers.
To assign RIP routes to the particular router:
● First, click on router0 then Go to CLI.