From owner-freebsd-questions@FreeBSD.ORG Mon Aug 23 19:03:36 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 092451065694 for ; Mon, 23 Aug 2010 19:03:36 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id AE9288FC1E for ; Mon, 23 Aug 2010 19:03:35 +0000 (UTC) Received: from r55.edvax.de (port-92-195-116-86.dynamic.qsc.de [92.195.116.86]) by mx02.qsc.de (Postfix) with ESMTP id 4B0D61E97C; Mon, 23 Aug 2010 21:03:34 +0200 (CEST) Received: from r55.edvax.de (localhost [127.0.0.1]) by r55.edvax.de (8.14.2/8.14.2) with SMTP id o7NJ3XcR003733; Mon, 23 Aug 2010 21:03:33 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Mon, 23 Aug 2010 21:03:32 +0200 From: Polytropon To: Jakub Nowacki Message-Id: <20100823210332.730ac8ad.freebsd@edvax.de> In-Reply-To: <201008232005.33481.poczta.jnowacki@gmail.com> References: <201008232005.33481.poczta.jnowacki@gmail.com> Organization: EDVAX X-Mailer: Sylpheed 2.4.7 (GTK+ 2.12.1; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: How to configure ppp connection X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Aug 2010 19:03:36 -0000 On Mon, 23 Aug 2010 20:05:32 +0200, Jakub Nowacki wrote: > Hello! > > (First of all - forgive me my language, I'am form Poland) Dobre. :-) > I'am new in FreeBSD, but I have used Linux for a few year. As a first note, know that FreeBSD has *excellent* manpages. Know the "apropos" and "man" commands, as they will always help you. > 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. You don't need google as a means of OS documentation. :-) First, check /etc/ppp/ppp.conf which is the PPP configuration file. Also, read "man ppp". I have used ppp.conf in the past for dealing with PPPoE, and it worked without any problems. > when i try to use "ppp default" and then "dial" i got: You should define your own label for the connection in ppp.conf, e. g. the name of the provider (doesn't have to be very verbose). > # ppp default > Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon > Warning: Bad label in /etc/ppp/ppp.conf (line 2) - missing colon Check those. > 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. > Some device nodes are created after I plug a modem. There is diff result > of listed /dev pre and post pluging: > jakub@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. The ttyU* and cuaU* devices obviously belong to the modem. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...