From owner-freebsd-questions@FreeBSD.ORG Sat Apr 26 21:57:36 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 494C1C57 for ; Sat, 26 Apr 2014 21:57:36 +0000 (UTC) Received: from 3s1.com (3s1.com [209.161.205.12]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "3s1.com", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 05162197E for ; Sat, 26 Apr 2014 21:57:34 +0000 (UTC) Received: from 3s1.com (localhost [127.0.0.1]) by 3s1.com (8.14.4/8.14.4) with ESMTP id s3QLtEdm007965 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Sat, 26 Apr 2014 17:55:14 -0400 (EDT) (envelope-from david+dated+1398981314.cf0c62@skytracker.ca) Received: (from david@localhost) by 3s1.com (8.14.4/8.14.4/Submit) id s3QLtE7V007953 for questions@freebsd.org; Sat, 26 Apr 2014 17:55:14 -0400 (EDT) (envelope-from david+dated+1398981314.cf0c62@skytracker.ca) X-Authentication-Warning: 3s1.com: david set sender to david+dated+1398981314.cf0c62@skytracker.ca using -f Received: by 3s1.com (tmda-sendmail, from uid 1000); Sat, 26 Apr 2014 17:55:14 -0400 Date: Sat, 26 Apr 2014 17:55:13 -0400 To: questions@freebsd.org Subject: pppoe comes up - but can't reconnect Message-ID: <20140426215512.GA2592@skytracker.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2.3i X-Delivery-Agent: TMDA/1.1.12 (Macallan) From: David Banning 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: Sat, 26 Apr 2014 21:57:36 -0000 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.