>>> 115200
>>> ...
>>
>>
>> a priori ya une erreur dans celui ci
>>
>> 2options
>> soit tu en reecris specifique pour etre lancer a la main
>> soit tu en demande un tout fait  et tu l'adaptes a ta conf (j'en ai un
>> tout pret pour free)


> Ca m'int�resse


>> soit tu nous envois ton ppp/option et le chat script associ que l'on
>> voit ou sa foire


> Ci joint mes fichiers :
> /etc/sysconfig/network-scripts/chat-ppp0
> et
> /etc/ppp/options
> Je n'y voit rien d'extraordinaire...
et bin si y-a un truc qui serait plutot meta-ppp dans ton chat-ppp0:
'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'' 'ATZ'
'OK' 'AT&F&O2B40'
'OK' 'ATDT0868929898'
'CONNECT' ''
'TIMEOUT' '5'
'~--' ''
donc il envoi atz et attend ok, puis envois  ATDT0868929898 et attend  
CONNECT et la in envoi <retours chariot>

quand il recoit le CONNECT, au lieu de rendre la main a pppd apres le 
<retours chariot>, il attend TIMEOUT ... pour lui renvoyer 5 : la j'avous 
que soit ton fournisseur a une connexion exotique, soit je ne comprends 
pas ... donc perso, pour le lancer a la main, je virerai carrementles 2 
dernieres lignes :

'TIMEOUT' '5'
'~--' ''

mais plutot que de mettre le bazar dans le kppp script qui semble 
fonctionner, essaye ceci 

1A/ tu copies chat-ppp0 en chat-ppp1, 
1B/ et dans chat-ppp1 tu ne laisse que :

'ABORT' 'BUSY'
'ABORT' 'ERROR'
'ABORT' 'NO CARRIER'
'ABORT' 'NO DIALTONE'
'ABORT' 'Invalid Login'
'ABORT' 'Login incorrect'
'ABORT' ''
'' 'ATZ'
'OK' 'AT&F&O2B40'
'OK' 'ATDT0868929898'
'CONNECT' ''

3/ tu cree un fichier /etc/ppp/peers/fai-ppp
   avec ses options ci

    name <ton login>
    lock
    noauth
    noipdefault
    usepeerdns
    idle  180 
    demand
    netmask 255.255.255.0 
    0.0.0.0:0.0.0.0 
    /dev/modem
    115200
    defaultroute
    nocrtscts
    modem
    connect "chat -v -f /etc/sysconfig/network-scripts/chat-ppp1"


et enfin le script /etc/init.d/ppp_on_demand


#!/bin/sh
#
# pppd   The on demand TCP/IP networking program
#              
#
# chkconfig: 2345 57 5
# description: pppd is the built-in smart demand-dial PPP networking 
daemon. \
#      It selectively activates the PPP link to the Internet when \
#      traffic is detected that is considered important.
#
# Source function library.
. /etc/rc.d/init.d/functions

# Source networking configuration.
. /etc/sysconfig/network

# Check that networking is up.
[ ${NETWORKING} = "no" ] && exit 0

[ -f /usr/sbin/pppd ] || exit 0

[ -f /etc/ppp/peers/fai-ppp ] || exit 0


# See how we were called.
case "$1" in
  start)
        # Start daemons.
        echo -n "Starting ppp dial on demand : "
        daemon /usr/sbin/pppd call fai-ppp
        echo
        touch /var/lock/subsys/pppd
        ;;
  stop)
        # Stop daemons.
        echo -n "Shutting down pppd: "
        killproc /usr/sbin/pppd
        echo
        rm -f /var/lock/subsys/pppd
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  status)
        status pppd
        ;;
  *)
        echo "Usage: ppp_on_demand {start|stop|restart|status}"
        exit 1
esac

exit 0





normalement en invoquant 
        /etc/init.d/ppp_on_demand start
tu etablis la connexion, qui se coupe apres 3 mn d'inactivite et qui se 
retabli des que l'on fait appel a la route par default qui est alors sur 
ppp0 ; cela necesite d'aoir une table de routage OK.

Un soucis : si ton fournisseur fait du broadcast IP (224.x.y.z) ca ne 
coupe jamais ... dans ce cas la supprimer l'option demand de fai-ppp ... 
et faire appel a mask-dialer.

si tu utilise bind (named) et que tu pointes vers le resolveur de ton 
fai, ca etabli la connexion quand il met ses tables a jours (toute les 
mn/heures/etc) ... le delai entre 2 MAJ se regle dans named.conf, ou dans 
linuxconf.

si aucun soucis, tu peux carrement faire un lien S70ppp_on_demand dans 
rc[345].d vers ppp_on_demand. Je n'ai jamais explose ma facture 
telephonique avec ce script. Mais bon depuis que j'ai ADSL ... j'ose meme 
pas ecrire comme c'est bon ;^))


bon courage.



                XB.

Vous souhaitez acquerir votre Pack ou des Services MandrakeSoft?
Rendez-vous sur "http://www.mandrakestore.com";

Répondre à