Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 08 Jan 2013 09:04:35 -0800
From:      Julian Elischer <julian@freebsd.org>
To:        Ian FREISLICH <ianf@clue.co.za>
Cc:        current@freebsd.org
Subject:   Re: -iface option to route(8) is broken
Message-ID:  <50EC51A3.6020909@freebsd.org>
In-Reply-To: <E1TsaNb-0001AZ-BR@clue.co.za>
References:  <E1TsaNb-0001AZ-BR@clue.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
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<UP,POINTOPOINT,RUNNING,MULTICAST> metric 0 mtu 1492
>          options=80000<LINKSTATE>
>          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<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> metric 0 mtu 1490
>          inet 197.87.27.111 --> 41.135.70.1 netmask 0xffffffff
> ng2: flags=88d1<UP,POINTOPOINT,RUNNING,NOARP,SIMPLEX,MULTICAST> 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
>




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50EC51A3.6020909>