You are not logged in.

#1 2009-10-29 20:23:58

Fackamato
Member
Registered: 2006-03-31
Posts: 579

netcfg2 with ppp (3G, UMTS) ?

Hey guys,

I'm currently using wvdial and a profile for that to bring up my 3G connection.

/etc/wvdial.conf

[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 460800
 
[Dialer three]
Phone = *99***1#
Username = three.ie
Password = three.ie
Stupid Mode = 1
Dial Command = ATDT
Init2 = ATZ
Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init4 = AT+CGDCONT=1,"IP","3internet"
Auto DNS = off
Check DNS = off

How do I make use of netcfg2's PPP capabilities? I see it looks in /etc/ppp/peers/ for a config file there... I tried putting in PEER="wvdial" (there's such a file there) but that didn't work at all.

Any suggestions?

Offline

#2 2009-12-11 07:48:33

zenlord
Member
From: Belgium
Registered: 2006-05-24
Posts: 1,229
Website

Re: netcfg2 with ppp (3G, UMTS) ?

did you find a solution to your problem? I would like to accomplish the same thing, but don't really know how to get there. wvdial is the first thnig I'll dig into.

Offline

#3 2009-12-11 11:26:06

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: netcfg2 with ppp (3G, UMTS) ?

To use netcfg's ppp abilities, you can't use vwdial. You use pppd directly, by writing a peers file and a chat script. I've set up using my phone as a bluetooth modem, but I haven't actually tried yet if it works. But anyway, based on my knowledge this could work:

/etc/ppp/peers/three

connect "/usr/sbin/chat -f /etc/ppp/three.chat"
/dev/ttyUSB0
460800
crtscts
defaultroute
usepeerdns
noauth
novj
novjccomp
nobsdcomp
nopcomp
noaccomp

user three.ie
password three.ie

/etc/ppp/three.chat

TIMEOUT 35
ECHO    ON
ABORT   '\nBUSY\r'
ABORT   '\nERROR\r'
ABORT   '\nNO ANSWER\r'
ABORT   '\nNO CARRIER\r'
ABORT   '\nNO DIALTONE\r'
ABORT   '\nRINGING\r\n\r\nRINGING\r'
''      \rAT
OK      'AT+CGDCONT=1,"IP","3internet"'
OK      ATD*99***1#
CONNECT ""

/etc/network.d/three

CONNECTION="ppp"
PEER="three"

What I *do* know that works is setting up pppoe. It's very similar, the peers file has a few different options in it and there's no chat script, but otherwise same principle.

Offline

#4 2010-02-01 01:41:44

gangrelsurf
Member
Registered: 2009-04-16
Posts: 2

Re: netcfg2 with ppp (3G, UMTS) ?

Thank you Gusar! And thank you Fackamato for starting this thread. I had my verizon 3g working under wvdial. I had to chage that settings in Gusar's ppp suggestion that came straight out of Fackamato's wvdial, obviously. The only other thing that I need to change was to add the line:

INTERFACE="ignore"

to /etc/network.d/{conection_name}

Offline

Board footer

Powered by FluxBB