From owner-freebsd-questions@FreeBSD.ORG Tue Jun 28 19:25:25 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 D5D01106566C for ; Tue, 28 Jun 2011 19:25:25 +0000 (UTC) (envelope-from invalid.pointer@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id AD4DD8FC15 for ; Tue, 28 Jun 2011 19:25:25 +0000 (UTC) Received: by pzk27 with SMTP id 27so482001pzk.13 for ; Tue, 28 Jun 2011 12:25:25 -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=Q/fjhPvh4F/SV2UeabAGGSUkYI1MgtxCvwriRIrnVvE=; b=dlw/+iVKC7LRy5KMdqxocJYRqdIwGOi5ZgdabSv4G0J6jgmhaVTad2eKCKUbri/CG3 mUHdhNlHfqA6Dj7v9hWr45WjXll5QFlv95JnCsbZPi4CIsooev1edBP9YvmToWcywtv+ li0ttdTXZXBGe00QshQuSBcx2TNvcBAMA1lWE= Received: by 10.142.248.7 with SMTP id v7mr1621375wfh.358.1309289125025; Tue, 28 Jun 2011 12:25:25 -0700 (PDT) Received: from [127.0.0.1] ([14.96.214.151]) by mx.google.com with ESMTPS id t15sm290141wfh.16.2011.06.28.12.25.21 (version=SSLv3 cipher=OTHER); Tue, 28 Jun 2011 12:25:23 -0700 (PDT) Message-ID: <4E0A2AA7.8050507@gmail.com> Date: Wed, 29 Jun 2011 00:55:27 +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> In-Reply-To: <20110628184613.GA1074@tiny> 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: Tue, 28 Jun 2011 19:25:26 -0000 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