From owner-freebsd-questions@FreeBSD.ORG Fri Nov 17 12:47:04 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B2E4916A417 for ; Fri, 17 Nov 2006 12:47:04 +0000 (UTC) (envelope-from freebsd@bsdserver.com.br) Received: from nitrobsd.bsdserver.com.br (dns.bsdserver.com.br [200.215.210.211]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA9A143D5F for ; Fri, 17 Nov 2006 12:47:03 +0000 (GMT) (envelope-from freebsd@bsdserver.com.br) Received: from bsdserver.com.br (localhost [127.0.0.1]) by nitrobsd.bsdserver.com.br (8.13.6/8.13.6) with ESMTP id kAHCkupw000809 for ; Fri, 17 Nov 2006 10:46:58 -0200 (BRDT) (envelope-from freebsd@bsdserver.com.br) From: "Rafael Aquino" To: freebsd-questions@freebsd.org Date: Fri, 17 Nov 2006 09:46:56 -0300 Message-Id: <20061117124050.M61081@bsdserver.com.br> In-Reply-To: <455D6BCA.9070505@skoberne.net> References: <455D6BCA.9070505@skoberne.net> X-Mailer: OpenWebMail 2.52 20060502 X-OriginatingIP: 200.96.72.178 (bsdserver) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Subject: Re: Restarting DSL connection without reboot? 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: Fri, 17 Nov 2006 12:47:04 -0000 Hi, there, For the servers that I use pppoe I use to create scripts that tests the connection to the internet, and, in case of a problem, they restart everything (logically speaking). Things I use to care: - Kill the ppp process and destroy tun interface; - Put interface down for 2-3 seconds; - Clean arp tables; After that, when the script turns ppp on, everything works. If the problem is with the physical equipment, I once use python with telnet module to automatically log via telnet on the modem and send the command to reboot it. []īs -- Rafael Mentz Aquino BSDServer Ltda. 0 xx 51 - 9725 4311 ---------- Original Message ----------- From: Nejc Skoberne To: freebsd-questions@freebsd.org Cc: Gregor Likar Sent: Fri, 17 Nov 2006 08:59:06 +0100 Subject: Restarting DSL connection without reboot? > Dear community, > > I am having continuous problems with ADSL connections and FreeBSD servers. > I am running a few dozens of FreeBSD boxes and today in the morning > a lot of them were without internet connectivity. Looks like our > provider had some maintenance work or something. > > What happened: the tech guy at one of the customers first rebooted > the server 2 times and then he called me. We tried together: > > 1. first we tried to ping an internet IP address and the reply was > "No buffer space available". After that we did "killall -9 ppp" > until all the ppp processes died. After that we ran /etc/rc.d/ppp- > user (it's a 5.3 box) again but the connection wouldn't come up > (no route to host, when pinging). > > 2. After reboot everything worked as it should. > > I really don't like to reboot servers as soon as they lose DSL connectivity. > Is there any "proper" way to reset the connection (network card?) so > that the connection restores without a reboot? > > Previously I've been running Linux on these servers and at that time > I didn't have these problems - a reset of modem would always resolve > the problem. > > Mostly I am using rl network cards, if that's an helpful info, but somewhere > I also have sis and others. > > My ppp.conf: > > default: > set log Phase Chat LCP IPCP CCP tun command > set ifaddr 10.0.0.1/0 10.0.0.2/0 > SiOL: > set device PPPoE:rl0 > set authname user > set authkey pass > set dial > set login > set redial 5 0 > add default HISADDR > > My ppp.linkup: > > MYADDR: > !bg sh -c "/sbin/pfctl -f /etc/pf.conf" > > My rc.conf (ppp entries): > > ppp_enable="YES" > ppp_profile="SiOL" > ppp_mode="ddial" > ppp_nat="NO" > > Thanks for your help, > Nejc ------- End of Original Message -------