May 24, 2026 at 7:14 AM, "Kirill A. Korinsky" <[email protected] mailto:[email protected]?to=%22Kirill%20A.%20Korinsky%22%20%3Ckirill%40korins.ky%3E > wrote:
> > On Sun, 24 May 2026 04:39:52 +0200, > "Nenhum_de_Nos" <[email protected]> wrote: > > > > > Hi, > > > > I have this scene here: > > > > > > Cable DSL > > | Vlan5 | > > RouterA--------RouterB > > | | | | > > Vlan1 Vlan2 Vlan3 Vlan4 > > > > I am studiyng here how to have this on OpenBSD. today only the DSL router > > is already running OpsnBSD/arm. > > > > I want to make sure the default route for them to be the local ISP link > > first, but in case it is not working, use the network between them to have > > default route to the internet. > > > > I first tried using ospfd, configured it to redistribute default route and > > local vlans as well. It all worked fine, each had default route cost 8 to > > local link and cost 32 to remote link. If I remove cable for local link, > > the route changed and all was great. The issue is how to check connection > > when the link was not down, but the ISP has no traffic. > > > > My strategy was to use ping using local address to choose the interface > > out and ifstated to do this. The ping is was the issue. I used this line: > > > > ping -c 3 -i 3 -w 3 -I (local ip of egress interface). > > > > But the ping would not leave on the desired NIC. When the default route > > uses Vlan5 NIC, and I issue ping to use the Cable NIC, the ping has the > > right IP (from Cable interface) but leaves from Vlan5 NIC. So the test > > doesn't work. Same thing ont the DSL machine. > > > > Further looking on to this I got to people using equal cost multipath and > > ifstated. The ping also didn't work here, and the issue was when both have > > the Vlan5 as first route on the table. I guess this is not the best way for > > my issue. > > > > I would like to have two OpenBSD routers here to solve my issue. One > > router to have both ISPs is not desirable here. > > > > I tried fping to try its option "-I" but that didn't help either: > > > > fping -I vio0 > > fping: cant bind to a particular net interface since SO_BINDTODEVICE is > > not supported on your os. > > > > at least the fping from prots. > > > > If anyone have any hints on how I could test the not default route link :) > > > I hade wrote an article how I made my home router here: > https://kirill.korins.ky/articles/edgerouter-4-under-openbsd-with-failover-wan/ > > It uses two WAN uplink with the second one as failover. I use ping + > ifstated to switch between them via rport, and different rdomain. > > p.s. it is out of maillist reply because I think arm@ is a bit odd for it. > > -- > wbr, Kirill > Hi Kirill, first thanks for the input. I will post it to misc@. I thought I had misc@ and did not, sorry all for that. matheus
