hit counter script

Configuring Static Unicast Routes - Cisco Catalyst 2975 Software Configuration Manual

Ios release 12.2(55)se
Hide thumbs Also See for Catalyst 2975:
Table of Contents

Advertisement

Chapter 34
Configuring Static IP Unicast Routing

Configuring Static Unicast Routes

Static unicast 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 and are 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:
Command
Step 1
configure terminal
Step 2
ip route prefix mask {address | interface} [distance]
Step 3
end
Step 4
show ip route
Step 5
copy running-config startup-config
Use the no ip route prefix mask {address | interface} global configuration command to remove a static
route. The switch retains static routes until you remove them.
When an interface goes down, all static routes through that interface are removed from the IP routing
table. When the software can no longer find a valid next hop for the address specified as the forwarding
router's address in a static route, the static route is also removed from the IP routing table.
Monitoring and Maintaining the IP Network
You can specific statistics for the routing table or database. Use the privileged EXEC commands in
Table 34-1
Table 34-1
Commands to Clear IP Routes or Display Route Status
Command
show ip route [address [mask] [longer-prefixes]] |
show ip route summary
show platform ip unicast
OL-19720-02
to display status:
Purpose
Display the state of the routing table.
Display the state of the routing table in summary form.
Display platform-dependent IP unicast information.
Configuring Static Unicast Routes
Purpose
Enter global configuration mode.
Establish a static route.
Return to privileged EXEC mode.
Display the current state of the routing table to verify
the configuration.
(Optional) Save your entries in the configuration file.
Catalyst 2975 Switch Software Configuration Guide
34-5

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents