Build A Switch and Router Network
Build A Switch and Router Network
Build A Switch and Router Network
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
R1
G0/0/1 192.168.1.1 255.255.255.0 N/A
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 - 2022 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
The router interfaces, default gateways have not been configured yet so the traffic is not
being routed between subnets.
Type your answers here.
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.
interface GigabitEthernet0/0/0
R1(config)# interface GigabitEthernet0/0/0
R1(config-if)# ip address 192.168.0.1 255.255.255.0
R1(config-if)# no shutdown
R1(config-if)# interface GigabitEthernet0/0/1
R1(config-if)# ip address 192.168.1.1 255.255.255.0
© 2020 - 2022 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
R1(config-if)# no shutdown
i. Save the running configuration to the startup configuration file.
Question:
Yes.The router is routing the ping traffic across the two subnets.The default setting for the
switch will automatically enable the interfaces that are connected to device
Type your answers here.
Step 1: Retrieve hardware and software information from the network devices.
a. Use the show version command to answer the following questions about the router.
R1# show version
Question:
What is the name of the IOS image that the router is running?
Cisco IOS Xe software version 03.16.05.s extended support release
Cisco IOS software , ISR software(X86_64_Linux_IOSD-..............
version 15.5(3) S5 Release software Ofc2)
Technical support:
http//www.cisco.com/techsupport
copyright ….
© 2020 - 2022 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
b. Use the show version command to answer the following questions about the switch.
S1# show version
Cisco IOS Software C2960 Software (C2960- Lanbase-M),Version …..
Software (fc) Copyright by Cisco System, Inc
ROM:C2960 Boot Loader (c2960-HBOOT-M)..........
Questions:
What code is used in the routing table to indicate a directly connected network?
The C designates a directly connected network.An L designates a local interface. Type your answers here.
How many route entries are coded with a C code in the routing table?
2 Type your answers here.
What interface types are associated to the C coded routes?
G0/0/0 and G0/0/1 Type your answers here.
© 2020 - 2022 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
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
Vlan1 unassigned YES NVRAM administratively down down
© 2020 - 2022 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
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.
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
Close configuration window
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 shutdownType your answers here.
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 on the 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.
© 2020 - 2022 Cisco and/or its affiliates. All rights reserved. Cisco Public Page 6 of 6 www.netacad.com