From owner-freebsd-net@FreeBSD.ORG Sat Feb 13 05:04:29 2010 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CFCDB1065670; Sat, 13 Feb 2010 05:04:29 +0000 (UTC) (envelope-from brett@lariat.net) Received: from lariat.net (lariat.net [66.119.58.2]) by mx1.freebsd.org (Postfix) with ESMTP id 0214A8FC18; Sat, 13 Feb 2010 05:04:28 +0000 (UTC) Received: from anne-o1dpaayth1.lariat.net (IDENT:ppp1000.lariat.net@lariat.net [66.119.58.2]) by lariat.net (8.9.3/8.9.3) with ESMTP id WAA20359; Fri, 12 Feb 2010 22:04:18 -0700 (MST) Message-Id: <201002130504.WAA20359@lariat.net> X-Mailer: QUALCOMM Windows Eudora Version 7.1.0.9 Date: Fri, 12 Feb 2010 22:04:13 -0700 To: Luiz Otavio O Souza From: Brett Glass In-Reply-To: <8192E832-3DD0-4D0A-9FAD-6A70CE59FD26@gmail.com> References: <201002130230.TAA19403@lariat.net> <8192E832-3DD0-4D0A-9FAD-6A70CE59FD26@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Cc: "Li, Qing" , Alexander Motin , net@freebsd.org Subject: Re: Routing problems on VPN servers running FreeBSD 8.0-RELEASE X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Feb 2010 05:04:29 -0000 At 07:42 PM 2/12/2010, Luiz Otavio O Souza wrote: >The "-S" tries to remove the entry first, but it fails because it >doesn't exist. As far as I can tell, the -S option doesn't cause the command to fail if no routing table entry already exists. It just deletes any route that does exist. Also, if you look at the code within mpd5 (the file iface.c), mpd first creates the proxy arp entry and then tries to add routes for the interface. So, using "-S" and also "only" in the arp(8) command would seem to be the right thing to do. This combination would remove any route that exists and not create a new one, ensuring that mpd itself could create new routes as needed. I have mpd working now with this change, and your patch seems to fix ppp(8). --Brett