19.4.4 Packet Tracer - Build A Switch and Router Network - Fikki Arsy Nurfadilah - TF3B - 202010225026
19.4.4 Packet Tracer - Build A Switch and Router Network - Fikki Arsy Nurfadilah - TF3B - 202010225026
19.4.4 Packet Tracer - Build A Switch and Router Network - Fikki Arsy Nurfadilah - TF3B - 202010225026
Addressing Table
Objectives
Part 1: Configure Devices and Verify Connectivity
• Assign static IP information to the PC interfaces.
• Configure the router and switch. Verify network connectivity.
Part 2: Display Device Information
• Retrieve hardware and software information from the network devices.
• Interpret the output from the routing table.
• Display interface information on the router.
• Display a summary list of the interfaces on the router and switch.
Part 3: Secure Remote Access to the Router
• Set the IP domain name and generate secure keys.
• Create an SSH user and configure VTY lines for SSH-only access.
• Verify SSH Implementation.
Background / Scenario
In this lab, you will cable the equipment and configure the devices to match the Addressing Table. After the
configurations have been saved, you will verify your configurations by testing for network connectivity.
After the devices have been configured and network connectivity has been verified, you will use IOS
commands to retrieve information from the devices to answer questions about your network equipment. You
will also access the router remotely via SSH.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 1 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
Instructions
Part 1: Configure Devices and Verify Connectivity
In Part 1, you will set up the network topology and configure basic settings, such as the interface IP
addresses, device access, and passwords. Refer to the Addressing Table at the beginning of this activity for
device names and address information.
a. Console into the router and enable privileged EXEC mode. (Hint: Use console cable and terminal on a
PC)
b. Enter configuration mode.
c. Assign a device name to the router according to the Addressing Table.
d. Assign class as the privileged EXEC encrypted password.
e. Assign cisco as the console password and enable login.
f. Encrypt the plaintext passwords.
g. Create a banner that warns anyone accessing the device that unauthorized access is prohibited.
h. Configure the IP addresses according to the Addressing Table and activate both Ethernet interfaces on
the router.
i. Save the running configuration to the startup configuration file.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 2 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
What is the name of the IOS image that the router is running?
b. Use the show version command to answer the following questions about the switch.
S1# show version
What code is used in the routing table to indicate a directly connected network?
How many route entries are coded with a C code in the routing table?
What is the Media Access Control (MAC) address of the G0/01 interface?
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 3 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
Step 4: Display a summary list of the interfaces on the router and switch.
There are several commands that can be used to verify an interface configuration. One of the most useful of
these is the show ip interface brief command. The command output displays a summary list of the
interfaces on the device and provides immediate feedback to the status of each interface.
a. Enter the show ip interface brief command on the router.
R1# show ip interface brief
Interface IP-Address OK? Method Status Protocol
GigabitEthernet0/0/0 192.168.0.1 YES NVRAM up up
GigabitEthernet0/0/1 192.168.1.1 YES NVRAM up up
Serial0/1/0 unassigned YES unset down down
Serial0/1/1 unassigned YES unset down down
Vlan1 unassigned YES NVRAM administratively down down
Step 2: Create an SSH user and configure VTY lines for SSH-only access.
a. Create a user with SSHuser as the username and cisco as the secret password.
R1(config)# username SSHuser secret cisco
b. Configure the VTY lines to use the local username database for login credentials.
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 4 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
R1(config)# line vty 0 4
R1(config-line)# login local
c. The VTY lines should only allow SSH for remote access.
R1(config-line)# transport input ssh
You should be at the prompt of R1. If you are not successful, verify the configurations are correct and the
credentials were entered correctly.
Reflection
1. If the G0/0/1 interface showed administratively down, what interface configuration command would you use to
turn the interface up?
2. What would happen if you had incorrectly configured interface G0/0/1 on the router with an IP address of
192.168.1.2?
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 5 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
Answer Key
Part 1: Configure Devices and Verify Connectivity
Step 1: Connect the devices.
How many route entries are coded with a C code in the routing table?
2
What interface types are associated to the C coded routes?
G0/0/0 and G0/0/1
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 7 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
Step 4: Display a summary list of the interfaces on the router and switch.
Part 3: Secure Remote Access to the Router
Step 1: Set the IP domain name and generate secure keys.
Step 2: Create an SSH user and configure VTY lines for SSH-only access.
Step 3: Verify SSH Implementation.
What is the displayed message?
The configured banner MOTD is displayed.
Reflection
1. If the G0/0/1 interface showed administratively down, what interface configuration command would you use to
turn the interface up?
R1(config-if)# no shutdown
2. What would happen if you had incorrectly configured interface G0/0/1 on the router with an IP address of
192.168.1.2?
PC-A would not be able to ping PC-B. This is because PC-B is on a different network than PC-A which
requires the default-gateway router to route these packets. PC-A is configured to use the IP address
of 192.168.1.1 for the default-gateway router, but this address is not assigned to any device on the
LAN. Any packets that need to be sent to the default-gateway for routing will never reach their
destination.
Script
Router R1
hostname R1 enable secret class username
SSHuser secret cisco interface
GigabitEthernet0/0/0 ip address 192.168.0.1
255.255.255.0 no shutdown interface
GigabitEthernet0/0/1 ip address 192.168.1.1
255.255.255.0 no shutdown banner motd
"Unauthorized access prohibited!" service
password-encryption line con 0 password
cisco login line vty 0 4 login local
transport input ssh
ip domain-name academy.net
crypto key generate rsa
1024
Switch S1
hostname S1 enable secret class interface Vlan1
ip address 192.168.1.2 255.255.255.0 no
shutdown service password-encryption ip default-
gateway 192.168.1.1 banner motd "Unauthorized
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 8 of 6 www.netacad.com
Packet Tracer - Build a Switch and Router Network
Access is Prohibited." line con 0 password
cisco login
2020 - 2020 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 9 of 6 www.netacad.com