From owner-freebsd-questions@FreeBSD.ORG Wed Oct 17 05:34:30 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 4373110D for ; Wed, 17 Oct 2012 05:34:30 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx02.qsc.de (mx02.qsc.de [213.148.130.14]) by mx1.freebsd.org (Postfix) with ESMTP id 0124C8FC08 for ; Wed, 17 Oct 2012 05:34:27 +0000 (UTC) Received: from r56.edvax.de (port-92-195-110-131.dynamic.qsc.de [92.195.110.131]) by mx02.qsc.de (Postfix) with ESMTP id E4D1C24C5D; Wed, 17 Oct 2012 07:34:20 +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 q9H5YKoq002383; Wed, 17 Oct 2012 07:34:20 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Wed, 17 Oct 2012 07:34:20 +0200 From: Polytropon To: Jack Subject: Re: pppoe configuration and dns name resolution Message-Id: <20121017073420.bfbe68a8.freebsd@edvax.de> In-Reply-To: References: 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: Wed, 17 Oct 2012 05:34:30 -0000 On Tue, 16 Oct 2012 20:38:47 +0530, Jack wrote: > I'm new as a FreeBSD user, and trying to configure my > pppoe connection. I've been using PPPoE with a DSL modem for many years, using FreeBSD 4, 5 and 7 with the system's PPPoE tools. The IP was provided to the computer directly, so no DHCP in the modem involved ("real modem mode"). In /etc/ppp/ppp.conf, I did simply define: myispname: set device PPPoE:xl0 set authname customer1234567@myispname set authkey XXXXXXXXX set dial set login add default HISADDR No further changes to that file. Note that here, xl0 is the interface directly connected to the modem. And in /etc/rc.conf: ifconfig_xl0="192.168.0.1 netmask 0xffffff00" ppp_enable="YES" ppp_profile="myispname" ppp_mode="ddial" ppp_nat="YES" So the system would automatically start the connection at boot time. The tun0 interface would then be associated the public IP designated when the PPPoE connection was up and running. Note that ppp_nat only has been needed to "transition" the connection through a 2nd NIC into the local net, making my machine a gateway (including related services, such as natd and dhcpd). I also think initializing the NIC xl0 is not entirely needed, maybe "up" would have been sufficient. For actually being able to use PPPoE, I did add the required components to the kernel, because that approach was "state of the art" at those times. :-) In /etc/resolv.conf I did add the nameservers published by my ISP. Anything worked automatically, I did not need to make further changes. Basically my setup looks like yours, except that (as I said) I did not use any "additional features" of the DSL modem (as it did not have such features). :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...