Link to home
Start Free TrialLog in
Avatar of leblanc
leblanc

asked on

static null 0 with BGP

I see this command " ip route 10.10.0.0 255.255.0.0 Null0" after the BGP config with "network 10.10.0.0 mask 255.255.0.0". I googled around for the static Null0 and I am getting more confused. Can the experts shed some light on this? Thanks
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Before a prefix can be picked and announced via BGP, it must first be in the routing table.  I always null route with a distance:

ip route 192.168.1.0 255.255.255.0 null0 255 (cisco)

ip route 192.168.1.0/24 null0 distance 255 (brocade)

This is usually because you need to announce a supernet and only its subnets are in your routing table.
Avatar of leblanc
leblanc

ASKER

Thanks for the reply.
"Before a prefix can be picked and announced via BGP, it must first be in the routing table" That could be accomplish by any IGP. That does not necessarily why we need the null route. Correct?

I am still confused looking at many different answers including https://supportforums.cisco.com/discussion/10908346/null0-static-route.

I just want to know why we need a null static route with BGP and what if I don't use it.
As long as the prefix which you want to announce is in the routing table, then no, you don't need the null route.

If I want stable BGP, I might still null route it with a distance in case the internal route is dropped just to keep my prefixes from withdrawing and announcing causing a possible dampened state.
Avatar of leblanc

ASKER

" in case the internal route is dropped just to keep my prefixes from withdrawing and announcing" Can you give me an example on this?
In order for BGP to advertise the network, the route for that network needs to be in the routing table. Correct?
So let say I in my BGP process network 10.10.10.0 and 20.20.20.0 and it is in the table with static routes. Then to keep the BGP stable, do I need 2 static null0 statements?

I found some answers that say the null0 is to avoid loop. I don't understand.
ASKER CERTIFIED SOLUTION
Avatar of Jan Bacher
Jan Bacher
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial