From owner-freebsd-questions@FreeBSD.ORG Thu May 1 23:19:40 2014 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 43CEB5FC for ; Thu, 1 May 2014 23:19:40 +0000 (UTC) Received: from relay.mailchannels.net (si-002-i152.relay.mailchannels.net [108.178.49.164]) by mx1.freebsd.org (Postfix) with ESMTP id 9E74018D4 for ; Thu, 1 May 2014 23:19:38 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (ip-10-244-196-74.us-west-2.compute.internal [10.244.196.74]) by relay.mailchannels.net (Postfix) with ESMTPA id E26F06054B; Thu, 1 May 2014 23:19:36 +0000 (UTC) X-Sender-Id: _forwarded-from|107.201.34.133 Received: from mail-24.name-services.com (mail-24.name-services.com [10.244.170.26]) (using TLSv1 with cipher AES128-SHA) by 0.0.0.0:2500 (trex/5.1.2); Thu, 01 May 2014 23:19:37 GMT X-MC-Relay: Forwarding X-MailChannels-SenderId: _forwarded-from%7C107.201.34.133 X-MailChannels-Auth-Id: demandmedia Received: from [10.0.10.1] (107-201-34-133.lightspeed.bcvloh.sbcglobal.net [107.201.34.133]) by mail-24.name-services.com with SMTP; Thu, 1 May 2014 16:19:30 -0700 Message-ID: <5362D67F.7010907@a1poweruser.com> Date: Thu, 01 May 2014 19:19:27 -0400 From: Fbsd8 User-Agent: Thunderbird 2.0.0.17 (Windows/20080914) MIME-Version: 1.0 To: David Banning Subject: Re: pppoe comes up - but can't reconnect References: <20140426215512.GA2592@skytracker.ca> In-Reply-To: <20140426215512.GA2592@skytracker.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2014 23:19:40 -0000 David Banning wrote: > My pppoe connection connects just fine, and stays connected often > for weeks - then my service provider may have a hiccup and when my > system attempts to reconnect, or when I attempt to reconnect manually > I get an error - here is what appears in my error logs when attempting > to connect unsuccesssfully - /var/log/messages; > > Apr 26 03:38:57 3s1 kernel: tun0: link state changed to UP > Apr 26 03:40:38 3s1 kernel: tun0: link state changed to DOWN > Apr 26 03:40:51 3s1 kernel: tun0: link state changed to UP > Apr 26 03:40:54 3s1 ppp[90150]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 209.161.205.12 -> 216.154.64.1): File exists > Apr 26 03:40:54 3s1 ppp[90150]: tun0: Error: ipcp_InterfaceUp: unable to set ip address > > In my ppp.log I get this; > > pr 26 16:49:03 3s1 ppp[94945]: tun0: Phase: deflink: opening -> dial > Apr 26 16:49:03 3s1 ppp[94945]: tun0: Phase: deflink: dial -> carrier > Apr 26 16:49:04 3s1 ppp[94945]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "bas1-toronto27") > Apr 26 16:49:04 3s1 ppp[94945]: tun0: Phase: Received NGM_PPPOE_SESSIONID > Apr 26 16:49:04 3s1 ppp[94945]: tun0: Phase: Received NGM_PPPOE_SUCCESS > Apr 26 16:49:04 3s1 ppp[94945]: tun0: Phase: deflink: carrier -> login > Apr 26 16:49:04 3s1 ppp[94945]: tun0: Phase: deflink: login -> lcp > Apr 26 16:49:05 3s1 ppp[94945]: tun0: Phase: bundle: Authenticate > Apr 26 16:49:05 3s1 ppp[94945]: tun0: Phase: deflink: his = PAP, mine = none > Apr 26 16:49:05 3s1 ppp[94945]: tun0: Phase: Pap Output: -obscured--------- ******** > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: Pap Input: SUCCESS () > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: lcp -> open > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: bundle: Network > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Warning: iface add: ioctl(SIOCAIFADDR, 209.161.205.12 -> 216.154.64.1): File exists > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Error: ipcp_InterfaceUp: unable to set ip address > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: bundle: Terminate > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: open -> lcp > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: Disconnected! > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: lcp -> logout > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: logout -> hangup > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: Disconnected! > Apr 26 16:49:07 3s1 ppp[94945]: tun0: Phase: deflink: Connect time: 4 secs: 119 octets in, 144 octets out > > My first thought was to go to the error line which states "File exists" - and > to delete that file - but I have not idea where that is. Here is my ppp.conf; > > default: # or name_of_service_provider > set device PPPoE:fxp0 # replace xl1 with your ethernet device > set mru 1492 > set mtu 1492 > set authname ?????????????????? > set authkey ?????? > set log Phase tun command # you can add more detailed logging if you wish > disable ipv6cp > set dial > set login > set ifaddr 10.0.0.1/0 10.0.0.2/0 > set ifaddr 209.161.205.12 206.221.248.4 > add default HISADDR > nat enable yes # if you want to enable nat for your local net > > 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