User guide

TCP/IP command reference IP
4-17
iMG/RG Software Reference Manual (IPNetwork Functions)
Note: You can only create one default route. A default route will not be created if you have already created a
default route using the
IP ADD DEFAULTROUTE GATEWAY command or the IP ADD DEFAULTROUTE INTERFACE
command.
A route specifies a destination network (or single host), together with a mask to indicate
what range of addresses the network covers, and a next-hop gateway address or inter-
face. If there is a choice of routes for a destination, the route with the most specific mask
is chosen.
Routes are used when sending datagrams as well as forwarding them, so they are not rel-
evant only to routers. However, a system with a single interface is likely to have a single
route as a default route to the router on the network that it most often needs to use. If
the interface can communicate more efficiently with a particular destination by using a dif-
ferent router, then it will learn this fact from an Internet Control Message Protocol
(ICMP) redirect message.
Note: This command is avalable on FIBER B,D,E MODULAR and ADSL B,C models only.
Options The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example Example 1 routes through a gateway.
--> ip add route route1 192.168.103.3 255.255.255.0 gateway 192.168.102.3
Example 2 is a default route.
--> ip add route default 0.0.0.0 0.0.0.0 interface ip1
Option Description Default Value
name An arbitrary name that identifies the route. It can be
made up of one or more letters or a combination of let-
ters and digits, but it cannot start with a digit. To create a
default static route to a destination address, type default
as the route name. You can only create one route called
default.
N/A
dest_ip The IP address of the destination network displayed in the
following format: 192.168.102.3
N/A
netmask The destination netmask address (format: 255.255.255.0) N/A
gateway_ip The IP address of the gateway that this route will use, dis-
played in the following format: 192.168.102.3
N/A
interface The existing interface that this route will use. To display
interface names, use the IP LIST INTERFACES command.
N/A