NEXPEED NR304G-4W User’s Manual
NexComm Systems, Inc. 44 PAGE
Configuring Static IP Routes
The essential challenge of a router is, when it receives data intended for a particular destination,
which decide a next device (hop) to send that data to.
A 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 NR304G-4W chooses
the primary route on the basis of an assigned metric.
Related Commands :
ip route add / ip route del / show ip route
Note:
The “ip route add” command can add multiple path of the same network. To overwrite a
static route to that network, you first remove route (or routes) existing for the same network.
Default Gateway
If no routes exist for the destination address of a packet, the NR304G-4W forwards the
packet to the default route. If there is no default route, the NR304G-4W drops packets
for which it has no route.
To add a default gateway, use the following command.
COMMAND
(conf)# ip route add default <ifname> [<gw>] [<metric>]
Parameters
<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. If the interface has been configured with “unnumbered”,
you should not enter this option.
<metric> - a metric value for this route
Usage Examples:
(conf)# ip route add default lan 168.126.188.100
adds the default gateway “168.126.188.100” on the local LAN.
To remove a default gateway, use the following command.
COMMAND
(conf)# ip route del default [<ifname>] [<gw>]