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 :)

------------
"We will call you Cygnus,
The God of balance you shall be."

Reply via email to