E2 Lab 1 5 2
E2 Lab 1 5 2
E2 Lab 1 5 2
Addressing Table
Device Interface IP Address Subnet Mask Def. Gateway
R1
Fa0/0
192.168.1.1
255.255.255.0
N/A
S0/0/0
192.168.2.1
255.255.255.0
N/A
R2
Fa0/0
192.168.3.1
255.255.255.0
N/A
S0/0/0
192.168.2.2
255.255.255.0
N/A
PC1
N/A
192.168.1.10
255.255.255.0
192.168.1.1
PC2
N/A
192.168.3.10
255.255.255.0
192.168.3.1
Learning Objectives
Upon completion of this lab, you will be able to: Cable a network according to the Topology Diagram. Erase the startup configuration and reload a router to the default state. Perform basic configuration tasks on a router. Configure and activate Ethernet interfaces. Test and verify configurations.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
1 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
Scenario
In this lab activity, you will create a network that is similar to the one shown in the Topology Diagram. Begin by cabling the network as shown in the Topology Diagram. You will then perform the initial router configurations required for connectivity. Use the IP addresses that are provided in the Topology Diagram to apply an addressing scheme to the network devices. When the network configuration is complete, examine the routing tables to verify that the network is operating properly. This lab is a shorter version of Lab 1.5.1: Cabling a Network and Basic Router Configuration and assumes you are proficient in basic cabling and configuration file management.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
2 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
3 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
System configuration has been modified. Save? [yes/no]: no Proceed with reload? [confirm] Press Enter when prompted to [confirm] that you really do want to reload the router. After the router finishes the boot process, choose not to use the AutoInstall facility, as shown: Would Would Press Press you like to enter the initial configuration dialog? [yes/no]: no you like to terminate autoinstall? [yes]: [Press Return] Enter to accept default. RETURN to get started!
Step 5: Repeat Steps 1 through 4 on router R2 to remove any startup configuration file that may be present.
Step 4: Configure the router name as R1. Enter the command hostname R1 at the prompt. Router(config)#hostname R1 R1(config)#
Step 5: Disable DNS lookup. Disable DNS lookup with the no ip domain-lookup command. R1(config)#no ip domain-lookup R1(config)# Why would you want to disable DNS lookup in a lab environment? To avoid wasted time What would happen if you disabled DNS lookup in a production environment?
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
4 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
Step 6: Configure the EXEC mode password. Configure the EXEC mode password using the enable secret password command. Use class for the password. R1(config)#enable secret class R1(config)# Why is it not necessary to use the enable password password command? Because enable secret overrides enable password. Step 7: Configure a message-of-the-day banner. Configure a message-of-the-day banner using the banner motd command. R1(config)#banner motd & Enter TEXT message. End with the character '&'. ******************************** !!!AUTHORIZED ACCESS ONLY!!! ******************************** & R1(config)# When does this banner display? Upon requesting access. Why should every router have a message-of-the-day banner? To inform intentional and unintentional users of the device. Step 8: Configure the console password on the router. Use cisco as the password. When you are finished, exit from line configuration mode. R1(config)#line console 0 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#exit R1(config)#
Step 9: Configure the password for the virtual terminal lines. Use cisco as the password. When you are finished, exit from line configuration mode. R1(config)#line vty 0 4 R1(config-line)#password cisco R1(config-line)#login R1(config-line)#exit R1(config)#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
5 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
Step 10: Configure the FastEthernet0/0 interface. Configure the FastEthernet0/0 interface with the IP address 192.168.1.1/24. R1(config)#interface fastethernet 0/0 R1(config-if)#ip address 192.168.1.1 255.255.255.0 R1(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R1(config-if)#
Step 11: Configure the Serial0/0/0 interface. Configure the Serial0/0/0 interface with the IP address 192.168.2.1/24. Set the clock rate to 64000. Note: The purpose of the clock rate command is explained in Chapter 2: Static Routes. R1(config-if)#interface serial 0/0/0 R1(config-if)#ip address 192.168.2.1 255.255.255.0 R1(config-if)#clock rate 64000 R1(config-if)#no shutdown R1(config-if)# Note: The interface will be activated until the serial interface on R2 is configured and activated Step 12: Return to privileged EXEC mode. Use the end command to return to privileged EXEC mode. R1(config-if)#end R1# Step 13: Save the R1 configuration. Save the R1 configuration using the copy running-config startup-config command. R1#copy running-config startup-config Building configuration... [OK] R1# What is a shorter version of this command? Copy run start
6 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
Configure the Serial 0/0/0 interface with the IP address 192.168.2.2/24. R2(config)#interface serial 0/0/0 R2(config-if)#ip address 192.168.2.2 255.255.255.0 R2(config-if)#no shutdown %LINK-5-CHANGED: Interface Serial0/0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up R2(config-if)#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
7 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
Step 3: Configure the FastEthernet0/0 interface. Configure the FastEthernet0/0 interface with the IP address 192.168.3.1/24. R2(config-if)#interface fastethernet 0/0 R2(config-if)#ip address 192.168.3.1 255.255.255.0 R2(config-if)#no shutdown %LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up R2(config-if)# Step 4: Return to privileged EXEC mode. Use the end command to return to privileged EXEC mode. R2(config-if)#end R2# Step 5: Save the R2 configuration. Save the R2 configuration using the copy running-config startup-config command. R2#copy running-config startup-config Building configuration... [OK] R2#
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
8 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
-----------------------R2#show ip route Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2 ia - IS-IS inter area, * - candidate default, U - per-user static route o - ODR, P - periodic downloaded static route Gateway of last resort is not set C C 192.168.2.0/24 is directly connected, Serial0/0/0 192.168.3.0/24 is directly connected, FastEthernet0/0
Step 2: Verify interface configurations. Another common problem is router interfaces that are not configured correctly or not activated. Use the show ip interface brief command to quickly verify the configuration of each routers interfaces. Your output should look similar to the following: R1#show ip interface brief Interface IP-Address
Protocol
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information. Page
9 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
YES manual up up YES unset administratively down down YES manual up up YES unset administratively down down YES manual administratively down down
-----------------------R2#show ip interface Interface FastEthernet0/0 FastEthernet0/1 Serial0/0/0 Serial0/0/1 Vlan1 brief IP-Address 192.168.3.1 unassigned 192.168.2.2 unassigned unassigned
OK? Method Status Protocol YES manual up up YES unset administratively down down YES manual up up YES unset down down YES manual administratively down down
If both interfaces are up and up, then both routes will be in the routing table. Verify this again by using the show ip route command. Step 3: Test connectivity. Test connectivity by pinging from each host to the default gateway that has been configured for that host. From the host attached to R1, is it possible to ping the default gateway? Yes From the host attached to R2, is it possible to ping the default gateway? Yes If the answer is no for any of the above questions, troubleshoot the configurations to find the error using the following systematic process: Check the PCs. Are they physically connected to the correct router? (Connection could be through a switch or directly.) Yes Are link lights blinking on all relevant ports? Yes Check the PC configurations. Do they match the Topology Diagram? Yes Check the router interfaces using the show ip interface brief command. Are the interfaces up and up? Yes If your answer to all three steps is yes, then you should be able to successfully ping the default gateway. Step 4: Test connectivity between router R1 and R2. From the router R1, is it possible to ping R2 using the command ping 192.168.2.2? Yes From the router R2, is it possible to ping R1 using the command ping 192.168.2.1? Yes If the answer is no for the questions above, troubleshoot the configurations to find the error using the following systematic process:
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page
10 of 11
CCNA Exploration Routing Protocols and Concepts: Introduction to Routing and Packet Forwarding
Check the cabling. Are the routers physically connected? Yes Are link lights blinking on all relevant ports? Yes Check the router configurations. Do they match the Topology Diagram? Yes Did you configure the clock rate command on the DCE side of the link? Yes Check the router interfaces using the show ip interface brief command. Are the interfaces up and up? Yes If your answer to all three steps is yes, then you should be able to successfully ping from R2 to R1 and from R2 to R3.
Task 7: Reflection
Step 1: Attempt to ping from the host connected to R1 to the host connected to R2. This ping should be unsuccessful. Step 2: Attempt to ping from the host connected to R1 to router R2. This ping should be unsuccessful. Step 3: Attempt to ping from the host connected to R2 to router R1. This ping should be unsuccessful. What is missing from the network that is preventing communication between these devices? The devices have no routing
Task 8: Documentation
On each router, capture the following command output to a text (.txt) file and save for future reference. show running-config show ip route show ip interface brief If you need to review the procedures for capturing command output, refer to Lab 1.5.1, Cabling a Network and Basic Router Configuration.
Task 9: Clean Up
Erase the configurations and reload the routers. Disconnect and store the cabling. For PC hosts that are normally connected to other networks (such as the school LAN or to the Internet), reconnect the appropriate cabling and restore the TCP/IP settings.
All contents are Copyright 19922007 Cisco Systems, Inc. All rights reserved. This document is Cisco Public Information.Page
11 of 11