LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-24-2005, 03:57 AM   #1
fonin
LQ Newbie
 
Registered: Feb 2005
Location: Ukraine
Distribution: RH 9.0
Posts: 3

Rep: Reputation: 0
gprs + 2.2.19 + siemens s45 problem


Hi to everyone.

Here's my problem. As you may already guessed, I'm trying to setup a GPRS connection under linux (RedHat 6.2, kernel 2.2.19).
I know it is too ancient, but I installed it on my laptop in ~2001 and don't want to touch, additionally the laptop is too old to run something modern. I believe that if i upgrade to the recent kernel etc, the problem might disappear, but i have no chance to do it (no speed internet to download a linux, no friends with recent CDs :-( (if anyone could ship a cd would be great lol %)

My configuration:
Laptop Toshiba Satellite 460CDT
Phone Siemens S45i connected via irda
RedHat 2.2.19
pppd 2.4.2

Some configs:

/etc/sysconfig/network-scripts/chat-ppp3:
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'AT&FE0+CBST=75'
'OK' 'AT+FCLASS=0'
'OK' 'ATS7=60\\Q0'
'OK' 'AT+CGDCONT=1,"IP","vvv.umc.ua"'
'OK' 'ATD*99***1#'
'CONNECT' ''
'TIMEOUT' '5'

/etc/sysconfig/network-scripts/ifcfg-ppp3: (commented lines are the tries that i performed)
DEVICE="ppp3"
ONBOOT="no"
USERCTL="yes"
PEERDNS="yes"
MODEMPORT="/dev/ircomm0"
LINESPEED="57600" # this seems not working
#LINESPEED="115200"
PERSIST="yes"
DEFABORT="yes"
DEBUG="yes"
INITSTRING="ATZ"
DEFROUTE="yes"
HARDFLOWCTL="no"
#HARDFLOWCTL="yes"
ESCAPECHARS="no"
#PPPOPTIONS="ipcp-accept-remote default-asyncmap nobsdcomp noccp\ nodeflate +chap name umc"
PPPOPTIONS="ipcp-accept-remote novj novjccomp nobsdcomp nopcomp \ noaccomp noccp"
PAPNAME=""
REMIP=""
NETMASK=""
IPADDR=""
MRU=""
MTU=""
DISCONNECTTIMEOUT="5"
RETRYTIMEOUT="100"
BOOTPROTO="none"

/etc/ppp/chap-secrets:
# Secrets for authentication using CHAP
# clientššššššššserverššsecretššššššššššššššššššIP addresses
# a bit insecure - access to everyone
""šššššššššššššš*ššššššš""šššššššššššššššššššššš*
*ššššššššššššššš""šššššš""šššššššššššššššššššššš*
"umc"ššššššššššš*ššššššš"umc"ššššššššššššššššššš*


Now when we do "ifup ppp3", we see this in logs:

Mar 15 13:45:17 robot pppd[1426]: Using interface ppp0
Mar 15 13:45:17 robot pppd[1426]: Connect: ppp0 <--> /dev/ircomm0
Mar 15 13:45:18 robot pppd[1426]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x64de8434> <pcomp> <accomp>]
Mar 15 13:45:18 robot pppd[1426]: rcvd [LCP ConfNak id=0x1 <asyncmap 0xa0000>]
Mar 15 13:45:18 robot pppd[1426]: sent [LCP ConfReq id=0x2 <asyncmap 0xa0000> <magic 0x64de8434> <pcomp> <accomp>]
Mar 15 13:45:18 robot pppd[1426]: rcvd [LCP ConfAck id=0x2 <asyncmap 0xa0000> <magic 0x64de8434> <pcomp> <accomp>]
Mar 15 13:45:19 robot pppd[1426]: rcvd [LCP ConfReq id=0x3 <mru 2000> <asyncmap
0xa0000> <pcomp> <accomp> <magic 0xba91ed36> <auth chap MD5>]
Mar 15 13:45:19 robot pppd[1426]: sent [LCP ConfAck id=0x3 <mru 2000> <asyncmap
0xa0000> <pcomp> <accomp> <magic 0xba91ed36> <auth chap MD5>]
Mar 15 13:45:19 robot pppd[1426]: rcvd [CHAP Challenge id=0x1 <fbf6a06fdc6071881da8a180bdd03057bbd61e0d>, name = ""]
Mar 15 13:45:19 robot pppd[1426]: sent [CHAP Response id=0x1 <8958331e343e2a96b4493b013ffaf6a7>, name = "robot"]
Mar 15 13:45:19 robot pppd[1426]: rcvd [CHAP Success id=0x1 ""]
Mar 15 13:45:19 robot pppd[1426]: sent [IPCP ConfReq id=0x1 <addr 10.0.0.2> <compress VJ 0f 01> <ms-dns1 0.0.0.0> <ms-dns3 0.0.0.0>]
Mar 15 13:45:21 robot pppd[1426]: rcvd [LCP TermReq id=0x3]
Mar 15 13:45:21 robot pppd[1426]: LCP terminated by peer
^^^^^^^^^^^^^^^^ remote side disconnected us! ^^^^^^^^^^^^^^^^^^^
Mar 15 13:45:21 robot pppd[1426]: sent [LCP TermAck id=0x3]
Mar 15 13:45:22 robot pppd[1426]: Terminating on signal 15.
Mar 15 13:45:24 robot pppd[1426]: rcvd [LCP TermReq id=0x3]

IrDA connection by itself works, i use scmxx (which is a linux comm program for siemens) with no problems, so i guess there are no problems with irda itself. I have read on one forum to limit the connection speed to 57600, but i think this hardly work on 2.2.19 kernel - before the connection is established, i see in logs something like "changing tty speed to 115200" regardless of the setting in the config file. Changing the speed with stty or setserial seems makes no difference.

Another clue may be broken pppd either on my side or on provider.
Connection works perfectly under windows, i use login/pw "umc/1".
When I'm trying to authenticate via CHAP with the secret name "umc", my phone hangs and turns off with a beep, as soon as it receives a CHAP response from a host !
I also tried to authenticate via PAP, but the host rejects it and returns to CHAP.

On windows, the connection speed is limited to 57600, but as i said this seems does not work on linux.

I would appreciate any help.
Thanks,
Max.
 
Old 07-04-2005, 08:14 AM   #2
mherkules
LQ Newbie
 
Registered: Jul 2005
Location: Debrecen, Hungary
Distribution: uhu, ubuntu
Posts: 1

Rep: Reputation: 0
I'm a newbee here. Maybe you already resolved the problem. I don't know about RH distro but I see a line in your ifcfg-ppp3:

DISCONNECTTIMEOUT="5"

What is it? 5 seconds? Is it for the pppd idle option value? If yes, I suggest to try change it...

Attila
 
Old 07-05-2005, 11:22 AM   #3
fonin
LQ Newbie
 
Registered: Feb 2005
Location: Ukraine
Distribution: RH 9.0
Posts: 3

Original Poster
Rep: Reputation: 0
Thanks to everyone, I already resolved the problem. The issue was with the pppd option 'ipcp-accept-local'. From man:
With this option, pppd will accept the peer's idea of our local IP address.

The remote side simply did not like our idea of the our IP addresses, and immediately broke the connection.

Max.
 
  


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
irda - GPRS - pppd - DNS problem, need help! lucastic Linux - Networking 2 11-02-2011 12:11 AM
GPRS over SuSE 9.3 Professional. A Problem !!! bedi-beparwah SUSE / openSUSE 2 09-28-2005 06:00 PM
Help: GPRS problem on TI platform huang_gao Linux - Wireless Networking 0 09-27-2005 08:43 AM
GPRS connection problem maginotjr Linux - Networking 2 07-11-2005 04:03 AM
GPRS problem in Suse 9.2 Pro. HELP ! ! ! bedi-beparwah Linux - Wireless Networking 0 02-13-2005 12:13 PM

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

All times are GMT -5. The time now is 01:04 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