From owner-freebsd-questions@FreeBSD.ORG Tue Apr 15 00:52:34 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 E294437B401 for ; Tue, 15 Apr 2003 00:52:34 -0700 (PDT) Received: from bebop.inter-sonic.com (bebop.inter-sonic.com [212.247.185.185]) by mx1.FreeBSD.org (Postfix) with ESMTP id 447FE43F75 for ; Tue, 15 Apr 2003 00:52:34 -0700 (PDT) (envelope-from peo@intersonic.se) Message-ID: <3E9BBA3E.4060209@intersonic.se> Date: Tue, 15 Apr 2003 09:52:30 +0200 From: "Per olof Ljungmark" Organization: Intersonic AB User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.3) Gecko/20030312 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-questions@freebsd.org References: <3E9BB621.4080802@intersonic.se> <200304150941.41810.will@unfoldings.net> In-Reply-To: <200304150941.41810.will@unfoldings.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, hits=-102.8 required=5.2 tests=IN_REP_TO,NOSPAM_INC,QUOTED_EMAIL_TEXT,REFERENCES, SPAM_PHRASE_02_03,USER_AGENT,USER_AGENT_MOZILLA_UA, USER_IN_WHITELIST,X_ACCEPT_LANG version=2.44 X-Spam-Level: X-Sanitizer: bebop mail filter Subject: Re: ppp: add route but not default X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: peo@intersonic.se List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 15 Apr 2003 07:52:35 -0000 Willie Viljoen wrote: > On Tuesday 15 April 2003 9:34, someone, possibly Per olof Ljungmark, typed: > >>I am setting up a wan ppp link to a remote place and wonder how to >>(automagically) add a route when the link is up that is *not* the >>default route? > > > If you are using real ppp (pppd, not a userland implementation), then this > is very easy. Simply put this in /etc/ppp/ip-up > > #!/bin/sh > route add -net 10.0.0.0 10.0.255.4 255.255.255.0 > > Substitute with your own IPs, gateway and netmask, and make sure that > /etc/ppp/ip-up is executable. > > It might also be prudent to delete the route in /etc/ppp/ip-down, when the > link drops. had just got userland ppp working. Do I need to start from scratch with pppd?