From owner-freebsd-current@FreeBSD.ORG Mon Jan 7 13:25:21 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 5E5A0B90 for ; Mon, 7 Jan 2013 13:25:21 +0000 (UTC) (envelope-from ianf@cloudseed.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 DF8309EB for ; Mon, 7 Jan 2013 13:25:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTP id C909A2B42D97 for ; Mon, 7 Jan 2013 15:25:10 +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 ivtqazs2HneG for ; Mon, 7 Jan 2013 15:25:10 +0200 (SAST) Received: from clue.co.za (unknown [197.87.27.111]) by zcs03.jnb1.cloudseed.co.za (Postfix) with ESMTPSA id 3313B2B42D30 for ; Mon, 7 Jan 2013 15:25:10 +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 1TsChN-00014U-8I for current@freebsd.org; Mon, 07 Jan 2013 15:25:05 +0200 To: current@freebsd.org Subject: route add ... -iface fails From: "Ian FREISLICH" X-Attribution: BOFH Date: Mon, 07 Jan 2013 15:25:05 +0200 Message-Id: X-Mailman-Approved-At: Mon, 07 Jan 2013 13:36:59 +0000 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: Mon, 07 Jan 2013 13:25:21 -0000 Hi This used to work on tunX, but no more. 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. 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 I have several PPP conections on several ADSL lines with the same provider that doesn't do multi link PPP, so I need to be able to set the destination interface. Ian -- Meditating Guru Ian Freislich