route

Gets or sets the IPv4 network routes.

If the gateway is unreachable, the routing entry will be added to the configuration file, but it will not be added in the kernel routing table.

Display all existing route entries:

route

Add a new route entry:

route addr=0.0.0.0 masklen=0 gateway=0.0.0.0

Change an existing route entry:

route entry=0 [addr=0.0.0.0] [masklen=0] [gateway=0.0.0.0]

Delete a route entry:

route entry=0 delete
Option Description

addr

Routable IPv4 address block.

entry

Index of the route entry to be displayed or modified.

gateway

Route gateway’s IPv4 address.

masklen

Number of leading 1 bits in the network mask.