From owner-freebsd-stable@FreeBSD.ORG Sun Jun 17 22:01:14 2012 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 049A6106566B for ; Sun, 17 Jun 2012 22:01:14 +0000 (UTC) (envelope-from hm@hm.net.br) Received: from msrv.matik.com.br (msrv.matik.com.br [187.95.0.181]) by mx1.freebsd.org (Postfix) with ESMTP id 7C5BD8FC0A for ; Sun, 17 Jun 2012 22:01:13 +0000 (UTC) Received: from pop1.matik.com.br (pop1.hm.net.br [189.7.38.73]) (authenticated bits=0) by msrv.matik.com.br (8.14.5/8.14.5) with ESMTP id q5HM0vjY023967 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Sun, 17 Jun 2012 19:00:59 -0300 (BRT) (envelope-from hm@hm.net.br) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.97.4 at msrv.matik.com.br X-DKIM: OpenDKIM Filter v2.5.2 msrv.matik.com.br q5HM0vjY023967 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=hm.net.br; s=racoon; t=1339970460; bh=oocBkmb1rUCG/apNU9TQiF5qIW5+u9zoo6bYXVZl34c=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=pVyPSGXn1f29J5ZPvR/IhkTkIxuzisuwkRSnCqDTG87QA9ub2kxFkMA72PNMiK2C4 CTywWpzq6OxvFhuDdNPJtTaVDRhZtY5bYp+EDhEWiiG73NQE+Hr2icG8lSKN078UN8 lk4u+WLchxd2puPlLku9DcV1pnr1/tAdpaDUHtd4= Authentication-Results: msrv.matik.com.br; sender-id=pass header.from=hm@hm.net.br; auth=pass (PLAIN); spf=pass smtp.mfrom=hm@hm.net.br Message-ID: <4FDE5393.5050808@hm.net.br> Date: Sun, 17 Jun 2012 19:00:51 -0300 From: H User-Agent: Mozilla/5.0 (X11; Linux i686; rv:13.0) Gecko/20120615 Firefox/13.0.1 SeaMonkey/2.10.1 MIME-Version: 1.0 To: sthaug@nethelp.no References: <4FDB6AA3.3040606@gmail.com> <201206172152.55303.hselasky@c2i.net> <4FDE3E6C.9080703@hm.net.br> <20120617.231049.41685248.sthaug@nethelp.no> In-Reply-To: <20120617.231049.41685248.sthaug@nethelp.no> X-Enigmail-Version: 1.4.2 OpenPGP: id=9C63083C Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig6553937CDC2F6ED5A5FABB6A" X-Spam-Status: No, score=-96.5 required=5.0 tests=AWL=0.686,BAYES_00=-1.9,DKIM_SIGNED=0.1,DKIM_VALID=-0.1,DKIM_VALID_AU=-0.1,RCVD_IN_BRBL_LASTEXT=1.449,RCVD_IN_PBL=3.335,SPF_PASS=-0.001,T_RP_MATCHES_RCVD=-0.01,USER_IN_WHITELIST=-100 msrv.matik.com.br 1181; Body=1 Fuz1=1 Fuz2=1 [127.0.0.2] [127.0.0.11] [1 mail.matik.com.br.] [187.95.0.182] autolearn=no ASN AS28573 189.7.36.0/22 X-Spam-Checker-Version: SpamAssassin 3.3.2-hm_201202.c (2011-06-06) on msrv.matik.com.br Cc: freebsd-stable@freebsd.org, hselasky@c2i.net Subject: Re: How to bind a route to a network adapter and not IP X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Jun 2012 22:01:14 -0000 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--