Week 4 Assignment
Kritartha Dhakal
Westcliff University
NET200: Network Routing and Switching
Prof. Subekshya Pradhan
July 23, 2023
1
Lab 1: Configuring Interfaces
Question: Perform the following tasks on the provided network.
2
1. Configure the hostnames of R1, SW1, and SW2.
Ans: To config the hostnames of router and switches, we simply go into the global configuration
mode of each of the devices and enter the command hostname [hostname].
Figure 1.1: Router name configuration
Figure 1.2: Switch name configuration
3
2. Configure appropriate IP addresses on R1, PC1, PC2, PC3, and PC4.
Ans: To configure the IP address of the router, we go into its interface (here G0/0) and assign it
the appropriate IP address. We use the command int [interface-name] to go into the selected
interface and then use ip address [ip_address] [subnet_mask]. We also have to issue no
shutdown command to the interface state to ‘up’.
Figure 1.3: Assigning IP address to the router interface
Now for the PCs, we go into Desktop > IP Configuration and enter the IP address, subnet
mask, and the gateway. We repeat the same for all the PCs.
Figure 1.4: Assigning IP addresses to the PCs
4
3. Manually configure the speed and duplex on interfaces connected to other networking devices
(not end hosts).
Ans: For the configuration of the speed and duplex on the router and the switches, the
commands speed [speed] and duplex [duplex_mode] are used.
Figure 1.5: Speed and Duplex Configuration on Router
Figure 1.6 & 1.7: Speed and Duplex Configuration on the Switches
5
4. Configure appropriate description on each interface.
Ans: To add description to the devices, we simply use the command description [description].
Figure 1.8: Description of Router
Figure 1.9 & 1.10: Description of Switch 1 and Switch 2
6
5. Disable interfaces which are not connected to other devices.
Ans: In routers, all interfaces are disabled by default. We use the no shutdown command to
change its state. In switches, however, that is not the case. So, we need to use the command
shutdown to ensure that these interfaces are disabled.
We can find which interfaces are in use and which are not by using the command do
show interface status. From the list, we disable the ones we do not need.
Figure 1.11: Disabling the interfaces not in use
7
6. Save the configurations.
Ans: To save the configurations, there are three different methods shown.
Figure 1.12: Saving configuration on the router
Figure 1.13: Saving configuration on SW1
Figure 1.14: Saving configuration on SW2
8
Final Result:
Figure 1.15: The network with all the configurations performed
9
Lab 2: Troubleshooting Static Routes
Question: Find and fix the mistakes in the network to get it to working again.
10
Steps for Troubleshooting
1. Checking the interface configuration
The first step in troubleshooting this problem is to check the interface configuration for all the
routers starting with R1. In the router’s global configuration mode, we use the command do
show ip interface brief to see the IP addresses of the interfaces used. We find that the IP
addresses are assigned appropriately, and we move to the next router – R2.
Figure 2.1: Checking the interfaces of R1
Same as with R1, we find nothing problematic with the interface configuration of R2. The
IP assigned are correct and the protocol are also ‘up’.
Figure 2.2: Checking the interfaces of R2
However, when checking for R3, we find an error in the assigned IP address of its g0/0
interface. The IP assigned to it should be 192.168.13.3 instead of 192.168.23.3 so we change
that. To remove the current assigned IP address, we just simply overwrite the interface with the
new correct IP address. The command is: ip address [ip_address] [subnet_mask]
11
Figure 2.3: Checking the interfaces of R3
Figure 2.4: Overwriting the IP address of g0/0 interface of R3
12
2. Checking the Routing Table
We check the routing table of all the routers provided in the network. To check the routing table,
we use the command do show ip route. A list is provided and within that list we only need to
look for the static routes – marked with S.
In the routing table of R1, we find that the entry for the static route is incorrect. To reach
the IP address of 192.168.3.0, the next hop should be 192.168.12.2 instead of 192.168.12.3. So,
we need to change it. To do that, we must first remove the current route from the table. For this,
we use the command no ip route [destination_ip_address] [subnet_mask] [next_hop_address].
Then, we add the correct route with the command ip route [destination_ip_address]
[subnet_mask] [next_hop_address].
Figure 2.5: Routing table of R1
Figure 2.6: Replacing the incorrect route with the correct one
Now, the same is done for R2, where we first check the routing table and then make
changes if necessary. Indeed, we find changes need to be made in the routing table of R2 as the
present configuration of reaching 192.168.3.0 through G0/0 interface is incorrect. The correct
interface for that is G0/1 so we make the change. We use the same command as before except
this time we use the interface instead of the next hop address.
13
Figure 2.7: Routing table of R2
Figure 2.8: Editing the routing table of R2
As for the router R3, we find no errors in its routing table, so we leave it be.
Figure 2.9: Routing Table of R3
14
3. Pinging PC2 from PC1
Before we move forward with pinging the PCs, we check the IP address, default gateway, and the
subnet mask of the PCs itself just to be on the safe side. To do this, we enter the Desktop > IP
Configuration and check for all the above-mentioned things. We find no issues in either of the
PCs, so we go ahead to ping PC2 from PC1.
Inside the Desktop > Command Prompt, we use the command ping [destination_ip_address]
and wait to get a reply from the destination PC.
Figure 2.10: Pings from PC1 to PC2
15
Final Result
16
References
Jeremy's IT Lab. (2019, October 20). Free CCNA \ Configuring Interfaces \ Day 9 Lab \ CCNA 200-301
Complete Course [Video]. YouTube. https://www.youtube.com/watch?
v=ieTH5lVhNaY&list=PLxbwE86jKRgMpuZuLBivzlM8s2Dk5lXBQ&index=4
Jeremy's IT Lab. (2019, October 20). Free CCNA \ Troubleshooting Static Routes \ Day 11 Lab 2 \ CCNA
200-301 Complete Course [Video]. YouTube. https://www.youtube.com/watch?
v=ieTH5lVhNaY&list=PLxbwE86jKRgMpuZuLBivzlM8s2Dk5lXBQ&index=4