6.1.4 Configuring default route forwarding

Default routes are used to route packets with destinations that do not match any of the other routes in the routing table. A default route is actually a special static route that uses the following format:

ip route 0.0.0.0 0.0.0.0 [next-hop-address outgoing interface]

Use the following steps to configure default routes:

1.Enter global configuration mode.

2.Type the ip route command with 0.0.0.0 for the destination network address and 0.0.0.0 for the subnet mask. The gateway for the default route can be either the local router interface that connects to the outside networks or the IP address of the next-hop router. In most cases, the IP address of the next hop router should be specified.

3.Exit global configuration mode.

4.Save the active configuration to NVRAM with the copy running-configstartup-configcommand.

Here is an example for Rt1.

Rt1#config terminal

Enter configuration commands, one per line. End with CNTL/Z. Rt1(config)#ip route 0.0.0.0 0.0.0.0 192.168.1.2 Rt1(config)#exit

Rt1#

Rt1#copy running-config startup-config Destination filename [startup-config]? Building configuration...

Rt1#

Remind students of different types of router modes.

6.1.5 Verifying static route configuration

After static routes are configured it is important to verify that they are present in the routing table and that routing occurs as expected. The show running-configcommand is used to view the active configuration in NVRAM to verify that the static route was entered correctly.

66 - 238 CCNA 2: Routers and Routing Basics v3.1 Instructor Guide – Module 6

Copyright 2004, Cisco Systems, Inc.

Page 67
Image 67
Cisco Systems CCNA 2 manual Configuring default route forwarding, Verifying static route configuration