Re: How to configure ppp connection

2010-08-23 Thread Jakub Nowacki
Dnia poniedziaƂek, 23 sierpnia 2010 o 21:03:32 Polytropon napisaƂ(a):

> 
> > ppp ON localhost> dial
> > Warning: deflink: /dev/cuad1: Bad file descriptor
> > Warning: deflink: /dev/cuad0: Bad file descriptor
> 
> PPP tries to access regular serial lines.
> 
> > Nothing happens, there is still no connection.
> 
> Sorry, I don't know enough about wireless network to be more specific,
> but allow me this guess: If your connection requires PPPoE, you could
> code something like this:
> 
>   blah:
>   set device PPPoE:
>   set authname 
>   set authkey 
>   set dial
>   set login
>   add default HISADDR
> 
> Then, "ppp blah" would be used for manual dialing. I'm not sure in how
> far you are required to code AT dialing sequences.
> 
It's broadband, mobile (celluar?) connection via Play (www.playmobile.pl)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"


How to configure ppp connection

2010-08-23 Thread Jakub Nowacki
Hello!

(First of all - forgive me my language, I'am form Poland)
I'am new in FreeBSD, but I have used Linux for a few year. 
I have got mobile modem: Huawei e1750c. As far as I know it is supported by 
u3g driver. On Linux I use wvdial as a dialer, and there are no problems with 
connection. On FreeBSD I just can't find propper ppp.conf, however I spend many 
hours googling and trying some. 

---
There are data needed to establish connection:
ASP: "internet"
user: ""
password: ""
phone: *99#
---

my wvdial (Linux) config file:
Modem = /dev/ttyUSB0
Baud = 57600
Init1 = ATH
Init2 = ATE1
Init3 = AT+CGDCONT=1,"IP","internet"
Dial Command = ATD
Phone = *99#
Stupid mode = yes
Username = "blank"
Password = "blank"
Auto DNS = yes
---

There is one of ppp.conf I tried:
default:
set log Phase Chat LCP IPCP CCP tun command
ident user-ppp VERSION (built COMPILATIONDATE)

set device /dev/cuaU0.0

set speed 115200
set dial "ABORT BUSY TIMEOUT 2 \
\"\" \
AT OK-AT-OK \
AT+CFUN=1 OK-AT-OK \
AT+CMEE=2 OK-AT-OK \
AT+CSQ OK \
AT+CGDCONT=1,\\\"IP\\\",\\\"internet\\\" OK \
AT+CGACT? OK-AT-OK \
AT+CGATT? OK \
AT+CGCLASS? OK \
AT+COPS? OK \
ATD*99# CONNECT"

set timeout 180
enable dns
set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
add default HISADDR
---

After i plug modem i got:
ugen4.2:  at usbus4
ugen4.2:  at usbus4 (disconnected)
ugen4.2:  at usbus4
[b]u3g0:  
on usbus4
u3g0: Found 3 ports.[/b]
umass0:  on 
usbus4
umass0:  SCSI over Bulk-Only; quirks = 0x
umass0:0:0:-1: Attached to scbus0
umass1:  on 
usbus4
umass1:  SCSI over Bulk-Only; quirks = 0x
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
cd0 at umass-sim0 bus 0 scbus0 target 0 lun 0
cd0:  Removable CD-ROM SCSI-2 device 
cd0: 40.000MB/s transfers
cd0: Attempt to query device size failed: NOT READY, Medium not present
umass1:1:1:-1: Attached to scbus1
(probe0:umass-sim1:1:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0 
(probe0:umass-sim1:1:0:0): CAM status: SCSI Status Error
(probe0:umass-sim1:1:0:0): SCSI status: Check Condition
(probe0:umass-sim1:1:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not present)
da0 at umass-sim1 bus 1 scbus1 target 0 lun 0
da0:  Removable Direct Access SCSI-2 device 
da0: 40.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
---

when i try to use "ppp default" and then "dial" i got:
# ppp default
Loading /lib/libalias_cuseeme.so
Loading /lib/libalias_ftp.so
Loading /lib/libalias_irc.so
Loading /lib/libalias_nbt.so
Loading /lib/libalias_pptp.so
Loading /lib/libalias_skinny.so
Loading /lib/libalias_smedia.so
Working in interactive mode
Using interface: tun0
Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon
Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon
ppp ON localhost> dial
Warning: deflink: /dev/cuad1: Bad file descriptor
Warning: deflink: /dev/cuad0: Bad file descriptor
---

Nothing happens, there is still no connection.

Some device nodes are created after I plug a modem. There is diff result
of listed /dev pre and post pluging:
 ja...@iac-deb:~$ diff /media/disk/pre_dev /media/disk/post_dev 
17a18
> cd0
20a22,30
> cuaU0.0
> cuaU0.0.init
> cuaU0.0.lock
> cuaU0.1
> cuaU0.1.init
> cuaU0.1.lock
> cuaU0.2
> cuaU0.2.init
> cuaU0.2.lock
23a34
> da0
43a55,56
> pass0
> pass1
51a65,73
> ttyU0.0
> ttyU0.0.init
> ttyU0.0.lock
> ttyU0.1
> ttyU0.1.init
> ttyU0.1.lock
> ttyU0.2
> ttyU0.2.init
> ttyU0.2.lock
77a100
> ugen4.2
-------

I would be very gratefull if You could help me to configure ppp.conf.
FreeBSD without internt connection is useless for me... :(

Thanks,
Jakub Nowacki.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"