From owner-freebsd-questions@FreeBSD.ORG Fri May 2 06:03:19 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D31C6158 for ; Fri, 2 May 2014 06:03:19 +0000 (UTC) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 970DF1CC1 for ; Fri, 2 May 2014 06:03:19 +0000 (UTC) Received: from r56.edvax.de (port-92-195-108-40.dynamic.qsc.de [92.195.108.40]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 41E4E3CDE9; Fri, 2 May 2014 08:03:15 +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 s4263EUu002203; Fri, 2 May 2014 08:03:14 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Fri, 2 May 2014 08:03:14 +0200 From: Polytropon To: Fbsd8 Subject: Re: pppoe comes up - but can't reconnect Message-Id: <20140502080314.0523677b.freebsd@edvax.de> In-Reply-To: <5362D67F.7010907@a1poweruser.com> References: <20140426215512.GA2592@skytracker.ca> <5362D67F.7010907@a1poweruser.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: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list Reply-To: Polytropon List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 May 2014 06:03:19 -0000 On Thu, 01 May 2014 19:19:27 -0400, Fbsd8 wrote: > > [...] > > the line > > set ifaddr 209.161.205.12 206.221.248.4 > > states my statis IP address followed by the connection address at my > > sevice provider I am guess - but my service providers address changes > > right now it is 216.154.64.1 > > > > Any pointers or comments would be useful. > > > > # If your ISP assigns you an (dynamic) different IP address each time > # you log in, then use the following statement. If your ISP issued you > # a (static never changes) IP address to use every time you log in, then > # comment out the next statement and uncomment the statements following it. > > # Get dynamic IP address from ISP if that's how they do it. > set ifaddr 0.0.0.0/0 0.0.0.0/0 0.0.0.0 0.0.0.0 > > > # Use static IP address from ISP if that's how they do it. > # Set static IP address your ISP assigned to you. > # s.s.s.s = your static IP address > > # set ifaddr s.s.s.s 0.0.0.0/0 0.0.0.0 0.0.0.0 I've been using a PPPoE connection for many years. This is what my configuration looked like: ispname: set device PPPoE:rl0 set authname myusername@ispname.de set authkey mypassword set dial set login add default HISADDR I simply added this block at the end of ppp.conf and didn't modify anything else. In /etc/rc.conf, I simply defined ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="ispname" so the PPPoE connection would come up on system start and would be re-initialized in case it dropped. The network interface rl0 just needed to be up, no further configuration, the tunnel interface tun0 would then be assigned the IP depending on what the ISP transmitted. It shouldn't be hard to get something similar working today. ;-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...