From owner-freebsd-current@FreeBSD.ORG Tue Jan 8 17:04:42 2013 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id CD7C81F1 for ; Tue, 8 Jan 2013 17:04:42 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) by mx1.freebsd.org (Postfix) with ESMTP id A6313DA0 for ; Tue, 8 Jan 2013 17:04:42 +0000 (UTC) Received: from JRE-MBP-2.local (c-50-143-148-105.hsd1.ca.comcast.net [50.143.148.105]) (authenticated bits=0) by vps1.elischer.org (8.14.5/8.14.5) with ESMTP id r08H4eIo074482 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 8 Jan 2013 09:04:41 -0800 (PST) (envelope-from julian@freebsd.org) Message-ID: <50EC51A3.6020909@freebsd.org> Date: Tue, 08 Jan 2013 09:04:35 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: Ian FREISLICH Subject: Re: -iface option to route(8) is broken References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Jan 2013 17:04:42 -0000 On 1/8/13 6:42 AM, Ian FREISLICH wrote: > Hi > > Adding routes using the -iface option to route(8) doesn't work any > more. This was useful to select a specific interface for a route > when the remote gateway has the same IP address. Are there plans > to restore this functionality? I agree.. thus was a crucial piece of functionality.. who broke it? > > tun0: flags=8051 metric 0 mtu 1492 > options=80000 > inet 41.135.82.18 --> 41.135.70.1 netmask 0xffffffff > Opened by PID 2387 > > [router] ~ # route add 41.154.2.53 -iface tun0 > route: bad address: tun0 > > It also doesn't work on ngX PPP interfaces. > > ng1: flags=88d1 metric 0 mtu 1490 > inet 197.87.27.111 --> 41.135.70.1 netmask 0xffffffff > ng2: flags=88d1 metric 0 mtu 1490 > inet 41.135.82.120 --> 41.135.70.1 netmask 0xffffffff > > [router] ~ # route add 41.154.2.53 -iface ng2 > route: bad address: ng2 > [router] ~ # route add 41.154.2.53 -interface ng2 > route: bad address: ng2 > > Ian >