PPPD Won't add route

PPPD Won't add route

Post by Mike Cris » Fri, 04 Dec 1998 04:00:00



Unfortunately, I am having problems with my ppp connection.  Everytime I
connect, the ppp daemon dies the the message that the network is down.
I have tried several options, which had no effect.  I have also tried
kppp, with several different configs in /etc/ppp/options.  With kppp, it
dials, connects, hangs up, then opens the modem again.

Here's my /var/log/messages file for the command line ppp:

Dec  3 10:22:31 linux pppd[496]: pppd 2.2.0 started by root, uid 0
Dec  3 10:22:32 linux chat[498]: abort on (BUSY)
Dec  3 10:22:32 linux chat[498]: abort on (NO CARRIER)
Dec  3 10:22:32 linux chat[498]: timeout set to 60 seconds
Dec  3 10:22:32 linux chat[498]: send (AT&F&C1&D2&K3^M)
Dec  3 10:22:32 linux chat[498]: expect (OK)
Dec  3 10:22:32 linux chat[498]: AT&F&C1&D2&K3^M^M
Dec  3 10:22:32 linux chat[498]: OK -- got it
Dec  3 10:22:32 linux chat[498]: send (ATDT 4041858^M)
Dec  3 10:22:33 linux chat[498]: expect (CONNECT)
Dec  3 10:22:33 linux chat[498]: ^M
Dec  3 10:22:50 linux chat[498]: ATDT 4041858^M^M
Dec  3 10:22:50 linux chat[498]: CONNECT -- got it
Dec  3 10:22:50 linux pppd[496]: Serial connection established.
Dec  3 10:22:51 linux pppd[496]: Using interface ppp0
Dec  3 10:22:51 linux pppd[496]: Connect: ppp0 <--> /dev/modem
Dec  3 10:22:58 linux pppd[496]: Remote message: Login Succeeded
Dec  3 10:22:58 linux modprobe: can't locate module ppp-compress-21
Dec  3 10:22:58 linux pppd[496]: local  IP address 208.227.233.118
Dec  3 10:22:58 linux pppd[496]: remote IP address 208.227.232.101
Dec  3 10:22:58 linux pppd[496]: ioctl(SIOCADDRT) device route: Network
is down
Dec  3 10:22:58 linux modprobe: can't locate module ppp-compress-21
Dec  3 10:23:03 linux pppd[496]: Hangup (SIGHUP)
Dec  3 10:23:03 linux pppd[496]: Modem hangup
Dec  3 10:23:03 linux pppd[496]: Connection terminated.
Dec  3 10:23:03 linux pppd[496]: Exit.

Here is /var/log/messages for kppp:

Dec  3 10:20:39 linux kernel: CSLIP: code copyright 1989 Regents of the
University of California
Dec  3 10:20:39 linux kernel: PPP: version 2.3.3 (demand dialling)
Dec  3 10:20:39 linux kernel: PPP line discipline registered.
Dec  3 10:20:39 linux kernel: registered device ppp0
Dec  3 10:20:39 linux pppd[450]: pppd 2.2.0 started by root, uid 0
Dec  3 10:20:40 linux chat[460]: abort on (BUSY)
Dec  3 10:20:40 linux chat[460]: abort on (NO CARRIER)
Dec  3 10:20:40 linux chat[460]: timeout set to 60 seconds
Dec  3 10:20:40 linux chat[460]: send (AT&F&C1&D2&K3^M)
Dec  3 10:20:40 linux chat[460]: expect (OK)
Dec  3 10:20:40 linux chat[460]: AT&F&C1&D2&K3^M^M
Dec  3 10:20:40 linux chat[460]: OK -- got it
Dec  3 10:20:40 linux chat[460]: send (ATDT ^M)
Dec  3 10:20:40 linux chat[460]: expect (CONNECT)
Dec  3 10:20:40 linux chat[460]: ^M
Dec  3 10:20:45 linux chat[460]: ATDT ^M^M
Dec  3 10:20:45 linux pppd[450]: Connect script failed
Dec  3 10:20:45 linux pppd[450]: Exit.

/etc/ppp/options:

connect /root/ppp-dialer
crtscts
defaultroute
debug
modem
/dev/modem
38400
noipdefault
user username

/root/ppp-on:
#!/bin/sh
echo "Enter the number to dial"
read NUMBER
export NUMBER
/usr/sbin/pppd

/root/ppp-dialer:
#!/bin/sh
/usr/sbin/chat -v \
ABORT BUSY \
ABORT 'NO CARRIER' \
TIMEOUT 60 \
'' \
'AT&F&C1&D2&K3' \
OK \
"ATDT $NUMBER" \
CONNECT

Here is another thing that concerns me, that messages is showing just as
the kernel is booting:

Dec  3 10:01:08 linux syslogd 1.3-3: restart.
Dec  3 10:01:08 linux kernel: klogd 1.3-3, log source = /proc/kmsg
started.
Dec  3 10:01:08 linux kernel: Loaded 5830 symbols from
/usr/src/linux/System.map.
Dec  3 10:01:08 linux kernel: Symbols match kernel version 2.1.130.

Quote:>>>Dec  3 10:01:08 linux kernel: Error seeking in /dev/kmem
>>>Dec  3 10:01:08 linux kernel: Error adding kernel module table entry.

Can anyone assist me?  A few hints as to what might be the cause would
be much appreciated.

Thanks in advance
Mike Crist

 
 
 

PPPD Won't add route

Post by Clifford Ki » Fri, 04 Dec 1998 04:00:00


: Unfortunately, I am having problems with my ppp connection.  Everytime I
: connect, the ppp daemon dies the the message that the network is down.
: I have tried several options, which had no effect.  I have also tried
: kppp, with several different configs in /etc/ppp/options.  With kppp, it
: dials, connects, hangs up, then opens the modem again.

: Here's my /var/log/messages file for the command line ppp:

: Dec  3 10:22:31 linux pppd[496]: pppd 2.2.0 started by root, uid 0
                                   ^^^^^^^^^^
<snip>

: Dec  3 10:01:08 linux kernel: Symbols match kernel version 2.1.130.
                                              ^^^^^^^^^^^^^^^^^^^^^^
Upgrade ppp as required for the 2.1.130 kernel.

--

/* Those who can't write, write manuals. */

 
 
 

1. pppd won't override default route

I have two Linux boxes (Linux 2.0.15, dip 3.3.7o-uri,  ppp-2.2.0f)
connected by an ethernet.  On each machine, I have a host route to the
other one, plus the default route set to use the other machine as a
gateway.

When I have one of the machines dial in to a machine on the net and
connect by CSLIP using slirp, I have the command "default" in my dip
script, so that the CSLIP connection becomes the default route on that
machine.  This new default route overrides the one I set earlier to
the other machine, and now both machines can communicate with
everyone.  When I hangup the phone, the routing reverts to what it was
before I dialed.

The problem: If I use PPP instead of CSLIP, then the machine that
dialed in does get a host route using the PPP connection, but the
default route does not get changed to be the PPP connection.  I get a
message in /var/log/syslog saying that pppd declined to override the
default route.

I tried changing the "default" command in the dip script to an
explicit "/sbin/route add default gw $rmtip", but this didn't change
anything.

I suppose I can write a script that first removes the decault route to
my other machine and then sets the default to the PPP connection, and
another that reestablishes old default route when I hang up, but is
there a better way to do it?

Thanks,
Phil Hirschhorn

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


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

2. DNS requirements

3. Won't dial-on-demand, routing works if run pppd manually

4. Does anyone have an IP Masqing/Firewall FAQ

5. HELP: pppd won't talk to modem, and won't link up with ISP

6. Ethernet numbering

7. route won't route

8. Sony 76 IDE CR-ROM, will it work?

9. pppd 2.2.0f 'make kernel' won't copy files

10. PPP Static Routes won't route to eth0

11. 2.9 routed: This dog won't route

12. Getting "SIOCADDRT: Invalid argument" with 'route add' ...?

13. PPPD won't load for KPPP; the FAQ hasn't helped.