Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2006 08:59:06 +0100
From:      Nejc Skoberne <nejc@skoberne.net>
To:        freebsd-questions@freebsd.org
Cc:        Gregor Likar <gregor.likar@infrax.si>
Subject:   Restarting DSL connection without reboot?
Message-ID:  <455D6BCA.9070505@skoberne.net>

Next in thread | Raw E-Mail | Index | Archive | Help
This is a cryptographically signed message in MIME format.

--------------ms010505090306020508020607
Content-Type: multipart/mixed; boundary="------------070403070109060203030901"

This is a multi-part message in MIME format.
--------------070403070109060203030901
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit

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

--------------070403070109060203030901--

--------------ms010505090306020508020607
Content-Type: application/x-pkcs7-signature; name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="smime.p7s"
Content-Description: S/MIME Cryptographic Signature

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIILJDCC
BY4wggR2oAMCAQICBDs9SfgwDQYJKoZIhvcNAQEFBQAwPTELMAkGA1UEBhMCc2kxGzAZBgNV
BAoTEnN0YXRlLWluc3RpdHV0aW9uczERMA8GA1UECxMIc2lnZW4tY2EwHhcNMDMwOTIzMjAy
MzA0WhcNMDgwOTIzMjA1MzA0WjCBgTELMAkGA1UEBhMCc2kxGzAZBgNVBAoTEnN0YXRlLWlu
c3RpdHV0aW9uczERMA8GA1UECxMIc2lnZW4tY2ExFDASBgNVBAsTC2luZGl2aWR1YWxzMSww
FAYDVQQDEw1ORUpDIFNLT0JFUk5FMBQGA1UEBRMNMjQ1NzExMzMxMjAxNDCBnzANBgkqhkiG
9w0BAQEFAAOBjQAwgYkCgYEA0LYrr3KrEMlye3H9j8KGvFx66+btGh7I/XXA/Pmog4+HMqqq
MZZNmfbkKfC3D6NdXroteJSAwxoO3BU0HuCzyjHeaaZ63ayz7OAbYY3rwTN9rWTkRTAoghLk
eA+R+0GA5gEbdudT4eV0vmYsfmKkpnnsQ+u13R9IgWPFT6zWoucCAwEAAaOCAtMwggLPMAsG
A1UdDwQEAwIFoDArBgNVHRAEJDAigA8yMDAzMDkyMzIwMjMwNFqBDzIwMDgwOTIzMjA1MzA0
WjARBglghkgBhvhCAQEEBAMCBaAwLwYJYIZIAYb4QgECBCIWIGh0dHBzOi8vd3d3LnNpZ2Vu
LWNhLnNpL2NkYS1jZ2kvMEQGCWCGSAGG+EIBAwQ3FjVjbGllbnRjZ2k/YWN0aW9uPWNoZWNr
UmV2b2NhdGlvbiYmQ1JMPWNuPUNSTDYmc2VyaWFsPTBRBglghkgBhvhCAQ0ERBZCU3BsZXRu
byBrdmFsaWZpY2lyYW5vIGRpZ2l0YWxubyBwb3RyZG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lYQcHyhK5tE/hDBSBgkqhkiG9w0BCQ8xRTBDMAoGCCqGSIb3DQMHMA4GCCqGSIb3
DQMCAgIAgDANBggqhkiG9w0DAgIBQDAHBgUrDgMCBzANBggqhkiG9w0DAgIBKDBUBgkrBgEE
AYI3EAQxRzBFMD0xCzAJBgNVBAYTAnNpMRswGQYDVQQKExJzdGF0ZS1pbnN0aXR1dGlvbnMx
ETAPBgNVBAsTCHNpZ2VuLWNhAgQ7PUn4MFYGCyqGSIb3DQEJEAILMUegRTA9MQswCQYDVQQG
EwJzaTEbMBkGA1UEChMSc3RhdGUtaW5zdGl0dXRpb25zMREwDwYDVQQLEwhzaWdlbi1jYQIE
Oz1J+DANBgkqhkiG9w0BAQEFAASBgE1iONjGHo8zmNUbCHXXE+eEmXgwwPaEc41QSAGu/6es
Lk6nQMMGzw2DwFh86MJlnkCFrA4iPjaMNPWkBPH7bggea+mnRWbpT4pDkEcx2qoZR9gr037/
8Mr3y8tWtPTdx+GWfApXeqk/4xU3yK6HdarZOnD4kV8/0xp32Bqitw9AAAAAAAAA
--------------ms010505090306020508020607--



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?455D6BCA.9070505>