IP Router Command Reference
96 7705 SAR OS Router Configuration Guide
Parameters ip-prefix/prefix-length — the destination address of the static route
Values ipv4-prefix a.b.c.d (host bits must be 0)
ipv4-prefix-length 0 to 32
Values ipv6-prefix x:x:x:x:x:x:x:x (eight 16-bit pieces)
x:x:x:x:x:x:d.d.d.d
x: [0 to FFFF]H
 d: [0 to 255]D
ipv6-prefix-length {0 to 128} | {0 to 64 | 128}
netmask — the subnet mask in dotted-decimal notation
Values 0.0.0.0 to 255.255.255.255 (network bits all 1 and host bits all 0)
preference — the preference of this static route versus the routes from different sources such as 
OSPF, IS-IS, and BGP, expressed as a decimal integer. When modifying the preference of an 
existing static route, the metric will not be changed unless specified.
Different protocols should not be configured with the same preference. If this occurs, the 
tiebreaker is according to the route preference defaults listed in Table 8.
If multiple routes are learned with an identical preference using the same protocol, the lowest- 
cost route is used. If multiple routes are learned with an identical preference using the same 
protocol, and the costs (metrics) are equal, the route to use is determined by the configuration 
of the ecmp command. 
Default 5
Values 1 to 255
metric — the cost metric for the static route, expressed as a decimal integer. This value is used 
when importing the static route into other protocols such as OSPF or IS-IS. When the metric 
is configured as 0, then the metric configured in the other protocol applies. 
Table 8: Route Preference Defaults by Route Type 
Route Type Preference Configurable
Direct attached 0 No
Static routes 5 Yes
OSPF internal 10 Yes
IS-IS level 1 internal 15 Yes
IS-IS level 2 internal 18 Yes
OSPF external 150 Yes
IS-IS level 1 external 160 Yes
IS-IS level 2 external 165 Yes