Skip header
 

route

Use the “route” command to view and control the routing table.

Specified 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}

  • If you do not specify {host|net}, the host setting is automatically selected.

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.

  • If you do not specify {host|net}, the host setting is selected automatically.

  • You cannot specify“0.0.0.0” as the destination address.

Setting the Default IPv4 Gateway

msh> route add default “gateway”

Deleting specified IPv4 destination from Routing Table

msh> route delete {host|net} “destination”

  • If you do not specify {host|net}, the host setting is automatically selected.

  • 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[1-128]” “gateway”

  • Specify the IPv6 address to destination and gateway.

  • If the prefix of the address is between 1 and 127, the network is selected. If the prefix of the address is 128, the host is selected.

  • You cannot register a record that has the same destination and prefix as a registered record.

  • You cannot register a record that uses “0000:0000:0000:0000:0000:0000:0000:0000” as its destination.

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[1-128]” {on|off}

Route initialization

msh> route flush

Note

  • 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.