LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-21-2009, 04:43 AM   #1
shihao
Member
 
Registered: Aug 2009
Posts: 33

Rep: Reputation: 15
Why sometimes my ubuntu server cannot connect to modem?


Hi, I am facing problem while I try to connect the Ubuntu server to modem.

I am using few command like pppoeconf, pon dsl-provider, poff, plog, ifconfig to check, dial, discoonect the connection.

I still dunno why sometimes I able to ping www.google.com and sometimes cannot..

Please help.. Thanks.
 
Old 08-21-2009, 06:22 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Take a look in the logfiles, when you make the connection, and when you have problems to connect
/var/log/*
 
Old 08-23-2009, 09:13 PM   #3
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Unhappy

Hi, thanks for the reply. There are many files inside the var/log, I wonder which one I should view.

Generally, my step is
1) configure using pppoeconf
2) use 'pon dsl-provider' command
3) ping www.google.com (Sometimes works sometimes does not)

I am still new at linux, need a precise guide. Please Advice. Thank you.
 
Old 08-24-2009, 12:55 AM   #4
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Open a terminal and login as root
type
Code:
tail -f /var/log/messages
open another terminal and make the connection.
Look at the output in the first terminal.
 
Old 08-24-2009, 01:55 AM   #5
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Hi, Thanks for the reply.

-The log file shows:
-connect ppp0 <--> eth0
-Connection Terminated
-Timeout waiting for PADS packets
-ppp session is 6545
-Using Interfaces ppp0
-Connect ppp0 <--> eth0
-Remote messages: More Session Exceeded
-Connection Terminated
-Timeout waiting for PADO packets
-ppp session us 6570
-Timeout for PADO packets
-MARKS
-MARKS
 
Old 08-24-2009, 02:06 AM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Seems to me there is a problem with the provider.
Quote:
-Timeout waiting for PADO packets
Once the user's computer has sent the PADI packet, the DSL-AC replies with a PADO packet,

Perhaps you can contact the provider, or try to reconnect again until you get the response from the DSLAM, which needs to sign you in and provide the ip address, gateway, dns.....

So the problem is that the connection with the provider is not established, not that ubuntu can't communicate with the modem.
 
Old 08-24-2009, 03:55 AM   #7
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear Repo,

You means I have to constantly use command 'pon dsl-provider' until the connection established?
 
Old 08-24-2009, 05:44 AM   #8
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
AFAIK you can set in pppoeconf to reconnect if the connection failes
Quote:
RETRY_ON_FAILURE=yes
You only need to use
Code:
adsl-start
In order to start the connection.
Use the tail option to see what happens
 
Old 08-25-2009, 06:37 AM   #9
shihao
Member
 
Registered: Aug 2009
Posts: 33

Original Poster
Rep: Reputation: 15
Dear Repo,

Unfortunately, the pppeoconf command doesn't show 'RETRY_ON_FAILURE' Option to me.

Moreover, 'adsl-start' return 'command not found'

I have search from some forum they said that '-Timeout waiting for PADO packets' error usually is something related to cable connection. I have double check already. Seems doesn't works also.

Looking for advice.

Thanks
 
Old 08-25-2009, 06:52 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Moreover, 'adsl-start' return 'command not found'
I used this years ago, probably it changed.

Quote:
Timeout waiting for PADO packets' error usually is something related to cable connection.
It means the providers dlam doesn't answer.

Your best option is to retry until you have a connection.
Perhaps you can contact the provider.
They can verify what happens when you try to connect.

Another option is to buy a router :-)
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How connect Ubuntu online using a dial-up modem? bethea Ubuntu 4 09-10-2008 02:59 PM
How do I setup Fedora 9 Server to connect to internernet thru Virginmedia cable modem sneaky Linux - Networking 3 08-21-2008 10:38 PM
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Slackware 15 07-11-2008 03:58 PM
server will not connect using static ip, SMC8013WG-CCR. modem/router soulwatcher1974 Linux - Networking 1 02-13-2006 04:08 PM
How to connect two pc's via modem? (server = linux, client = windows) seraph-seph Linux - Networking 2 11-18-2005 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:31 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration