I'm having what appears to be a routing problem
with ppp upon connecting to my ISP (Earthlink).
Necessary stats:
---------------
I'm running ppp-2.3.11-7 on linux RedHat7.0 with
kernel 2.2.16-22. My hardware is a Dell PC 620
workstation, and an old 14.4 Hays modem (which
has been used in the past for ppp connections).
My ISP is Earthlink (in NM), and they tell me
that they use PAP authentication. My machine
is stand-alone at home, and is not connected
to the Internet (so after booting, the only
interface is lo with IP address 127.0.0.0).
Description of problem:
----------------------
After the ppp connection is established and
both the local and remote IPs have been
assigned to the ppp0 interface, I can only
ping the local and remote IPs and nothing
else. Needless to say, telnet, ssh, Netscape
etc. do not work.
I can't even ping the IP of Earthlink's DNS
server (I using the raw IP address in dot-quad
notation, e.g. 207.217.120.83 is Earthlink's
primary DNS server, so this is not an address
resolution problem).
This sounds like a routing problem at my end.
My machine can also boot up in Windows 2K, and
using Earthlink's Self-Installation Software
for Chimps[TM], I can of course connect via
Windows (but who wants to do that?). Since
Earthlink's staff is composed strictly of
Chimps, all they know how to do is tell me
which Win2K icon to click on! (Their manifesto
must be, "An ISP *by* Chimps and *for* Chimps.")
Thanks for any help you can provide,
Robert Singleton
Debugging info:
--------------
a) I'm able to logon to the ISP site manually with
minicom controlling the modem (entering my id
and password by hand), so I know the modem is
working.
b) I have written an options file and a chat script
that automate this process, and I can logon to
the ISP in this manner as well (but I'm afraid
some options in may be wrong, so I will include
the options file below).
c) Here is an excerpt from /var/log/daemon for a
login attempt:
pppd[1209]: pppd 2.3.11 started by root, uid 0
pppd[1209]: Serial connection established.
pppd[1209]: Using interface ppp0
pppd[1209]: Connect: ppp0 <--> /dev/ttyS0
pppd[1209]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x6a008a58>
<pcomp>
<accomp>]
pppd[1209]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x6a008a58>
<pcomp>
<accomp>]
pppd[1209]: rcvd [LCP ConfReq id=0x1 <mru 1524> <asyncmap 0x0> <pcomp>
<accomp>
< 13 09 03 00 c0 7b 8e 46 57>]
pppd[1209]: sent [LCP ConfRej id=0x1 < 13 09 03 00 c0 7b 8e 46 57>]
pppd[1209]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0x6a008a58>
<pcomp>
<accomp>]
pppd[1209]: rcvd [LCP ConfReq id=0x2 <mru 1524> <asyncmap 0x0> <pcomp>
<accomp>]
pppd[1209]: sent [LCP ConfAck id=0x2 <mru 1524> <asyncmap 0x0> <pcomp>
<accomp>]
pppd[1209]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0> <compress VJ 0f
01>]
pppd[1209]: sent [CCP ConfReq id=0x1 <deflate 15> <deflate(old#) 15>
<bsd v1 15>]
pppd[1209]: rcvd [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr
206.115.223.45>]
pppd[1209]: sent [IPCP ConfAck id=0x1 <compress VJ 0f 01> <addr
206.115.223.45>]
pppd[1209]: rcvd [IPCP ConfNak id=0x1 <addr 63.46.208.213>]
pppd[1209]: sent [IPCP ConfReq id=0x2 <addr 63.46.208.213> <compress VJ
0f 01>]
pppd[1209]: rcvd [LCP ProtRej id=0x3 80 fd 01 01 00 0f 1a 04 78 00 18 04
78 00
15 03 2f]
pppd[1209]: rcvd [IPCP ConfAck id=0x2 <addr 63.46.208.213> <compress VJ
0f 01>]
pppd[1209]: local IP address 63.46.208.213
pppd[1209]: remote IP address 206.115.223.45
At this point, I can ping 206.115.223.45 and
63.46.208.213, but nothing else. It also looks
as if the Link Control Protocol was never agreed
upon [LCP RotRej ...], and that the IPCP was
never officially brought up (although IP addresses
were assigned.
d) The routing table and ifconfig info might be of
some use:
# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window
irtt Iface
206.115.223.45 0.0.0.0 255.255.255.255 UH 0 0
0 ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0
0 lo
0.0.0.0 206.115.223.45 0.0.0.0 UG 0 0
0 ppp0
# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:16 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
ppp0 Link encap:Point-to-Point Protocol
inet addr:63.46.208.213 P-t-P:206.115.223.45
Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1524 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:10
e) Finally, here is my option file:
# log ppp control frames to syslog
debug
# serial interface options
/dev/ttyS0 38400
lock
modem
crtscts
noauth
#
# NOTE: If I don't use the "noauth" option,
# I get an error in the daemon log file:
#
# pppd[1155]: Peer is not authorized to use remote address
206.115.155.251
# pppd[1155]: sent [IPCP TermReq id=0x3 "Unauthorized remote IP
address"]
# pppd[1155]: rcvd [IPCP TermAck id=0x3]
# pppd[1155]: sent [LCP TermReq id=0x2 "No network protocols running"]
# pppd[1155]: rcvd [LCP TermAck id=0x2]
# pppd[1155]: Connection terminated.
#
# link control protocol
asyncmap 00000000
name "mu-Earthlink-user-id"
# IP Control Protocol (IPCP) options
noipdefault
# use ppp peer as default gateway
defaultroute
# chat script
connect "/usr/sbin/chat -v -f /etc/ppp/chatEarthlink"
--
Robert Singleton office: (505)-667-8420
X-7 Material Science fax : (505)-665-0218
Los Alamos, NM 87545