[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SLIP and PPP routing problems



On Tue, 30 Jan 1996, Nelson Posse Lago fflch - fsl 3704 wrote:

>      Hi all,
>      This is my first message around here :-)
>      I've recently moved to debian 0.93R6 and found out I have a
> problem: when I use DIP with SLIP or PPPd to connect to my
> university, neither one alters the routing table. DIP doesn't
> even do "ifconfig sl0 up". I found an older binary of DIP that
> works ok, and manually adding routes with PPPd also works, but
> this isn't very nice, is it? :-) Checking the archives of this 
> mailing list, I saw the problem already appeared, but I couldn't
> track the solution. Replacing DIP for the older one works, but I'd
> like to have a "cleaner" solution (the older one puts it's files
> on different locations).
>      Also, since I recompiled the kernel (I don't need SCSI, etc)
> I see "unregistered dev ppp0 unlinked" messages. I saw a message
> explaining this has to do with dynamic PPP, but why the original
> kernel doesn't yeld this message and this *always* issues it on
> boot-up?
> TIA to all,
> Nelson
> nelplago@usp.br
> 
> 
> 

I am not sure if this is related, but I changed this /etc/init.d/network:
________________________________________________________________________
#! /bin/sh
# network: establish the network connection.
# $Id: network,v 1.1 1995/02/19 20:29:29 imurdock Exp $

# Configure the loopback device.
ifconfig lo 127.0.0.1
route add 127.0.0.1

# Configure the ethernet device or start SLIP/PPP below.
IPADDR="0.0.0.0"        # Your IP address.
NETMASK="255.255.255.0" # Your netmask.
NETWORK="0.0.0.0"       # Your network address.
BROADCAST=""            # Your broadcast address (blank if none).
GATEWAY="#.#.#.#"  	# Your gateway address.


sendmail -bd -q5m
-------------------------------------------------------------------------
Where #.#.#.# is the gateway (obviously).

and the /etc/ppp/options

-------------------------------------------------------------------------
:#.#.#.#
netmask 255.255.255.0
connect /etc/ppp/ppp-connect
/dev/cua1
38400
crtscts
xonxoff
persist
modem
defaultroute
ipcp-accept-local
ipcp-accept-remote
-------------------------------------------------------------------------
Where #.#.#.# is the gateway address.
defaultroute should set up some of the table.

As far as I know, that's it. Oh btw I use PPPd with no 'diald' or 'dip'.  I
could never get diald to do _anything_ it just sat there.  (PPPd works fine
anyway.)  I use a script called from /etc/crontab to keep the connection up
all the time, except if there exists a file called /root/.pppoff, in which
case it is kept unconnected.

--------------------------------------------------------------------
#!/bin/sh

# This is a script to turn PPP on and off.  It is 
# meant to be run from crontab periodically to keep
# the connection up.
# (I wrote this.)

# TURN PPP ON IF NOT ON AND /root/.pppoff DOES NOT EXIST
if [ ! -f $HOME/.pppoff ]
then
   if [ ! -f /var/run/ppp0.pid ]
   then
        start-stop-daemon --start --verbose --exec /usr/sbin/pppd > /dev/null
   fi
fi

# TURN PPP OFF IF ON AND /root/.pppoff EXISTS
if [ -f $HOME/.pppoff ]
then
   if [ -f /var/run/ppp0.pid ]
   then
        start-stop-daemon --stop --verbose --exec /usr/sbin/pppd > /dev/null
   fi
fi

-------------------------------------------------------------------

Occasionally this will give funny results, but I think that's only when it's
running and you invoke it again.  Nothing major happens, but it gives cron
something to write home about.  (Or is that the popclient script?)

kernel: unregister_netdev: device 'ppp0' unlinked

I get these too, I have no idea why, but it works anyway.

_____Running_Debian_Linux__(stable)__version_1.2.13___________
This is a test of the emergency broadcasting system.  In the /  --beeeeep--
case of a real emergency, this message would be followed by /  Kevin Bealer
light relaxing music, and I would be on my way to Idaho,   / kmb203@psu.edu
where cousin Jake has a concrete bunker with a six year    \______
supply of shotgun shells and ... um, gotta go! ... (light music)  | 
__________________________________________________________________|
            




Reply to: