Cisco Support Community
Community Member

static route to null0

Guys can someone please explain in a very plain language why we use static route to null0 and can you please give an easy example as we only use this in BGp or it can be used in other routing protocol

Hall of Fame Super Silver

Re: static route to null0

Hello Khan,

a static to null0 is an efficient way to discard traffic, it is actually more efficient then using an ACL inbound or outbound an interface.

EIGRP creates automatically a static route to null0 for each manually configured EIGRP summary IP prefix.

In BGP this was the old way to create aggregates or to create very stable aggregates hiding all possible instabilities in the IGP topology.

OSPF has the discard route concept that is similar.

combinations of static routes to null0 with BGP are used in security for example for Remote Black Hole Triggering:

by changing the BGP next hop of routes traffic destined to prefixes under denial of service can be redirected to some device that simply drops it instead of hitting the intended target devices

Hope to help



Re: static route to null0

It's also a way to introduce classless networks into a classful routing protocol (i.e. RIP v1)

For example, if you have these networks on your router:


If you distribute a static route like this into RIP:

ip route null0

router rip

redistribute static

The traffic for those classless networks will be sent to this router and then, since there is a more specific route in the routing table, traffic will be routed as expected.

Re: static route to null0

If you want to NAT a host/network that dosen't have an interface on your router you can use the route to null to assist in NATing...


ip route null0


ip nat inside source static


CreatePlease to create content