BGP Route Refresh in JUNOS

What happens when you change a BGP import routing policy in your neighbor configuration? Changes take effect immediately or we need to issue the soft-inbound command to request the routes? Let’s see by an example.

We received the route 10.83.0.0/24 from 10.82.1.9 already as you see below.

Now I change the local preference from 2000 to 1999 in the import policy and commit the config.

Aha.. local preference has been updated but shouldn’t the import policy needs to be re-processed by requesting full routes again as the BGP route updates are incremental? Why don’t we need to run the command “clear bgp neighbor 10.82.1.9 soft-inbound” the thing is as per the juniper doc, we keep all the routes we learn. if you run this soft reset command, you will see that a ROUTE REFRESH request message is sent to the peer and peer responds with UPDATE messages i.e all routes it sent. What happens if we change this behavior. (I have already tested it:)

Let’s disable this feature first and commit.

This will flap your BGP session though.

Now, I have changed local preference on the import policy to 2001 to see if it will be processed automatically or not.

Hmm, local preference changed again. I didn’t run the “clear bgp” command again. The difference is that as soon as you commit the change, JUNOS sends the ROUTE-REFRESH message for you and routes are re-sent from the neighbor.

route-refresh-automatically

2 thoughts on “BGP Route Refresh in JUNOS

You have a feedback?