CLI Guide
Layer 3 Routing Commands 1528
Examples
The following example creates (or edits) the route map equal-access as the
first route map in the system for allowing matching packets into the system.
Route-map mode is also entered.
console(config)#route-map equal-access permit 0
In the following example, BGP is configured to redistribute all prefixes within
172.20.0.0 and reject all others.
console(config)# ip prefix-list redist-pl permit 172.20.0.0/16 le 32
console(config)# route-map redist-rm permit
console(config-route-map)# match ip address prefix-list redist-pl
console(config-route-map)# exit
console(config) router bgp 1
console(Config-router) redistribute ospf route-map redist-rm
set interface null0
Use this command to drop a packet instead of reverting to normal routing for
packets that do not match the route map criteria. This command should be
configured as the last entry in the route-map as no further set clauses will
operate on a dropped packet. Use the no form of this command to remove the
set clause from a route map.
Syntax
set interface null0
no set interface null0
•
null0
—
Specifies the null0 interface used to drop packets.
Default Configuration
There is no default configuration for this command.
Command Mode
Route Map mode
User Guidelines
A route-map statement used for policy based routing is configured as permit
or deny. If the statement is marked as deny, traditional destination-based
routing is performed on the packet meeting the match criteria. If the