From owner-freebsd-questions@FreeBSD.ORG Wed Feb 7 07:35:04 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 A90EA16A401 for ; Wed, 7 Feb 2007 07:35:03 +0000 (UTC) (envelope-from bfwalker@gmail.com) Received: from an-out-0708.google.com (an-out-0708.google.com [209.85.132.247]) by mx1.freebsd.org (Postfix) with ESMTP id 4EF9613C461 for ; Wed, 7 Feb 2007 07:35:03 +0000 (UTC) (envelope-from bfwalker@gmail.com) Received: by an-out-0708.google.com with SMTP id c24so114946ana for ; Tue, 06 Feb 2007 23:35:02 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type; b=Vyj8S42hRv5nJ9fEq3+XjFNxXDLTH+/NLMX7jKttB7zz+6VA/SysgB8Nlfy0eOmDiMMjYBPQsgkMI9c9SzqSLDKP/fxK9AbdavL2mxgb/bdQh7XzXkoTATdSsgDL5DpGE992PBa/FTeLRnoLXUOuW0ik3Iyp9M+GfbzZwURSo3k= Received: by 10.100.120.5 with SMTP id s5mr1451823anc.1170832251430; Tue, 06 Feb 2007 23:10:51 -0800 (PST) Received: by 10.90.94.12 with HTTP; Tue, 6 Feb 2007 23:10:51 -0800 (PST) Message-ID: <54f1b6eb0702062310v538af38eva80208b6e7157ca5@mail.gmail.com> Date: Wed, 7 Feb 2007 15:10:51 +0800 From: "Brian Walker" To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: ppp interruption X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Feb 2007 07:35:04 -0000 Greetings all, Problem with maintaining the internet connection: on startup I do: # ppp -ddial internet and all is well. It may be 2 days, it may be one hour later I fail to connect to mail and internet. When I check the connection using: $ bash-2.05b$ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 202.64.10.27 UGS 0 18028 tun0 127.0.0.1 127.0.0.1 UH 0 441 lo0 202.64.10.27 210.17.143.28 UH 1 0 tun0 So all would still appear to be OK, but nevertheless I get no mail and no connection to a web page. OK, I redo ppp -ddial internet, and I get the following netstat -rn printout: bash-2.05b$ netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 202.64.10.32 UGS 0 18090 tun1 127.0.0.1 127.0.0.1 UH 0 441 lo0 202.64.10.27 210.17.143.28 UH 0 0 tun0 202.64.10.32 210.17.197.153 UH 1 0 tun1 And all works for a while, but ..... stops. So I reboot, and all works like a charm. Checking /var/log/ppp.log I see episodes of this: Feb 7 12:18:17 ppp[9716]: Warning: iface add: ioctl(SIOCAIFADDR, 210.17.198.175 -> 202.64.10.32): File exists Feb 7 12:18:17 ppp[9716]: Error: ipcp_InterfaceUp: unable to set ip address Feb 7 12:18:32 ppp[9716]: Phase: bundle: Terminate Feb 7 12:18:32 ppp[9716]: Phase: deflink: open -> lcp Feb 7 12:18:32 ppp[9716]: Phase: deflink: Disconnected! Feb 7 12:18:32 ppp[9716]: Phase: deflink: lcp -> logout Feb 7 12:18:32 ppp[9716]: Phase: deflink: logout -> hangup Feb 7 12:18:32 ppp[9716]: Phase: deflink: Disconnected! But reconnecting gives this output: Feb 7 13:53:08 ppp[1292]: Phase: Using interface: tun1 Feb 7 13:53:08 ppp[1292]: Phase: deflink: Created in closed state Feb 7 13:53:30 ppp[1357]: Phase: PPP Started (ddial mode). Feb 7 13:53:30 ppp[1357]: Phase: bundle: Establish Feb 7 13:53:30 ppp[1357]: Phase: deflink: closed -> opening Feb 7 13:53:30 ppp[1357]: Phase: deflink: Connected! Feb 7 13:53:30 ppp[1357]: Phase: deflink: opening -> dial Feb 7 13:53:30 ppp[1357]: Phase: deflink: dial -> carrier Feb 7 13:53:31 ppp[1357]: Phase: Received NGM_PPPOE_ACNAME (hook "VTA23-1-RX") Feb 7 13:53:31 ppp[1357]: Phase: Received NGM_PPPOE_SESSIONID Feb 7 13:53:31 ppp[1357]: Phase: Received NGM_PPPOE_SUCCESS Feb 7 13:53:31 ppp[1357]: Phase: deflink: carrier -> login Feb 7 13:53:31 ppp[1357]: Phase: deflink: login -> lcp Feb 7 13:53:32 ppp[1357]: Warning: deflink: Reducing configured MRU from 1500 to 1492 Feb 7 13:53:32 ppp[1357]: Phase: bundle: Authenticate Feb 7 13:53:32 ppp[1357]: Phase: deflink: his = PAP, mine = none Feb 7 13:53:32 ppp[1357]: Phase: Pap Output: myname@myisp ******** Feb 7 13:53:32 ppp[1357]: Phase: Pap Input: SUCCESS () Feb 7 13:53:32 ppp[1357]: Phase: deflink: lcp -> open Feb 7 13:53:32 ppp[1357]: Phase: bundle: Network Feb 7 13:53:32 ppp[1357]: Phase: deflink: IPV6CP protocol reject closes IPV6CP ! 1. What are the possible causes? 2. Why does the routing table still show an active connection? 3. What steps could I take in troubleshooting? Sadly, the FreeBSD handbook and FreeBSD Unleashed do not have the answers, and google is rather dry on the subject. In hope Brian