Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2816 connectés 

  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  [mdk 9.1] Probleme réseau récurrent

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[mdk 9.1] Probleme réseau récurrent

n°253091
Niala
Posté le 22-04-2003 à 16:24:58  profilanswer
 

lu tt le monde...
voilà j'arrive pas à avoir une configuration rézo (local/internet) qui marche comme je voudrais...  :sweat:  
bon j'explique mon cas:
- un modem alcatel speed touch home (ethernet)
- 2 cartes rézo (2 x realtek) : 1 pour le modem ADSL, l'autre pour le local
- eth0 => modem ADSL (10.0.010/255.255.255.0/module 8139too)
- eth1  => rézo local (192.168.0.27/255.255.255.0/module 8139too)
 
Aprés l'installation de la distrib g tenté de configurer le tout (rézo local + ADSL + partage de connexion) via l'assistant mandrake. ça a tjrs merdé et donc pas fait avancé les choses :o. g réussi à avoir un semblant de qqch en configurant séparément l'ADSL et le local. ça marchait quand il voulait, la commande adsl-start déconnait, etc, etc...
 
Ensuite g tenté de configurer un peu avec linuxconf: maintenant les 2 cartes rézo sont reconnues comme il faut et ont les bonnes adresses IP (d'ailleurs c bizarre l'assistant mandrake m'avait rajouté une 3e carte d'ou je sais po ou  :heink:)
 
La situation maintenant:
-la commande adsl-start marche mais me renvoie ça 2x de suite le message suivant et aprés c bon je suis connecté!

Code :
  1. ./usr/sbin/adsl-start: line 1: expr: command not found
  2. /usr/sbin/adsl-start: line 183: [: -gt:unary operator excepted

 
-le démarrage du rézo est hyper lent: le boot s'arrete à l'activation de eth0 pendant 10 min et aprés c bon ça repart normalement. Rien à signaler pour eth1... par contre ça stop un moment aussi (parfois) pour le démarrage de la connexion internet (sur eth0)
-la commande adsl-stop me kill X  :??: parfois. Là je comprends pas du tt le lien;ensuite impossible de passer en init5 (avec gdm démarré) mm si startx démarre bien X :(
 
Bon je pense que y'a qqch de pas net autour de eth0 mais je sais pas trop c quoi  :cry: . ça inspire qq'un tt ça?
 
merci d'avance  
:hello:  

mood
Publicité
Posté le 22-04-2003 à 16:24:58  profilanswer
 

n°253120
Aragorn_1e​r
Le jihad butlérian est proche
Posté le 22-04-2003 à 17:17:15  profilanswer
 

Ca ne sert a rien de configuer une adresse ip pour la carte rezo qui est connecté a ton modem.
 
Peut tu montre un peu ce k il y a la ligne 1 et 183 de /usr/sbin/adsl-start .
 
Fait ossi un : which expr
 
Normallement c un util de base qui devrait se trouver dans /usr/bin/
 
A+

n°253139
Niala
Posté le 22-04-2003 à 17:41:43  profilanswer
 

pour l'ip du modem c vrai le modem attribue l'adresse de lui mm :D mais je pense pas que ça interfere. je me trompe? :??:
 
le contenu de adsl-start:

Code :
  1. #!/bin/sh
  2. # Generated automatically from adsl-start.in by configure.
  3. #***********************************************************************
  4. #
  5. # adsl-start
  6. #
  7. # Shell script to bring up an ADSL connection
  8. #
  9. # Copyright (C) 2000 Roaring Penguin Software Inc.
  10. #
  11. # $Id: adsl-start.in,v 1.8 2002/04/09 17:28:39 dfs Exp $
  12. #
  13. # This file may be distributed under the terms of the GNU General
  14. # Public License.
  15. #
  16. # LIC: GPL
  17. #
  18. # Usage: adsl-start [config_file]
  19. #        adsl-start interface user [config_file]
  20. # Second form overrides USER and ETH from config file.
  21. # If config_file is omitted, defaults to /etc/ppp/pppoe.conf
  22. #
  23. #***********************************************************************
  24. # From AUTOCONF
  25. prefix=/usr
  26. exec_prefix=/usr
  27. # Paths to programs
  28. CONNECT=/usr/sbin/adsl-connect
  29. ECHO=/bin/echo
  30. IFCONFIG=/sbin/ifconfig
  31. # Set to "C" locale so we can parse messages from commands
  32. LANG=C
  33. export LANG
  34. # Defaults
  35. CONFIG=/etc/ppp/pppoe.conf
  36. USER=""
  37. ETH=""
  38. ME=`basename $0`
  39. # Must be root
  40. if [ "`/bin/id -u`" != 0 ] ; then
  41.     $ECHO "$ME: You must be root to run this script" >& 2
  42.     exit 1
  43. fi
  44. # Debugging
  45. if [ "$DEBUG" = "1" ] ; then
  46.     $ECHO "*** Running in debug mode... please be patient..."
  47.     DEBUG=/tmp/pppoe-debug-$$
  48.     export DEBUG
  49.     mkdir $DEBUG
  50.     if [ "$?" != 0 ] ; then
  51. $ECHO "Could not create directory $DEBUG... exiting"
  52. exit 1
  53.     fi
  54.     DEBUG=$DEBUG/pppoe-debug.txt
  55.     # Initial debug output
  56.     $ECHO "---------------------------------------------" > $DEBUG
  57.     $ECHO "* The following section contains information about your system" >> $DEBUG
  58.     date >> $DEBUG
  59.     $ECHO "Output of uname -a" >> $DEBUG
  60.     uname -a >> $DEBUG
  61.     $ECHO "---------------------------------------------" >> $DEBUG
  62.     $ECHO "* The following section contains information about your network" >> $DEBUG
  63.     $ECHO "* interfaces.  The one you chose for PPPoE should contain the words:" >> $DEBUG
  64.     $ECHO "* 'UP' and 'RUNNING'.  If it does not, you probably have an Ethernet" >> $DEBUG
  65.     $ECHO "* driver problem." >> $DEBUG
  66.     $ECHO "Output of ifconfig -a" >> $DEBUG
  67.     $IFCONFIG -a >> $DEBUG
  68.     $ECHO "---------------------------------------------" >> $DEBUG
  69.     if [ "`uname -s`" = "Linux" ] ; then
  70.         $ECHO "* The following section contains information about kernel modules" >> $DEBUG
  71. $ECHO "* If the module for your Ethernet card is 'tulip', you might" >> $DEBUG
  72. $ECHO "* want to look for an updated version at http://www.scyld.com" >> $DEBUG
  73. $ECHO "Output of lsmod" >> $DEBUG
  74. lsmod >> $DEBUG
  75. $ECHO "---------------------------------------------" >> $DEBUG
  76.     fi
  77.     $ECHO "* The following section lists your routing table." >> $DEBUG
  78.     $ECHO "* If you have an entry which starts with '0.0.0.0', you probably" >> $DEBUG
  79.     $ECHO "* have defined a default route and gateway, and pppd will" >> $DEBUG
  80.     $ECHO "* not create a default route using your ISP.  Try getting" >> $DEBUG
  81.     $ECHO "* rid of this route." >> $DEBUG
  82.     $ECHO "Output of netstat -n -r" >> $DEBUG
  83.     netstat -n -r >> $DEBUG
  84.     $ECHO "---------------------------------------------" >> $DEBUG
  85.     $ECHO "Contents of /etc/resolv.conf" >> $DEBUG
  86.     $ECHO "* The following section lists DNS setup." >> $DEBUG
  87.     $ECHO "* If you can browse by IP address, but not name, suspect" >> $DEBUG
  88.     $ECHO "* a DNS problem." >> $DEBUG
  89.     cat /etc/resolv.conf >> $DEBUG
  90.     $ECHO "---------------------------------------------" >> $DEBUG
  91.     $ECHO "* The following section lists /etc/ppp/options." >> $DEBUG
  92.     $ECHO "* You should have NOTHING in that file." >> $DEBUG
  93.     $ECHO "Contents of /etc/ppp/options" >> $DEBUG
  94.     cat /etc/ppp/options >> $DEBUG 2>/dev/null
  95.     $ECHO "---------------------------------------------" >> $DEBUG
  96. else
  97.     DEBUG=""
  98. fi
  99. # Sort out command-line arguments
  100. case "$#" in
  101.     1)
  102. CONFIG="$1"
  103. ;;
  104.     3)
  105. CONFIG="$3"
  106. ;;
  107. esac
  108. if [ ! -f "$CONFIG" -o ! -r "$CONFIG" ] ; then
  109.     $ECHO "$ME: Cannot read configuration file '$CONFIG'" >& 2
  110.     exit 1
  111. fi
  112. . $CONFIG
  113. # Check for command-line overriding of ETH and USER
  114. case "$#" in
  115.     2|3)
  116. ETH="$1"
  117. USER="$2"
  118. ;;
  119. esac
  120. # Check for pidfile
  121. if [ -r "$PIDFILE" ] ; then
  122.     PID=`cat "$PIDFILE"`
  123.     # Check if still running
  124.     kill -0 $PID > /dev/null 2>&1
  125.     if [ $? = 0 ] ; then
  126. $ECHO "$ME: There already seems to be an ADSL connection up (PID $PID)" >& 2
  127. exit 1
  128.     fi
  129.     # Delete bogus PIDFILE
  130.     rm -f "$PIDFILE" "$PIDFILE.pppd" "$PIDFILE.pppoe" "$PIDFILE.start"
  131. fi
  132. echo $$ > $PIDFILE.start
  133. # Start the connection in the background unless we're debugging
  134. if [ "$DEBUG" != "" ] ; then
  135.     $CONNECT "$@"
  136.     exit 0
  137. fi
  138. $CONNECT "$@" > /dev/null 2>&1 &
  139. CONNECT_PID=$!
  140. if [ "$CONNECT_TIMEOUT" = "" -o "$CONNECT_TIMEOUT" = 0 ] ; then
  141.     exit 0
  142. fi
  143. # Don't monitor connection if dial-on-demand
  144. if [ "$DEMAND" != "" -a "$DEMAND" != "no" ] ; then
  145.     exit 0
  146. fi
  147. # Monitor connection
  148. TIME=0
  149. while [ true ] ; do
  150.     /usr/sbin/adsl-status $CONFIG > /dev/null 2>&1
  151.     # Looks like the interface came up
  152.     if [ $? = 0 ] ; then
  153. # Print newline if standard input is a TTY
  154. tty -s && $ECHO " Connected!"
  155. exit 0
  156.     fi
  157.     if test -n "$FORCEPING" ; then
  158. $ECHO -n "$FORCEPING"
  159.     else
  160. tty -s && $ECHO -n "$PING"
  161.     fi
  162.     sleep $CONNECT_POLL
  163.     TIME=`expr $TIME + $CONNECT_POLL`
  164.     if [ $TIME -gt $CONNECT_TIMEOUT ] ; then


 
Voilà le résultat de which expr

Code :
  1. which: no expr in (/usr//bin:/bin:/usr/bin::/usr/local/bin:/usr/X11R6/bin:/usr/games:/home/rivierea/bin)

 
 
voilà

n°253144
Aragorn_1e​r
Le jihad butlérian est proche
Posté le 22-04-2003 à 17:48:32  profilanswer
 

Hum .... biz que la commande expr ne soit pas sous mandrake ( j ai fait une recherche avec rpmfind mais g ai rien trouvé ) ...
 
Bah sinon configure ppp directeemnt de tout facon se script ne fait rien de +.
Et la configuration de ppp n'est pas tres compliquer .
 
Sinon je n'ai jamais parler de l'ip de ton modem mais de l'ip de la carte rezo reilié a ton modem...
Cette carte rezo la tu peux la deconfigurer ! ( ca enlevra peut etre tes pbs au boot )
 
A+

n°253148
Niala
Posté le 22-04-2003 à 18:00:54  profilanswer
 

Aragorn_1er a écrit :

Hum .... biz que la commande expr ne soit pas sous mandrake ( j ai fait une recherche avec rpmfind mais g ai rien trouvé ) ...
 
Bah sinon configure ppp directeemnt de tout facon se script ne fait rien de +.
Et la configuration de ppp n'est pas tres compliquer .
 
Sinon je n'ai jamais parler de l'ip de ton modem mais de l'ip de la carte rezo reilié a ton modem...
Cette carte rezo la tu peux la deconfigurer ! ( ca enlevra peut etre tes pbs au boot )
 
A+
 


 
vi je me suis mal exprimé pour l'ip du modem :d, c l'ip de la carte rézo comme tu dis. mais en fait je viens de looker et elle est configuré en DHCP g oublié que j'avais changé la config   :ange:  
pour la commande expr je comprends pas non plus, g recherché aussi un package mais trouve pas..  :cry:  
 
et pi j'vais cherché du coté de ppp mais bon j'aimerai bien que adsl-start correctement qd mm ;)

n°253206
Aragorn_1e​r
Le jihad butlérian est proche
Posté le 22-04-2003 à 20:44:17  profilanswer
 

Bah avec la conf de ppp tu tape, pon <tonprovider> et pi hop tu as ta connexion up ! plus bessoin de adsl-start ...
 
A+


Aller à :
Ajouter une réponse
  FORUM HardWare.fr
  Linux et OS Alternatifs
  réseaux et sécurité

  [mdk 9.1] Probleme réseau récurrent

 

Sujets relatifs
Problème : compilation de WineX (pour changer)probleme d installation de wine
[mdk9.1] Probleme de Num.Lock avec GDMprobleme driver nvidia 4349
[Kernel] Apic/I-o, scsi et reseau ![Mandrake] problème son sur carte isa [RESOLU] mais...
problème de cache avec mozillaLinux mandrake 9 : probleme de langue
probleme install WinXP[Mandrake 9.0] Problème bizarre de son....
Plus de sujets relatifs à : [mdk 9.1] Probleme réseau récurrent


Copyright © 1997-2022 Hardware.fr SARL (Signaler un contenu illicite / Données personnelles) / Groupe LDLC / Shop HFR