From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 01:16:40 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 619F537B401 for ; Tue, 15 Apr 2003 01:16:40 -0700 (PDT) Received: from exchange.wan.no (exchange.wan.no [80.86.128.88]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3929943F93 for ; Tue, 15 Apr 2003 01:16:39 -0700 (PDT) (envelope-from sten.daniel.sorsdal@wan.no) X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Tue, 15 Apr 2003 10:16:28 +0200 Message-ID: <0AF1BBDF1218F14E9B4CCE414744E70F1F3CE5@exchange.wanglobal.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: add route but not default Thread-Index: AcMDIZG56zK+OlbsTdKEi9O/ErWCDAABU/JQ From: =?iso-8859-1?Q?Sten_Daniel_S=F8rsdal?= To: cc: freebsd-questions@freebsd.org Subject: RE: add route but not default X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 08:16:40 -0000 > 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