From owner-freebsd-questions@FreeBSD.ORG Fri Oct 19 07:51:26 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 1AD857A8 for ; Fri, 19 Oct 2012 07:51:26 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) by mx1.freebsd.org (Postfix) with ESMTP id C80F58FC14 for ; Fri, 19 Oct 2012 07:51:25 +0000 (UTC) Received: from r56.edvax.de (port-92-195-110-131.dynamic.qsc.de [92.195.110.131]) by mx01.qsc.de (Postfix) with ESMTP id 015743CB87; Fri, 19 Oct 2012 09:51:17 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id q9J7pHkD001952; Fri, 19 Oct 2012 09:51:17 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 19 Oct 2012 09:51:17 +0200 From: Polytropon To: RW Subject: Re: pppoe configuration and dns name resolution Message-Id: <20121019095117.bc10a4e0.freebsd@edvax.de> In-Reply-To: <20121018200350.48504572@gumby.homeunix.com> References: <20121018200350.48504572@gumby.homeunix.com> Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2012 07:51:26 -0000 On Thu, 18 Oct 2012 20:03:50 +0100, RW wrote: > On Tue, 16 Oct 2012 20:38:47 +0530 > Jack wrote: > > /etc/resolv.conf > > > > # Generated by resolvconf > > nameserver 192.168.1.1 > > If 192.168.1.1 is the modem, how can it be a proxy nameserver? It > doesn't have an internet connection if it's not terminating PPP. > > You have > > ifconfig_fxp0="DHCP" > > which means you are picking up DHCP from the modem itself not the > other side of the PPP link. In bridging mode you only need to > configure the underlying ethernet device if you want to route back-out > into the router's LAN (PPPoE and IP can share a lan). > > You don't necessarily need DHCP with PPPoE because PPP can deliver the > IP address, DNS etc by itself. If the ISP requires you to use DHCP you > should probably have configured the tun0 interface instead of fxp0. Exactly that's what I did describe in my message: Configuration data is set in ppp.conf, no DHCP involved, and the actual IP will be delivered to the tun0 interface, while fxp0 (in this case) can be used for involving with NAT (if required). Setting the nameserver to an _actual_ nameserver (either running named on the machine, or relying on the ISP's nameservers) is required. This is the easiest approach to dealing with PPPoE modems (if they are used as "actual modems" without any additional routing, DHCP or other functionality). -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...