From owner-freebsd-isp Tue Jun 10 21:22:49 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id VAA28387 for isp-outgoing; Tue, 10 Jun 1997 21:22:49 -0700 (PDT) Received: from router.besys.net.au (border.besys.net.au [203.30.15.129]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id VAA28371 for ; Tue, 10 Jun 1997 21:22:42 -0700 (PDT) Received: from ingold.besys.net.au (Ingold@ingold.besys.net.au [203.30.15.130]) by router.besys.net.au (8.8.5/8.7.3) with SMTP id OAA17128 for ; Wed, 11 Jun 1997 14:14:42 +1000 (EST) Message-Id: <3.0.1.32.19970611141428.007d9330@mail.besys.net.au> X-Sender: ingold@mail.besys.net.au X-Mailer: Windows Eudora Light Version 3.0.1 (32) Date: Wed, 11 Jun 1997 14:14:28 +1000 To: freebsd-isp@FreeBSD.ORG From: Peter Champas Subject: Re: ppp -alias In-Reply-To: <199706110300.XAA38184@planetx.bloomu.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk At 11:10 p 10/06/97 -0400, Marc Greenbaum wrote: >I am following through the - Pedantic PPP Primer, trying to setup my BSD >box to route ip traffic. The primer talks about the use of the "ppp -alias" >command. My machine however does not seem to have -alias flag. I am running >release 2.1.7. this may or maynot be what your looking for, but when ever my ppp0 device goes up, pppd looks for the following file ip-up, so I have my routing information in there eg: (Note you need to specify full path names for it to execute correctly) #ip-up #!/bin/bash /sbin/ifconfig ed0 alias x.x.x.1 netmask 255.255.255.255 /sbin/route add -host x.x.x.1 -interface ed0 /usr/sbin/sendmail -q & ---- [ end ] -- and when I bring ppp0 down pppd executes the following in a file called /etc/ppp/ip-down ----------[ ip-down snip]------------ #!/bin/bash /sbin/route delete x.x.x.1 /sbin/ifconfig ed0 inet x.x.x.1 delete ------------ [ end ] ------------- hope this helps you.. cya o--------------------- Peter Champas --------------------o /*\ Life is a challange.. Just ask your local ISP /*\ /* *\ ingold@besys.net.au /* *\ o-----o-------- http://www.besys.net.au/~ingold --------o------o