Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10th April 2008, 06:49 PM
abbot Offline
Registered User
 
Join Date: Mar 2008
Posts: 17
ppp connection dies if started by ifup, but works under wvdial

Hi,

I'm trying to configure a GPRS connection on a remote computer running Fedora 8. When the connection is started with the

wvdial mts

command, everything works fine.
But if I start the connection with

ifup mts

it terminates within a few seconds.
Any hints what can be wrong?

/etc/sysconfig/network-scripts/ifcfg-mts contents:
TYPE=Modem
DEVICE=ppp0
BOOTPROTO=dialup
ONBOOT=yes
USERCTL=yes
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=no
AC=off
BSDCOMP=off
VJCCOMP=off
CCP=off
PC=off
VJ=off
LINESPEED=115200
MODEMPORT=/dev/ttyACM0
IDLETIMEOUT=600
PROVIDER=mts
DEFROUTE=yes
PERSIST=yes
PAPNAME=mts
WVDIALSECT=mts
MODEMNAME=Modem0
DEMAND=no

A log of the failed 'ifup' connection:
Apr 10 20:44:22 remotehost ifup-ppp: pppd started for mts on /dev/ttyACM0 at 115200
Apr 10 20:44:22 remotehost pppd[5545]: pppd 2.4.4 started by root, uid 0
Apr 10 20:44:23 remotehost wvdial[5562]: WvDial: Internet dialer version 1.60
Apr 10 20:44:23 remotehost wvdial[5562]: Warning: inherited section [Modem0] does not exist in wvdial.conf
Apr 10 20:44:23 remotehost wvdial[5562]: Initializing modem.
Apr 10 20:44:23 remotehost wvdial[5562]: Sending: ATZ
Apr 10 20:44:23 remotehost wvdial[5562]: ATZ
Apr 10 20:44:23 remotehost wvdial[5562]: OK
Apr 10 20:44:23 remotehost wvdial[5562]: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Apr 10 20:44:23 remotehost wvdial[5562]: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Apr 10 20:44:23 remotehost wvdial[5562]: OK
Apr 10 20:44:23 remotehost wvdial[5562]: Sending: AT+CGDCONT=1,"IP","internet.mts.ru"
Apr 10 20:44:24 remotehost wvdial[5562]: AT+CGDCONT=1,"IP","internet.mts.ru"
Apr 10 20:44:24 remotehost wvdial[5562]: OK
Apr 10 20:44:24 remotehost wvdial[5562]: Modem initialized.
Apr 10 20:44:24 remotehost wvdial[5562]: Sending: ATDT*99***1#
Apr 10 20:44:24 remotehost wvdial[5562]: Waiting for carrier.
Apr 10 20:44:24 remotehost wvdial[5562]: ATDT*99***1#
Apr 10 20:44:26 remotehost wvdial[5562]: CONNECT
Apr 10 20:44:26 remotehost wvdial[5562]: Carrier detected. Waiting for prompt.
Apr 10 20:44:27 remotehost wvdial[5562]: ~[7f]}#@!}!}"} }=}!}$}&@}#}%B# }%}&/TD!}"}&} } } } }'}"}(}"va~
Apr 10 20:44:27 remotehost wvdial[5562]: PPP negotiation detected.
Apr 10 20:44:27 remotehost pppd[5545]: Serial connection established.
Apr 10 20:44:27 remotehost pppd[5545]: Using interface ppp0
Apr 10 20:44:27 remotehost pppd[5545]: Connect: ppp0 <--> /dev/ttyACM0
Apr 10 20:44:27 remotehost pppd[5545]: CHAP authentication succeeded: TTP Com PPP - Password Verified OK
Apr 10 20:44:27 remotehost pppd[5545]: CHAP authentication succeeded
Apr 10 20:44:29 remotehost pppd[5545]: LCP terminated by peer (Normal Termination by NCP)
Apr 10 20:44:29 remotehost pppd[5545]: Hangup (SIGHUP)
Apr 10 20:44:29 remotehost pppd[5545]: Modem hangup
Apr 10 20:44:29 remotehost pppd[5545]: Connection terminated.
Apr 10 20:44:30 remotehost pppd[5545]: Exit.

Example successful wvdial session:
[root@remotehost network-scripts]# wvdial mts
--> WvDial: Internet dialer version 1.60
--> Warning: inherited section [Modem0] does not exist in wvdial.conf
--> Cannot get information for serial port.
--> 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
--> Sending: AT+CGDCONT=1,"IP","internet.mts.ru"
AT+CGDCONT=1,"IP","internet.mts.ru"
OK
--> Modem initialized.
--> Sending: ATDT*99***1#
--> Waiting for carrier.
ATDT*99***1#
CONNECT
--> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}"} }=}!}$}&@}#}%B# }%}&\[10]8:}"}&} } } } }'}"}(}"$\~
--> PPP negotiation detected.
--> Starting pppd at Thu Apr 10 20:45:31 2008
--> Pid of pppd: 5621
--> Using interface ppp0
--> pppd: H[1e]G[08]X[1e]G[08]
--> pppd: H[1e]G[08]X[1e]G[08]
--> pppd: H[1e]G[08]X[1e]G[08]
--> pppd: H[1e]G[08]X[1e]G[08]
--> local IP address 10.2.174.187
--> pppd: H[1e]G[08]X[1e]G[08]
--> remote IP address 10.0.0.1
--> pppd: H[1e]G[08]X[1e]G[08]
--> primary DNS address 213.87.0.7
--> pppd: H[1e]G[08]X[1e]G[08]
--> secondary DNS address 213.87.1.1
--> pppd: H[1e]G[08]X[1e]G[08]
(internet works fine)

Last edited by abbot; 10th April 2008 at 08:37 PM. Reason: make the title a bit simpler
Reply With Quote
  #2  
Old 11th April 2008, 07:02 PM
abbot Offline
Registered User
 
Join Date: Mar 2008
Posts: 17
Well, may be this will help someone one day: adding
PPPOPTIONS=noipdefault
solved the problem. wvdial by default appends this option, while ifup does not.
Reply With Quote
Reply

Tags
connection, ifup, ppp, started, survive, works, wvdial

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Quick Question Regarding wvdial - works fine on **buntu? Andysan Servers & Networking 2 20th January 2009 11:45 PM
Trying to set up GPRS connection with Nokia N70 & wvdial - no luck nicmo Servers & Networking 0 8th December 2008 07:33 AM
vsftpd doesn't work when started automatically, but works started manually oryan_dunn Servers & Networking 7 2nd February 2007 09:41 PM
Opera works - err shown started w/ terminal jsabarese Using Fedora 8 6th July 2006 02:24 PM


Current GMT-time: 12:19 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat