From owner-freebsd-questions@FreeBSD.ORG Tue Oct 16 15:08:48 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 5397289A for ; Tue, 16 Oct 2012 15:08:48 +0000 (UTC) (envelope-from jacks.1785@gmail.com) Received: from mail-ia0-f182.google.com (mail-ia0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id 1A07F8FC08 for ; Tue, 16 Oct 2012 15:08:47 +0000 (UTC) Received: by mail-ia0-f182.google.com with SMTP id k10so6109244iag.13 for ; Tue, 16 Oct 2012 08:08:47 -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=KGW+fQ+KOS64M/oarmWRJ0AjmG69MyhIdDOqg0hKisQ=; b=q/2I65zmRLHNNK2gLtx5TZhGLwS9tSE58ANjMDvulW1AYDp4jE44iQlrugNV8XJPIz vZGH/vT7uy0ZnnQEo5BOIqvHRgRUKPNEfT+EWVQ32RZOuUVXnT9lw5LZ/fotaLjlOFVs Clm/WHApnUYzaiK5t5dh8zKhePE6wDCMfQQy72Y/PR5slZoah+dg2N/gJhEnGyd8SaXh 4roSOLa8Lba0I78A3oiHPpUgFrCuVJwZWzjTTPcvDus0IOiAq2x+KURY4fFz0yMUd1Pz wGG/CG6OYcAnEMUWb831v6I0rDwKU/NHHCicDDZqGaR9ISzfAxWwWOHuBQmTjNJv8ofS 8NUw== MIME-Version: 1.0 Received: by 10.50.152.231 with SMTP id vb7mr12477830igb.1.1350400127417; Tue, 16 Oct 2012 08:08:47 -0700 (PDT) Received: by 10.64.11.166 with HTTP; Tue, 16 Oct 2012 08:08:47 -0700 (PDT) Date: Tue, 16 Oct 2012 20:38:47 +0530 Message-ID: Subject: 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: Tue, 16 Oct 2012 15:08:48 -0000 Hi I'm new as a FreeBSD user, and trying to configure my pppoe connection. After reading handbook and searching on various forums, I prepared the ppp.conf file, and tried starting the ppp via # ppp -ddial adsl Here 'adsl' is the profile name, in /etc/ppp/ppp.conf. I also tried #ppp -auto adsl but the error message was same. The tun0 interface is created, but when is tried pinging to well known sites, e.g. yahoo.com, etc. it says: "can't resolve hostname." It seems a DNS issue first, but when I put my adsl modem in non-bridged mode, I was able to connect to any site. The IP address allocated to my PC is via DHCP, so no special configuration was needed in modem's non-bridged mode. The problem arise only when I put adsl modem in bridged mode and tried dialing via ppp. My network schematic is: PC <-----------------------> ADSL modem <-----> Internet 192.168.1.2 192.168.1.1 DHCP is enabled in adsl modem. I'm pasting my related configuration files if they can help. Please tell me if any other files are needed. /etc/rc.conf hostname="jacklappy" ifconfig_fxp0="DHCP" sshd_enable="YES" moused_enable="YES" powerd_enable="YES" # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable dumpdev="AUTO" hald_enable="YES" dbus_enable="YES" routerenable="NO" -------------------------------------------------------------------------------------------------- /etc/resolv.conf # Generated by resolvconf nameserver 192.168.1.1 ---------------------------------------------------------------------------- /etc/ppp/ppp.conf default: adsl: set log Phase tun command set device PPPoE:fxp0 set mru 1492 set mtu 1492 set ctsrts off set speed sync set dial enable lqr set login set authname myusername set authkey mypassword 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 add default HISADDR enable dns nat enable no ---------------------------------------------------------------------------------------- ifconfig output: 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 inet 10.0.0.1 --> 10.0.0.2 netmask 0xffffff00 nd6 options=21 Opened by PID 1907 -------------------------------------------------------------------------------------------------------- fxp0 is the ethernet interface of my PC via which adsl modem is connected. Any suggestions ... Regards -- Jack