6.1.3 Configuring static routes

Use the following steps to configure static routes:

1.Determine all desired destination networks, their subnet masks, and their gateways. A gateway can be either a local interface or a next hop address that leads to the desired destination.

2.Enter global configuration mode.

3.Type the ip route command with the address and subnet mask of the destination followed by their corresponding gateway from Step 1. An administrative distance is optional.

4.Repeat Step 3 for as many destination networks as were defined in Step 1.

5.Exit global configuration mode.

6.Save the active configuration to NVRAM by using the copy running-configstartup-configcommand.

Here is an example of a route from Rt1 to network 192.168.2.0.

Rt1#config terminal

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

Rt1#

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

Rt1#

All routers must be configured. If Rt2 does not have a route back to network 192.168.0.0, a ping from network 192.168.0.0 will make it to network 192.168.2.0, but will not know how to get back. A relevant TI from CCNA 2 v2.1.4 is 12.1.4.

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

Copyright 2004, Cisco Systems, Inc.

Page 66
Image 66
Cisco Systems CCNA 2 manual Configuring static routes, Rt1#config terminal