Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Apr 2003 10:16:28 +0200
From:      =?iso-8859-1?Q?Sten_Daniel_S=F8rsdal?= <sten.daniel.sorsdal@wan.no>
To:        <peo@intersonic.se>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: add route but not default
Message-ID:  <0AF1BBDF1218F14E9B4CCE414744E70F1F3CE5@exchange.wanglobal.net>

next in thread | raw e-mail | index | archive | help

> Hi all,
>=20
> I am setting up a wan ppp link to a remote place and wonder how to=20
> (automagically) add a route when the link is up that is *not* the=20
> default route?
>=20
>From 'man ppp':

add[!] dest[/nn] [mask] [gateway]

For example:
add 10.0.0.0/24 192.168.0.1

I think you can add this in ppp.linkup under the correct group, but if =
that fails then it can go in ppp.conf

Add the '!' if the route already exists, as it then will perform a route =
change and not fail on route already existing.

- Sten



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