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

Re: PPP Internet Connection Not Working



Dear Kenneth,

That's the IP routing table after pon myprovider:

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
62.202.239.1    *               255.255.255.255 UH    0      0        0 ppp0
192.168.0.2     *               255.255.255.255 UH    1      0        0 tap0
localnet        *               255.255.255.0   U     0      0        0 tunl0
default         192.168.1.2     0.0.0.0         UG    0      0        0 tunl0
default         *               0.0.0.0         U     1      0        0 tap0

debian:/home/i# poff myprovider

Clearly, the default gw is not correctly set. So I deleted the tunl0 device 
from /etc/network/interfaces as I don't have an ethernet card (might have 
side effects ?), but didn't help:

debian:/home/i# pon myprovider

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.2     *               255.255.255.255 UH    1      0        0 tap0
213.3.235.1     *               255.255.255.255 UH    0      0        0 ppp0
default         *               0.0.0.0         U     1      0        0 tap0

debian:/home/i# route add default gw 213.3.235.1

debian:/home/i# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.0.2     *               255.255.255.255 UH    1      0        0 tap0
1.235.3.213.dia *               255.255.255.255 UH    0      0        0 ppp0
default         1.235.3.213.dia 0.0.0.0         UG    0      0        0 ppp0
default         *               0.0.0.0         U     1      0        0 tap0

The order of the ppp0 IP-adress is reversed but this works, unfortunately only 
ater typing the rout add command.

Although the defaultrout command was not set in the options file, it was set 
in /etc/ppp/peers/myprovider. I tried it with setting it in bouth files, but 
did not succeed. Anyway, peer/myprovider should suffice(?).

Here the options and peers/myprovider files (with comments deleted):

=== /etc/ppp/options - begin ===
defaultroute
asyncmap 0
auth
crtscts
lock
hide-password
modem
proxyarp
lcp-echo-interval 30
lcp-echo-failure 4
noipx
=== # ---<End of File>--- /etc/ppp/options ===


=== /etc/ppp/peers/myprovider - begin ===
# This optionfile was generated by pppconfig 2.0.10.

hide-password
noauth
connect "/usr/sbin/chat -v -f /etc/chatscripts/BlueWin"
debug
/dev/ttyS0
115200
defaultroute
noipdefault
user gp17

ipparam BlueWin

usepeerdns
=== /etc/ppp/peers/myprovider - ===

Thank you for your help
Guenther


On Wednesday 04 September 2002 23:53, you wrote:
> Günther Palfinger wrote:
> >Hi,
>
> as root type route and have a look at output.
> from man route:
>
>
> route add default gw mango-gw
>              adds a default route (which  will  be  used  if  no
>              other route matches).  All packets using this route
>              will be gatewayed through  "mango-gw".  The  device
>              which  will actually be used for that route depends
>              on how we can reach "mango-gw" - the  static  route
>              to "mango-gw" will have to be set up before.
>
> >I installed debian 3.0r0 recently and it works mostly fine. However, I
> > cannot get into the internet.
> >
> >I used the config script to set up the ppp connection and tried PAP and
> > CHAP. I also tried kppp for which I copied the kppprc files from my
> > redhat 7.2 partition, on which it works fine. Nothing worked on debian.
> > When looking at the syslog file (see below) I have the impression that
> > ppp is up as I get the 4 IP addresses. This is confirmed by ifconfig (see
> > output below).
> >
> >ping 62.202.244.1 # my isp server
> >works,
> >
> >but any other internet address, e.g. ping 136.199.85.13, does not.
> >
> >I thought there might be a firewall installed which blocks everything so I
> >tried ipchains -L with the reply that the kernel does not support that.
> > For the installation the bf kernel was used but I replaced it with the
> > standard K7 kernel later.
> >
> >Can anybody give me a hint what else I could try?
> >
> >Thanks
> >Guenther
> >
> >=== /var/log/syslog - begin ===
> >Sep  4 21:00:19 debian syslogd 1.4.1#10: restart.
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE Connection from host
> > localhost (127.0.0.1).
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE Status.
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE Connection from host
> > localhost (127.0.0.1).
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE Offline.
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE Connection from host
> > localhost (127.0.0.1).
> >Sep  4 21:00:20 debian wwwoffled[777]: WWWOFFLE Purge.
> >Sep  4 21:00:20 debian wwwoffled[777]: Cannot change to directory 'temp'
> > [No such file or directory]; not purged.
> >Sep  4 21:00:20 debian wwwoffled[777]: WWWOFFLE Purge finished.
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE Connection from host
> > localhost (127.0.0.1).
> >Sep  4 21:00:20 debian wwwoffled[341]: WWWOFFLE In Autodial Mode.
> >Sep  4 21:00:20 debian anacron[351]: Job `cron.daily' terminated
> >Sep  4 21:00:20 debian anacron[351]: Normal exit (1 jobs run)
> >Sep  4 21:08:01 debian /USR/SBIN/CRON[804]: (mail) CMD (  if [ -x
> >/usr/sbin/exim -a -f /etc/exim/exim.conf ]; then /usr/sbin/exim -q ; fi)
> >Sep  4 21:23:01 debian /USR/SBIN/CRON[868]: (mail) CMD (  if [ -x
> >/usr/sbin/exim -a -f /etc/exim/exim.conf ]; then /usr/sbin/exim -q ; fi)
> >Sep  4 21:31:59 debian kernel: CSLIP: code copyright 1989 Regents of the
> >University of California
> >Sep  4 21:31:59 debian kernel: PPP generic driver version 2.4.1
> >Sep  4 21:31:59 debian pppd[880]: pppd 2.4.1 started by root, uid 0
> >Sep  4 21:32:00 debian chat[881]: abort on (BUSY)
> >Sep  4 21:32:00 debian chat[881]: abort on (NO CARRIER)
> >Sep  4 21:32:00 debian chat[881]: abort on (VOICE)
> >Sep  4 21:32:00 debian chat[881]: abort on (NO DIALTONE)
> >Sep  4 21:32:00 debian chat[881]: abort on (NO DIAL TONE)
> >Sep  4 21:32:00 debian chat[881]: abort on (NO ANSWER)
> >Sep  4 21:32:00 debian chat[881]: abort on (DELAYED)
> >Sep  4 21:32:00 debian chat[881]: send (ATZ^M)
> >Sep  4 21:32:00 debian chat[881]: expect (OK)
> >Sep  4 21:32:00 debian chat[881]: ATZ^M^M
> >Sep  4 21:32:00 debian chat[881]: OK
> >Sep  4 21:32:00 debian chat[881]:  -- got it
> >Sep  4 21:32:00 debian chat[881]: send (ATDT10741 0840 840 222^M)
> >Sep  4 21:32:01 debian chat[881]: expect (CONNECT)
> >Sep  4 21:32:01 debian chat[881]: ^M
> >Sep  4 21:32:28 debian chat[881]: ATDT10741 0840 840 222^M^M
> >Sep  4 21:32:28 debian chat[881]: CONNECT
> >Sep  4 21:32:28 debian chat[881]:  -- got it
> >Sep  4 21:32:28 debian chat[881]: send (\d)
> >Sep  4 21:32:29 debian pppd[880]: Serial connection established.
> >Sep  4 21:32:29 debian pppd[880]: using channel 1
> >Sep  4 21:32:29 debian pppd[880]: Using interface ppp0
> >Sep  4 21:32:29 debian pppd[880]: Connect: ppp0 <--> /dev/ttyS0
> >Sep  4 21:32:30 debian pppd[880]: sent [LCP ConfReq id=0x1 <asyncmap 0x0>
> ><magic 0x21d86660> <pcomp> <accomp>]
> >Sep  4 21:32:30 debian pppd[880]: rcvd [LCP ConfReq id=0xb <asyncmap
> > 0xa0000> <auth chap MD5> <magic 0xa856d2e> <pcomp> <accomp>]
> >Sep  4 21:32:30 debian pppd[880]: sent [LCP ConfAck id=0xb <asyncmap
> > 0xa0000> <auth chap MD5> <magic 0xa856d2e> <pcomp> <accomp>]
> >Sep  4 21:32:30 debian pppd[880]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0>
> ><magic 0x21d86660> <pcomp> <accomp>]
> >Sep  4 21:32:30 debian pppd[880]: sent [LCP EchoReq id=0x0
> > magic=0x21d86660] Sep  4 21:32:30 debian pppd[880]: rcvd [CHAP Challenge
> > id=0xb
> ><bf17f66a039cedaf0a261fdef9c27468>, name = "tbwmlppp"]
> >Sep  4 21:32:30 debian pppd[880]: sent [CHAP Response id=0xb
> ><e306ab3718fac93e93b3583d8955e7a0>, name = "gp17"]
> >Sep  4 21:32:30 debian pppd[880]: rcvd [LCP EchoRep id=0x0
> > magic=0xa856d2e] Sep  4 21:32:31 debian pppd[880]: rcvd [CHAP Success
> > id=0xb ""]
> >Sep  4 21:32:31 debian pppd[880]: sent [IPCP ConfReq id=0x1 <addr 0.0.0.0>
> ><compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> >Sep  4 21:32:31 debian kernel: PPP BSD Compression module registered
> >Sep  4 21:32:31 debian kernel: PPP Deflate Compression module registered
> >Sep  4 21:32:31 debian pppd[880]: sent [CCP ConfReq id=0x1 <deflate 15>
> ><deflate(old#) 15> <bsd v1 15>]
> >Sep  4 21:32:31 debian pppd[880]: rcvd [IPCP ConfReq id=0x1d <addr
> >62.202.244.1>]
> >Sep  4 21:32:31 debian pppd[880]: sent [IPCP ConfAck id=0x1d <addr
> >62.202.244.1>]
> >Sep  4 21:32:31 debian pppd[880]: rcvd [IPCP ConfRej id=0x1 <compress VJ
> > 0f 01>]
> >Sep  4 21:32:31 debian pppd[880]: sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>
> ><ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
> >Sep  4 21:32:31 debian pppd[880]: rcvd [LCP ProtRej id=0x8 80 fd 01 01 00
> > 0f 1a 04 78 00 18 04 78 00 15 03 2f]
> >Sep  4 21:32:31 debian pppd[880]: rcvd [IPCP ConfNak id=0x2 <addr
> >62.202.245.253> <ms-dns1 195.186.1.111> <ms-dns3 195.186.4.111>]
> >Sep  4 21:32:31 debian pppd[880]: sent [IPCP ConfReq id=0x3 <addr
> >62.202.245.253> <ms-dns1 195.186.1.111> <ms-dns3 195.186.4.111>]
> >Sep  4 21:32:31 debian pppd[880]: rcvd [IPCP ConfAck id=0x3 <addr
> >62.202.245.253> <ms-dns1 195.186.1.111> <ms-dns3 195.186.4.111>]
> >Sep  4 21:32:31 debian pppd[880]: not replacing existing default route to
> >tunl0 [192.168.1.2]
> >Sep  4 21:32:31 debian pppd[880]: Cannot determine ethernet address for
> > proxy ARP
> >Sep  4 21:32:31 debian pppd[880]: local  IP address 62.202.245.253
> >Sep  4 21:32:31 debian pppd[880]: remote IP address 62.202.244.1
> >Sep  4 21:32:31 debian pppd[880]: primary   DNS address 195.186.1.111
> >Sep  4 21:32:31 debian pppd[880]: secondary DNS address 195.186.4.111
> >Sep  4 21:32:31 debian pppd[880]: Script /etc/ppp/ip-up started (pid 886)
> >Sep  4 21:32:51 debian pppd[880]: Script /etc/ppp/ip-up finished (pid
> > 886), status = 0x0
> >Sep  4 21:32:51 debian fetchnews[918]: 1.9.19: verbosity level is 0
> >Sep  4 21:32:51 debian fetchnews[918]: can't stat
> >/var/spool/news/leaf.node/groupinfo: No such file or directory
> >Sep  4 21:33:00 debian pppd[880]: sent [LCP EchoReq id=0x1
> > magic=0x21d86660] Sep  4 21:33:00 debian pppd[880]: rcvd [LCP EchoRep
> > id=0x1 magic=0xa856d2e] Sep  4 21:33:30 debian pppd[880]: sent [LCP
> > EchoReq id=0x2 magic=0x21d86660] Sep  4 21:33:30 debian pppd[880]: rcvd
> > [LCP EchoRep id=0x2 magic=0xa856d2e] Sep  4 21:34:00 debian pppd[880]:
> > sent [LCP EchoReq id=0x3 magic=0x21d86660] Sep  4 21:34:00 debian
> > pppd[880]: rcvd [LCP EchoRep id=0x3 magic=0xa856d2e] Sep  4 21:34:30
> > debian pppd[880]: sent [LCP EchoReq id=0x4 magic=0x21d86660] Sep  4
> > 21:34:30 debian pppd[880]: rcvd [LCP EchoRep id=0x4 magic=0xa856d2e] Sep 
> > 4 21:35:00 debian pppd[880]: sent [LCP EchoReq id=0x5 magic=0x21d86660]
> > Sep  4 21:35:00 debian pppd[880]: rcvd [LCP EchoRep id=0x5
> > magic=0xa856d2e] Sep  4 21:35:30 debian pppd[880]: sent [LCP EchoReq
> > id=0x6 magic=0x21d86660] Sep  4 21:35:30 debian pppd[880]: rcvd [LCP
> > EchoRep id=0x6 magic=0xa856d2e] Sep  4 21:36:00 debian pppd[880]: sent
> > [LCP EchoReq id=0x7 magic=0x21d86660] Sep  4 21:36:00 debian pppd[880]:
> > rcvd [LCP EchoRep id=0x7 magic=0xa856d2e] Sep  4 21:36:27 debian
> > modprobe: modprobe: Can't locate module /root/ifconfig. Sep  4 21:36:30
> > debian pppd[880]: sent [LCP EchoReq id=0x8 magic=0x21d86660] Sep  4
> > 21:36:30 debian pppd[880]: rcvd [LCP EchoRep id=0x8 magic=0xa856d2e] Sep 
> > 4 21:36:58 debian pppd[880]: Terminating on signal 15.
> >Sep  4 21:36:58 debian pppd[880]: Script /etc/ppp/ip-down started (pid
> > 937) Sep  4 21:36:58 debian pppd[880]: sent [LCP TermReq id=0x2 "User
> > request"] Sep  4 21:36:58 debian pppd[880]: Script /etc/ppp/ip-down
> > finished (pid 937), status = 0x1
> >Sep  4 21:36:58 debian pppd[880]: rcvd [LCP TermAck id=0x2]
> >Sep  4 21:36:58 debian pppd[880]: Connection terminated.
> >Sep  4 21:36:58 debian pppd[880]: Connect time 4.5 minutes.
> >Sep  4 21:36:58 debian pppd[880]: Sent 349 bytes, received 316 bytes.
> >Sep  4 21:36:59 debian pppd[880]: Hangup (SIGHUP)
> >Sep  4 21:36:59 debian pppd[880]: Exit.
> >=== /var/log/syslog - end ===
> >
> >
> >=== ifconfig - begin ===
> >lo        Link encap:Local Loopback
> >          inet addr:127.0.0.1  Mask:255.0.0.0
> >          UP LOOPBACK RUNNING  MTU:16436  Metric:1
> >          RX packets:296 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:296 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:0
> >          RX bytes:21374 (20.8 KiB)  TX bytes:21374 (20.8 KiB)
> >
> >ppp0      Link encap:Point-to-Point Protocol
> >          inet addr:62.202.245.253  P-t-P:62.202.244.1 
> > Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500 
> > 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:3
> >          RX bytes:316 (316.0 b)  TX bytes:349 (349.0 b)
> >
> >tap0      Link encap:Ethernet  HWaddr FE:FD:00:00:00:00
> >          inet addr:192.168.0.1  Bcast:0.0.0.0  Mask:255.255.255.255
> >          UP BROADCAST RUNNING NOARP MULTICAST  MTU:1500  Metric:1
> >          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
> >          collisions:0 txqueuelen:0
> >          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> >          Interrupt:5
> >
> >tunl0     Link encap:IPIP Tunnel  HWaddr
> >          inet addr:192.168.1.1  Mask:255.255.255.0
> >          UP RUNNING NOARP  MTU:1480  Metric:1
> >          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
> >          TX packets:0 errors:81 dropped:0 overruns:0 carrier:0
> >          collisions:81 txqueuelen:0
> >          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> >=== ifconfig - end ===



Reply to: