On Wed, 8 Jun 2016 10:54:00 +0100 Stuart Henderson <[email protected]> wrote:
> On 2016/06/08 11:48, Gerhard Roth wrote:
> > 
> > Currently I do this to get the interface up and running as my default
> > route:
> > 
> >     # ifconfig umb0 pin xxxx apn xxxx
> >     # ifconfig umb0 inet 0.0.0.1 0.0.0.2
> >     # route delete default
> >     # route add -ifp umb0 default 0.0.0.2
> >     # ifconfig umb0 up
> > 
> > Yes it seem strange that the 'route add -ifp ubm0' needs an IP address,
> > but that's the way it is. That's why I need the fake IP address on
> > the interface right from the beginning. Otherwise the 'route add'
> > would fail.
> 
> Ah yes this is a known strangeness - the address in the "route add"
> can be anything at all though, it doesn't need to be configured on
> the interface.

Well, to me it looks as if we need to put it on the interface:

        # route add -ifp umb0 default 0.0.0.2
        route: writing to routing socket: Network is unreachable
        add net default: gateway 0.0.0.2: Network is unreachable
        # ifconfig ubm0 inet 0.0.0.1 0.0.0.2
        # route add -ifp umb0 default 0.0.0.2
        add net default: gateway 0.0.0.2

Reply via email to