On Thu, Oct 23, 2025 at 03:54:54PM +0300, [email protected] wrote:
> Hello!
>  
> I have a problem with multipath routes: the host bgpd daemon receives two 
> subnets
> from two eBGP peers, each of the subnets is equally reachable via those peers,
> but there is only one route for each subnet in the host routing table.
>  
> Please explain what should be done to get two routes in the routing table
> for each subnet.
>  
> fw3# bgpctl -s /var/run/bgpd.sock.1 show rib | egrep -v "^$"
> flags: * = Valid, > = Selected, I = via IBGP, A = Announced,
>        S = Stale, E = Error, F = Filtered, L = Leaked
> origin validation state: N = not-found, V = valid, ! = invalid
> aspa validation state: ? = unknown, V = valid, ! = invalid
> origin: i = IGP, e = EGP, ? = Incomplete
> flags  vs destination          gateway          lpref   med aspath origin
> *>    N-? 198.18.51.0/24       198.18.1.4        100     0 4267050871 ?
> *m    N-? 198.18.51.0/24       198.18.1.5        100     0 4267050871 ?
> *>    N-? 198.18.52.0/24       198.18.1.20       100     0 4267050881 ?
> *m    N-? 198.18.52.0/24       198.18.1.21       100     0 4267050881 ?
>  
> fw3# route -v -T 1 show | egrep -v "^$"
> Routing tables
> Internet:
> Destination        Gateway            Flags   Refs      Use   Mtu  Prio Iface 
> Label
> localhost          localhost          UHl        0        0 32768     1 lo1 
> 192.0.2.0/30       192.0.2.1          UCn        1        3     -     4 ixl2
> 192.0.2.1          34:73:79:73:63:15  UHLl       0      650     -     1 ixl2
> 192.0.2.2          34:73:79:73:5c:0e  UHLc       1      859     -     3 ixl2
> 192.0.2.3          192.0.2.1          UHb        0        0     -     1 ixl2
> 198.18.1.0/28      198.18.1.2         UCn        2       17     -     4 
> vlan751
> 198.18.1.0/28      198.18.1.1         UCn        0        0     -    19 
> carp751
> 198.18.1.1         00:00:5e:00:01:01  UHLl       0   761343     -     1 
> carp751
> 198.18.1.2         34:73:79:73:63:13  UHLl       0     1207     -     1 
> vlan751
> 198.18.1.4         24:6c:84:e9:e6:df  UHLch      2     6968     - L   3 
> vlan751
> 198.18.1.5         90:eb:50:ba:2b:77  UHLc       1       77     - L   3 
> vlan751
> 198.18.1.15        198.18.1.2         UHb        0        0     -     1 
> vlan751
> 198.18.1.15        198.18.1.1         UHb        0        0     -     1 
> carp751
> 198.18.1.16/28     198.18.1.18        UCn        2       31     -     4 
> vlan752
> 198.18.1.16/28     198.18.1.17        UCn        0        0     -    19 
> carp752
> 198.18.1.17        00:00:5e:00:01:02  UHLl       0     1251     -     1 
> carp752
> 198.18.1.18        34:73:79:73:63:13  UHLl       0     1202     -     1 
> vlan752
> 198.18.1.20        24:6c:84:e9:e6:df  UHLch      2       59     - L   3 
> vlan752
> 198.18.1.21        90:eb:50:ba:2b:77  UHLc       1       61     - L   3 
> vlan752
> 198.18.1.31        198.18.1.18        UHb        0        0     -     1 
> vlan752
> 198.18.1.31        198.18.1.17        UHb        0        0     -     1 
> carp752
> 198.18.51/24       198.18.1.4         UG         0        0     -    48 
> vlan751
> 198.18.52/24       198.18.1.20        UG         0        0     -    48 
> vlan752
>  
> fw3# sysctl net.inet.ip.multipath
> net.inet.ip.multipath=1
>  
> fw3# uname -a
> OpenBSD fw3 7.7 GENERIC.MP#625 amd64
>  

This is currently not possible. bgpd only inserts the best path into
the routing table.

There are plans to add multipath support and some work towards that goal
have been done but some crucial bits are still missing.
-- 
:wq Claudio

Reply via email to