2.2.2.5 Lab - Configuring IPv4 Static and Default Routes
2.2.2.5 Lab - Configuring IPv4 Static and Default Routes
Topology
Addressing Table
Objectives
Part 1: Set Up the Topology and Initialize Devices
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 1 of 16
Lab – Configuring IPv4 Static and Default Routes
Background / Scenario
A router uses a routing table to determine where to send packets. The routing table contains a set of routes
that describe which gateway or interface the router uses to reach a specified network. Initially, the routing
table contains only directly connected networks. To communicate with distant networks, routes must be
specified and added to the routing table.
In this lab, you will manually configure a static route to a specified distant network based on a next-hop IP
address or exit interface. You will also configure a static default route. A default route is a type of static route
that specifies a gateway to use when the routing table does not contain a path for the destination network.
Note: This lab provides minimal assistance with the actual commands necessary to configure static routing.
However, the required commands are provided in Appendix A. Test your knowledge by trying to configure the
devices without referring to the appendix.
Note: The routers used with CCNA hands-on labs are Cisco 1941 Integrated Services Routers (ISRs) with
Cisco IOS Release 15.2(4)M3 (universalk9 image). The switches used are Cisco Catalyst 2960s with Cisco
IOS Release 15.0(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 output produced might vary
from what is shown in the labs. Refer to the Router Interface Summary Table at the end of this lab for the
correct interface identifiers.
Note: Make sure that the routers and switches have been erased and have no startup configurations. If you
are unsure, contact your instructor.
Required Resources
• 2 Routers (Cisco 1941 with Cisco IOS Release 15.2(4)M3 universal image or comparable)
• 2 Switches (Cisco 2960 with Cisco IOS Release 15.0(2) lanbasek9 image or comparable)
• 2 PCs (Windows 7, Vista, or XP with terminal emulation program, such as Tera Term)
• Console cables to configure the Cisco IOS devices via the console ports
• Ethernet and serial cables as shown in the topology
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 2 of 16
Lab – Configuring IPv4 Static and Default Routes
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 3 of 16
Lab – Configuring IPv4 Static and Default Routes
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 4 of 16
Lab – Configuring IPv4 Static and Default Routes
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 5 of 16
Lab – Configuring IPv4 Static and Default Routes
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 6 of 16
Lab – Configuring IPv4 Static and Default Routes
From host PC-A, is it possible to ping the host PC-C? SI This ping should be successful.
Note: It may be necessary to disable the PC firewall to ping between PCs.
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 7 of 16
Lab – Configuring IPv4 Static and Default Routes
From host PC-A, is it possible to ping the R1 address 198.133.219.1? SI This ping should be successful.
Step 4: Remove static routes for loopback addresses.
a. On R1, use the no command to remove the static routes for the two loopback addresses from the routing
table. Write the commands you used in the space provided.
R1(config)# no ip route 209.165.200.224 255.255.255.224 10.1.1.2
R1(config)# no ip route 198.133.219.0 255.255.255.0 S0/0/1
Note: A static route can be removed with the no command without specifying the exit interface or next- hop
ip address as displayed below.
R1(config)# no ip route 209.165.200.224 255.255.255.224
R1(config)# no ip route 198.133.219.0 255.255.255.0
b. View the routing table to verify the routes have been removed.
R1# show ip route
Codes: L - local, 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
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 8 of 16
Lab – Configuring IPv4 Static and Default Routes
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 9 of 16
Lab – Configuring IPv4 Static and Default Routes
Reflection
1. A new network 192.168.3.0/24 is connected to interface G0/0 on R1. What commands could be used to
configure a static route to that network from R3?
Las respuestas variarán. ruta ip 192.168.3.0 255.255.255.0 10.1.1.1, ruta ip192.168.3.0 255.255.255.0
s0/0/0, o ruta ip 0.0.0.0 0.0.0.0 s0/0/0.
Is there a benefit to configuring a directly connected static route instead of a recursive static route?
La configuración de una ruta estática conectada directamente permite que la tabla de enrutamiento
resuelva la interfaz de salida en una sola búsqueda en lugar de dos búsquedas, como es necesario para
las rutas estáticas recursivas.
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 10 of 16
Lab – Configuring IPv4 Static and Default Routes
Router Model Ethernet Interface #1 Ethernet Interface #2 Serial Interface #1 Serial Interface #2
1800 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
1900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
2801 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/1/0 (S0/1/0) Serial 0/1/1 (S0/1/1)
(F0/0) (F0/1)
2811 Fast Ethernet 0/0 Fast Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(F0/0) (F0/1)
2900 Gigabit Ethernet 0/0 Gigabit Ethernet 0/1 Serial 0/0/0 (S0/0/0) Serial 0/0/1 (S0/0/1)
(G0/0) (G0/1)
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.
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 11 of 16
Lab – Configuring IPv4 Static and Default Routes
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 13 of 16
Lab – Configuring IPv4 Static and Default Routes
version 15.2
service timestamps debug datetime msec
service timestamps log datetime msec
service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
enable secret 4 06YFDUHH61wAE/kLkDq9BGho1QM5EnRtoyr8cHAUg.2
!
no aaa new-model
memory-size iomem 15
!
!
!
!
!
!
!
no ip domain lookup
ip cef
no ipv6 cef
!
multilink bundle-name authenticated
!
!
!
!
!
vtp domain TSHOOT
vtp mode transparent
!
redundancy
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback0
ip address 209.165.200.225 255.255.255.224
!
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 14 of 16
Lab – Configuring IPv4 Static and Default Routes
interface Loopback1
ip address 198.133.219.1 255.255.255.0
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
shutdown
duplex auto
speed auto
!
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
duplex auto
speed auto
!
interface Serial0/0/0
ip address 10.1.1.2 255.255.255.252
clock rate 256000
!
interface Serial0/0/1
no ip aaddress
shutdown
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 192.168.0.0 255.255.255.0 Serial0/0/0
!
!
!
!
control-plane
!
!
banner motd ^CUnauthorized access prohibited!^C
!
line con 0
password 7 110A1016141D
logging synchronous
login
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 15 of 16
Lab – Configuring IPv4 Static and Default Routes
line vty 0 4
password 7 00071A150754
logging synchronous
login
transport input all
!
scheduler allocate 20000 1000
!
End
© 2017 Cisco and/or its affiliates. All rights reserved. This document is Cisco Public. Page 16 of 16