IP CLI Commands
2/1553-ZAT 759 94 Uen B – December 2005
293
12.36
ip add defaultroute interface
12.36.1 Syntax
ip add defaultroute interface <interface>
12.36.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 interface ip3
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.
Routes via an interface can only be used on interfaces that provide point-to-
point links.
12.36.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
interface
The name of the existing interface that
this route will use. To display interface
names, use the
ip list
interfaces
command.
N/A
12.36.4 Example
-->
ip add defaultroute interface ip3