IP CLI Commands
294
2/1553-ZAT 759 94 Uen B – December 2005
12.37
ip add route
12.37.1 Syntax
ip add route <name> <dest_ip> <netmask> {[gateway
<gateway_ip>]|[interface <interface>]}
12.37.2 Description
This command creates a static route to a destination network address via a
gateway device or an existing interface. It also allows you to create a default
route.
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
route
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 interface. 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 relevant 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.
Usually, the user would specify either a gateway IP address or an interface IP
address, but not both. Routes via an interface can only be used on interfaces
that provide point-to-point links.
12.37.3 Options
The following table gives the range of values for each option which can be
specified with this command and a default value (if applicable).
Содержание HM4x0
Страница 1: ...HM4x0 CLI Reference Guide ...
Страница 125: ...DHCP Client CLI Commands 2 1553 ZAT 759 94 Uen B December 2005 125 ID Identifier Suggested Value 1 host name Vancouver ...
Страница 353: ...NAT CLI Commands 2 1553 ZAT 759 94 Uen B December 2005 353 inside the network internal or DMZ ...
Страница 643: ...System CLI Commands 2 1553 ZAT 759 94 Uen B December 2005 643 22 3 5 Example system add login john temporarily ...
Страница 702: ...Ericsson AB Ericsson AB 2005 All Rights Reserved www ericsson com 2 1553 ZAT 759 94 Uen B December 2005 ...