From owner-freebsd-questions@FreeBSD.ORG Sun Apr 27 07:36:32 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 12BE0106566C for ; Sun, 27 Apr 2008 07:36:32 +0000 (UTC) (envelope-from ivtoman@inet.hr) Received: from ls405.t-com.hr (ls405.t-com.hr [195.29.150.135]) by mx1.freebsd.org (Postfix) with ESMTP id 75DFC8FC26 for ; Sun, 27 Apr 2008 07:36:31 +0000 (UTC) (envelope-from ivtoman@inet.hr) Received: from ls242.t-com.hr (ls242.t-com.hr [195.29.150.134]) by ls405.t-com.hr (Postfix) with ESMTP id A4E7242765 for ; Sun, 27 Apr 2008 09:36:24 +0200 (CEST) Received: from ls242.t-com.hr (localhost.localdomain [127.0.0.1]) by ls242.t-com.hr (Qmlai) with ESMTP id 98491B0837B for ; Sun, 27 Apr 2008 09:36:24 +0200 (CEST) X-Envelope-Sender: ivtoman@inet.hr Received: from [10.23.99.66] (78-3-46-196.adsl.net.t-com.hr [78.3.46.196])by ls242.t-com.hr (Qmali) with ESMTP id 0E13B5BC118for ; Sun, 27 Apr 2008 09:36:24 +0200 (CEST) Message-ID: <48142C70.7070000@inet.hr> Date: Sun, 27 Apr 2008 09:34:08 +0200 From: Ivan Toman User-Agent: Thunderbird 2.0.0.12 (X11/20080424) MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-imss-version: 2.050 X-imss-result: Passed X-imss-scanInfo: M:P L:N SM:0 X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:5.0.1023(15810.001) X-imss-scores: Clean:0.84922 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000) Subject: ppp reconnecting problem (try #2) 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: Sun, 27 Apr 2008 07:36:32 -0000 Hello. My first e-mail seems very messed up, so I will try again. Sorry about that, I hope this will be OK. I encountered big problem after switching router from gentoo to freebsd. It does not properly reconnect ADSL link after loosing connection, for example, when ISP cycle IP address or when I pull out cable from ADSL switcher for testing purporse. I cannot realize what's going on and really need help. First problem get when ISP disconnect me after 24 hours due to IP change. Link does not properly get reconnected. ppp tries to connect, and appearenty is connected, but something is wrong because no traffic is possible and after few seconds ppp goes down and reconnects again. And again and again.... Strange above all is that during reconnecting routing table always has default route, but ping does not go. Next, I will put some information that I think is relevant to problem, but it seems to me, not very useful in debugging this. During reconnecting as I describe above, this is my routing table: [root@maraska-gw /home/coldplug]# netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 172.29.252.12 UGS 1 2284023 tun0 10.23.99.64/29 link#1 UC 0 0 nfe0 10.23.99.66 00:30:84:ee:3c:cf UHLW 1 4065 nfe0 1030 10.23.99.70 00:02:b3:9e:b9:81 UHLW 1 223104 nfe0 1027 127.0.0.1 127.0.0.1 UH 0 72 lo0 172.29.252.12 78.3.33.136 UGH 1 0 tun0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#5 UHL lo0 ff01:5::/32 fe80::1%lo0 UC lo0 ff01:6::/32 link#6 UGC tun0 ff02::%lo0/32 fe80::1%lo0 UC lo0 ff02::%tun0/32 fe80::211:9ff:fe8d:4a27%tun0 UGC tun0 [root@maraska-gw /home/coldplug]# And this.... I get if try to ping ISP's dns [root@maraska-gw /home/coldplug]# ping 195.29.150.3 PING 195.29.150.3 (195.29.150.3): 56 data bytes ping: sendto: No buffer space available ping: sendto: No buffer space available ping: sendto: No buffer space available ping: sendto: No buffer space available ^C --- 195.29.150.3 ping statistics --- 10 packets transmitted, 0 packets received, 100.0% packet loss [root@maraska-gw /home/coldplug]# No buffer space available??? What is that? These are lines from log, where you can see that it reconnects and never stops that [root@maraska-gw /home/coldplug]# tail -f /var/log/ppp.log Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: carrier -> login Apr 26 12:06:22 maraska-gw ppp[956]: tun0: Phase: deflink: login -> lcp Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492 Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: deflink: his = PAP, mine = none Apr 26 12:06:23 maraska-gw ppp[956]: tun0: Phase: Pap Output: ertoman1@htnet-dsl ******** Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: Pap Input: SUCCESS (Access Accepted. ) Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: Already in NETWORK phase Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp -> open Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process Apr 26 12:06:24 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change route failed: errno: Network is unreachable Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Phase: deflink: open -> lcp Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process Apr 26 12:08:23 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change route failed: errno: Network is unreachable Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: Received NGM_PPPOE_CLOSE Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Device disconnected Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Disconnected! Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: lcp -> logout Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Disconnected! Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: logout -> hangup Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Connect time: 123 secs: 374 octets in, 96 octets out Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: 3218212 packets in, 2284164 packets out Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: total 3 bytes/sec, peak 40 bytes/sec on Sat Apr 26 12:06:24 2008 Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: hangup -> opening Apr 26 12:08:24 maraska-gw ppp[956]: tun0: Phase: deflink: Enter pause (3) for redialing. Apr 26 12:08:27 maraska-gw ppp[956]: tun0: Phase: deflink: Connected! Apr 26 12:08:27 maraska-gw ppp[956]: tun0: Phase: deflink: opening -> dial Apr 26 12:08:27 maraska-gw ppp[956]: tun0: Phase: deflink: dial -> carrier Apr 26 12:08:28 maraska-gw ppp[956]: tun0: Phase: Received NGM_PPPOE_ACNAME (hook "HTdsl") Apr 26 12:08:28 maraska-gw ppp[956]: tun0: Phase: Received NGM_PPPOE_SESSIONID Apr 26 12:08:28 maraska-gw ppp[956]: tun0: Phase: Received NGM_PPPOE_SUCCESS Apr 26 12:08:28 maraska-gw ppp[956]: tun0: Phase: deflink: carrier -> login Apr 26 12:08:28 maraska-gw ppp[956]: tun0: Phase: deflink: login -> lcp Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Warning: deflink: Reducing configured MRU from 1500 to 1492 Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Phase: deflink: his = PAP, mine = none Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Phase: Pap Output: ertoman1@htnet-dsl ******** Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Phase: Pap Input: SUCCESS (Access Accepted. ) Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Phase: deflink: Already in NETWORK phase Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Phase: deflink: lcp -> open Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Warning: 0.0.0.0/0: Change route failed: errno: No such process Apr 26 12:08:29 maraska-gw ppp[956]: tun0: Warning: ff02:6::/32: Change route failed: errno: Network is unreachable ^C [root@maraska-gw /home/coldplug]# Only way to exit this trouble is restarting ppp manually! [root@maraska-gw /home/coldplug]# killall ppp [root@maraska-gw /home/coldplug]# ppp -ddial htnet Loading /lib/libalias_cuseeme.so Loading /lib/libalias_ftp.so Loading /lib/libalias_irc.so Loading /lib/libalias_nbt.so Loading /lib/libalias_pptp.so Loading /lib/libalias_skinny.so Loading /lib/libalias_smedia.so Working in ddial mode Using interface: tun0 Warning: usage: nat addr [addr_local addr_alias] Warning: usage: nat addr [addr_local addr_alias] Warning: usage: nat addr [addr_local addr_alias] [root@maraska-gw /home/coldplug]# ping 195.29.150.3 PING 195.29.150.3 (195.29.150.3): 56 data bytes 64 bytes from 195.29.150.3: icmp_seq=2 ttl=251 time=23.386 ms This is my config file [root@maraska-gw /home/coldplug]# cat /etc/ppp/ppp.conf default: set log Phase tun command nat enable yes htnet: set device PPPoE:rl0: set authname ertoman1@htnet-dsl set authkey *** set dial set login add default HISADDR nat addr 10.23.99.66 nat addr 10.23.99.67 nat addr 10.23.99.70 [root@maraska-gw /home/coldplug]# I tried lot of things. "enable lqr", "enable echo"... nothing helps. Moreover, testing this by pulling out cable and replugging it give no response from system! If I do that, link goes down (real link), but system do not realize that at all! Routing table remains unchanged, default route still is there, tun0 interface still configured, ppp runs, and in /var/log/ppp.log there is no new single line after that replugging cable into ADSL modem! How is that possible? Isn't pulling out and replugging cable should be enough for ppp to realize it that tun0 should be reconfigured and ppp redialed? Of course, I start ppp as: # ppp -ddial htnet I really need reliable connection that needs no permanent monitoring by myself and manually reconnecting after being dropped. Please, give me some idea what can I do because I'm still desperate after few days of trying to fix this. For sake of completness, I had no problems with this before, on gentoo. Now I run FreeBSD 7. [root@maraska-gw /home/coldplug]# uname -a FreeBSD maraska-gw.zdw 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Sun Feb 24 19:59:52 UTC 2008 root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 If you think that some other messages from system will be more useful, I will hapily provide them. Thanks to all! Ivan Toman