Mailing List Archive

bgp distance not updated in FIB
Hi

I have 2 routers R1 and R2 talking eBGP.

The default distance for eBGP routes is 20.

*When routes are received,they are installed in the FIB with a distance of
20.*

router352#show ip route

Codes: K - kernel route, C - connected, S - static, R - RIP,

O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,

> - selected route, * - FIB route





*I changed the BGP distance for eBGP to 30. However, it is not getting
updated in the FIB table. I did a 'soft' clear but it did not help.*

router352(config-router)# router bgp 10

router352(config-router)# distance bgp 30 100 100

router352(config-router)# do clear ip bgp 101.1.1.2 soft in

router352(config-router)# do show ip route

Codes: K - kernel route, C - connected, S - static, R - RIP,

O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,

> - selected route, * - FIB route







*When I do a 'hard' clear of the routes, it works.*


router352(config-router)# do clear ip bgp 101.1.1.2

router352(config-router)# do show ip route

Codes: K - kernel route, C - connected, S - static, R - RIP,

O - OSPF, I - IS-IS, B - BGP, P - PIM, A - Babel, N - NHRP,

> - selected route, * - FIB route


B> 0.0.0.0/0 [30/0] via 101.1.1.2, bond3.2, 00:00:07

B> 1.2.3.0/24 [30/0] via 101.1.1.2, bond3.2, 00:00:07

B> 1.2.4.0/24 [30/0] via 101.1.1.2, bond3.2, 00:00:07

B> 1.2.5.0/24 [30/0] via 101.1.1.2, bond3.2, 00:00:07


*Is there a way to update FIB with the correct distance without doing a
'hard' reset and affecting traffic?*


Thanks


Mary
Re: bgp distance not updated in FIB [ In reply to ]
On Tue, 4 Apr 2017, Preeti wrote:

> *I changed the BGP distance for eBGP to 30. However, it is not getting
> updated in the FIB table. I did a 'soft' clear but it did not help.*

Do both sides support route-refresh? I.e., when you did the soft-clear,
did the other send re-send all its routes?

> *Is there a way to update FIB with the correct distance without doing
> a 'hard' reset and affecting traffic?*

If route-refresh was enabled, and the other side resent its whole table
I'd have expected that to work as well as a hard clear. If refresh
wasn't enabled, try having it enabled. If it was enabled, but you had
this problem, that's odd...

regards,
--
Paul Jakma | paul@jakma.org | @pjakma | Key ID: 0xD86BF79464A2FF6A
Fortune:
We've run out of licenses

_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-users
Re: bgp distance not updated in FIB [ In reply to ]
Hi Paul

I am sorry for the delay.

Confirmed the following:
1. Both sides support route-refresh.
2. When I did soft-clear, the other side resent the whole table.

However, the route-table is not updated with the distance.

Mary



On Fri, Apr 7, 2017 at 1:30 AM, Paul Jakma <paul@jakma.org> wrote:

> On Tue, 4 Apr 2017, Preeti wrote:
>
> *I changed the BGP distance for eBGP to 30. However, it is not getting
>> updated in the FIB table. I did a 'soft' clear but it did not help.*
>>
>
> Do both sides support route-refresh? I.e., when you did the soft-clear,
> did the other send re-send all its routes?
>
> *Is there a way to update FIB with the correct distance without doing a
>> 'hard' reset and affecting traffic?*
>>
>
> If route-refresh was enabled, and the other side resent its whole table
> I'd have expected that to work as well as a hard clear. If refresh wasn't
> enabled, try having it enabled. If it was enabled, but you had this
> problem, that's odd...
>
> regards,
> --
> Paul Jakma | paul@jakma.org | @pjakma | Key ID: 0xD86BF79464A2FF6A
> Fortune:
> We've run out of licenses
>
Re: bgp distance not updated in FIB [ In reply to ]
Hi,

On Tue, 11 Apr 2017, Preeti wrote:

> Hi Paul
>
> I am sorry for the delay.
>
> Confirmed the following:
> 1. Both sides support route-refresh.
> 2. When I did soft-clear, the other side resent the whole table.
>
> However, the route-table is not updated with the distance.

So, to make it work automatically. the distance setting code would have
to cause bgp_zebra_announce to be called for affected nodes.

I've posted an RFE in bugzilla:

https://bugzilla.quagga.net/show_bug.cgi?id=949

And I'll update the docs to make it clear a hard clear of affected
sessions is required for now.

Thanks,
--
Paul Jakma | paul@jakma.org | @pjakma | Key ID: 0xD86BF79464A2FF6A
Fortune:
A day without sunshine is like a day without Anita Bryant.

_______________________________________________
Quagga-users mailing list
Quagga-users@lists.quagga.net
https://lists.quagga.net/mailman/listinfo/quagga-users