From owner-freebsd-questions@FreeBSD.ORG Thu Oct 18 03:11:45 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B232A3ED for ; Thu, 18 Oct 2012 03:11:45 +0000 (UTC) (envelope-from jacks.1785@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 795868FC0C for ; Thu, 18 Oct 2012 03:11:45 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so16995136iea.13 for ; Wed, 17 Oct 2012 20:11:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=RxFCu5GvijgTM+wcBD604Fl7RHFOPFDtCyPmVSxW8C4=; b=CmaCDe/PM//eD+eyjrvNfwoUIqnnaS3QKhVdCe19Bg0ZuwrXQor/zyv7QoI6VgP8LF 1mce5Bh445HFASnXtQC83yFOytu/4p+mETqVREhZmh1igCPyIG+4E2Wt9bbLsmBUxqbw Fhv8xjC/IMBiDN8O+7prydlFy0OVNMkdWpZ75BWu/AH+oXPOrJNMTbI5g/9YPkANfNLs pvPLVMZIlHVFSenROmFkWcBQ5RLQ+uAUyZDgqX5OLLQSN8ESPhO/vHxNkZOY5iHQKNIP iXtlI8yzErunI97dcjzit0ALmzrtMwediwehG9fM12tmk3Vk3j62MUql4LSmLUk6GYBh N+AA== MIME-Version: 1.0 Received: by 10.50.37.168 with SMTP id z8mr3652923igj.1.1350529904864; Wed, 17 Oct 2012 20:11:44 -0700 (PDT) Received: by 10.64.11.166 with HTTP; Wed, 17 Oct 2012 20:11:44 -0700 (PDT) Date: Thu, 18 Oct 2012 08:41:44 +0530 Message-ID: Subject: Re: pppoe configuration and dns name resolution From: Jack To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Oct 2012 03:11:45 -0000 Hi, Thank you guys for your suggestions, and sharing your experiences with me. This time I deleted old /var/log/ppp.log file, and I did modify /etc/ppp/ppp.conf - just the location of ifaddr line is changed and some more logging options set -nothing else is changed. . The file is this now: /etc/ppp/ppp.conf : default: adsl: set log Phase chat lcp ipcp ccp tun command lqm set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 set device PPPoE:fxp0 set mru 1492 set mtu 1492 set ctsrts off set speed sync set dial enable lqr set login set authname set authkey set timeout 120 set redial 0 0 # set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0 # now this interface is set up at 2nd line in adsl profile add default HISADDR enable dns nat enable no ----------------------------------------------------------------------------- Then I rebooted FreeBSD, in verbose mode enabled. After it booted, I started ppp like this: #ppp -ddial adsl Here is the shell o/p along with verbose lines /usr/sbin/ppp -ddial adsl Working in ddial mode Using interface: tun0 ;verbose lines tun0: buf attached WARNING: attempt to domain_add(netgraph) after domainfinalize() ----------------------------------------------------------------------------------------------------- The output of ifconfig is: fxp0: flags=8843 metric 0 mtu 1500 options=2009 ether 00:16:d3:0c:42:22 inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 nd6 options=29 media: Ethernet autoselect (100baseTX ) status: active fwe0: flags=8802 metric 0 mtu 1500 options=8 ether 06:e4:0a:1b:50:36 nd6 options=29 ch 1 dma -1 fwip0: flags=8802 metric 0 mtu 1500 lladdr 6.e4.a.0.28.1b.50.36.a.2.ff.fe.0.0.0.0 nd6 options=29 lo0: flags=8049 metric 0 mtu 16384 options=600003 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 inet 127.0.0.1 netmask 0xff000000 nd6 options=21 tun0: flags=8051 metric 0 mtu 1500 options=80000 nd6 options=21 Opened by PID 1731 --------------------------------------------------------------------------------------------- The /var/log/ppp.log file contents: http://justpaste.it/1fcw ---------------------------------------------------------------------------------------------------------------------------- Is there some standard sequence for the contents of /etc/ppp/ppp.conf ? I guess that may be the problem. The bridge mode works fine in my Windows XP setup. Nothing special to configure, just need to go to network connections and create a new connection, using username and password. In XP, I'm using DHCP too, so that I don't need to manually confgure interface IP address. That's why I'm sure that my network setup is not a issue. The issue lies somewhere in FreeBSD configuration or somewhere else. On Tue, Oct 16, 2012 at 9:19 PM, Mark Blackman wrote: > > On 16 Oct 2012, at 16:38, Jack wrote: > >> I 'll try mpd5. Thanks. >> >> Actually, I was concerned with userland ppp, becoz of the >> scenarios where we have a FreeBSD machine and the only >> way to connect to internet is an adsl modem in bridge mode >> (assuming the mode in modem, can't be changed). >> In such case the only utilty is ppp, which can be of help. > > Ok, usually bridge mode implies PPPoE and mpd5 does PPPoE. Maybe > I'm missing your point. > Mark, what I meant to say is when we have, say a fresh FreeBSD install, then the only service we have at expose is ppp. To be able to use mpd5, or other ports/packages we first need to connect to internet then only we can install/use mpd5. So, by default we are stuck at using ppp builtin with FreeBSD. :( By bridge mode I meant that and are to be provided to OS, rather than storing them inside adsl modem. PS: I sent this mail with /var/log/ppp.log contents yesterday but it seems that list moderator rejected the post due to its large size. So, I'm pasting the link for contents of /var/log/ppp.log Regards -- Jack