Restarting DSL connection without reboot?
Rafael Aquino
freebsd at bsdserver.com.br
Fri Nov 17 04:47:04 PST 2006
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 <nejc at skoberne.net>
To: freebsd-questions at freebsd.org
Cc: Gregor Likar <gregor.likar at infrax.si>
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 -------
More information about the freebsd-questions
mailing list