From owner-freebsd-questions@FreeBSD.ORG Wed Jun 29 05:50:23 2011 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 EA34B106564A for ; Wed, 29 Jun 2011 05:50:23 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id C10E48FC22 for ; Wed, 29 Jun 2011 05:50:23 +0000 (UTC) Received: by pwi7 with SMTP id 7so868373pwi.13 for ; Tue, 28 Jun 2011 22:50:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OEYpnZYTOjGK1wm6zaE8A/QQnzRLE8UHGoN1qEzuW3Q=; b=YKfmfAeCniacyWeswiu3Xlaq4CAAJDsrBa0cnxnY4EdBstAt46IN2DzabGOJb2T9Mh h5lSwHHJKPXl0EDl3RhZeR4J0znibkGn1gaVDLQy0QNMqVHlZKyw6EGsQU0P48XBodZQ 28OXo/bTowvLI3vXH0BKx+XXjuIwX99TRygUA= Received: by 10.68.35.36 with SMTP id e4mr596841pbj.320.1309326623272; Tue, 28 Jun 2011 22:50:23 -0700 (PDT) Received: from [127.0.0.1] ([14.96.178.155]) by mx.google.com with ESMTPS id z7sm683066pbk.3.2011.06.28.22.50.19 (version=SSLv3 cipher=OTHER); Tue, 28 Jun 2011 22:50:21 -0700 (PDT) Message-ID: <4E0ABD22.50401@gmail.com> Date: Wed, 29 Jun 2011 11:20:26 +0530 From: Manish Jain User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2.4) Gecko/20100608 Thunderbird/3.1 To: Matthias Apitz References: <4E098E1B.2000700@gmail.com> <20110628184613.GA1074@tiny> <4E0A2AA7.8050507@gmail.com> In-Reply-To: <4E0A2AA7.8050507@gmail.com> Content-Transfer-Encoding: 7bit MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: Can someone please help me set up my tata-photon (huawei) modem ? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2011 05:50:24 -0000 Hello Matthias, I got it to work ! I symlinked /usr/local/bin/tclsh8.2 as tclsh, but that was probably not the only factor involved. In a streak of unintended brilliance, I had set the device in ppp.conf as /dev/cuaU0, whereas there is no such device - as /var/log/ppp.log complained. (Thanks for your suggestion for looking up the log). I changed /dev/cuaU0 to /dev/cuaU0.0, as a matter of courtesy. Now my FreeBSD box is connected to the internet and I don't have to boot into XP again (as long as I can hope). Thanks again Manish Jain On 29-Jun-11 00:55, Manish Jain wrote: Hello Matthias, Yes, I do have /dev/cuaU0.0 along with corresponding lock and init files, although I cannot give you the output you want right now since I am booted into XP with the FreeBSD 8.2 dvd image being downloaded. (This will hopefully finish in about 15 hours, as cygwin::ncftpget suggests). I also tried a few other things, most notably installing usb_modeswitch, and putting this into /etc/devd.conf : attach 100 { device-name "ugen[0-9]+"; match "vendor" "0x12d1"; match "product" "0x1446"; action "/usr/local/bin/usb_modeswitch"; }; Running kldload for u3g and ucom indicates they are both already loaded. Running usb_modeswitch seems to have also generated some /dev/ttyU. files, along with corresponding lock and init files - just like the cua entries. The only thing that seems out of place with the current setup is that usb_modeswitch's wrapper (usb_modeswitch_dispatcher) needs /usr/local/bin/tclsh, and for some reason the FreeBSD installer installed it as /usr/local/bin/tclsh8.2 I'll try fixing the above tomorrow and will try out anything you/someone else might have to suggest. BTW, I made a slight error in my original message. My system's release version is 8.1, not 8.0. Thank you & Regards Manish Jain [1]invalid.pointer@gmail.com On 29-Jun-11 00:16, Matthias Apitz wrote: El día Tuesday, June 28, 2011 a las 01:47:31PM +0530, Manish Jain escribió: Hi all, My tata-photon (huawei) modem works painlessly on Win XP. Every setting is auto (including getting the nameserver). The auth protocol is CHAP. But when I boot into FreeBSD 8.0 (stable), and run 'ppp -auto pmdemand' followed by 'ping [1]www.google.com' (or yahoo or any other site, for that matter), I always get "Hostname lookup failure". BTW, I don't have an /etc/resolv.conf. I only configured ppp.conf (please see below for details). Can someone please help me set up the modem so that I can dial out and connect to the internet from my FreeBSD box ? Thanks in advance. Manish Jain This is my ppp.conf : ... Hello Manish, Before digging into the ppp details (there is a log about in /var/log/ppp.log), do you have after attaching the Huawei modem a device /dev/cuaU0 at all? What does the following command gives: ls -l /dev/cua* chat -vs < /dev/cuaU0.0 > /dev/cuaU0.0 '' AT OK 'ATI2' O printf "\n" HIH matthias References 1. mailto:invalid.pointer@gmail.com