DGS-6604
m
set default interface
CLI Reference Guide
563
set default interface
Use the command in route-map configuration mode to set the interface to route
the packets that pass a match clause of a route map and there is no route for the
packets. To remove the setting, use the
no
form of the command to remove the
setting.
set default interface
INTERFACE-NAME
no set default interface [
INTERFACE-NAME
]
Default
Not configured
Command Mode
Route-map configuration
Usage Guideline
If other set clauses for policy based routing are used with the command, they will
be evaluated based on the following ordering:
1. set ip next-hop
2. set interface
3. set ip default next-hop
4. set default interface
With this ordering, the set next-hop clauses and the set interface clauses will be
evaluated before look up of the routing table. If route cannot be found for the
packets, the set ip default next-hop and set default interface command will be
evaluated.
Example
The following example sends packets with the destination IP address specified
by access list name IPACL-01 and for which the software has no explicit route to
the destination are output to vlan200:
Syntax Description
INTERFACE-NAME
Specify the interface to route the packet.
Switch(config)#route-map example permit 10
Switch(config-route-map)# match ip address IPACL_01
Switch(config-route-map)# set default interface vlan200
Switch(config-route-map)# exit
Switch(config)#interface vlan100
Switch(config-if)#ip policy route-map example
Switch(config-if)#exit
Switch(config)#