Week 7c. Basic Router Configuration
Week 7c. Basic Router Configuration
Have you ever run a relay? The first person runs the first leg of the race and hands off the baton to
the next runner, who continues forward in the second leg of the race and hands off the baton to the
third runner, and on it goes. Routing packets is very similar to a relay. But if the first runner does not
know where to find the second runner, or drops the baton in the first leg, then that relay team will
most certainly lose the race.
Routing packets is very similar to a relay. As you know, routing tables are created and used by
routers to forward packets from their local networks on to other networks. But a router cannot
create a routing table or forward any packets until it has been configured. If you plan to become a
network administrator you definitely must know how to do this. The good news? It is easy! This
module has Syntax Checker activities so that you can practice your configuration commands and see
the output. There are also some Packet Tracer activities to get you started. Let’s go!
Configure Initial Router Settings
Basic Router Configuration Steps
Basic Router Configuration Example
In this example, router R1 in the topology diagram will be configured with initial settings.
All router access should be secured. Privileged EXEC mode provides the user with complete access to the device and
its configuration. Therefore, it is the most important mode to secure.
The following commands secure privileged EXEC mode and user EXEC mode, enable Telnet and SSH remote access,
and encrypt all plaintext (i.e., user EXEC and VTY line) passwords.
Packet Tracer - Configure Initial Router Settings
In this activity, you will perform basic router configurations. You will secure access to the CLI and console port using
encrypted and plaintext passwords. You will also configure messages for users logging into the router. These banners
also warn unauthorized users that access is prohibited. Finally, you will verify and save your running configuration.
Objectives
Part 1: Verify the Default Router Configuration
Part 2: Configure and Verify the Initial Router Configuration
Part 3: Save the Running Configuration File
Background
In this activity, you will perform basic router configuration tasks. You will secure access to the CLI and console
port using encrypted and plain-text passwords. You will also configure messages for users who are logging into
the router. These banners warn unauthorized users that access is prohibited. Finally, you will verify and save your
running configuration.
Instructions
Verify the Default Router Configuration
Establish a console connection to R1.
Choose a Console cable from the available connections.
Click PCA and select RS 232.
Click R1 and select Console.
Click PCA > Desktop tab > Terminal.
Click OK and press ENTER. You are now able to configure R1.
Router> enable
Router#
Notice that the prompt changed in the configuration to reflect privileged EXEC mode.
Enter the show running-config command.
Router# show running-config
Questions:
Why does the router respond with the startup-config is not present message?
Close a configuration window
Password:
Questions:
Why would the enable secret password allow access to the privileged EXEC mode and the enable
password no longer be valid?
If you configure any more passwords on the router, are they displayed in the configuration file as plain text or
in encrypted form? Explain.
Type your answers here.
Close a configuration window
The task to configure a router interface is very similar to a management SVI on a switch. Specifically, it includes
issuing the following commands:
Note: When a router interface is enabled, information messages should be displayed confirming the enabled link.
Although the description command is not required to enable an interface, it is good practice to use it. It can be
helpful in troubleshooting on production networks by providing information about the type of network connected.
For example, if the interface connects to an ISP or service carrier, the description command would be helpful to
enter the third-party connection and contact information.
Note: The description-text is limited to 240 characters.
Using the no shutdown command activates the interface and is similar to powering on the interface. The interface
must also be connected to another device, such as a switch or a router, for the physical layer to be active.
Note: On inter-router connections where there is no Ethernet switch, both interconnecting interfaces must be
configured and enabled.
Note: Notice the informational messages informing us that G0/0/0 and G0/0/1 are enabled.
Verify Interface Configuration
There are several commands that can be used to verify interface configuration. The most useful of these is the show
ip interface brief and show ipv6 interface brief commands, as shown in the example.
show interfaces
show ip interface
For an end device to communicate over the network, it must be configured with the correct IP address information,
including the default gateway address. The default gateway is only used when the host wants to send a packet to a
device on another network. The default gateway address is generally the router interface address attached to the
local network of the host. The IP address of the host device and the router interface address must be in the same
network.
For example, assume an IPv4 network topology consisting of a router interconnecting two separate LANs. G0/0/0 is
connected to network 192.168.10.0, while G0/0/1 is connected to network 192.168.11.0. Each host device is
configured with the appropriate default gateway address.
In this example, if PC1 sends a packet to PC2, then the default gateway is not used. Instead, PC1 addresses the
packet with the IPv4 address of PC2 and forwards the packet directly to PC2 through the switch.
What if PC1 sent a packet to PC3? PC1 would address the packet with the IPv4 address of PC3, but would forward
the packet to its default gateway, which is the G0/0/0 interface of R1. The router accepts the packet and accesses its
routing table to determine that G0/0/1 is the appropriate exit interface based on the destination address. R1 then
forwards the packet out of the appropriate interface to reach PC3.
The same process would occur on an IPv6 network, although this is not
shown in the topology. Devices would use the IPv6 address of the local router as their default gateway.
Default Gateway on a Switch
A switch that interconnects client computers is typically a Layer 2 device. As such, a Layer 2 switch does not require
an IP address to function properly. However, an IP configuration can be configured on a switch to give an
administrator remote access to the switch.
To connect to and manage a switch over a local IP network, it must have a switch virtual interface (SVI) configured.
The SVI is configured with an IPv4 address and subnet mask on the local LAN. The switch must also have a default
gateway address configured to remotely manage the switch from another network.
The default gateway address is typically configured on all devices that will communicate beyond their local network.
To configure an IPv4 default gateway on a switch, use the ip default-gateway ip-address global configuration
command. The ip-address that is configured is the IPv4 address of the local router interface connected to the switch.
The figure shows an administrator establishing a remote connection to switch S1 on another network.
Note: Packets originating from host computers connected to the switch must already have the default gateway
address configured on their host computer operating systems.
A workgroup switch can also be configured with an IPv6 address on an SVI. However, the switch does not require the
IPv6 address of the default gateway to be configured manually. The switch will automatically receive its default
gateway from the ICMPv6 Router Advertisement message from the router.
Packet Tracer - Connect a Router to a LAN
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
R1
G0/1 192.168.11.1 255.255.255.0 N/A
R1
S0/0/0 (DCE) 209.165.200.225 255.255.255.252 N/A
R2 G0/0 10.1.1.1 255.255.255.0 N/A
R2
G0/1 10.1.2.1 255.255.255.0 N/A
R2
S0/0/0 209.165.200.226 255.255.255.252 N/A
PC1 NIC 192.168.10.10 255.255.255.0 192.168.10.1
PC2 NIC 192.168.11.10 255.255.255.0 192.168.11.1
PC3 NIC 10.1.1.10 255.255.255.0 10.1.1.1
PC4 NIC 10.1.2.10 255.255.255.0 10.1.2.1
Objectives
Part 1: Display Router Information
Part 2: Configure Router Interfaces
Part 3: Verify the Configuration
Background
In this activity, you will use various show commands to display the current state of the router. You will then use
the Addressing Table to configure router Ethernet interfaces. Finally, you will use commands to verify and test
your configurations.
Note: The routers in this activity are partially configured. Some of the configurations are not covered in this course
but they are provided to assist you in using verification commands.
a. Which command displays the statistics for all interfaces configured on a router?
Type your answers here.
b. Which command displays the information about the Serial 0/0/0 interface only?
Type your answers here.
c. Enter the command to display the statistics for the Serial 0/0/0 interface on R1 and answer the following
questions:
1) What is the IP address configured on R1?
Type your answers here.
2) What is the bandwidth on the Serial 0/0/0 interface?
Te your answers here.
d. Enter the command to display the statistics for the GigabitEthernet 0/0 interface and answer the following
questions:
1) What is the IP address on R1?
Type your answers here.
2) What is the MAC address of the GigabitEthernet 0/0 interface?
Type your answers.
3) What is the bandwidth (BW) of the GigabitEthernet 0/0 interface?
Type your answers here.
a. Which command displays a brief summary of the current interfaces, interface status, and the IP addresses
assigned to them?
Type your answers here.
b. Enter the command on each router and answer the following questions:
1) How many serial interfaces are there on R1 and R2?
Type your answers here.
2) How many Ethernet interfaces are there on R1 and R2?
Type your answers here.
3) Are all the Ethernet interfaces on R1 the same? If no, explain the difference(s).
Save the configuration files on both routers to NVRAM. What command did you use?
Type your answers here.
Close configuration window
How many interfaces on R1 and R2 are configured with IP addresses and in the “up” and “up” state?
Type your answers here.
What part of the interface configuration is NOT displayed in the command output?
Type your answers here.
What commands can you use to verify this part of the configuration?
Type your answers here.
b. Use the show ip route command on both R1 and R2 to view the current routing tables and answer the
following questions:
Questions:
1) How many connected routes (uses the C code) do you see on each router?
Type your answers here.
2) How many OSPF routes (uses the O code) do you see on each router?
Type your answers here.
3) If the router knows all the routes in the network, then the number of connected routes and dynamically
learned routes (OSPF) should equal the total number of LANs and WANs. How many LANs and WANs
are in the topology?
Type your answers here.
4) Does this number match the number of C and O routes shown in the routing table?
Type your answers here.
Note: If your answer is “no”, then you are missing a required configuration. Review the steps in Part 2.
Topology
You will receive one of three possible topologies.
Addressing Table
Device Interface IP Address Default Gateway
Objectives
Complete the network documentation.
Perform basic device configurations on a router and a switch.
Verify connectivity and troubleshoot any issues.
Scenario
Your network manager is impressed with your performance in your job as a LAN technician. She would like you to
demonstrate your ability to configure a router that connects two LANs. Your tasks include configuring basic
settings on a router and a switch using the Cisco IOS. You will also configure IPv6 addresses on network devices
and hosts. You will then verify the configurations by testing end-to-end connectivity. You goal is to establish
connectivity between all devices.
Note: The VLAN1 interface on will not be reachable over IPv6.
In this activity you will configure the router, switch, and the PC hosts.
Note: Packet Tracer will not score some configured values, however these values are required to accomplish full
connectivity in the network.
Requirements
Provide the missing information in the Addressing Table.
Note: Some of the information is provided in the Packet Tracer instructions for your topology.
Name the router and the second switch. You will not be able to access the switch.
Use cisco as the user EXEC password for all lines.
Use class as the encrypted privileged EXEC password.
Encrypt all plaintext passwords.
Configure an appropriate banner.
Configure IPv4 and IPv6 addressing for the switch according to the Addressing Table.
Configure IPv4 and IPv6 addressing for the switch according to the Addressing Table.
The hosts are partially configured. Complete the IPv4 addressing, and fully configure the IPv6 addresses
according to the Addressing Table.
Document interfaces with descriptions, including the VLAN 1 interface.
Save your configurations.
Verify connectivity between all devices. All devices should be able to ping all other devices with IPv4 and IPv6.
Troubleshoot and document any issues.
Implement the solutions necessary to enable and verify full end-to-end connectivity.
Note: Click Check Results button to see your progress. Click the Reset Activity button to generate a new set of
requirements.
End of document
Packet Tracer - Troubleshoot Default Gateway Issues
Addressing Table
Device Interface IP Address Subnet Mask Default Gateway
R1
G0/1 192.168.11.1 255.255.255.0 N/A
S1 VLAN 1 192.168.10.2 255.255.255.0 blank
S2 VLAN 1 192.168.11.2 255.255.255.0 blank
PC1 NIC 192.168.10.10 255.255.255.0 blank
PC2 NIC 192.168.10.11 255.255.255.0 blank
PC3 NIC 192.168.11.10 255.255.255.0 blank
PC4 NIC 192.168.11.11 255.255.255.0 blank
Objectives
Part 1: Verify Network Documentation and Isolate Problems
Part 2: Implement, Verify, and Document Solutions
Background
For a device to communicate across multiple networks, it must be configured with an IP address, subnet mask,
and a default gateway. The default gateway is used when the host wants to send a packet to a device on another
network. The default gateway address is generally the address of the router interface which is attached to the
local network that the host is connected to. In this activity, you will finish documenting the network. You will then
verify the network documentation by testing end-to-end connectivity and troubleshooting issues. The
troubleshooting method you will use consists of the following steps:
Verify the network documentation and use tests to isolate problems.
Determine an appropriate solution for a given problem.
Implement the solution.
Test to verify the problem is resolved.
Document the solution.
Throughout your CCNA studies, you will encounter different descriptions of the troubleshooting method, as well as
different ways to test and document issues and solutions. This is intentional. There is no set standard or template
for troubleshooting. Each organization develops unique processes and documentation standards (even if that
process is “we don’t have one”). However, all effective troubleshooting methodologies generally include the steps
above.
Note: If you are proficient with default gateway configurations, this activity might seem more involved than it
should be. You can, most likely, quickly discover and solve all the connectivity issues faster than following these
procedures. However, as you proceed in your studies, the networks and problems you encounter will become
increasingly more complex. In such situations, the only effective way to isolate and solve issues is to use a
methodical approach such as the one used in this activity.
Instructions
blank
Blank
Note: The table is an example; you must create your own document. You can use paper and pencil to draw a
table, or you can use a text editor or spreadsheet. Consult your instructor if you need further guidance.
Test connectivity to remote devices (such as from PC1 to PC4) and document any problems. This is frequently
referred to as end-to-end connectivity. This means that all devices in a network have the full connectivity
allowed by the network policy.
Note: Remote connectivity testing may not be possible yet, because you must first resolve local connectivity
issues. After you have solved those issues, return to this step and test connectivity between networks.
Lab - Build a Switch and Router Network (You can practice these skills using the Packet Tracer or lab equipment, if available.)
[Title]
Topology
Addressing Table
Device Interface IP Address / Prefix Default Gateway
R1 G0/0/0
2001:db8:acad::1/64
N/A
R1 G0/0/0
fe80::1
R1
G0/0/1 192.168.1.1 /24 N/A
N/A
R1 G0/0/1
2001:db8:acad:1::1/64
N/A
R1 G0/0/1
fe80::1
S1 VLAN 1 192.168.1.2 /24 192.168.1.1
PC-A NIC 192.168.1.3 /24 192.168.1.1
PC-A NIC
2001:db8:acad:1::3/64 fe80::1
PC-B NIC 192.168.0.3 /24 192.168.0.1
PC-B NIC
2001:db8:acad::3/64 fe80::1
Objectives
Part 1: Set Up the Topology and Initialize Devices
Part 2: Configure Devices and Verify Connectivity
Background / Scenario
This is a comprehensive lab to review previously covered IOS commands. In this lab, you will cable the equipment
as shown in the topology diagram. You will then 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.
This lab provides minimal assistance with the actual commands necessary to configure the router. Test your
knowledge by trying to configure the devices without referring to the content or previous activities.
Note: The routers used with CCNA hands-on labs are Cisco 4221 with Cisco IOS XE Release 16.9.4 (universalk9
image). The switches used in the labs are Cisco Catalyst 2960s with Cisco IOS Release 15.2(2) (lanbasek9
image). Other routers, switches, and Cisco IOS versions can be used. Depending on the model and Cisco IOS
version, the commands available and the output produced might vary from what is shown in the labs. Refer to the
Router Interface Summary Table at the end of the lab for the correct interface identifiers.
Note: Ensure that the routers and switches have been erased and have no startup configurations. Consult with
your instructor for the procedure to initialize and reload a router and switch.
The default bias template used by the Switch Database Manager (SDM) does not provide IPv6 address
capabilities. Verify that SDM is using either the dual-ipv4-and-ipv6 template or the lanbase-routing template.
The new template will be used after reboot even if the configuration is not saved.
S1# show sdm prefer
Use the following commands to assign the dual-ipv4-and-ipv6 template as the default SDM template.
S1# configure terminal
S1(config)# sdm prefer dual-ipv4-and-ipv6 default
S1(config)# end
S1# reload
Required Resources
1 Router (Cisco 4221 with Cisco IOS XE Release 16.9.4 universal image or comparable)
1 Switch (Cisco 2960 with Cisco IOS Release 15.2(2) lanbasek9 image or comparable)
2 PCs (Windows with a terminal emulation program, such as Tera Term)
Console cables to configure the Cisco IOS devices via the console ports
Ethernet cables as shown in the topology
Note: The Gigabit Ethernet interfaces on Cisco 4221 routers are autosensing and an Ethernet straight-through
cable may be used between the router and PC-B. If using another model Cisco router, it may be necessary to use
an Ethernet crossover cable.
Instructions
What code is used in the routing table to indicate a directly connected network?
Type your answers here.
How many route entries are coded with a C code in the routing table?
Type your answers here.
What interface types are associated to the C coded routes?
Type your answers here.
Use the show ipv6 route command on router R1 to display the IPv6 routes.
To see the IPv6 interface information, enter the show ipv6 interface brief command on R1.
R1# show ipv6 interface brief
Close configuration window
Reflection Questions
If the G0/0/1 interface showed that it was administratively down, what interface configuration command would you use
to turn the interface up?
Type your answers here.
What would happen if you had incorrectly configured interface G0/0/1 on the router with an IP address of 192.168.1.2?
Type your answers here.
Note: To find out how the router is configured, look at the interfaces to identify the type of router and how many
interfaces the router has. There is no way to effectively list all the combinations of configurations for each router class.
This table includes identifiers for the possible combinations of Ethernet and Serial interfaces in the device. The table
does not include any other type of interface, even though a specific router may contain one. An example of this might
be an ISDN BRI interface. The string in parenthesis is the legal abbreviation that can be used in Cisco IOS commands
to represent the interface.
End of Document