Specifications

Table Of Contents
Chapter 17: ip Commands
17 - 2 SSR Command Line Interface Reference Manual
ip add route
Purpose
Configure a static route.
Format
ip add route
<ipAddr-mask>
|default gateway
<hostname-or-IPaddr>
[host] [interface
<hostname-or-IPaddr>
] [preference
<num>
]
[retain] [reject] [no-install] [blackhole]
Mode
Configure
Description
The
ip
add route
command creates a static route entry in the route table. The static
route can be a default route, a route to a network or a route a specific host.
Parameters
<ipAddr-mask>
IP address and netmask of the destination. You can specify
the address and mask information using the traditional for-
mat (example: 10.1.2.3/255.255.0.0) or the CIDR format
(example: 10.1.2.3/16). If you specify an address without
mask information, the SSR uses the natural mask for the
address ( /8 for Class A, /16 for Class B or /24 for Class C).
gateway
IP address or hostname of the next hop router for this route.
host
Specifies that this route is a route to a host.
interface
The next hop interface associated with this route. When
this option is specified, gateways are only considered valid
when they are on one of these interfaces
preference
The preference of this static route. The preference controls
how this route competes with routes from other protocols.
The parameter takes a value between 0-255. The default
preference is 60.
retain
If specified, this option prevents this static route from being
removed from the forwarding table when the routing ser-
vice (GateD) is gracefully shutdown. Normally gated re-
moves all routes except interface routes during a graceful