NEXPEED NR304G-4W User’s Manual
NexComm Systems, Inc. 45 PAGE
Usage Examples:
(conf)# ip route del default
deletes all default gateways.
Static Route
To add a route, use the following command.
COMMAND
(conf)# ip route add <net> <mask> <ifname> [<gw>] [<metric>]
Parameters
<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. 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 210.10.10.0 255.255.255.0 s0 192.168.1.2
adds the path to “210.10.10.0/255.255.255.0” network is through the
gateway at 192.168.1.2 on the “s0” interface.
To remove a route, use the following command.
COMMAND
(conf)# ip route del <net> <mask> [<ifname>] [<gw>]
Usage Examples:
(conf)# ip route del 210.10.10.0 255.255.255.0
deletes the path to “210.10.10.0/255.255.255.0” network
Removing all routes defined by user and routes by RIP
To remove all routes including all default gateways and RIP entries, use the following
command.
COMMAND
(conf)# ip route del all