Net To Net Technologies SIA2410R User Manual
Net To Net Technologies
22
Configuring the Routing Table
Setting up Static Route
A static route is a path from one network to another, which specifies
the destination network and the router to use get to that network. For
routes that must be reliable, the administrator often configures more
than one path (adds a secondary route), in which case the SIA2410R
chooses the primary route on the basis of an assigned metric.
Note:
If no routes exist for the destination address of a packet, the SIA2410R
forwards the packet to the default route. If there is no default route,
the SIA2410R drops the packet.
Command
ip route add default
<ifname> [<gw>] [<metric>]
ip route add
<net> <mask> <ifname> [<gw>] [<metric>]
Parameters
default
Adds the default route
<net> <mask>
Adds the destination network
<ifname>
Name of the interface through which a packet
addressed to this destination will be sent.
<gw>
The address of the gateway to use for that destination
network.
<metric>
A metric value for this route
Usage
Examples
(conf)#
ip route add default wan
(conf)#
ip route add 210.10.10.0 255.255.255.0 lan 168.126.188.5
Note:
The “ip route add” command can add multiple paths of the same
network. To overwrite a static route to that network, you must first
remove any existing route (or routes) for the same network.