BGP Advertising a route using the Null0 exit interface

In order to advertise a network in BGP, you must have that network in the routing table. If it is not in the routing table, then you can add it with a Null exit interface so that it will be advertised. For example, the following configuration will advertise the network using BGP.

R1(config)#ip route null 0 R1(config)#router bgp 1 R1(config-router)#network mask

This is also useful when applying BGP summarization. The summary route is not in the routing table, with the exact subnet mask, so BGP will not advertise it. However, you can add the summary route as a static route with a Null0 exit interface in the same manner.