set ip interface null0

Drops traffic when the null 0 statement becomes the active setting as determined by the route-hop selection process for IPv4 policy-based routing.

Syntax

set ip interface null0
no set ip interface null0

Modes

Route-map configuration mode

Usage Guidelines

If none of the configured next-hops or interfaces are up, this command drops the traffic.

The no form of this command removes the configuration.

Examples

The following example configures the next hop as NULL0 interface, dropping the packet instead of forwarding it.

device(config)# route-map test-route permit 99
device(config-route-map-test-route/permit/99)# set ip interface null0