IP CLI Commands
292
2/1553-ZAT 759 94 Uen B – December 2005
12.35
ip add defaultroute gateway
12.35.1 Syntax
ip add defaultroute gateway <gateway_ip>
12.35.2 Description
This command creates a default route. It acts as a shortcut command that you
can use instead of typing the following:
-->
ip add route default 0.0.0.0 0.0.0.0 gateway
192.168.103.3
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.
If you want RIP to advertise a default route with a default cost metric, see the
ip set rip advertisedefault
and
ip set rip defaultroutecost
commands.
12.35.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).
Option Description
Default
value
gateway_ip
The IP address of the gateway that
this route will use by default, displayed
in the following format:
192.168.102.3
N/A
12.35.4 Example
-->
ip add defaultroute gateway 192.168.103.3
Содержание 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 ...