set interface null0
Drops traffic when the null0 statement becomes the active setting as determined by
the route-hop selection process.
Command Default
The configuration to direct the traffic to the null0 interface is not configured.
Modes
Route map configuration mode
Usage Guidelines
This command sends the traffic to the null0 interface, which is the same as dropping the traffic.
The
no form of this command deletes the matching filter from the ACL.
Examples
The following example configures the PBR policy to send all traffic from 192.168.1.204/32 to the null interface, thus dropping the traffic instead of forwarding it.
device# configure terminal device(config)# ip access-list standard 56 device(config-std-ipacl-56)# permit 192.168.1.204 0.0.0.0 device(config-std-ipacl-56)# exit device(config)# route-map file-13 permit 56 device(config-routemap file-13)# match ip address 56 device(config-routemap file-13)# set interface null0 device(config-routemap file-13)# exit