Configuring Static Unicast Routes - Cisco Catalyst 3560-X Software Configuration Manual

Hide thumbs Also See for Catalyst 3560-X:
Table of Contents

Advertisement

Configuring Protocol-Independent Features

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.
Starting with Cisco IOS Release 12.2(58)SE, switches running the LAN base image support 16
user-configured static routes on SVIs. Static routing configuration is supported on the LAN base image
only with the default SDM template and only on SVI interfaces. No routing protocols are supported.
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. However, you can override static routes with
dynamic routing information by assigning administrative distance values. Each dynamic routing
protocol has a default administrative distance, as listed in
overridden by information from a dynamic routing protocol, set the administrative distance of the static
route higher than that of the dynamic protocol.
Table 1-16
Route Source
Connected interface
Static route
Enhanced IRGP summary route
External BGP
Internal Enhanced IGRP
IGRP
OSPF
Internal BGP
Unknown
Static routes that point to an interface are advertised through RIP, IGRP, and other dynamic routing
protocols, whether or not static redistribute router configuration commands were specified for those
routing protocols. These static routes are advertised because static routes that point to an interface are
considered in the routing table to be connected and hence lose their static nature. However, if you define
Catalyst 3750-X and 3560-X Switch Software Configuration Guide
1-94
Dynamic Routing Protocol Default Administrative Distances
Default Distance
0
1
5
20
90
100
110
200
225
Chapter 1
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.
Table
1-16. If you want a static route to be
Configuring IP Unicast Routing
OL-25303-03

Advertisement

Table of Contents
loading

This manual is also suitable for:

Catalyst 3750-x

Table of Contents