Experiment 4
Experiment 4
Fourth Class
Experiment (4)
Basic Cisco Router Configuration
Objective
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
Procedure:
Router>enable
Router#
Router(config)#hostname R1
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
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.
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.
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 2: Configure the Serial 0/0/0 interface with the IP address 192.168.2.2/24.
Step 3: Use the description command to provide a description for this interface.
R2(config-if)#description Link to R1
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)#
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.
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
R1#show version
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.
All of the pings are successful this time because the router has an entry for the destination
IP address in the ARP table.
R1#ping
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 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
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:\>
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.