wvdial.conf - ppp.conf
Hello I've tried and failed for a few days to convert the following wvdial.conf to something suitable for use on OpenBSD ( I was thinking ppp.conf ) Could someone show me a working example please? [EMAIL PROTECTED]:~$ cat /etc/wvdial.conf [Dialer Defaults] Phone = *99***1# Username = web Password = web Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,IP,general.t-mobile.uk; Any help will be really appreciated! Thanks Barry
Re: wvdial.conf - ppp.conf
So far I have: default: set log Phase Chat LCP IPCP CCP tun command tmobile: set device /dev/cua00 set speed 38400 set log ALL set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATZ OK \ AT+CGDCONT=1,\\\IP\\\,\\\general.t-mobile.uk\\\,\\\0.0.0.0\\\,0,0 OK \ AT+CGATT=1 OK \ \\dATDT\\T TIMEOUT 40 CONNECT set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp Which gives: # ppp -auto tmobile Working in auto mode Using interface: tun0 Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 Warning: Add route failed: 0.0.0.0/0 already exists # May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: Add route failed: 0.0.0.0/0 already exists May 18 14:50:50 tom-laptop ppp[32305]: tun0: Warning: Chat script failed # route -n show Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS7 1315 - 8 iwn0 10.0.0.2 10.0.0.1 UH 00 - 4 tun0 127/8 127.0.0.1 UGRS 00 33208 8 lo0 127.0.0.1 127.0.0.1 UH 10 33208 4 lo0 192.168.1/24 link#1 UC 10 - 4 iwn0 192.168.1.100:0e:2e:85:c4:13 UHLc 1 31 - 4 iwn0 224/4 127.0.0.1 URS00 33208 8 lo0 # ifconfig tun0 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500 groups: tun inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00 Any other info of use? Thanks Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: Hello I've tried and failed for a few days to convert the following wvdial.conf to something suitable for use on OpenBSD ( I was thinking ppp.conf ) Could someone show me a working example please? [EMAIL PROTECTED]:~$ cat /etc/wvdial.conf [Dialer Defaults] Phone = *99***1# Username = web Password = web Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,IP,general.t-mobile.uk; Any help will be really appreciated! Thanks Barry
Re: wvdial.conf - ppp.conf
I now have limited connectivity (I can ping and receive replies from internet hosts, but HTTP access time out). I'm using: # cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command tmobile: set device /dev/ttyU0 set speed 38400 set log ALL set login \!chat -f /etc/ppp/chatscript\ set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1\# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp which gives me: May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 10.0.0.2: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: ff01:5::/32: Change route failed: errno: No such process May 18 16:10:06 tom-laptop ppp[17987]: tun0: Warning: tun0: DIFADDR 10.33.237.63/24 - 10.0.0.2 returns 0 I've tried setting my default route to both 10.33.237.63 and 10.0.0.2 and get the same limited connectivity with both. Any clues? Regards Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: So far I have: default: set log Phase Chat LCP IPCP CCP tun command tmobile: set device /dev/cua00 set speed 38400 set log ALL set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATZ OK \ AT+CGDCONT=1,\\\IP\\\,\\\general.t-mobile.uk\\\,\\\0.0.0.0\\\,0,0 OK \ AT+CGATT=1 OK \ \\dATDT\\T TIMEOUT 40 CONNECT set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp Which gives: # ppp -auto tmobile Working in auto mode Using interface: tun0 Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 Warning: Add route failed: 0.0.0.0/0 already exists # May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: Add route failed: 0.0.0.0/0 already exists May 18 14:50:50 tom-laptop ppp[32305]: tun0: Warning: Chat script failed # route -n show Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS7 1315 - 8 iwn0 10.0.0.2 10.0.0.1 UH 00 - 4 tun0 127/8 127.0.0.1 UGRS 00 33208 8 lo0 127.0.0.1 127.0.0.1 UH 10 33208 4 lo0 192.168.1/24 link#1 UC 10 - 4 iwn0 192.168.1.100:0e:2e:85:c4:13 UHLc 1 31 - 4 iwn0 224/4 127.0.0.1 URS00 33208 8 lo0 # ifconfig tun0 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500 groups: tun inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00 Any other info of use? Thanks Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: Hello I've tried and failed for a few days to convert the following wvdial.conf to something suitable for use on OpenBSD ( I was thinking ppp.conf ) Could someone show me a working example please? [EMAIL PROTECTED]:~$ cat /etc/wvdial.conf [Dialer Defaults] Phone = *99***1# Username = web Password = web Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,IP,general.t-mobile.uk; Any help will be really appreciated! Thanks Barry
Re: wvdial.conf - ppp.conf
chatscript for archives $ cat /etc/ppp/chatscript ABORT BUSY ABORT VOICE ABORT NO CARRIER ABORT NO DIALTONE ABORT NO DIAL TONE ATZ OK ATE0V1D2C1S0=0+IFC=2,2 OK AT+CGDCONT=1,IP,general.t-mobile.uk OK ATDT*99# CONNECT $ 2008/5/18 Barry Commander [EMAIL PROTECTED]: I now have limited connectivity (I can ping and receive replies from internet hosts, but HTTP access time out). I'm using: # cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command$ cat /etc/ppp/chatscript ABORT BUSY ABORT VOICE ABORT NO CARRIER ABORT NO DIALTONE ABORT NO DIAL TONE ATZ OK ATE0V1D2C1S0=0+IFC=2,2 OK AT+CGDCONT=1,IP,general.t-mobile.uk OK ATDT*99# CONNECT $ tmobile: set device /dev/ttyU0 set speed 38400 set log ALL set login \!chat -f /etc/ppp/chatscript\ set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1\# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp which gives me: May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 10.0.0.2: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: ff01:5::/32: Change route failed: errno: No such process May 18 16:10:06 tom-laptop ppp[17987]: tun0: Warning: tun0: DIFADDR 10.33.237.63/24 - 10.0.0.2 returns 0 I've tried setting my default route to both 10.33.237.63 and 10.0.0.2 and get the same limited connectivity with both. Any clues? Regards Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: So far I have: default: set log Phase Chat LCP IPCP CCP tun command tmobile: set device /dev/cua00 set speed 38400 set log ALL set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATZ OK \ AT+CGDCONT=1,\\\IP\\\,\\\general.t-mobile.uk\\\,\\\0.0.0.0\\\,0,0 OK \ AT+CGATT=1 OK \ \\dATDT\\T TIMEOUT 40 CONNECT set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp Which gives: # ppp -auto tmobile Working in auto mode Using interface: tun0 Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 Warning: Add route failed: 0.0.0.0/0 already exists # May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: Add route failed: 0.0.0.0/0 already exists May 18 14:50:50 tom-laptop ppp[32305]: tun0: Warning: Chat script failed # route -n show Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS7 1315 - 8 iwn0 10.0.0.2 10.0.0.1 UH 00 - 4 tun0 127/8 127.0.0.1 UGRS 00 33208 8 lo0 127.0.0.1 127.0.0.1 UH 10 33208 4 lo0 192.168.1/24 link#1 UC 10 - 4 iwn0 192.168.1.100:0e:2e:85:c4:13 UHLc 1 31 - 4 iwn0 224/4 127.0.0.1 URS00 33208 8 lo0 # ifconfig tun0 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500 groups: tun inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00 Any other info of use? Thanks Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: Hello I've tried and failed for a few days to convert the following wvdial.conf to something suitable for use on OpenBSD ( I was thinking ppp.conf ) Could someone show me a working example please? [EMAIL PROTECTED]:~$ cat /etc/wvdial.conf [Dialer Defaults] Phone = *99***1# Username = web Password = web Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,IP,general.t-mobile.uk; Any help will be really appreciated! Thanks Barry
Re: wvdial.conf - ppp.conf
On Sun, May 18, 2008 at 10:43 AM, Barry Commander [EMAIL PROTECTED] wrote: chatscript for archives $ cat /etc/ppp/chatscript ABORT BUSY ABORT VOICE ABORT NO CARRIER ABORT NO DIALTONE ABORT NO DIAL TONE ATZ OK ATE0V1D2C1S0=0+IFC=2,2 OK AT+CGDCONT=1,IP,general.t-mobile.uk OK ATDT*99# CONNECT $ 2008/5/18 Barry Commander [EMAIL PROTECTED]: I now have limited connectivity (I can ping and receive replies from internet hosts, but HTTP access time out). I'm using: # cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command$ cat /etc/ppp/chatscript ABORT BUSY ABORT VOICE ABORT NO CARRIER ABORT NO DIALTONE ABORT NO DIAL TONE ATZ OK ATE0V1D2C1S0=0+IFC=2,2 OK AT+CGDCONT=1,IP,general.t-mobile.uk OK ATDT*99# CONNECT $ tmobile: set device /dev/ttyU0 set speed 38400 set log ALL set login \!chat -f /etc/ppp/chatscript\ set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1\# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp which gives me: May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 10.0.0.2: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: ff01:5::/32: Change route failed: errno: No such process May 18 16:10:06 tom-laptop ppp[17987]: tun0: Warning: tun0: DIFADDR 10.33.237.63/24 - 10.0.0.2 returns 0 I've tried setting my default route to both 10.33.237.63 and 10.0.0.2 and get the same limited connectivity with both. Any clues? Regards Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: So far I have: default: set log Phase Chat LCP IPCP CCP tun command tmobile: set device /dev/cua00 set speed 38400 set log ALL set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATZ OK \ AT+CGDCONT=1,\\\IP\\\,\\\general.t-mobile.uk\\\,\\\0.0.0.0\\\,0,0 OK \ AT+CGATT=1 OK \ \\dATDT\\T TIMEOUT 40 CONNECT set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp Which gives: # ppp -auto tmobile Working in auto mode Using interface: tun0 Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 Warning: Add route failed: 0.0.0.0/0 already exists # May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: Add route failed: 0.0.0.0/0 already exists May 18 14:50:50 tom-laptop ppp[32305]: tun0: Warning: Chat script failed # route -n show Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS7 1315 - 8 iwn0 10.0.0.2 10.0.0.1 UH 00 - 4 tun0 127/8 127.0.0.1 UGRS 00 33208 8 lo0 127.0.0.1 127.0.0.1 UH 10 33208 4 lo0 192.168.1/24 link#1 UC 10 - 4 iwn0 192.168.1.100:0e:2e:85:c4:13 UHLc 1 31 - 4 iwn0 224/4 127.0.0.1 URS00 33208 8 lo0 # ifconfig tun0 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500 groups: tun inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00 Any other info of use? Thanks Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: Hello I've tried and failed for a few days to convert the following wvdial.conf to something suitable for use on OpenBSD ( I was thinking ppp.conf ) Could someone show me a working example please? [EMAIL PROTECTED]:~$ cat /etc/wvdial.conf [Dialer Defaults] Phone = *99***1# Username = web Password = web Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,IP,general.t-mobile.uk; Any help will be really appreciated! Thanks Barry Hi Barry, Looks like a fun project. I'm curious as to what the /0 masks are doing here. I'm not really a PPP expert, but I can't really think of where a /0 mask would help anything out. Try just removing them altogether and see what happens. You've got all these cool modem commands in there, but the routing portion looks crazy. And furthermore, I don't think there's a default
Re: wvdial.conf - ppp.conf
2008/5/18 Jesse Callaway [EMAIL PROTECTED]: On Sun, May 18, 2008 at 10:43 AM, Barry Commander [EMAIL PROTECTED] wrote: chatscript for archives $ cat /etc/ppp/chatscript ABORT BUSY ABORT VOICE ABORT NO CARRIER ABORT NO DIALTONE ABORT NO DIAL TONE ATZ OK ATE0V1D2C1S0=0+IFC=2,2 OK AT+CGDCONT=1,IP,general.t-mobile.uk OK ATDT*99# CONNECT $ 2008/5/18 Barry Commander [EMAIL PROTECTED]: I now have limited connectivity (I can ping and receive replies from internet hosts, but HTTP access time out). I'm using: # cat /etc/ppp/ppp.conf default: set log Phase Chat LCP IPCP CCP tun command$ cat /etc/ppp/chatscript ABORT BUSY ABORT VOICE ABORT NO CARRIER ABORT NO DIALTONE ABORT NO DIAL TONE ATZ OK ATE0V1D2C1S0=0+IFC=2,2 OK AT+CGDCONT=1,IP,general.t-mobile.uk OK ATDT*99# CONNECT $ tmobile: set device /dev/ttyU0 set speed 38400 set log ALL set login \!chat -f /etc/ppp/chatscript\ set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1\# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp which gives me: May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: 10.0.0.2: Change route failed: errno: No such process May 18 16:09:35 tom-laptop ppp[17987]: tun0: Warning: ff01:5::/32: Change route failed: errno: No such process May 18 16:10:06 tom-laptop ppp[17987]: tun0: Warning: tun0: DIFADDR 10.33.237.63/24 - 10.0.0.2 returns 0 I've tried setting my default route to both 10.33.237.63 and 10.0.0.2and get the same limited connectivity with both. Any clues? Regards Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: So far I have: default: set log Phase Chat LCP IPCP CCP tun command tmobile: set device /dev/cua00 set speed 38400 set log ALL set dial ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ \\ AT OK-AT-OK ATZ OK \ AT+CGDCONT=1,\\\IP\\\,\\\general.t-mobile.uk\\\,\\\ 0.0.0.0\\\,0,0 OK \ AT+CGATT=1 OK \ \\dATDT\\T TIMEOUT 40 CONNECT set logout ABORT BUSY ABORT ERROR TIMEOUT 30 \\ +++ATH OK-ATH-OK set phone *99***1# set authname web set authkey web set timeout 120 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 add default HISADDR enable dns disable ipv6cp Which gives: # ppp -auto tmobile Working in auto mode Using interface: tun0 Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 Warning: Add route failed: 0.0.0.0/0 already exists # May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: tun0: AIFADDR 10.0.0.1/24 - 10.0.0.2 returns 0 May 18 14:50:40 tom-laptop ppp[8643]: tun0: Warning: Add route failed: 0.0.0.0/0 already exists May 18 14:50:50 tom-laptop ppp[32305]: tun0: Warning: Chat script failed # route -n show Routing tables Internet: DestinationGatewayFlags Refs Use Mtu Prio Iface default192.168.1.1UGS7 1315 - 8 iwn0 10.0.0.2 10.0.0.1 UH 00 - 4 tun0 127/8 127.0.0.1 UGRS 00 33208 8 lo0 127.0.0.1 127.0.0.1 UH 10 33208 4 lo0 192.168.1/24 link#1 UC 10 - 4 iwn0 192.168.1.100:0e:2e:85:c4:13 UHLc 1 31 - 4 iwn0 224/4 127.0.0.1 URS00 33208 8 lo0 # ifconfig tun0 tun0: flags=8051UP,POINTOPOINT,RUNNING,MULTICAST mtu 1500 groups: tun inet 10.0.0.1 -- 10.0.0.2 netmask 0xff00 Any other info of use? Thanks Barry 2008/5/18 Barry Commander [EMAIL PROTECTED]: Hello I've tried and failed for a few days to convert the following wvdial.conf to something suitable for use on OpenBSD ( I was thinking ppp.conf ) Could someone show me a working example please? [EMAIL PROTECTED]:~$ cat /etc/wvdial.conf [Dialer Defaults] Phone = *99***1# Username = web Password = web Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATQ0 V1 E1 S0=0 C1 D2 +FCLASS=0 ISDN = 0 Modem Type = Analog Modem Init5 = AT+CGDCONT=1,IP,general.t-mobile.uk; Any help will be really appreciated! Thanks Barry Hi Barry, Looks like a fun project. I'm curious as to what the /0 masks are doing here. I'm not really a PPP expert, but I can't really think of where a /0 mask would
Re: ppp.conf for ueagle and pppoa
On Wed, 29 Nov 2006 11:46:00 +0100, Przemyslaw Nowaczyk [EMAIL PROTECTED] said: On Wed, Nov 29, 2006 at 08:27:14AM +0100, Damien Bergamini wrote: You must recompile user ppp with ATM enabled: cd /usr/src/usr.sbin/ppp/ppp/ vi Makefile remove line NOATM= /usr/include/netnatm required then run make make install then ppp -dedicated adsl this is explained here: http://damien.bergamini.free.fr/ueagle/ppp.html (just skip the synchronizing the modem section which is outdated). hi, i'm also having some difficulties in making my sagem fast 800 e2t work, i'm running a generic kernel with ueagle and noatm enabled (dmesg below), recompiled ppp (as you mentioned above, since i'm using pppoa) and after booting the machine the modem doesn't synchronize.. running ppp -dedicated adsl in that state (ppp.conf from your page, with vpi and vci set to 0 35) shows: Warning: PPPoA:ueagle0:0.35: connect: Device not configured Warning: deflink: Device (PPPoA:ueagle0:0.35) must begin with a '/', a '!' or contain at least one ':' I have now followed the FAQ 5.3.* sections and also Damien's guidelines in the ppp.html as above. And it STILL comes back with: Warning: deflink: Device (PPPoA:ueagle0:0.35) must begin with a '/', a '!' or contain at least one ':' That message is contained in physical.c in the ppp-directory btw. After having to add new file systems for /usr/src and /usr/obj, editing and building a new GENERIC, re-compiling ppp etc etc - all first-time experiences, I think I a will call it a day with this driver. While everything else in OpenBSD just works this driver seems to be the opposite. And I am apparently not the only one having this problem. Rgds -- http://www.fastmail.fm - Does exactly what it says on the tin
Re: ppp.conf for ueagle and pppoa
On Wed, Nov 29, 2006 at 08:27:14AM +0100, Damien Bergamini wrote: You must recompile user ppp with ATM enabled: cd /usr/src/usr.sbin/ppp/ppp/ vi Makefile remove line NOATM= /usr/include/netnatm required then run make make install then ppp -dedicated adsl this is explained here: http://damien.bergamini.free.fr/ueagle/ppp.html (just skip the synchronizing the modem section which is outdated). hi, i'm also having some difficulties in making my sagem fast 800 e2t work, i'm running a generic kernel with ueagle and noatm enabled (dmesg below), recompiled ppp (as you mentioned above, since i'm using pppoa) and after booting the machine the modem doesn't synchronize.. running ppp -dedicated adsl in that state (ppp.conf from your page, with vpi and vci set to 0 35) shows: Warning: PPPoA:ueagle0:0.35: connect: Device not configured Warning: deflink: Device (PPPoA:ueagle0:0.35) must begin with a '/', a '!' or contain at least one ':' Warning: PPPoA:ueagle0:0.35: connect: Device not configured Warning: deflink: Device (PPPoA:ueagle0:0.35) must begin with a '/', a '!' or contain at least one ':' in 30sec. intervals (till i kill ppp), the power led on the modem is on, but the other one (sync) is still off.. is there something that can be done to make this modem work? cheers, my dmesg: OpenBSD 4.0-current (UEAGLE) #0: Wed Nov 29 10:49:03 CET 2006 [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/UEAGLE cpu0: Intel(R) Celeron(R) M processor 1.40GHz (GenuineIntel 686-class) 1.40 GHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,TM,SBF real mem = 526872576 (514524K) avail mem = 472522752 (461448K) using 4256 buffers containing 26468352 bytes (25848K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(e8) BIOS, date 08/21/06, BIOS32 rev. 0 @ 0xfd740, SMBIOS rev. 2.33 @ 0xe0010 (53 entries) bios0: IBM 1834S5G pcibios0 at bios0: rev 2.1 @ 0xfd6d0/0x930 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdeb0/256 (14 entries) pcibios0: PCI Interrupt Router at 000:31:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc/0xd000! 0xcd000/0x1000 0xce000/0x1000 0xdc000/0x4000! 0xe/0x1 acpi at mainbus0 not configured cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82852GM Hub-PCI rev 0x02 Intel 82852GM Memory rev 0x02 at pci0 dev 0 function 1 not configured Intel 82852GM Configuration rev 0x02 at pci0 dev 0 function 3 not configured vga1 at pci0 dev 2 function 0 Intel 82852GM AGP rev 0x02: aperture at 0xe000, size 0x800 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) Intel 82852GM AGP rev 0x02 at pci0 dev 2 function 1 not configured uhci0 at pci0 dev 29 function 0 Intel 82801DB USB rev 0x01: irq 11 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered uhci1 at pci0 dev 29 function 1 Intel 82801DB USB rev 0x01: irq 11 usb1 at uhci1: USB revision 1.0 uhub1 at usb1 uhub1: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub1: 2 ports with 2 removable, self powered uhci2 at pci0 dev 29 function 2 Intel 82801DB USB rev 0x01: irq 11 usb2 at uhci2: USB revision 1.0 uhub2 at usb2 uhub2: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub2: 2 ports with 2 removable, self powered ehci0 at pci0 dev 29 function 7 Intel 82801DB USB rev 0x01: irq 11 usb3 at ehci0: USB revision 2.0 uhub3 at usb3 uhub3: Intel EHCI root hub, rev 2.00/1.00, addr 1 uhub3: 6 ports with 6 removable, self powered ppb0 at pci0 dev 30 function 0 Intel 82801BAM Hub-to-PCI rev 0x81 pci1 at ppb0 bus 2 cbb0 at pci1 dev 0 function 0 TI PCI1510 CardBus rev 0x00: irq 11 iwi0 at pci1 dev 2 function 0 Intel PRO/Wireless 2200BG rev 0x05: irq 11, address 00:12:f0:f1:25:08 fxp0 at pci1 dev 8 function 0 Intel PRO/100 VE rev 0x81, i82562: irq 11, address 00:0a:e4:37:7c:d8 inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0 cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 3 device 0 cacheline 0x8, lattimer 0xb0 pcmcia0 at cardslot0 ichpcib0 at pci0 dev 31 function 0 Intel 82801DBM LPC rev 0x01 pciide0 at pci0 dev 31 function 1 Intel 82801DBM IDE rev 0x01: DMA, channel 0 configured to compatibility, channel 1 configured to compatibility wd0 at pciide0 channel 0 drive 0: HTS541040G9AT00 wd0: 16-sector PIO, LBA, 38154MB, 78140160 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 5 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets cd0 at scsibus0 targ 0 lun 0: HL-DT-ST, DVDRAM GSA-4080N, 0X21 SCSI0 5/cdrom removable cd0(pciide0:1:0): using PIO mode 4, Ultra-DMA mode 2 ichiic0 at pci0 dev 31 function 3 Intel 82801DB SMBus rev 0x01: irq 11 iic0 at ichiic0 auich0 at pci0 dev 31 function 5 Intel 82801DB AC97 rev 0x01: irq 11, ICH4 AC97 ac97: codec id 0x41445374 (Analog Devices AD1981B) ac97: codec
Re: ppp.conf for ueagle and pppoa
- Original Message - From: Damien Bergamini [EMAIL PROTECTED] Sent: Tuesday, November 28, 2006 7:26 AM The route command is only necessary for plain IPoA. For PPPoA, ppp will create the route for you. Just put: set device PPPoA:ueagle0:8.35 in your ppp.conf file. That gives me: /etc/ppp:4365$ sudo ppp adsl Working in interactive mode Warning: iface rm: ioctl(SIOCDIFADDR_IN6, fe80:8::250:4ff:fe5d:1022/64): Can't assign requested address Using interface: tun1 Command: adsl: set device PPPoA:ueagle0:8.35 Command: adsl: set authname [EMAIL PROTECTED] Command: adsl: set authkey ppp ON saltkudde dial Command: /dev/tty: dial Warning: deflink: Device (PPPoA:ueagle0:8.35) must begin with a '/', a '!' or contain at least one ':' /etc/ppp:4366$ cat ppp.conf default: set log Phase Warning add! default HISADDR set ifaddr 0.0.0.1/0 0.0.0.2/0 255.255.255.0 0.0.0.0 set login adsl: set log local CCP Command DNS IPCP LCP TCP/IP Warning set device PPPoA:ueagle0:8.35 set authname [EMAIL PROTECTED] set authkey nytt95 # enable lqr # enable dns # disable ipv6cp # set reconnect 10 100 --- /etc/ppp:4367$ dmesg [EMAIL PROTECTED]:/usr/src/sys/arch/i386/compile/GENERIC cpu0: Intel Pentium III (GenuineIntel 686-class) 702 MHz cpu0: FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR,SSE real mem = 133722112 (130588K) avail mem = 114577408 (111892K) using 1657 buffers containing 6787072 bytes (6628K) of memory mainbus0 (root) bios0 at mainbus0: AT/286+(32) BIOS, date 05/19/00, BIOS32 rev. 0 @ 0xfd890, SMBIOS rev. 2.3 @ 0xebd60 (50 entries) bios0: Dell Computer Corporation Inspiron 7500 apm0 at bios0: Power Management spec V1.2 apm0: battery life expectancy 100% apm0: AC on, battery charge high, estimated 3:20 hours apm0: flags 30102 dobusy 0 doidle 1 pcibios0 at bios0: rev 2.1 @ 0xfd890/0x770 pcibios0: PCI IRQ Routing Table rev 1.0 @ 0xfdf50/144 (7 entries) pcibios0: PCI Interrupt Router at 000:07:0 (Intel 82371FB ISA rev 0x00) pcibios0: PCI bus #3 is the last bus bios0: ROM list: 0xc/0x1 cpu0 at mainbus0 pci0 at mainbus0 bus 0: configuration mode 1 (no bios) pchb0 at pci0 dev 0 function 0 Intel 82443BX AGP rev 0x03 ppb0 at pci0 dev 1 function 0 Intel 82443BX AGP rev 0x03 pci1 at ppb0 bus 1 vga1 at pci1 dev 0 function 0 ATI Mobility 1 rev 0x64 wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation) wsdisplay0: screen 1-5 added (80x25, vt100 emulation) cbb0 at pci0 dev 4 function 0 TI PCI1225 CardBus rev 0x01: irq 11 cbb1 at pci0 dev 4 function 1 TI PCI1225 CardBus rev 0x01: irq 11 pcib0 at pci0 dev 7 function 0 Intel 82371AB PIIX4 ISA rev 0x02 pciide0 at pci0 dev 7 function 1 Intel 82371AB IDE rev 0x01: DMA, channel 0 wired to compatibility, channel 1 wired to compatibility wd0 at pciide0 channel 0 drive 0: IBM-DARA-218000 wd0: 16-sector PIO, LBA, 17301MB, 35433216 sectors wd0(pciide0:0:0): using PIO mode 4, Ultra-DMA mode 2 atapiscsi0 at pciide0 channel 1 drive 0 scsibus0 at atapiscsi0: 2 targets sd0 at scsibus0 targ 0 lun 0: MATSHITA, LS-120 SLIM3 00, F710 SCSI0 0/direct removable sd0: drive offline atapiscsi1 at pciide0 channel 1 drive 1 scsibus1 at atapiscsi1: 2 targets cd0 at scsibus1 targ 0 lun 0: TOSHIBA, DVD-ROM SD-C2402, 1009 SCSI0 5/cdrom removable sd0(pciide0:1:0): using PIO mode 0, DMA mode 1 cd0(pciide0:1:1): using PIO mode 4, Ultra-DMA mode 2 uhci0 at pci0 dev 7 function 2 Intel 82371AB USB rev 0x01: irq 5 usb0 at uhci0: USB revision 1.0 uhub0 at usb0 uhub0: Intel UHCI root hub, rev 1.00/1.00, addr 1 uhub0: 2 ports with 2 removable, self powered piixpm0 at pci0 dev 7 function 3 Intel 82371AB Power rev 0x02: SMI iic0 at piixpm0 maestro0 at pci0 dev 8 function 0 ESS Maestro 2E rev 0x10: irq 5 ac97: codec id 0x83847609 (SigmaTel STAC9721/23) ac97: codec features 18 bit DAC, 18 bit ADC, SigmaTel 3D audio0 at maestro0 ATT/Lucent LTMODEM rev 0x01 at pci0 dev 16 function 0 not configured cardslot0 at cbb0 slot 0 flags 0 cardbus0 at cardslot0: bus 2 device 0 cacheline 0x0, lattimer 0x20 pcmcia0 at cardslot0 cardslot1 at cbb1 slot 1 flags 0 cardbus1 at cardslot1: bus 3 device 0 cacheline 0x0, lattimer 0x20 pcmcia1 at cardslot1 isa0 at pcib0 isadma0 at isa0 pckbc0 at isa0 port 0x60/5 pckbd0 at pckbc0 (kbd slot) pckbc0: using irq 1 for kbd slot wskbd0 at pckbd0: console keyboard, using wsdisplay0 pms0 at pckbc0 (aux slot) pckbc0: using irq 12 for aux slot wsmouse0 at pms0 mux 0 pcppi0 at isa0 port 0x61 midi0 at pcppi0: PC speaker spkr0 at pcppi0 lpt0 at isa0 port 0x378/4 irq 7 npx0 at isa0 port 0xf0/16: using exception 16 pccom0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo biomask ef6d netmask ef6d ttymask ffef pctr: 686-class user-level performance counters enabled mtrr: Pentium Pro MTRR support xl0 at cardbus0 dev 0 function 0 3Com Corporation, 3CCFE575BT, LAN Cardbus Card: 3Com 3c575B-TX Ethernet: irq 11, address 00:50:04:5d:10:22 tqphy0 at xl0 phy 0: 78Q2120 10/100 PHY, rev. 3 ueagle0 at uhub0 port 1 ueagle0: Analog Devices Eagle III, rev
ppp.conf for ueagle and pppoa
Hello, I've got my Sagem 800 to be recognized properly by uncommenting the ueagle* and NATM lines and rebuild the kernel, but the man-pages for ueagle and ppp.conf are kind of confusing. -In the ueagle(4) it says to use route to create a PVC, but I don't understand how to use this information in the ppp.conf. The bergamini-pages only confuses the matter even more: http://damien.bergamini.free.fr/ueagle/ppp.html -Could some just tell me what to put in set device for a ppoa connection (vc, vpi=8, vci=35) in a ppp.conf, and what else I need to do to get it to work? Thx
Re: ppp.conf for ueagle and pppoa
Hi, The route command is only necessary for plain IPoA. For PPPoA, ppp will create the route for you. Just put: set device PPPoA:ueagle0:8.35 in your ppp.conf file. And make sure to copy the firmware files (which are not freely redistributable) in your /etc/firmware/ directory. You can find them here: http://damien.bergamini.free.fr/ueaglefw/ Damien | Hello, | | I've got my Sagem 800 to be recognized properly by | uncommenting the ueagle* and NATM lines and rebuild | the kernel, but the man-pages for ueagle and ppp.conf are | kind of confusing. -In the ueagle(4) it says to use route | to create a PVC, but I don't understand how to use this | information in the ppp.conf. The bergamini-pages only | confuses the matter even more: | http://damien.bergamini.free.fr/ueagle/ppp.html | | -Could some just tell me what to put in set device for a ppoa connection | (vc, vpi=8, vci=35) in a ppp.conf, and what else I need to do to get it to | work? | | Thx
ppp.conf
hey all Has anyone got an explanation for this: Example: /etc/ppp/ppp.conf default : set log ... when i run ppp ... i getWarning line 2 missing colon or something like that but when i do this everything is all right and i don't get any warnings /etc/ppp/ppp.conf default: set log ... notice the position of set log Why is that so important -- Welcome to The Zone, where normal things don't happen very often.
Re: ppp.conf
On 2006/11/02 15:19, martin g wrote: Has anyone got an explanation for this: default : set log ... when i run ppp ... i getWarning line 2 missing colon or something like that but when i do this everything is all right and i don't get any warnings /etc/ppp/ppp.conf default: set log ... rtfm ppp(8) o A label name starts in the first column and is followed by a `:' character. o A command line must contain a space or tab in the first column.
Re: ppp.conf
On Thu, 2 Nov 2006 15:19:05 +0100 martin g [EMAIL PROTECTED] wrote: hey all Hi Has anyone got an explanation for this: Example: /etc/ppp/ppp.conf default : set log ... when i run ppp ... i getWarning line 2 missing colon or something like that but when i do this everything is all right and i don't get any warnings /etc/ppp/ppp.conf default: set log ... notice the position of set log notice de position of the colon
Re: entering custom AT commands into ppp.conf
On Thu, Jun 08, 2006 at 02:28:57PM +0100, Stuart Henderson wrote: oops. Well spotted Marius. + set phone *99# should have been + set phone *99\# I did test it but my phone obviously didn't require the #. (lost your original email, stuart) thanks for the diff, it's just been committed. i didn;t make the change above, as a later email suggested. jmc
entering custom AT commands into ppp.conf
Hi all. By asking this queston i admit that i have no idea how ppp.conf works. For a normal modem i am able to configure it fine, but for this problem i have to admit that i have no idea. I found some hits on google but nothing specific. I managed (finally) to get gprs working on OpenBSD using my Nokia 6680. Apart from some defalt route issues it works fine. But... I have to enter the init strings manually using minicom before i dial. i enter: ATZ and then AT+CGDCONT=1,IP,internet then i exit minicom with no reset (ctrl-a q) and dial. Obviously there HAS to be a way to include these in ppp.conf. All my attempts have failed. I'm sorry for the newbie-like question. Please direct answers to the list and flames to my private address :-) Cheers Marius Van Deventer Computer Technician Bytes Technology Group : Systems Integration Tel : +27 39 682 4202 | Fax : +27 39 682 4126 | Cell : +27 82 321 6491 Email : [EMAIL PROTECTED] Web : www.btgroup.co.za outbind://44/www.btgroup.co.za | Press Office : www.itweb.co.za/office/bytes outbind://44/www.itweb.co.za/office/bytes | Licensing : www.purelicensing.co.za outbind://44/www.purelicensing.co.za Bytes Systems Integration (Pty) Ltd : Registration No: 1995/012031/07 A subsidiary of Bytes Technology Group SA (Pty) Ltd, In association with KAGISO P O Box 4004, Umhlanga, 4350 ,55 Island Circle, Riverhorse Valley, Nandi Drive, South Africa. E-mail Disclaimer: http://www.altron.co.za/email.asp Or phone: (+27) (11) 205-7000 by Symantec Mail Security for the presence of any viruses. ** 0 [demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]
Re: entering custom AT commands into ppp.conf
Hi, Here's my configs, should give you some hints.. mobile phone is connected to 'COM1' at 57600baud, adding a system default route via the new ppp link, and automatically redialing immediately after link failure: =/etc/ppp/peers/ISP /dev/tty00 57600 defaultroute debug #kdebug 7 lock user my_username noauth noccp novj noipdefault persist #demand connect '/usr/sbin/chat -e -v -f /etc/ppp/peers/chat/ISP-gprs' = script to initialise modem, and dial ISP: (CFUN/CPIN... is to reset the phone, then enter the PIN code etc) =/etc/ppp/peers/chat/ISP-gprs REPORT Starting chat script... ABORT ERROR ABORT BUSY ABORT 'NO CARRIER' ABORT 'NO DIALTONE' '' ATZ OK AT+CFUN=1,1 OK \d\dAT+CPIN=1234 OK AT+CGDCONT=1 OK AT+CGDCONT=1,IP,my.apn.name,,0,0 OK ATD*99***1# CONNECT = your ISP username password (see pap-secrets instead if applicable): =/etc/ppp/peers/chap-secrets #secrets for authentication using CHAP # clientserver secret IP addresses my_username * my_password* = create the i/f at boot time, and initiate connection: =/etc/hostname.ppp0 up !pppd call ISP = To debug: - $ sudo ifconfig ppp0 create - $ sudo pppd dial ISP - tail /var/log/daemon, /var/log/chat (after syslogd.conf uncommenting/restart) and /etc/ppp/connection-errors Hope this is of use. /Pete On 8. jun. 2006, at 08.07, Marius Van Deventer - Umzimkulu wrote: Hi all. By asking this queston i admit that i have no idea how ppp.conf works. For a normal modem i am able to configure it fine, but for this problem i have to admit that i have no idea. I found some hits on google but nothing specific. I managed (finally) to get gprs working on OpenBSD using my Nokia 6680. Apart from some defalt route issues it works fine. But... I have to enter the init strings manually using minicom before i dial. i enter: ATZ and then AT+CGDCONT=1,IP,internet then i exit minicom with no reset (ctrl-a q) and dial. Obviously there HAS to be a way to include these in ppp.conf. All my attempts have failed. I'm sorry for the newbie-like question. Please direct answers to the list and flames to my private address :-) Cheers Marius Van Deventer Computer Technician Bytes Technology Group : Systems Integration Tel : +27 39 682 4202 | Fax : +27 39 682 4126 | Cell : +27 82 321 6491 Email : [EMAIL PROTECTED] Web : www.btgroup.co.za outbind://44/www.btgroup.co.za | Press Office : www.itweb.co.za/office/bytes outbind://44/www.itweb.co.za/office/bytes | Licensing : www.purelicensing.co.za outbind://44/www.purelicensing.co.za Bytes Systems Integration (Pty) Ltd : Registration No: 1995/012031/07 A subsidiary of Bytes Technology Group SA (Pty) Ltd, In association with KAGISO P O Box 4004, Umhlanga, 4350 ,55 Island Circle, Riverhorse Valley, Nandi Drive, South Africa. E-mail Disclaimer: http://www.altron.co.za/email.asp Or phone: (+27) (11) 205-7000 by Symantec Mail Security for the presence of any viruses. ** 0 [demime 1.01d removed an attachment of type application/x-pkcs7- signature which had a name of smime.p7s]
Re: entering custom AT commands into ppp.conf
By asking this queston i admit that i have no idea how ppp.conf works. I have to enter the init strings manually using minicom before i dial. AT+CGDCONT=1,IP,internet Obviously there HAS to be a way to include these in ppp.conf. All my attempts have failed. It's difficult to get the quoting just right. Would anyone like to commit this? Index: etc/ppp/ppp.conf.sample === RCS file: /data/cvsroot/OpenBSD/src/etc/ppp/ppp.conf.sample,v retrieving revision 1.21 diff -u -r1.21 ppp.conf.sample --- etc/ppp/ppp.conf.sample 9 Jun 2002 06:15:15 - 1.21 +++ etc/ppp/ppp.conf.sample 8 Jun 2006 10:12:24 - @@ -101,6 +101,23 @@ add default HISADDR enable dns +# To connect via a GPRS device (e.g. a mobile phone), it's often +# necessary to set the access-point name (in this case 'internet') +# which requires quotes in the dial string. This section shows +# the escaping required. +# +gprs: + set device /dev/cuaU0 + set dial ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ + \\ ATZ OK-ATZ-OK AT+CGDCONT=1,\\\IP\\\,\\\internet\\\ OK \\dATD\\T TIMEOUT 40 CONNECT + set phone *99# + set speed 115200 + set login + set timeout 0 + set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 + add default HISADDR + enable dns + # Example segments # # The following lines may be included as part of your configuration
Re: entering custom AT commands into ppp.conf
-Original Message- From: Stuart Henderson [mailto:[EMAIL PROTECTED] Sent: 08 June 2006 12:19 PM To: Marius Van Deventer - Umzimkulu Cc: misc@openbsd.org Subject: Re: entering custom AT commands into ppp.conf By asking this queston i admit that i have no idea how ppp.conf works. I have to enter the init strings manually using minicom before i dial. AT+CGDCONT=1,IP,internet Obviously there HAS to be a way to include these in ppp.conf. All my attempts have failed. It's difficult to get the quoting just right. Would anyone like to commit this? Index: etc/ppp/ppp.conf.sample === RCS file: /data/cvsroot/OpenBSD/src/etc/ppp/ppp.conf.sample,v retrieving revision 1.21 diff -u -r1.21 ppp.conf.sample --- etc/ppp/ppp.conf.sample 9 Jun 2002 06:15:15 - 1.21 +++ etc/ppp/ppp.conf.sample 8 Jun 2006 10:12:24 - @@ -101,6 +101,23 @@ add default HISADDR enable dns +# To connect via a GPRS device (e.g. a mobile phone), it's often +# necessary to set the access-point name (in this case 'internet') +# which requires quotes in the dial string. This section shows +# the escaping required. +# +gprs: + set device /dev/cuaU0 + set dial ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ + \\ ATZ OK-ATZ-OK AT+CGDCONT=1,\\\IP\\\,\\\internet\\\ OK \\dATD\\T TIMEOUT 40 CONNECT + set phone *99# + set speed 115200 + set login + set timeout 0 + set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 + add default HISADDR + enable dns + # Example segments # # The following lines may be included as part of your configuration Thanks Stuart. This works for me. [demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]
Re: entering custom AT commands into ppp.conf
On Thu, Jun 08, 2006 at 08:07:21AM +0200, Marius Van Deventer - Umzimkulu wrote: By asking this queston i admit that i have no idea how ppp.conf works. for a setup with pppd, take a look here: url: http://hazardous.org/~fkr/openbsd/openbsd_gprs_umts.html It is for umts/gprs cards, but the same applies to modems in cell phones. felix -- GPG/PGP: D9AC74D0 / 076E 1E87 3E05 1C7F B1A0 8A48 0D31 9BD3 D9AC 74D0 http://hazardous.org/~fkr - [EMAIL PROTECTED] - [EMAIL PROTECTED]|irc - FKR-RIPE https://www.bytemine.net/ - bytemine - BSD based hosting/solutions/ideas
Re: entering custom AT commands into ppp.conf
oops. Well spotted Marius. + set phone *99# should have been + set phone *99\# I did test it but my phone obviously didn't require the #. Index: etc/ppp/ppp.conf.sample === RCS file: /data/cvsroot/OpenBSD/src/etc/ppp/ppp.conf.sample,v retrieving revision 1.21 diff -u -r1.21 ppp.conf.sample --- etc/ppp/ppp.conf.sample 9 Jun 2002 06:15:15 - 1.21 +++ etc/ppp/ppp.conf.sample 8 Jun 2006 10:12:24 - @@ -101,6 +101,23 @@ add default HISADDR enable dns +# To connect via a GPRS device (e.g. a mobile phone), it's often +# necessary to set the access-point name (in this case 'internet') +# which requires quotes in the dial string. This section shows +# the escaping required. +# +gprs: + set device /dev/cuaU0 + set dial ABORT ERROR ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \ + \\ ATZ OK-ATZ-OK AT+CGDCONT=1,\\\IP\\\,\\\internet\\\ OK \\dATD\\T TIMEOUT 40 CONNECT + set phone *99\# + set speed 115200 + set login + set timeout 0 + set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 + add default HISADDR + enable dns + # Example segments # # The following lines may be included as part of your configuration
Re: entering custom AT commands into ppp.conf
hmmm. Was right the first time with *99# - not sure why you needed *99\# then Marius...
Re: entering custom AT commands into ppp.conf
-Original Message- From: Stuart Henderson [mailto:[EMAIL PROTECTED] Sent: 08 June 2006 04:17 PM To: Marius Van Deventer - Umzimkulu Cc: misc@openbsd.org Subject: Re: entering custom AT commands into ppp.conf hmmm. Was right the first time with *99# - not sure why you needed *99\# then Marius... When I tried *99# my phone's display read Dialling *99 and then Disconnecting *99 shortly after. Changing it to *99\# results in the phone simply connecting without any message at all. The only change is the double arrow icon in the corner telling you you're connected (nokia 6680). After that, I can browse the web, ping sites etc... It is probably a quirk of the service provider. Each provider probably has a different number. Some users are required to enter a Pin number command to activate the phones, others need usernames and passwords. I just needed the number and the at+ command that chooses the right acess point. [demime 1.01d removed an attachment of type application/x-pkcs7-signature which had a name of smime.p7s]
Re: entering custom AT commands into ppp.conf
On 2006/06/08 16:37, Marius Van Deventer - Umzimkulu wrote: When I tried *99# my phone's display read Dialling *99 and then Disconnecting *99 shortly after. Did you have it in quotes as in my example? It is probably a quirk of the service provider. Each provider probably has a different number. AIUI the PPP session is actually with the phone, rather than with the provider.
Re: ppp.conf 3.7
On Sun, Jul 17, 2005 at 06:34:48PM -0500, J.D. Bronson wrote: Is 'enable mssfixup' still required in ppp.conf or has that been changed elsewhere now... I thought I recalled reading somewhere that this was no longer necessary, but I dont see any comment on the archives indicating such. I have no idea why you would think this wouldn't be necessary. It definitely is no matter what.
Re: ppp.conf 3.7
At 09:00 PM 7/17/2005, you wrote: On Sun, Jul 17, 2005 at 06:34:48PM -0500, J.D. Bronson wrote: Is 'enable mssfixup' still required in ppp.conf or has that been changed elsewhere now... I thought I recalled reading somewhere that this was no longer necessary, but I dont see any comment on the archives indicating such. I have no idea why you would think this wouldn't be necessary. It definitely is no matter what. Perhaps it was a different flavor of *bsd. Thanks for the reply. -- J.D. Bronson Information Services Aurora Health Care - Milwaukee, Wisconsin Office: 414.978.8282 // Fax: 414.314.8787
Re: ppp.conf 3.7
On Sun, Jul 17, 2005 at 09:23:21PM -0500, J.D. Bronson wrote: At 09:00 PM 7/17/2005, you wrote: On Sun, Jul 17, 2005 at 06:34:48PM -0500, J.D. Bronson wrote: Is 'enable mssfixup' still required in ppp.conf or has that been changed elsewhere now... I thought I recalled reading somewhere that this was no longer necessary, but I dont see any comment on the archives indicating such. I have no idea why you would think this wouldn't be necessary. It definitely is no matter what. Perhaps it was a different flavor of *bsd. I very highly doubt that. If that is the case though I'd love to know what this change is.