QUOTE(Apoorv Khatreja @ Mar 11 2007, 09:20 PM) [snapback]83028[/snapback]
What exactly my problem is that I have to type pon dsl-provider about 20 times before I get connected. The reason behind this is unknown to me. Typing pon dsl-provider once triggers the connection once. But what happens if the attempt to connect fails? NOTHING.[/b]
The "plog" command can tell you what happened recently with your pppoe connection. So after you do "pon", use 'plog' command to see what it says and paste the output here.
Also, the best information you can get is from /var/log/syslog file (in Debian based distros, Ubuntu is Debian based). After giving the "pon" command, check what is at the end of that file. You can
1. either just look at the file using the command "less /var/log/syslog" in a terminal (space key scrolls down one page, "-" (minus) key scrolls up one page)
2. or you can keep a watch on the last few lines of that file as they are being changed using the command "tail -f -n 25 /var/log/syslog" (this will keep showing the last 25 lines, even if the file is updated). Paste the information relevant to ppp connection here.
Finally, after every "pon" attempt, use the "poff -a" command to shutdown all ppp connection that there may be before giving the "pon" command again.
QUOTE(Apoorv Khatreja @ Mar 11 2007, 09:20 PM) [snapback]83028[/snapback]
This keeps on repeating until i get connected. Somebody suggested that I check by pinging some popular site such as
google. But I DON'T KNOW HOW TO WRITE SUCH A CONDITION STATEMENT. Please help me with this.[/b]
I would guess that if you are having problem connection in
Windows as well, then there might be some problem with your connection itself (telephone lines interference or
noise?).
In any case, use the 'plog' command and look at the /var/log/syslog file to get an indication what could be going wrong and write back.
And, btw, don't panic and you don't have to use capital letters (they represent "shouting" on the net)
good luck.