Return to BSD News archive
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!howland.erols.net!newsfeed.internetmci.com!dimensional.com!visi.com!news From: Pat Sonnek <psonnek@soncom.com> Newsgroups: comp.unix.bsd.freebsd.misc Subject: pppd ip-up and ip-down problem Date: Mon, 28 Oct 1996 17:24:58 -0600 Organization: (missing) Lines: 86 Message-ID: <327540CA.3640@soncom.com> NNTP-Posting-Host: win95.soncom.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0 (Win95; I) I'm having a problem with pppd. /etc/ip-up appears to have been executed, but the routing commands never take effect. If I mannually key in the ip-up command (as root) (/etc/ppp/ip-up ppp1 cuaa1 57600 206.9.159.17 206.9.159.18) Then the routing takes effect. I've included everything I can think of to help someone diagnose my problem. I now the ip-up and ip-down are getting executed by pppd, from the logger command in each script. Can anybody tell me what I'm doing wrong? /etc/passwd (one out of many users) markb:*:1004:1004:Mark Baker:/home/markb:/usr/local/bin/pppdlog ls of /usr/local/bin . . . -rwsr-xr-x 1 root bin 251 Oct 4 20:21 pppdlog . . . copy of /usr/local/bin/pppdlog #!/bin/sh dport=`tty | awk -F / '{print $3}'` if [ "$dport" = "cuaa1" ] then /usr/sbin/pppd passive 206.9.159.17:206.9.159.18 57600 fi if [ "$dport" = "cuaa2" ] then /usr/sbin/pppd passive 206.9.159.17:206.9.159.19 57600 fi logger Disconnected -=-=-==================================================-=-=-=-=-=- ls of /usr/sbin . . . -r-sr-xr-x 1 root bin 61440 Nov 16 1995 pppd . . . ls of /etc/ppp -rwsrwxr-x 1 root bin 57 Oct 28 07:59 ip-down -rwsrwxr-x 1 root bin 155 Oct 28 08:00 ip-up . . . copy of /etc/ppp/ip-down #!/bin/sh logger ip-down running /sbin/route delete $5 -=-=-=-=-=-=-======================================-=-=-=-=-=- Copy of /etc/ppp/ip-up #!/bin/sh logger ip-up running /sbin/route -n delete $5 /sbin/route -n delete -host $5 /sbin/route -n add -iface $5 $5 /sbin/route -n change -iface $5 $5 -=-=-=-=-=-=-============================-=-=-=-=-=-=- -- Patrick Sonnek - SysAdmin Sonnek Communications http://www.soncom.com