Command:

set default interface


Mode:

Router(config-route-map)#


Syntax:

set default interface interface-type interface-number [...interface-type interface-number]
no set default interface interface-type interface-number [...interface-type interface-number]

 

Syntax Description:

interface-type Interface type, used with the interface number, to which packets are output.
interface-number Interface number, used with the interface type, to which packets are output.

 

Command Description:

To indicate where to output packets that pass a match clause of a route map for policy routing and have no explicit route to the destination, use the set default interface command in route-map configuration mode. To delete an entry, use the no form of this command.

An ellipsis (...) in the command syntax indicates that your command input can include multiple values for the interface-type interface-number arguments.

Use this command to provide certain users a different default route. If the Cisco IOS software has no explicit route for the destination, then it routes the packet to this interface. The first interface specified with the set default interface command that is up is used. The optionally specified interfaces are tried in turn.

Use the ip policy route-map interface configuration command, the route-map global configuration command, and the match and set route-map configuration commands, to define the conditions for policy routing packets. The ip policy route-map command identifies a route map by name. Each route-map has a list of match and set commands associated with it. The match commands specify the match criteria--the conditions under which policy routing occurs. The set commands specify the set actions--the particular routing actions to perform if the criteria enforced by the match commands are met.

The set clauses can be used in conjunction with one another. They are evaluated in the following order:

1. set ip next-hop

2. set interface

3. set ip default next-hop

4. set default interface


Example:

In the following example, packets that have a Level 3 length of 3 to 50 bytes and for which the software has no explicit route to the destination are output to Ethernet interface 0:

Router(config)# interface serial 0
Router(config-route-map)# ip policy route-map brighton

Router(config)# route-map brighton
Router(config-route-map)# match length 3 50
Router(config-route-map)# set default interface ethernet 0


Misconceptions:

None


Related Commands:

ip policy route-map
match ip address
match length
route-map
set interface
set ip default next-hop verify-availability
set ip next-hop

� Cisco Systems, Inc. 2001, 2002, 2003
World Wide Education

Converted from CHM to HTML with chm2web Pro 2.85 (unicode)