Best solution is ECMP combined with ifstated - you get double bandwidth until one link goes down, in which case it is automatically removed from the routing table until it comes up again. This is a pretty common setup in e.g. Top Of Rack (ToR) switching setups.
I just wrote a blog post mentioning this a few days ago, didn't go into technical configurations yet but when I do the next post I will be sure to mention ifstated. http://terminalprompt.com/2013/02/12/openbsd-a-real-powerhouse/ On Feb 13, 2013, at 6:09 PM, Janne Johansson <icepic...@gmail.com> wrote: > You can have ifstated test gw reachability, I think relayd has similar > functionality to manage routes, one could somewhat easily script "if > gwA up send packets via ifA, if gwB up ..." > mpath would be yet one option. > > 2013/2/13 What you get is Not what you see <wygin...@gmail.com>: >> Hi >> I have a pf box with 4 links (a multihomed box ) and some services like >> dns,dhcp on it. >> I have set /etc/mygate to one of the gateways. >> Sometimes the line drops and when it drops, obviously some services like >> dns stop. >> But the other lines are up then. >> What is the proper way of handling mygate? >> Do you suggest mpath? >> > > > > -- > May the most significant bit of your life be positive.