To any linux networking wizards:
I have spent approximately 16 hours attempting to get pppd 2.1.2b running
under Linux 1.2.1. It refuses to work as client to my ISP, running BSD
with Annex ports, or as host to a windows 95 ppp dial-up connection.
Windows 95 seems to have no difficulty in authenticating with the ISP
using PAP. The two local machines communicate without problem over an
ethernet network. The Linux box is running Zbbs, and there are no problems
dialing in to the system via bbs or shell session.
When using pppd to connect to the ISP, it basically ends with 10 IPCP
configuration requests. No ppp0 interface appears when running ifconfig
or netstat -i. I have attempted changing many of the options which are
listed below in the basic configurations, such as lcp-restart,
ipcp-restart, ipcp-echo-failure, -vj, xonxoff, +ua with alternate
pap-secrets file, specifiying local:remote addresses, using proxyarp,
removing the eth0 interface and all other ethernet LAN references,
specifying/removing a defaultroute/gateway, etc. I have not tried to
recompile the kernel without IP multicast, but have commented out multi
on in the /etc/host.conf file.
When using pppd passive called from the /etc/ppp/ppplogin script, the
process ends in much the same manner. Using user ppp with a password of
ppp, when the Windows95 dial up PPP VXD attaches, it eventually returns
an error message indicating that it cannot negotiate a network protocol, with
the error message below repeated 20 times in the ppplog.txt debug file:
Received and accepted ACCM of a000 (changes each time).
Naking possibly loopback magic number.
Loopback! Peer nak'd with our nak of peer's magic number!
I experimented with all of the networking options pertinent to the dial
up adapter in Win95, and am confident that the problem is on the Linux side.
Before posting this request for help, I pored thru the manual pages for
pppd, the README, README.linux files, SETUP, A.L.'s PPP How To, Ignatio
Souvatzis' PPP FAQ on the uu.net ftp archives, Olaf Kirchner's Guide to
Linux Network Administration, all the messages in comp.os.protocols,
comp.os.linux.misc, and linux.dev.ppp, and I actually purchased Steven's
two volume TCP/IP Illustrated (to no avail, very little info on PPP, and
none on IPCP error messages). I couldn't seem to find the RFCs anywhere,
but I would appreciate someone pointing out where they could be located
to a bewildered sysop.
The files below should contain most of the info pertinent to the problem.
Thanks in advance for anyone spending the time to point out my likely
obvious mistakes.
(options.cua1)
connect /etc/ppp/dial.southwind
disconnect /etc/ppp/disc.southwind
noipdefault
defaultroute
#proxyarp
crtscts
modem
kdebug 5
user luminet
remotename southwind.net
(dial.southwind)
#!/usr/local/bin/expect -f
log_file -noappend -a .conn.log
log_user 0
send_user "at\r"
expect_user -re {.*OK.*} { } \
timeout {
system /usr/bin/logger -p info -t dial.southwind "1st timeout"
puts "timeout\n"
send_user "at\r"
expect_user -re {.*OK.*} { } \
timeout {
system /usr/bin/logger -p info -t dial.southwind "2nd timeout"
exit -1
}
}
send_user "atL3M1E0\r"
expect_user -re {.*OK.*} { } \
timeout { exit -1 }
system /usr/bin/logger -p info -t dial.southwind "Dialing..."
set timeout 60
send_user "atDT5559999\r"
expect_user -re "CONNECT" {
system /usr/bin/logger -p info -t dial.southwind "Connected"
sleep 1
exit 0
} \
{BUSY} {
system /usr/bin/logger -p info -t dial.southwind "Busy"
exit -2
} \
{NO\ CARRIER} {
system /usr/bin/logger -p info -t dial.southwind "No Carrier"
exit -2
} \
{ERROR} {
system /usr/bin/logger -p info -t dial.southwind "Error"
exit -3
} \
{NO\ DIAL\ TONE} {
system /usr/bin/logger -p info -t dial.southwind "No Dial Tone"
exit -3
} \
timeout {
system /usr/bin/logger -p info -t dial.southwind "timeout"
exit -2
}
(/etc/ppp/ppplogin)
#!/bin/sh
# ppplogin -script to fire up pppd on login
mesg n
stty -echo
exec /usr/lib/ppp/pppd modem +ua /etc/ppp/pap-secrets crtscts -vj
(/etc/ppp/pap-secrets)
luminet southwind.net password
(kernel boot messages from /var/adm/messages)
Calibrating delay loop.. ok - 39.94 BogoMips
Serial driver version 4.11 with no serial options enabled
tty00 at 0x03f8 (irq = 4) is a 16450
tty01 at 0x02f8 (irq = 3) is a 16450
Memory: 14920k/16384k available (752k kernel code, 384k reserved, 328k data)
Swansea University Computer Society NET3.019
Swansea University Computer Society TCP/IP for NET3.019
IP Protocols: IGMP, ICMP, UDP, TCP
Swansea University Computer Society IPX 0.29 BETA for NET3.019
IPX Portions Copyright (c) 1995 Caldera, Inc.
PPP: version 0.2.7 (4 channels) NEW_TTY_DRIVERS OPTIMIZE_FLAGS
TCP compression code copyright 1989 Regents of the University of California
PPP line discipline registered.
SLIP: version 0.8.3-NET3.019-NEWTTY (4 channels) (6 bit encapsulation enabled)
CSLIP: code copyright 1989 Regents of the University of California
eth0: EtherExpress at 0x320, 00 aa 00 40 38 e0, IRQ 10, Interface BNC.
eexpress.c:v0.07 1/19/94 Donald Becker (bec...@super.org)
Linux version 1.2.1 (root@Inferno) (gcc version 2.6.3) #2 Mon Oct 30 21:50:04 CST 1995
Adding Swap: 32252k swap-space
(/etc/hosts)
127.0.0.1 localhost
199.20.21.100 Inferno.luminet.com Inferno
204.95.83.2 onyx.southwind.net onyx
(/etc/rc.d/rc.inet1)
#! /bin/sh
HOSTNAME=`cat /etc/HOSTNAME`
/sbin/ifconfig lo 127.0.0.1
/sbin/route add -net 127.0.0.0
IPADDR="199.20.21.100"
NETMASK="255.255.255.0"
NETWORK="199.20.21.0"
BROADCAST="199.20.21.255"
GATEWAY="199.20.21.100"
/sbin/ifconfig eth0 ${IPADDR} broadcast ${BROADCAST} netmask ${NETMASK}
/sbin/route add -net ${NETWORK} netmask ${NETMASK}
/sbin/route add default gw ${GATEWAY} metric 1
# End of rc.inet1
(/etc/resolv.conf)
domain southwind.net
nameserver 204.95.83.2
(ppp debugging info with kdebug=5, local2 logger to /var/adm/ppplog)
Nov 24 13:00:06 Inferno pppd[477]: pppd 2.1.2 started by root, uid 0
Nov 24 13:00:22 Inferno pppd[478]: Connected...
Nov 24 13:00:23 Inferno kernel: ppp: channel ppp0 mtu = 1500, mru = 1500
Nov 24 13:00:23 Inferno kernel: ppp: channel ppp0 open
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set input signal 29
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: get unit: 0ignal 29
Nov 24 13:00:23 Inferno kernel: ru = 1500
Nov 24 13:00:23 Inferno kernel: ppp: channel ppp0 open
Nov 24 13:00:23 Inferno kernel: >03 06 00 00 00 00 02 06 ........
Nov 24 13:00:23 Inferno kernel: 00 2D 0F 01 .-..
Nov 24 13:00:23 Inferno kernel: ppp_write: acquired write lock
Nov 24 13:00:23 Inferno kernel: ppp_add_fcs: fcs is a2da
Nov 24 13:00:23 Inferno kernel: ppp_write: writing 40 chars
Nov 24 13:00:23 Inferno kernel: tl: set mru to 1500
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set recv asyncmap 0
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: get flags: addr bffffa90 flags f000010
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set flags to f000000
Nov 24 13:00:23 Inferno kernel: ppp: write frame, count = 20
Nov 24 13:00:23 Inferno kernel: FF 03 80 21 01 01 00 10 ...!....
Nov 24 13:00:23 Inferno kernel: 03 06 00 00 00 00 02 06 ........
Nov 24 13:00:23 Inferno kernel: 00 2D 0F 01 .-..
Nov 24 13:00:23 Inferno kernel: ppp_write: acquired write lock
Nov 24 13:00:23 Inferno pppd[478]: Using interface ppp0
Nov 24 13:00:23 Inferno pppd[478]: Connect: ppp0 <--> /dev/cua1
Nov 24 13:00:23 Inferno kernel: ppp_add_fcs: fcs is a2da
Nov 24 13:00:23 Inferno kernel: ppp_write: writing 39 chars
Nov 24 13:00:23 Inferno kernel: ppp_read: called 10068 num 1504
Nov 24 13:00:23 Inferno kernel: ppp_read: no data
Nov 24 13:00:23 Inferno kernel: ppp_read: EWOULDBLOCK
Nov 24 13:00:23 Inferno kernel: e: writing 39 chars
Nov 24 13:00:23 Inferno kernel: fcs is 5afa
Nov 24 13:00:23 Inferno kernel: ppp_write: writing 50 chars
Nov 24 13:00:23 Inferno kernel: ppp_read: called 10068 num 1504
Nov 24 13:00:23 Inferno kernel: ppp_read: no data
Nov 24 13:00:23 Inferno kernel: ppp_read: EWOULDBLOCK
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: get debug level 5
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set xasyncmap
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set xmit asyncmap ffffffff
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: get flags: addr bffffba8 flags f000000
Nov 24 13:00:23 Inferno kernel: pp<6>Nov 24 13:00:23 kernel: ppp_ioctl: set mru to 1500
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set recv asyncmap 0
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: get flags: addr bffffbd4 flags f000000
Nov 24 13:00:23 Inferno kernel: ppp_ioctl: set flags to f000010
Nov 24 13:00:23 Inferno kernel: ppp: write frame, count = 22
Nov 24 13:00:23 Inferno kernel: FF 03 C0 21 01 01 00 12 ...!....
Nov 24 13:00:23 Inferno kernel: 01 04 05 DC 05 06 24 7A ......$z
Nov 24 13:00:23 Inferno kernel: 14 24 07 02 08 02 .$....
Nov 24 13:00:23 Inferno kernel: ppp_write: acquired write lock
Nov 24 13:00:23 Inferno kernel: ppp_add_fcs: fcs is b0ba
Nov 24 13:00:23 Inferno kernel: ppp_write: writing 41 chars
Nov 24 13:00:23 Inferno kernel: ppp: receive buffer, count = 1
Nov 24 13:00:23 Inferno kernel: 7E ~
Nov 24 13:00:23 Inferno kernel: ppp: receive buffer, count = 2
Nov 24 13:00:23 Inferno kernel: FF 7D .}
Nov 24 13:00:23 Inferno kernel: ppp: receive buffer, count = 1
Nov 24 13:00:23 Inferno kernel: 23 #
Nov 24 13:00:23 Inferno kernel: ppp: receive buf<7>Nov 24 13:00:23 kernel: C0 21 7D 21 7D 21 7D 20 .!}!}!}
Nov 24 13:00:24 Inferno kernel: 7D 38 7D 22 7D 26 7D 20 }8}"}&}
Nov 24 13:00:24 Inferno kernel: 7D 20 7D 20 7D 20 7D 23 } } } }#
Nov 24 13:00:24 Inferno kernel: 7D 24 C0 23 7D 25 7D 26 }$.#}%}&
Nov 24 13:00:24 Inferno kernel: 7D 2B 7D 23 7D 37 }+}#}7
Nov 24 13:00:24 Inferno kernel: ppp: receive buffer, count = 1
Nov 24 13:00:24 Inferno kernel: 21 !
Nov 24 13:00:24 Inferno kernel: ppp: receive buffer, count = 12
Nov 24 13:00:24 Inferno kernel:
...
read more »