Date: Sun, 17 Jun 2012 23:10:49 +0200 (CEST) From: sthaug@nethelp.no To: hm@hm.net.br Cc: freebsd-stable@freebsd.org, hselasky@c2i.net Subject: Re: How to bind a route to a network adapter and not IP Message-ID: <20120617.231049.41685248.sthaug@nethelp.no> In-Reply-To: <4FDE3E6C.9080703@hm.net.br> References: <4FDB6AA3.3040606@gmail.com> <201206172152.55303.hselasky@c2i.net> <4FDE3E6C.9080703@hm.net.br>
next in thread | previous in thread | raw e-mail | index | archive | help
> > I loose packets because I use a WLAN adapter. Sometimes the link is down for > > various reasons, and then the routes start changing for manually created > > routes, and I want to prevent that. > > well that is certainly not a reason for changing routes > > I have the feeling you are not explaining good enough what really is > going on and it may help sending your configurations and an example of > routes and IP addresses before and after this route change Why is this so hard to understand? "Link down" leads to "static route is deleted". This is standard FreeBSD behavior, and has been this way for as long as I can remember (btw, I believe this behavior is from the original BSD, not FreeBSD specific). You can show this by having a static default route pointing to an address on an Ethernet interface which has link. And then pulling the TP cable from the Ethernet interface. Observe that the default route is automatically removed. My claim is that this behavior is reasonable *but* I'd like the route restored when the link comes back up again. This is standard Cisco / Juniper behavior - but *not* standard FreeBSD behavior. Steinar Haug, Nethelp consulting, sthaug@nethelp.no
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20120617.231049.41685248.sthaug>