Cisco Networking
Cisco Networking
Prerequisite
Lab Objective:
The main objective of this lab is to provide participants with hands-on experience in using the
Command Line Interface (CLI) and basic commands. By the end of this lab, participants should be
able to:
Topology:
The lab is prepared with the devices that are represented in the topology diagram, with the IPv4
addresses depicted in the table.
Device Information:
The lab devices have been fully configured; you’ll use Cisco IOS commands to verify device
configurations.
To launch Cisco Packet Tracer on the desktop, follow the following steps:
a) Click “OK” on the dialog box that pops and on any other dialog boxes appear during the
startup process until Cisco Packet Tracer has fully loaded.
b) Once Cisco Packet Tracer is running, proceed to open "Module 1 Lab.pkt," by following these
steps:
a. Click on the "File" menu in the Packet Tracer application.
b. Select the "Open" option from the menu.
c) In the file selection dialog box, navigate to coursera directory by following this path:
"/home/coder/coursera"
d) Locate and select the "Module 1 Lab.pkt" file, and then click the "Open" button to load the
lab file into Cisco Packet Tracer.
Click SW1 and navigate to the CLI tab then press Enter key. Use enable command to access the
privileged EXEC mode.
There is no password configured on the switch. The change of the last character in the prompt from
> to # is an indication you have successfully accessed the privileged mode.
Step 3. Display SW1 Hardware and Software Info
To examine key information about the SW1's hardware and software configuration, use the “show
version” command. This command gives details such as the switch's model, installed memory,
software version, uptime, and configuration register. Use the space bar key on the keyboard to reveal
the subsequent page of output. Continue pressing it until you reach the conclusion of the command
output.
To display the current active configuration of SW1, use "show running-config" command. Use the
space bar keyboard key to load the next page.
- Service Settings: Various service timestamps and password-encryption features are disabled.
- Spanning-Tree: Spanning Tree Protocol is enabled, using the Per-VLAN Spanning Tree (PVST) mode.
- Interfaces: FastEthernet interface 0/1 is configured with full duplex and 100 Mbps speed. Interfaces
0/2 to 0/24 and GigabitEthernet interfaces 0/1 to 0/2 have no specific configurations (default
settings).
- VLAN: VLAN 1 has an IP address of 192.168.1.100 with a subnet mask of 255.255.255.0 assigned to
it.
- Line Settings: Console and virtual terminal (VTY) lines have login enabled.
To display only a section of the command output, use “|” and an Output Modifier after the show
command.
This command combines two commands using the pipe (|) symbol. The first command (show
running-config) displays the current running configuration of the device. The second command
(include hostname) filters the output to only show lines that contain the word "hostname."
The output indicates that the device's hostname is set to "SW1." This is the configured name of the
device as identified in the running configuration.
Run the command “show interfaces” and use space bar keyboard key to display next page output
until you get to the end of the command output.
This provides detailed information about the status and configuration of all interfaces on the switch
and offers an overview of the various physical and logical interfaces, such as Ethernet interfaces
(FastEthernet and GigabitEthernet), VLAN interfaces, and port-channel interfaces.
The command output typically includes data about interface status, statistics, errors, and other
relevant parameters.
A more meaningful way to use the “show interfaces” command is to specify an interface with the
command. Examine interface FastEthernet 0/1 by running the command “show interfaces
FastEthernet 0/1”
Hardware: The interface is using Lance hardware with the MAC address 0060.3e21.7c01 (bia
0060.3e21.7c01)
Bandwidth and Delay: The bandwidth is set to 100000 Kbit, and the delay is 1000 microseconds.
Reliability and Load: The interface reliability is 255/255, and the transmission load is 1/255 while the
reception load is 1/255.
Duplex and Speed: The interface is running in full-duplex mode at a speed of 100 Mb/s.
Flow Control: Flow control is turned off for both input and output.
ARP: ARP type is ARPA, and the ARP timeout is set to 04:00:00 (4 hours).
Last Input/Output: The time since the last input and output on the interface is 00:00:08 and
00:00:05, respectively.
Input/Output Queue: The input queue has 0/75/0/0 (size/max/drops/flushes) packets, and there
have been 0 output drops.
Queueing Strategy: The interface uses FIFO (First-In-First-Out) queueing strategy.
Traffic Rates: The 5-minute input and output rates are both 0 bits/sec and 0 packets/sec.
Traffic Counters: The interface has received 956 packets, totaling 193351 bytes, with 956 broadcasts.
No errors, CRC, frame, overrun, ignored, or abort conditions are reported for input. The interface has
sent 2357 packets, totaling 263570 bytes, with no underruns.
Errors and Collisions: No input or output errors or collisions have been detected.
Other Statistics: There are no multicast packets, pause input, input packets with dribble condition
detected, babbles, late collisions, deferred packets, lost carrier, or no carrier. No output buffer
failures or output buffers swapped out have occurred.
To test connectivity between the switch and a specified destination IP address, use the “ping”
command.
192.168.1.1,
192.168.2.1,
192.168.2.100,
200.0.0.1 and
200.0.0.2
Destination IP: The command specifies the destination IP address to ping (e.g., "ping
192.168.2.100").
Sent Packets: "Sending 5, 100-byte ICMP Echos" indicates that the switch sent 5 ICMP echo requests,
each containing 100 bytes of data.
Timeout: "timeout is 2 seconds" shows the time the switch waits for each echo reply before
considering the request as timed out.
Response: "!!!!!" represents the ICMP echo replies received from the destination. Each exclamation
mark (!) indicates a successful reply for one sent packet.
Success Rate: "Success rate is 100 percent (5/5)" shows that all 5 ICMP echo requests were
successful, meaning all of them received a reply.
Round-Trip Time: "round-trip min/avg/max = 1/2/5 ms" provides statistics on the round-trip time for
the ICMP echo requests. In this example, the minimum round-trip time was 1 ms, the average was 2
ms, and the maximum was 5 ms.
Use “traceroute” command to trace the path taken by packets from the switch to destination IP
192.168.2.100 (SW2). Determine if packets successfully reached the destination IP address and how
many hops (intermediate network devices) were identified between the source and destination.
Source: The traceroute was initiated from the Cisco switch "SW1".
Intermediate Hops: The output shows two intermediate network devices (routers) through which
the packets passed before reaching the destination:
Hop 1: The first hop is "192.168.1.1". The packets took 0 milliseconds (msec) to reach this
hop from the source switch.
Hop 2: The second hop is "200.0.0.2". The packets took 0 msec to reach this hop from the
first hop.
Hop 3: The third hop is "192.168.2.100", which is the destination IP address itself. The
packets took 1 msec to reach the destination from the second hop.
Note: The "msec" values represent the time taken in milliseconds for each hop.
This output indicates that the packets successfully reached the destination IP address "192.168.2.10"
via two intermediate hops.
Switch back to packet tracer main page and click on R1, then click CLI tab and press Enter key to
access the prompt.
Use enable command to get to the privileged EXEC mode. Then type “show ip route” command and
hit Enter key to display the routing table.
A router uses the routing table information to make decisions about how to forward incoming
packets to their intended destinations.
1. Gateway of last resort: Not set. This means there is no default gateway configured.
2. Connected Routes:
● 192.168.1.0/24 is directly connected to GigabitEthernet0/0/0 interface.
● 192.168.1.1/32 is the local address for GigabitEthernet0/0/0.
3. Static Route:
● 192.168.2.0/24 is reachable via next hop 200.0.0.2.
4. Connected Routes:
● 200.0.0.0/24 is directly connected to Serial0/1/0 interface.
● 200.0.0.1/32 is the local address for Serial0/1/0.
Lab Conclusion:
In conclusion, this lab provided valuable hands-on experience with the Command Line Interface (CLI)
and fundamental commands used in networking. Participants successfully accomplished the
following:
These skills are essential for network administrators and engineers to troubleshoot, configure, and
manage network devices effectively.