Enabling or Disabling the Transmission of ICMP Unreachable Messages for Static Routes on Null Interfaces

You can configure a static route using the ip route command and direct traffic to the null interface by specifying the null 0 keyword with this command, instead of a next-hop or destination address.

To configure an IP static route with a null 0 interface as the next-hop:

To enable the transmission of ICMP unreachable messages for IPv4 packets that reach the static route configured on the null 0 interface and are discarded:

To disable the transmission of ICMP unreachable messages for IPv4 packets that reach the static route configured on the null 0 interface and are discarded:

Use the no version to remove a static route from the routing table.

Related Documentation