Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

The command is used to configure static routing tables.

Syntax:

route add address|default gateway

route delete address [gateway]

This command provides with manual management of system routing tables. In the normal mode, when a routing daemon is active, this command is not needed. However, in some cases it allows to achieve more precise, non-standard configuration.

  • "add" - adds a route to a table
  • "delete" - deletes a route from a table
  • "address" - destination network IP-address or host address. The parameter can be specified in the following formats: network-address/mask length, or network-address:mask, or network-address.
  • "gateway" - IP-address of the router through which the address is attainable.

It is possible to use the keyword default instead of explicitly specifying the 0/0 IP-address.

Examples,

route add default 195.38.44.129
route add 193.124.189.0/27 195.38.44.108
route add 193.124.189.0:255.255.255.224 195.38.44.108

All routes that are described using route add command are “pseudostatic”. It means that this information will be immediately placed into the configuration and will be active until it is deleted using route delete command. However, actually described routes will be put into the system tables only when there is an interface with an address and a mask within the boundaries of the gateway address set. When this address is absent routes set will be automatically deleted from system tables but still will be present in the configuration. 

  • No labels