Command Reference Manual
TSAT 3000 Command Line Interpreter
January 2013
Page 9 of 41
net route add <dest. addr> <gw addr> <mask> [options…]
This command adds a network route to the routing table.
The route only exist until the power of the main unit is cycled. Routes are added
to the routing table when the unit boots using the
RouteAdd
keys in the
[Network]
section of the system.conf file.
Release:
R1.0.0 => R3.0.2
Parameters:
<dest.addr>
Destination address in internet dot notation (ex: 192.168.0.1).
<gw addr>
Gateway address in internet dot notation.
<mask>
Hexadecimal value representing the netmask for the destination
address (ex: 0xFFFFFF00 for a 256 address network).
[options…]
Multiple select for type of service and route flags.
“host” : Single address network (Use mask=0 for host
routes).
R2.x.x options only:
“lowdelay” : Minimize delay
“throughput” : Maximize throughput
“reliability” : Maximize reliability
“mincost”
: Minimize monetary cost
Example (R2.x.x):
OSLO [RT1]> net route add 192.168.16.32 10.0.2.1 0xFFFFFF00
ROUTE ADD: IP Addr = 192.168.16.32 Gateway = 10.0.2.1 Mask = 0xFFFFFF00 Type of
service = 0x0 Route flags = 0x800
OSLO [RT1]>
net route add <destination/bitcount_mask> <gateway addr> [options…]
net route add <destination> <netmask addr> <gateway addr> [options…]
This command adds a network route to the routing table.
The route only exists until the power of the main unit is cycled. Routes are
added to the routing table when the unit boots using the
RouteAdd
keys in the
[Network]
section of the system.conf file.
Release:
R3.1.0 =>
Parameters:
<destination>
Destination address in internet dot notation (ex: 192.168.0.1).
<bitcount mask>
Netmask given as bitcount (ex: 192.168.0.1/24 for 256
address subnet ).
<netmask addr>
Netmask given in internet dot notation (ex: 255.255.255.0)
<gateway addr>
Gateway address in internet dot notation.
[options…]
“host”:
Single address network.
“hopcount” <value>:
Route prioritizing (metric)
Examples:
OSLO [RT1]> net route add 192.168.100.0/24 192.168.0.1
OSLO [RT1]>
OSLO [RT1]> net route add 192.168.100.0 255.255.255.0 192.168.0.1
OSLO [RT1]>
OSLO [RT1]> net route add 192.168.101.1/32 192.168.0.1 host
OSLO [RT1]>
OSLO [RT1]> net route add 192.168.101.0/24 192.168.1.1 hopcount 2
OSLO [RT1]>