reorder BGP plink preference
Hello, I have a bird router serving multiple BGP sessions with my AS uplinks, and now I need to create a more complicated thing, - I have several FIBs and I need to reorder the BGP link preference for a given FIB. Say, I have 3 uplinks, A/B/C, A is the most preferable one for default FIB, but I need B to be the most preferable one for FIB 1. I have some basic experience with multiple routing tables in bird, I'm successfully using two at the moment, but I just have no idea on how to do this. I mean I know how to make the B upstream the only channel for FIB 1 (without redundancy), but I have no idea on how to reorder the preference in order to keep the redundancy. Is there such a way ? Thanks. Eugene.
Hi, Just use import filters in pipes exporting to your FIBs. To distinguish uplinks, while applying priorities, use if condition on source protocol's value or last ASN. Best regards, Lukasz pt., 21 gru 2018, 09:16: Eugene M. Zheganin <emz@norma.perm.ru> napisał(a):
Hello,
I have a bird router serving multiple BGP sessions with my AS uplinks, and now I need to create a more complicated thing, - I have several FIBs and I need to reorder the BGP link preference for a given FIB. Say, I have 3 uplinks, A/B/C, A is the most preferable one for default FIB, but I need B to be the most preferable one for FIB 1. I have some basic experience with multiple routing tables in bird, I'm successfully using two at the moment, but I just have no idea on how to do this. I mean I know how to make the B upstream the only channel for FIB 1 (without redundancy), but I have no idea on how to reorder the preference in order to keep the redundancy. Is there such a way ?
Thanks.
Eugene.
Hello, Well, I sat down to write the configuration and got immediately stuck: here's the thing: I have a pipe exporting from kernel tp given FIB, but in kernel I already have a default route from most preferable uplink - A, and I need a default route from B, which just isn't in the kernel. How do I deal with that ? Thanks. 21.12.2018 13:21, Łukasz Jarosz пишет:
Hi, Just use import filters in pipes exporting to your FIBs. To distinguish uplinks, while applying priorities, use if condition on source protocol's value or last ASN.
Best regards, Lukasz
pt., 21 gru 2018, 09:16: Eugene M. Zheganin <emz@norma.perm.ru <mailto:emz@norma.perm.ru>> napisał(a):
Hello,
I have a bird router serving multiple BGP sessions with my AS uplinks, and now I need to create a more complicated thing, - I have several FIBs and I need to reorder the BGP link preference for a given FIB. Say, I have 3 uplinks, A/B/C, A is the most preferable one for default FIB, but I need B to be the most preferable one for FIB 1. I have some basic experience with multiple routing tables in bird, I'm successfully using two at the moment, but I just have no idea on how to do this. I mean I know how to make the B upstream the only channel for FIB 1 (without redundancy), but I have no idea on how to reorder the preference in order to keep the redundancy. Is there such a way ?
Thanks.
Eugene.
participants (2)
-
Eugene M. Zheganin -
Łukasz Jarosz