From owner-freebsd-current@FreeBSD.ORG Tue Jan 8 14:42:27 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 CC96BB00 for ; Tue, 8 Jan 2013 14:42:27 +0000 (UTC) (envelope-from ianf@clue.co.za) Received: from zcs03.jnb1.cloudseed.co.za (zcs03.jnb1.cloudseed.co.za [41.154.0.139]) by mx1.freebsd.org (Postfix) with ESMTP id 597AD638 for ; Tue, 8 Jan 2013 14:42:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTP id A48452B42DA0 for ; Tue, 8 Jan 2013 16:42:17 +0200 (SAST) X-Virus-Scanned: amavisd-new at zcs03.jnb1.cloudseed.co.za Received: from zcs03.jnb1.cloudseed.co.za ([127.0.0.1]) by localhost (zcs03.jnb1.cloudseed.co.za [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SmfNHTy2MkhR for ; Tue, 8 Jan 2013 16:42:16 +0200 (SAST) Received: from clue.co.za (unknown [197.87.27.111]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTPSA id 75ECA2B42D9C for ; Tue, 8 Jan 2013 16:42:16 +0200 (SAST) Received: from localhost ([127.0.0.1] helo=clue.co.za) by clue.co.za with esmtp (Exim 4.80 (FreeBSD)) (envelope-from ) id 1TsaNb-0001AZ-BR for current@freebsd.org; Tue, 08 Jan 2013 16:42:15 +0200 To: current@freebsd.org From: Ian FREISLICH Subject: -iface option to route(8) is broken X-Attribution: BOFH Date: Tue, 08 Jan 2013 16:42:15 +0200 Message-Id: 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 14:42:27 -0000 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? 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 -- Ian Freislich