Specifications
Table Of Contents
- Title Page
- Notice
- Contents
- acl Commands
- acl-edit Commands
- aging Commands
- arp Commands
- cli Commands
- configure Command
- copy Command
- dvmrp Commands
- enable Command
- erase Command
- exit Command
- file Commands
- filters Commands
- http Commands
- igmp Commands
- interface Commands
- ip Commands
- ip-router Commands
- Command Summary
- ip-router authentication add key-chain
- ip-router authentication create key-chain
- ip-router global add
- ip-router global set
- ip-router global set trace-options
- ip-router global set trace-state
- ip-router global use provided_config
- ip-router kernel trace
- ip-router policy add filter
- ip-router policy add optional-attributes-list
- ip-router policy aggr-gen destination
- ip-router policy create aggregate-export-source
- ip-router policy create aggr-gen-dest
- ip-router policy create aggr-gen-source
- ip-router policy create aspath-export-source
- ip-router policy create bgp-export-destination
- ip-router policy create bgp-export-source
- ip-router policy create bgp-import-source
- ip-router policy create direct-export-source
- ip-router policy create filter
- ip-router policy create optional-attributes-list
- ip-router policy create ospf-export-destination
- ip-router policy create ospf-export-source
- ip-router policy create ospf-import-source
- ip-router policy create rip-export-destination
- ip-router policy create rip-export-source
- ip-router policy create rip-import-source
- ip-router policy create static-export-source
- ip-router policy create tag-export-source
- ip-router policy export destination
- ip-router policy import source
- ip-router policy redistribute
- ip-router show configuration file
- ip-router show state
- ipx Commands
- l2-tables Commands
- logout Command
- multicast Commands
- mtrace Command
- negate Command
- no Command
- ospf Commands
- Command Summary
- ospf add interface
- ospf add nbma-neighbor
- ospf add network
- ospf add stub-host
- ospf add virtual-link
- ospf create area
- ospf create-monitor
- ospf monitor
- ospf set area
- ospf set ase-defaults
- ospf set export-interval
- ospf set export-limit
- ospf set interface
- ospf set monitor-auth-method
- ospf set trace-options
- ospf set virtual-link
- ospf show
- ospf start|stop
- ping Command
- port Commands
- qos Commands
- reboot Command
- rip Commands
- save Command
- show Command
- snmp Commands
- statistics Commands
- stp Commands
- system Commands
- Command Summary
- system image add
- system image choose
- system image delete
- system image list
- system promimage upgrade
- system set bootprom
- system set contact
- system set date
- system set dns
- system set location
- system set name
- system set password
- system set poweron-selftest
- system set syslog
- system set terminal
- system show
- traceroute Command
- vlan Commands

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