From owner-freebsd-questions@FreeBSD.ORG Fri Nov 17 17:26:05 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 DE05D16A403 for ; Fri, 17 Nov 2006 17:26:05 +0000 (UTC) (envelope-from beech@alaskaparadise.com) Received: from stargate.alaskaparadise.com (114-103-74-65.gci.net [65.74.103.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2DAE843D5C for ; Fri, 17 Nov 2006 17:26:03 +0000 (GMT) (envelope-from beech@alaskaparadise.com) Received: by stargate.alaskaparadise.com (Postfix, from userid 0) id 4E79745DE; Fri, 17 Nov 2006 08:26:03 -0900 (AKST) From: Beech Rintoul Organization: Alaska Paradise Travel To: freebsd-questions@freebsd.org Date: Fri, 17 Nov 2006 08:25:57 -0900 User-Agent: KMail/1.9.4 References: <455D6BCA.9070505@skoberne.net> In-Reply-To: <455D6BCA.9070505@skoberne.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200611170826.00982.beech@alaskaparadise.com> Cc: Gregor Likar , Nejc Skoberne 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 17:26:05 -0000 On Thursday 16 November 2006 22:59, Nejc Skoberne wrote: > 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 Try doing /etc/rc.d/netif start That works for me when my wireless get's jammed and I notice it also resets my internal lan. Beech -- --------------------------------------------------------------------------------------- Beech Rintoul - Sys. Administrator - beech@alaskaparadise.com /"\ ASCII Ribbon Campaign | Alaska Paradise Travel \ / - NO HTML/RTF in e-mail | 201 East 9Th Avenue Ste.310 X - NO Word docs in e-mail | Anchorage, AK 99501 / \ - Please visit Alaska Paradise - http://www.alaskaparadise.com ---------------------------------------------------------------------------------------