Re: ppp reconnecting problem

2008-04-28 Thread Malcolm Kay
On Sun, 27 Apr 2008 04:43 pm, Ivan Toman wrote:
 
Hello!
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:
[EMAIL PROTECTED] /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
[EMAIL PROTECTED] /home/coldplug]#
And this I get if try to ping ISP's dns
[EMAIL PROTECTED] /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
[EMAIL PROTECTED] /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
[EMAIL PROTECTED] /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:
[EMAIL PROTECTED] 
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 

Re: ppp reconnecting problem

2008-04-27 Thread Patrick Lamaizière
Le Sun, 27 Apr 2008 09:13:06 +0200,
Ivan Toman [EMAIL PROTECTED] a __crit :

 
Hello!
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 

If you kill ppp and restart it, does-it work again ?
When I was runing ppp on FreeBSD i saw few times this kind of already
in network phase  You can restart ppp each day with cron
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]