setroute(8)
268 SPARC Enterprise Mx000 Servers XSCF Reference Manual • Last Revised April 2010
-h Displays usage statement. When used with other options or
operands, an error occurs.
-m address Specifies the netmask to which routing information is forwarded.
To sp ecif y address, use the standard form of four integer values
delimited by "." (periods). For example, use xxx.xxx.xxx.xxx,
where xxx is an integer from 0-255. Zero suppression can be used
to specify the integer.
If you omitted the -m option, or if the destination IP address is
other than 0.0.0.0 and you specified 0.0.0.0 to the netmask, any of
the netmask will be set according to the address specified by
using the -n option.
In case of a "class A" address:
If the host portion of the address (lower 24 bits) is "0" (e.g.
20.0.0.0), then the netmask value 255.0.0.0 will be set.
If the host portion of the address (lower 24 bits) is other than
"0" (e.g. 20.18.108.10), then the netmask value
255.255.255.255 will be set.
In case of a "class B" address:
If the host portion of the address (lower 16 bits) is "0" (e.g.
136.18.0.0), then the netmask value 255.255.0.0 will be set.
If the host portion of the address (lower 16 bits) is other than
"0" (e.g. 136.18.108.10), then the netmask value 255.255.255.255
will be set.
In case of a "class C" address:
If the host portion of the address (lower 8 bits) is "0" (e.g.
200.18.108.0), then the netmask value 255.255.255.0 will be set.
If the host portion of the address (lower 8 bits) is other than
"0" (e.g. 200.18.108.10), then the netmask value 255.255.255.255
will be set.
If you specified 0.0.0.0 in the -n option, you must specify 0.0.0.0
in the -m option or you must omit the -m option.
-n address Specifies an IP address to which routing information is
forwarded. To specify address, use the standard form of four
integer values delimited by "." (periods). For example, use
xxx.xxx.xxx.xxx, where xxx is an integer from 0-255. Zero
suppression can be used to specify the integer.
If 0.0.0.0 is specified for address, the default routing information is
set.