IP CLI Commands
304
2/1553-ZAT 759 94 Uen B – December 2005
12.45
ip set route interface
12.45.1 Syntax
ip set route {<name>|<number>} interface
{<interface>|none}
12.45.2 Description
This command sets the interface used by a route previously created by the
ip
add route
command. If you want the existing route to route to an address
via a gateway device, use
none
so that no interface is set.
12.45.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
name
A name that identifies an existing
route. To display route names, use the
ip list routes
command.
N/A
number
A number that identifies an existing
route. To display route numbers, use
the
ip list routes
command. The
number appears in the first column
under the heading ID.
N/A
interface
The name of the existing interface that
the ip routes through, displayed in the
following format:
192.168.102.3
To display interface names, use the
ip list interfaces
command.
N/A
none
No interface is set. This is used for
routes that route via a gateway device
instead of an interface.
N/A
12.45.4 Example
-->
ip set route r1 interface WAN