Use the "route" command to view and control the routing table.
All route information display
msh> route get "destination"
Specify the IPv4 address to destination.
"0.0.0.0" cannot be specified as destination address.
Enabling/disabling specified IPv4 destination
msh> route active {host|net} "destination" {on | off}
You can turn the specified destination on or off. Host becomes the default setting.
Adding IPv4 Routing Table
msh> route add {host|net} "destination" "gateway"
Adds a host or network route to "destination", and a gateway address to "gateway" in the table.
Specify the IPv4 address to destination and gateway.
Host becomes the default setting.
Setting default IPv4 Gateway
msh> route add default gateway
Deleting specified IPv4 destination from Routing Table
msh> route delete {host|net} "destination"
Host becomes the default setting.
IPv4 address of destination can be specified.
Setting IPv6 Default Gateway
msh> route add6 default gateway
Adding a specified IPv6 destination to Routing Table
msh> route add6 "destination" "prefixlen" "gateway"
Specify the IPv6 address to destination and gateway.
Deleting a specified IPv6 destination from Routing Table
msh> route delete6 "destination" "prefixlen"
Specify the IPv6 address to destination and gateway.
Display information about a specified IPv6 route information
msh> route get6 "destination"
Specify the IPv6 address to destination and gateway.
Enabling/disabling a specified IPv6 destination
msh> route active6 "destination" "prefixlen" {on | off}
Route initialization
msh> route flush
The maximum number of IPv4 routing tables is 16.
The maximum number of IPv6 routing tables is 2.
Set a gateway address when communicating with devices on an external network.
The same gateway address is shared by all interfaces.
"Prefixlen" is a number between 1 and 128.