Specifications

Basic Router Configuration
Configuring Static Routes
11
Cisco 3900 Series, 2900 Series, and 1900 Series Integrated Services Routers Software
OL-21850-01
Configuring Static Routes
Static routes provide fixed routing paths through the network. They are manually configured on the
router. If the network topology changes, the static route must be updated with a new route. Static routes
are private routes unless they are redistributed by a routing protocol.
To configure static routes, follow these steps, beginning in global configuration mode.
SUMMARY STEPS
1. ip route prefix mask {ip-address | interface-type interface-number [ip-address]}
2. end
DETAILED STEPS
Example
In the following configuration example, the static route sends out all IP packets with a destination IP
address of 192.168.1.0 and a subnet mask of 255.255.255.0 on the Gigabit Ethernet interface to another
device with an IP address of 10.10.10.2. Specifically, the packets are sent to the configured PVC.
You do not need to enter the command marked “(default).” This command appears automatically in the
configuration file generated when you use the show running-config command.
!
ip classless (default)
ip route 192.168.1.0 255.255.255.0 10.10.10.2!
Command Purpose
Step 1
ip route prefix mask {ip-address | interface-type
interface-number [ip-address]}
Example:
Router(config)# ip route 192.168.1.0
255.255.0.0 10.10.10.2
Router(config)#
Specifies the static route for the IP packets.
For details about this command and about
additional parameters that can be set, see Cisco
IOS IP Command Reference, Volume 2 of 4:
Routing Protocols, Release 12.3
Step 2
end
Example:
Router(config)# end
Router#
Exits router configuration mode, and enters
privileged EXEC mode.