Can't ping or use inet apps ...............
I managed to build my own system. Using kernel 2.4.9 , gcc
3.0.1, libc 2.2.4 , ppp 2.4.1
For some reason , I can't get wvdial to compile under my gcc ,
so I had to resort to setting up the connection by hand.
Following Bill Unruh's instructions , everything goes well.
/usr/sbin/pppd /dev/ttyS4 57600 debug user hatelinux connect
"/usr/sbin/chat -v '' ATDT000000000000 CONNECT '\d\c'"
gets me:
.........................................
Oct 2 20:38:02 MangaLinux pppd[138]: pppd 2.4.0 started by root, uid
0
Oct 2 20:38:03 MangaLinux chat[139]: send (ATDT000000000000^M)
Oct 2 20:38:03 MangaLinux chat[139]: expect (CONNECT)
Oct 2 20:38:34 MangaLinux chat[139]: ATDT000000000000^M^M
Oct 2 20:38:34 MangaLinux chat[139]: CONNECT
Oct 2 20:38:34 MangaLinux chat[139]: -- got it
Oct 2 20:38:34 MangaLinux chat[139]: send (\d)
Oct 2 20:38:35 MangaLinux pppd[138]: Serial connection established.
Oct 2 20:38:35 MangaLinux pppd[138]: using channel 2
Oct 2 20:38:35 MangaLinux pppd[138]: Using interface ppp0
Oct 2 20:38:35 MangaLinux pppd[138]: Connect: ppp0 <--> /dev/ttyS4
Oct 2 20:38:36 MangaLinux pppd[138]: sent [LCP ConfReq id=0x1
<asyncmap 0x0> <magic 0xf25d885b> <pcomp> <accomp>]
Oct 2 20:38:37 MangaLinux pppd[138]: rcvd [LCP ConfReq id=0x1
<asyncmap 0x0> <auth pap> <pcomp> <accomp> <endpoint
[MAC:00:d0:52:01:34:49]>]
Oct 2 20:38:37 MangaLinux pppd[138]: sent [LCP ConfAck id=0x1
<asyncmap 0x0> <auth pap> <pcomp> <accomp> <endpoint
[MAC:00:d0:52:01:34:49]>]
Oct 2 20:38:39 MangaLinux pppd[138]: sent [LCP ConfReq id=0x1
<asyncmap 0x0> <magic 0xf25d885b> <pcomp> <accomp>]
Oct 2 20:38:54 MangaLinux last message repeated 5 times
Oct 2 20:38:57 MangaLinux pppd[138]: rcvd [LCP ConfAck id=0x1
<asyncmap 0x0> <magic 0xf25d885b> <pcomp> <accomp>]
Oct 2 20:38:57 MangaLinux pppd[138]: sent [PAP AuthReq id=0x1
user="hatelinux" password=<hidden>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [LCP ConfReq id=0x1
<asyncmap 0x0> <auth pap> <pcomp> <accomp> <endpoint
[MAC:00:d0:52:01:34:49]>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [LCP ConfReq id=0x2
<asyncmap 0x0> <magic 0xb3c7a494> <pcomp> <accomp>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [LCP ConfAck id=0x1
<asyncmap 0x0> <auth pap> <pcomp> <accomp> <endpoint
[MAC:00:d0:52:01:34:49]>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [LCP ConfAck id=0x1
<asyncmap 0x0> <magic 0xf25d885b> <pcomp> <accomp>]
Oct 2 20:38:58 MangaLinux last message repeated 4 times
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [LCP ConfAck id=0x2
<asyncmap 0x0> <magic 0xb3c7a494> <pcomp> <accomp>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [PAP AuthReq id=0x2
user="hatelinux" password=<hidden>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [PAP AuthAck id=0x2 ""]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [IPCP ConfReq id=0x1 <addr
0.0.0.0> <compress VJ 0f 01>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [CCP ConfReq id=0x1
<deflate 15> <deflate(old#) 15> <bsd v1 15>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [IPCP ConfReq id=0x1
<compress VJ 0f 01> <addr 200.177.160.2>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [IPCP ConfAck id=0x1
<compress VJ 0f 01> <addr 200.177.160.2>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [CCP ConfReq id=0x1 < 11 06
00 01 01 03>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [CCP ConfRej id=0x1 < 11 06
00 01 01 03>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [IPCP ConfNak id=0x1 <addr
200.177.161.26>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [IPCP ConfReq id=0x2 <addr
200.177.161.26> <compress VJ 0f 01>]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [CCP ConfRej id=0x1
<deflate 15> <deflate(old#) 15> <bsd v1 15>]
Oct 2 20:38:58 MangaLinux pppd[138]: sent [CCP ConfReq id=0x2]
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [IPCP ConfAck id=0x2 <addr
200.177.161.26> <compress VJ 0f 01>]
Oct 2 20:38:58 MangaLinux pppd[138]: local IP address 200.177.161.26
Oct 2 20:38:58 MangaLinux pppd[138]: remote IP address 200.177.160.2
Oct 2 20:38:58 MangaLinux pppd[138]: rcvd [CCP ConfRej id=0x2]
Oct 2 20:41:49 MangaLinux pppd[138]: Terminating on signal 15.
Oct 2 20:41:49 MangaLinux pppd[138]: sent [LCP TermReq id=0x3 "User
request"]
Oct 2 20:41:49 MangaLinux pppd[138]: rcvd [LCP TermAck id=0x3]
Oct 2 20:41:49 MangaLinux pppd[138]: Connection terminated.
Oct 2 20:41:49 MangaLinux pppd[138]: Connect time 3.3 minutes.
Oct 2 20:41:49 MangaLinux pppd[138]: Sent 413 bytes, received 407
bytes.
Oct 2 20:41:49 MangaLinux pppd[138]: Hangup (SIGHUP)
Oct 2 20:41:49 MangaLinux pppd[138]: Exit.
.......................
Interesting, although I have a dynamic assigned ppp
I got the same remote IP number 6 times, over an hour !!!
200.177.160.2 . Might be coincidence.
..............................
I can ping 200.177.160.2 , although I get some errors. (every 5 or 6
pings I get " expected ..(a lot of hex) , received ...(more hex)"
I cannot ping any other external address, either by name or number. My
lynx browser etc does not work (cannot resolve external address)
My /etc/resolv.conf appears to be OK (this time I manually got the ip
of ns1.terra.com.br , ns2.terra.com.br etc).
/etc/resolv.conf
domain terra.com.br
nameserver 200.176.2.51
nameserver 200.176.2.174
nameserver 200.177.250.110
route -n brings nothing until I connect , then the ppp connection
appears.....
What could be wrong ?? And why does it ask for my pass more
than once, then say everything is OK ?
I will post the content of any log file if necessary