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)