Configuring static routes – Cisco 15327 User Manual

Page 189

Advertising
background image

11-31

Ethernet Card Software Feature and Configuration Guide, R7.2

Chapter 11 Configuring Networking Protocols

Configuring Static Routes

Address Summarization:

None

Maximum path: 4

Routing for Networks:

FastEthernet0

POS0

Routing Information Sources:

Gateway Distance Last Update

192.168.2.1 115 00:06:48

Distance: (default is 115)

Router# show isis database

IS-IS Level-1 Link State Database:

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

Router_A.00-00 0x00000003 0xA72F 581 0/0/0

Router_A.02-00 0x00000001 0xA293 581 0/0/0

Router.00-00 * 0x00000004 0x79F9 582 0/0/0

IS-IS Level-2 Link State Database:

LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL

Router_A.00-00 0x00000004 0xF0D6 589 0/0/0

Router_A.02-00 0x00000001 0x328C 581 0/0/0

Router.00-00 * 0x00000004 0x6A09 586 0/0/0

Router# show clns neighbors

System Id Interface SNPA State Holdtime Type Protocol

Router_A PO0 0005.9a39.6790 Up 7 L1L2 IS-IS

Configuring Static Routes

Static routes are user-defined routes that cause packets moving between a source and a destination to
take a specified path. Static routes can be important if the router cannot build a route to a particular
destination. They are also useful for specifying a gateway of last resort to which all unroutable packets
are sent.

Beginning in privileged EXEC mode, follow these steps to configure a static route:

Example 11-18 Static Route

Router(config)# ip route 0.0.0.0 0.0.0.0 192.168.2.1

Use the no ip route prefix mask {address | interface} global configuration command to remove a static
route. Use the show ip route privileged EXEC command to view information about the static IP route
(

Example 11-19

).

Command

Purpose

Step 1

Router# configure terminal

Enters global configuration mode.

Step 2

Router(config)# ip route

prefix mask

{

address | interface } [distance]

Establishes a static route. Illustrated in

Example 11-18

.

Step 3

Router(config)# end

Returns to privileged EXEC mode.

Step 4

Router# copy running-config startup-config

(Optional) Saves your entries in the
configuration file.

Advertising