LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   A problem with dial-up connection (https://www.linuxquestions.org/questions/linux-newbie-8/a-problem-with-dial-up-connection-752728/)

siaswar 09-04-2009 01:54 PM

A problem with dial-up connection
 
I use Fedora core 6 as OS and installed HSF modem that work good. I haven't any problem with hardware. But using kpppd I'm unable to connect the INTERNET. It dials very good but waits a minute nothing happen (time out and %1 may NO CARRIER). using debug as pppd argument is useless. In windows XP I connect without any problem.
Is any pppd arguments needed or still needed configuration? I think hardware is no problem cause I can here modem that dialing!
please help:

j_jerry 09-05-2009 07:28 AM

I think you're using kppp gui. In kppp select configure and in the 'modem' tab select your modem and press 'query modem'. Let us know the result

siaswar 09-07-2009 02:09 AM

Quote:

Originally Posted by j_jerry (Post 3670807)
I think you're using kppp gui. In kppp select configure and in the 'modem' tab select your modem and press 'query modem'. Let us know the result

well in query modem I got:

ATI: 56000
ATI 1: 255
ATI 2:
ATI 3: hsf (modem package number here)
ATI 4: CONEXANT HSF soft modem
ATI 5: B5
ATI 6:
ATI 7: 255

Note: I can hear modem dialing and when dialing my mobile via kppp, It is ringing so I think modem has no any problem.

j_jerry 09-07-2009 02:23 AM

Modem seems ok. You sure you have entered your account details correctly in kppp. Also make sure you have all the dependencies that needed by kppp. Is it preinstalled in the os?

Is wvdial working?

siaswar 09-07-2009 04:45 PM

Quote:

Originally Posted by j_jerry (Post 3672664)
Modem seems ok. You sure you have entered your account details correctly in kppp. Also make sure you have all the dependencies that needed by kppp. Is it preinstalled in the os?

Is wvdial working?


Well, wvdialconf works good and can find the modem in /ttySHSFO and in lsmod, hsfmodem items are listed. the account details are correct to. in dialing ISP I can hear the modem trying to connect the ISP but allways lost by timeout. Is any function for kppp argument needed. debuge argument is useless.

colorpurple21859 09-07-2009 05:29 PM

what happens if you run wvdial as root

j_jerry 09-08-2009 04:55 AM

I think you meant wvdial is dialling and working properly. If not, try wvdial with sudo or root, as said wvdial needs root or sudoer

brian3 09-08-2009 05:21 AM

hi if you can afford buy a router it installs it self,you can buy these at dabsor ebuyer for £28

j_jerry 09-08-2009 05:23 AM

Quote:

Originally Posted by brian3 (Post 3674092)
hi if you can afford buy a router it installs it self,you can buy these at dabsor ebuyer for £28

Why would he need a router as he is just trying to connect a 'single computer' using a 'dial up' ?

siaswar 09-08-2009 07:41 AM

Quote:

Originally Posted by colorpurple21859 (Post 3673559)
what happens if you run wvdial as root

I use fedora 6:
the output for wvdialconf myconf:
Code:

Scanning your serial ports for a modem.

Port Scan<*1>: Scanning ttySHSF0 first, /dev/modem is a link to it.
ttySHSF0<*1>: ATQ0 V1 E1 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 Z -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttySHSF0<*1>: Modem Identifier: ATI -- 56000
ttySHSF0<*1>: Speed 4800: AT -- OK
ttySHSF0<*1>: Speed 9600: AT -- OK
ttySHSF0<*1>: Speed 19200: AT -- OK
ttySHSF0<*1>: Speed 38400: AT -- OK
ttySHSF0<*1>: Speed 57600: AT -- OK
ttySHSF0<*1>: Speed 115200: AT -- OK
ttySHSF0<*1>: Speed 230400: AT -- OK
ttySHSF0<*1>: Speed 460800: AT -- OK
ttySHSF0<*1>: Max speed is 460800; that should be safe.
ttySHSF0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Port Scan<*1>: S1  S2  S3  SHSF1 SHSF2 SHSF3 SHSF4 SHSF5
Port Scan<*1>: SHSF6 SHSF7

Found a modem on /dev/ttySHSF0, using link /dev/modem in config.
Modem configuration written to myconf.
ttySHSF0<Info>: Speed 460800; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Is here anything wrong?

j_jerry 09-08-2009 11:57 AM

siaswar,

This is the configuration setup. What about the results when the modem is dialled that is, the command 'sudo wvdial'

Also please inform us whether your wvdial is able to connect internet or not

siaswar 09-09-2009 12:57 AM

Quote:

Originally Posted by j_jerry (Post 3674550)
siaswar,

This is the configuration setup. What about the results when the modem is dialled that is, the command 'sudo wvdial'

Also please inform us whether your wvdial is able to connect internet or not

Here is the output for wvdial:
Code:

# wvdial
--> WvDial: Internet dialer version 1.54.0
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT9712222
--> Waiting for carrier.
ATDT9712222
--> Timed out while dialing.  Trying again.
--> Sending: ATDT9712222
--> Waiting for carrier.
NO CARRIER
ATDT9712222
--> No Carrier!  Trying again.
--> Sending: ATDT9712222
--> Waiting for carrier.
OK
ATDT9712222
BUSY
--> The line is busy. Trying again.

These three expressions (Timed out, No Carrier, Line is busy) happen one after another!

j_jerry 09-09-2009 03:27 AM

Please follow these steps, we are starting all over again

Connect your modem

Be root, or sudo (for all commands)

Command: wvdialconf /etc/wvdial.conf

Then use any text editor and edit the /etc/wvdial.conf, according to your isp

Command: wvdial /etc/wvdial.conf

siaswar 09-09-2009 08:02 AM

Quote:

Originally Posted by j_jerry (Post 3675508)
Please follow these steps, we are starting all over again

Connect your modem

Be root, or sudo (for all commands)

Command: wvdialconf /etc/wvdial.conf

Then use any text editor and edit the /etc/wvdial.conf, according to your isp

Command: wvdial /etc/wvdial.conf


I repeated all steps again and again. But the problem is exit.
It seems I should reinstall the linux (A windows style solution!!!) but still I want to challenge it.

j_jerry 09-09-2009 09:45 AM

good, I really appreciate you for not giving up.

Can you post your wvdial.conf

Also please describe a bit about your isp

As you're using dial-up, make sure your telephone cables are ok. You can test this if you have a windows or other os box, make sure it's fine

colorpurple21859 09-09-2009 10:24 AM

do you have call waiting. the error message suggest a phone is off the hook, call waiting service, or telephone line problems

siaswar 09-11-2009 08:24 PM

Quote:

Originally Posted by j_jerry (Post 3675921)
good, I really appreciate you for not giving up.

Can you post your wvdial.conf

Also please describe a bit about your isp

As you're using dial-up, make sure your telephone cables are ok. You can test this if you have a windows or other os box, make sure it's fine

Well, I discover The ISP is problem! I Changed my ISP so after 5 or 6 time of redialing it's going to connect (sending user/password, getting an IP address, the DNS's IP address, BUT NO MORE). I thinked it's may connected but not and Mozilla can't connect and display any page online. Except my IP address there is no any omen of connecting Internet!!! in disconnecting It shows connecting time. It may connection not completed.
after determining DNS's IP address (in connecting state) the last line in terminal is:
pppd: TYPE
I don't know whether it is connected or not. also gui kppp is useless.
Technically, what is difference between Windows XP and Linux (as my fedora) dialing rolls that windows is able to connect but Linux is not

colorpurple21859 09-11-2009 09:06 PM

what's in your /etc/resolv.conf file, if it's not correct you will connect but can't view webpages

SharpyWarpy 09-12-2009 12:54 AM

Yes you should post your wvdial.conf file, minus your REAL password or other sensitive info. I quit using wvdial way back and just use ppp directly, editing appropriate config files like /etc/ppp/options and /etc/ppp/chat-username, but this all hinges on what your ISP does to make your connection work.
What it sounds like to me is the ISP is not getting your user name and password and waits for it until it times out. The busy signal is probably because it retries without adequate time intervals.

lutusp 09-12-2009 01:25 AM

Quote:

Originally Posted by siaswar (Post 3675389)
Here is the output for wvdial:

[ snip ]

These three expressions (Timed out, No Carrier, Line is busy) happen one after another!

Try dialing the ISP's number by hand -- see if a modem tone comes on the line. This is the only way you can be sure the problem isn't with the number, your local telephone service, or your ISP.

If the line is really busy, your ISP has signed up too many customers, this isn't at all uncommon. Make sure you have all available dialup numbers -- contact your ISP to get a complete set. The idea is to set things up to test the numbers in sequence, to avoid the busy-signal problem.

Next, set up to hear the modems negotiating (how to do this differs from modem to modem). Once you've heard a successful modem negotiation you won't forget it -- your ear is a reliable debugging tool for dial-up.

siaswar 09-12-2009 03:42 PM

This is my wvdial.conf file which generated by: wvdialconf /etc/wvdial.conf
Code:

[Dialer Defaults]
Modem = /dev/modem
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = 9712228
Username = UsErNaMe HeRe
Password = PaSs HeRe


SharpyWarpy 09-12-2009 05:41 PM

As colorpurple21859 said, you should also post your /etc/resolv.conf. I've a feeling it's either not there or messed up by dhcp or some other gremlin.

siaswar 09-14-2009 08:28 AM

Quote:

Originally Posted by SharpyWarpy (Post 3680439)
As colorpurple21859 said, you should also post your /etc/resolv.conf. I've a feeling it's either not there or messed up by dhcp or some other gremlin.

Well the /etc/resolv.conf is empty!
There is another file /etc/resolv.conf.back and it is empty too!

GrapefruiTgirl 09-14-2009 08:39 AM

Ok, the resolv.conf file should contain the nameserver IP addresses of the usually two nameservers that your ISP uses. If you're using DHCP (which is most likely with a dial-up ISP) then DHCP usually configures resolv.conf automatically.

Since this is not the case, have a look in /etc/ppp or /root/.ppp after being connected. There should be a file in there called *something like* ppp0.info -- I'm not sure what the filename will be, it's been a little while since I used ppp.

If you're not sure which file, then open the /etc/ppp folder in your file browser, and WATCH CLOSELY the files in the folder, while dialing your ISP with the modem. After the connection is established, one of the files in there should either update itself, or a brand new file should appear. The filename should contain the word "info" in it.

Open that file. You should see in there, two lines (or maybe one line with comma-separated values) with the "nameserver" or "dns-server" or something like this. There should be 2 IP addresses.

Copy those addresses into your resolv.conf file, like so:
Code:

#Example resolv.conf file:
nameserver 111.222.333.444
nameserver 123.233.222.222

and save the file resolv.conf.

Now, try using your browser.

If this works, we'll look more closely at WHY your resolv.conf file is not being updated.

Sasha

SharpyWarpy 09-16-2009 04:44 PM

Or you can use OpenDNS. Here are two sample lines you can put in your /etc/resolv.conf:
nameserver 208.67.222.222
nameserver 208.67.220.220
Just open /etc/resolv.conf with the "gedit" command (or similar text editor) and put in the above lines. Then try again. You'll have to restart the ppp daemon.


All times are GMT -5. The time now is 09:33 PM.