Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Jun 2012 19:00:51 -0300
From:      H <hm@hm.net.br>
To:        sthaug@nethelp.no
Cc:        freebsd-stable@freebsd.org, hselasky@c2i.net
Subject:   Re: How to bind a route to a network adapter and not IP
Message-ID:  <4FDE5393.5050808@hm.net.br>
In-Reply-To: <20120617.231049.41685248.sthaug@nethelp.no>
References:  <4FDB6AA3.3040606@gmail.com> <201206172152.55303.hselasky@c2i.net> <4FDE3E6C.9080703@hm.net.br> <20120617.231049.41685248.sthaug@nethelp.no>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig6553937CDC2F6ED5A5FABB6A
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

sthaug@nethelp.no wrote:
>>> I loose packets because I use a WLAN adapter. Sometimes the link is d=
own for=20
>>> various reasons, and then the routes start changing for manually crea=
ted=20
>>> 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
>=20
> 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).
>=20
> 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.


may be you have not understood your own problem yet

because so far is nothing to be understood because none of your
statements is correct, it is also not FreeBSD's standard behavior and
never has been

as long as there is the valid IP address on the related interface, no
static route will be deleted, you can even boot without cable and the
[default] static route is there

so you need to explain better your problem in order to understand it

probably you have some other stuff running, thirdparty network manager
or something, incorrect or incomplete ppoe or dhc configuration or
whatever leads to the problem

FYI static routes usually are the manually configured routes, so what
you say is redundant and not correct, I guess you're loosing some kind
of dynamic route

since WL networks usually do not run RIP/OSPF/BGP I guess the route you
apparently loose is coming from some dhcp server and may be your
dhclient configuration is incomplete or none existent, but here now it
would be useful to see your config




--=20
H
+55 11 4249.2222




--------------enig6553937CDC2F6ED5A5FABB6A
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk/eU5kACgkQvKVfg5xjCDyJJwCZAW2CG0LtaF1V8ewiOqHImaKy
NHYAn2Rdycv7VqDZ+jpMtH29z+eLC0SR
=loUE
-----END PGP SIGNATURE-----

--------------enig6553937CDC2F6ED5A5FABB6A--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FDE5393.5050808>