[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux] config de l'adsl sous debian



Benoît Barbier <benoit.br@skynet.be> writes:

> Salut,
> 
> 
> J'ai installé une deb en dual boot avec ma Mandrake.
> Mais j'ai toujours pas réussi à configuer l'adsl avec pppoe (sous debian).

Oh

> J'ai pourtant suivi les instructions du README.Debian

> J'ai donc légèrement changé mon login et mon mdp et j'envoie mes
> fichiers de config sur la liste, en attachement (+inclu dans ce
> texte).  Si quelqu'un pouvait les lire et les corriger, ça serait
> super sympa, ça à l'aire pourtant simple pourquoi ça va pas ?  Snif;
> :-(
> 
> Le pt 3 précise qu'il faut éditer /etc/init.d/network.
> Mais je n'ai pas ce fichier, donc je l'ai créé et fais un lien
> symbolique vers/etc/rc2.d (c'est mon runlevel)

En fait il y a une faute de frappe : c'est /etc/init.d/networking
Je te conseilles de virer ton /etc/init.d/network et d'ajouter la
bonne ligne dans /etc/init.d/networking

> 
> 
> Donc mon faux login est : hb865034@SKYNET
> Et mon faux mdp est : szgvht15
> 
> Un tout grand merci.
> Benoît
> 
> ************************************************************************
> README.Debian :
> 		  How to setup your DSL PPPoE connection
> 
> Do the following steps as root:
> 
> 1. Edit the file pap-secrets file, adding a line to the outbound
> connections sections that has the following format:
> 
> username@sympatico.ca	  sympatico.ca	    password
> 
> Replace 'username' by the username your DSL provider gave you and 'password'
> by your password. This assumes that your provider is Sympatico. If it is
> not, you will also need to replace 'sympatico.ca' by the address of your
> provider.
A modifier, voir plus bas.

> 
> 2. Edit the file /etc/ppp/peers/dsl-provider, adding a line that reads:
> 
> user username@sympatico.ca
> 
> where what follows 'user' is identical to the first part of the line you
> added to pap-secrets (here 'username@sympatico.ca').
Tu l'as fait.

> 
> 3. Edit the file /etc/init.d/network, adding a line that says:
> 
> ifconfig eth0 up
C'est /etc/init.d/networking
A adapter.
 
> 4. Edit the file /etc/init.d/ppp. Find the line in the 'start' section that
> starts pppd and replace the word 'provider' by 'dsl-provider'. That line
> should now look like:
> 
> start-stop-daemon --start --quiet --exec /usr/sbin/pppd -- call dsl-provider
Tu l'as fait.
 
> 5. Create an empty file /etc/ppp/ppp_on_boot by running the command "touch
> /etc/ppp/ppp_on_boot".
NE PAS FAIRE CECI !!!

> 
> Your DSL PPPoE connection is now set up. To start it, execute
> "/etc/init.d/ppp start". The connection will come up automatically the next
> time you boot.
> 
> 
> **********************************************************************************
> 
> 
> #
> # /etc/ppp/pap-secrets
> #
<couic>
> 
> frijole	*	szgvht15
> 
> hb865034@SKYNET    skynet.be  szgvht15

Non :
hb865034@SKYNET    SKYNET       szgvht15

> 
> 
> *******************************************************************************************
> Voici le /etc/ppp/peers/dsl-provider :
> 
> 
> 
> pty "pppoe -I eth0 -T 80"
> noipdefault
> defaultroute
> hide-password
> lcp-echo-interval 20
> lcp-echo-failure 3
> mtu 1492
> mru 2400
> noauth
> persist
> 
> user hb865034@SKYNET
> 
> 
> **************************************************************************
> 
> #!/bin/sh
> 
> #/etc/init.d/network
> #pour démarer ma carte réseau
> 
> ifconfig eth0 up
> 
> 
> echo "démarage de la carte réseaux"
> #pour m'assurer qu'il s'est exécuté
à placer dans /etc/init.d/networking et retirer /etc/init.d/network

> 
> ********************************************************************
> 
> #!/bin/sh
> #
> #   /etc/init.d/ppp: start or stop PPP link.
> #
> # If you want PPP started on boot time (most dialup systems won't need it)
> # rename the /etc/ppp/no_ppp_on_boot file to /etc/ppp/ppp_on_boot, and
> # follow the instructions in the comments in that file.
> 
> PATH=/bin:/sbin:/usr/bin:/usr/sbin
> test -x /usr/sbin/pppd -a -f /etc/ppp/ppp_on_boot || exit 0
> if [ -x /etc/ppp/ppp_on_boot ]; then RUNFILE=1; fi
> 
> case "$1" in
>   start)
>       echo -n "Starting up PPP link: pppd"
>       if [ "$RUNFILE" = "1" ]; then
>         /etc/ppp/ppp_on_boot
>       else
>         pppd call dsl-provider     
> ######################C'est ici que j'ai changé

Ah, donc il y a une erreur dans la doc de pppoe : tu ne dois pas créer
le fichier /etc/ppp/ppp_on_boot comme ils le disent. En mettant pppd
call dsl-provider, ça suffit. Créer un fichier vide
/etc/ppp/ppp_on_boot empêcherait le lancement de la connection.

Donc rm /etc/ppp/ppp_on_boot
Et normalement ça doit démarrer.

Sinon, peux-tu envoyer le résultat de ifconfig, et regarder dans tes
logs s'il s'y trouve des erreurs ?

A+,
-- 
Rémi

PS visiblement, vous allez recevoir des parties attachées. Mais
pourquoi ?