0% found this document useful (0 votes)
40 views10 pages

Experiment 4

The document describes configuring basic settings on two Cisco routers, R1 and R2, to create a network according to a provided topology diagram. The procedure guides the user through configuring IP addresses, descriptions, passwords, and verifying the configurations on each router interface and between the two routers. It also provides instructions for configuring host PCs connected to each router.

Uploaded by

Just Someone
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views10 pages

Experiment 4

The document describes configuring basic settings on two Cisco routers, R1 and R2, to create a network according to a provided topology diagram. The procedure guides the user through configuring IP addresses, descriptions, passwords, and verifying the configurations on each router interface and between the two routers. It also provides instructions for configuring host PCs connected to each router.

Uploaded by

Just Someone
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Computer Engineering Computer Network Lab.

Fourth Class

Experiment (4)
Basic Cisco Router Configuration
Objective

In this experiment you will learn

 Design 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.
 Reflect upon and document the network implementation.

Introduction:

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.

Topology Diagram

Addressing Table

Dr. Heba Hakim -1- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

Procedure:

*Task 1: Perform Basic Configuration of Router R1.

Step 1: Enter privileged EXEC mode.

Router>enable
Router#

Step 2: Enter global configuration mode.


Router#configure terminal
Enter configuration commands, one per line. End with
CNTL/Z.
Router(config)#

Step 4: Configure the router name as R1.


Enter the command hostname R1 at the prompt.

Router(config)#hostname R1
R1(config)#

Step 5: Configure an EXEC mode password.


Configure an EXEC mode password using the enable secret password command. Use
class for the password.
R1(config)#enable secret class
R1(config)#

The enable secret command is used to provide an additional layer of security over the
enable password command. The enable secret command provides better security by
storing the enable secret password using a non-reversible cryptographic function.
The added layer of security encryption provides is useful in environments where the
password crosses the network or is stored on a TFTP server. When both the enable
password and enable secret passwords are configured, the

Step 6: Remove the enable password.

Because the enable secret is configured, the enable password is no longer necessary.
IOS commands can be removed from the configuration using the no form of the
command.

R1(config)#no enable password


R1(config)#

Dr. Heba Hakim -2- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

Step 7: 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)#

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)#

Step 10: Configure the FastEthernet 0/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 FastEthernet
0/0,changed state to up
R1(config-if)#

Step 11: Use the description command to provide a description for this interface.
R1(config-if)#description R1 LAN
R1(config-if)#

Step 12: Configure the Serial0/0/0 interface with the IP address 192.168.2.1/24.

Dr. Heba Hakim -3- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

Set the clock rate to 64000.


Note: Because the routers in the labs will not be connected to a live leased line, one
of the routers will need to provide the clocking for the circuit. This is normally
provided to each of the routers by the service provider. To provide this clocking
signal in the lab, one of the routers will need to act as the DCE on the connection.
This function is achieved by applying the clock rate 64000 command on the serial
0/0/0 interface, where the DCE end of the null modem cable has been connected.
The purpose of the clock rate command is discussed further in the “Static Routes”
Experiment.

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 not be activated until the serial interface on R2 is configured
and activated.

Step 13: Use the description command to provide a description for this interface.
R1(config-if)#description Link to R2
R1(config-if)#

Step 14: Use the end command to return to privileged EXEC mode.

R1(config-if)#end
R1#

Step 15: Save the R1 configuration.


Save R1 configuration using the copy running-config startup-config command.

R1#copy running-config startup-config


Building configuration...
[OK]
R1#

*Task 2: Perform Basic Configuration of Router R2.

Step 1: For R2, repeat Steps 1 through 9 from Task 1.

Step 2: Configure the Serial 0/0/0 interface with the IP address 192.168.2.2/24.

Dr. Heba Hakim -4- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

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)#

Step 3: Use the description command to provide a description for this interface.
R2(config-if)#description Link to R1
R2(config-if)#

Step 4: 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 FastEthernet
0/0, changed state to up
R2(config-if)#

Step 5: Use the description command to provide a description for this interface.
R1(config-if)#description R2 LAN
R1(config-if)#

Step 6: Use the end command to return to privileged EXEC mode.


R2(config-if)#end
R2#

Step 7: Save the R2 configuration.


Save R2 configuration using the copy running-config startup-config command,
R2#copy running-config startup-config
Building configuration...
[OK]
R2#

*Task 3: Configure IP Addressing on the Host PCs.

Step 1: Configure the host PC1.


Configure the host PC1 that is attached to R1 with an IP address of 192.168.1.10/24
and a default gateway of 192.168.1.1.

Dr. Heba Hakim -5- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

Step 2: Configure the host PC2.


Configure the host PC2 that is attached to R2 with an IP address of 192.168.3.10/24
and a default gateway of 192.168.3.1.

*Task 4: Examine Router show Commands.

There are many show commands that can be used to examine the operation of the
router. In both privileged EXEC and user EXEC modes, the command show ? provides
a list of available show commands. The list is considerably longer in privileged EXEC
mode than it is in user EXEC mode.

Step 1: Examine the show running-config command.


The show running-config command is used to display the contents of the currently
running configuration file. From privileged EXEC mode on the R1 router, examine the
output of the show running-config command. If the –-More-- prompt appears, press
the Spacebar to view the remainder of the command output.

R1#show running-config
!
version 12.3
!
hostname R1
!
!
enable secret 5 $1$AFDd$0HCi0iYHkEWR4cegQdTQu/
!
no ip domain-lookup
!
interface FastEthernet0/0
description R1 LAN
mac-address 0007.eca7.1511
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface FastEthernet0/1
mac-address 0001.42dd.a220
no ip address
duplex auto
speed auto
shutdown
!
interface Serial0/0
description Link to R2
ip address 192.168.2.1 255.255.255.0

Dr. Heba Hakim -6- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

clock rate 64000


!
interface Serial0/1
no ip address
shutdown
!
interface Vlan1
no ip address
shutdown
!
ip classless
!
!
!
!
line con 0
password cisco
line vty 0 4
password cisco
login
!
end

Step 2: Examine show startup-config command.


The show startup-config command displays the startup configuration file contained in
NVRAM. From privileged EXEC mode on the R1 router, examine the output of the
show startup-config command. If the –-More-- prompt appears, press the Spacebar
to view the remainder of the command output.

Step 4: Examine the show version command.


The show version command displays information about the currently loaded software
version along with hardware and device information. From privileged EXEC mode on
the R1 router, examine the output of the show version command. If the –-More--
prompt appears, press the Spacebar to view the remainder of the command output.

R1#show version

Step 5: Examine the show ip interface brief command.


The show ip interface brief command displays a summary of the usability status
information for each interface. From privileged EXEC mode on the R1 router,
examine the output of the show ip interface brief command. If the –-More-- prompt
appears, press the Spacebar to view the remainder of the command output.

R1#show ip interface brief


Interface IP-Address OK? Method Status Protocol

Dr. Heba Hakim -7- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

FastEthernet0/0 192.168.1.1 YES manual up up


FastEthernet0/1 unassigned YES manual administratively down down
Serial0/0/0 192.168.2.1 YES manual up up
Serial0/0/1 unassigned YES manual administratively down down
Vlan1 unassigned YES manual administratively down down
R1#

*Task 5: Using ping.


The ping command is a useful tool for troubleshooting Layers 1 though 3 of the OSI
model and diagnosing basic network connectivity. This operation can be performed
at either the user or privileged EXEC modes. Using ping sends an Internet Control
Message Protocol (ICMP) packet to the specified device and then waits for a reply.
Pings can be sent from a router or a host PC.

Step 1: Use the ping command to test connectivity between the R1 router and PC1.
R1#ping 192.168.1.10
Type escape sequence to abort.
Sending 5,100-byte ICMP Echos to 192.168.1.10,timeout is 2 Seconds:
.!!!!
Success rate is 80 percent (4/5),round-trip min/avg/max=72/79/91 ms

Each exclamation point (!) indicates a successful echo. Each period (.) on the display
indicates that the application on the router timed out while it waited for a packet
echo from a target. The first ping packet failed because the router did not have an
ARP table entry for the destination address of the IP packet.
Because there is no ARP table entry, the packet is dropped. The router then sends an
ARP request, receives a response, and adds the MAC address to the ARP table. When
the next ping packet arrives, it will be forwarded and be successful.

Step 2: Repeat the ping from R1 to PC1.


R1#ping 192.168.1.10
Type escape sequence to abort.
Sending 5,100-byte ICMP Echos to 192.168.1.10,timeout is 2 seconds:
!!!!!
Success rate is 100 percent(5/5),round-trip min/avg/max=72/83/93 ms
R1#

All of the pings are successful this time because the router has an entry for the destination
IP address in the ARP table.

Step 3: Send an extended ping from R1 to PC1.


To accomplish this, type ping at the privileged EXEC prompt and press Enter. Fill out the rest
of the prompts as shown:

R1#ping

Dr. Heba Hakim -8- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

Protocol [ip]:
Target IP address: 192.168.1.10
Repeat count [5]: 10
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 10, 100-byte ICMP Echos to 192.168.1.10, timeout is 2 sec:
!!!!!!!!!!
Success rate is 100 percent (10/10), round-trip min/avg/max =
53/77/94 ms
R1#

Step 4: Send a ping from PC1 to R1.

C:\> ping 192.168.1.1

The ping should respond with successful results.

*Task 6: Using traceroute.


The traceroute command is an excellent utility for troubleshooting the path that a packet
takes through an internetwork of routers. It can help to isolate problem links and routers
along the way. The traceroute command uses ICMP packets and the error message
generated by routers when the packet exceeds its Time-To-Live (TTL). This operation can be
performed at either the user or privileged EXEC modes. The Windows version of this
command is tracert.

Step 1: Use the traceroute command at the R1 privileged EXEC prompt to discover
the path that a packet will take from the R1 router to PC1.
R1#traceroute 192.168.1.10
Type escape sequence to abort.
Tracing the route to 192.168.1.10

1 192.168.1.10 103 msec 81 msec 70 msec

R1#

Step 2: Use the tracert command at the Windows command prompt to discover the
path that a packet will take from the R1 router to PC1.
C:\>tracert 192.168.1.1
Tracing route to 192.168.1.1 over a maximum of 30 hops:

1 71 ms 70 ms 73 ms 192.168.1.1

Trace complete.
C:\>

Dr. Heba Hakim -9- Dr. Abbas A. Jasim


Computer Engineering Computer Network Lab. Fourth Class

*Task 7: Verify and Test the Configurations.

Step 1: Verify that routing tables have the following routes using the show ip route
command.
The show ip route command and output will be thoroughly explored in upcoming chapters.
For now, you are interested in seeing that both R1 and R2 have two routes. Both routes are
designated with a C. These are the directly connected networks that were activated when
you configured the interfaces on each router. If you do not see two routes for each router
as shown in the following output, proceed to Step 2.

R1#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 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial0/0/0

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 192.168.2.0/24 is directly connected, Serial0/0/0
C 192.168.3.0

*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 router’s interfaces.

Dr. Heba Hakim -10- Dr. Abbas A. Jasim

You might also like