From owner-freebsd-questions@FreeBSD.ORG Thu Jul 21 13:56:52 2011 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 905C71065672 for ; Thu, 21 Jul 2011 13:56:52 +0000 (UTC) (envelope-from Lowell@Be-Well.Ilk.Org) Received: from mail8.sea5.speakeasy.net (mail8.sea5.speakeasy.net [69.17.117.53]) by mx1.freebsd.org (Postfix) with ESMTP id 6AC898FC08 for ; Thu, 21 Jul 2011 13:56:52 +0000 (UTC) Received: (qmail 18502 invoked from network); 21 Jul 2011 13:56:51 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail8.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 21 Jul 2011 13:56:51 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 7DEA72E18C; Thu, 21 Jul 2011 09:56:50 -0400 (EDT) From: Lowell Gilbert To: Aryeh Friedman References: Date: Thu, 21 Jul 2011 09:56:50 -0400 In-Reply-To: (Aryeh Friedman's message of "Thu, 21 Jul 2011 04:00:20 -0400") Message-ID: <44livrlot9.fsf@be-well.ilk.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: FreeBSD Mailing List Subject: Re: best way to force a single packet to be sent via a specific interface X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Mailing List List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 13:56:52 -0000 Aryeh Friedman writes: > I have both ethernet (the default route and such) and ppp done via > "ppp -ddial" the man page for ppp(8) says tun0 will not have an IP > assigned until a single packet is sent on it... what is the best way > to have one packet sent on it (ping only always ifaces on multicast, > traceroute seems to have no way to say exit after the first hop and/or > after one packet is sent, tcpdump refuses a "-c 0" arg saying it is > illegal) I can't parse what you said about ping. I seem to recall doing that (with '-I' back when I was doing demand dialing with ppp(8).