Probleme Connexion ADSL

Probleme Connexion ADSL - réseaux et sécurité - Linux et OS Alternatifs

Marsh Posté le 10-05-2003 à 22:40:49    

hé hé ca ne fonctionne pas :/
 
Bon j'ai deja une connexion adsl qui tourne sur unr RH (P100) depuis + de 1 an.
 
Je veux virer le P100 et me servier d'un P3 450 + debian SID.
Mais ca ne fonctionne pas :'(
 
J'utilise rp-pppoe.
 
mon systéme reconnait mes 2 cartes réseau  
 
 

Code :
  1. donald:/# ifconfig
  2. eth0      Link encap:Ethernet  HWaddr 00:90:27:9C:6B:6A 
  3.           inet addr:192.168.0.3  Bcast:192.168.0.255  Mask:255.255.255.0
  4.           inet6 addr: fe80::290:27ff:fe9c:6b6a/10 Scope:Link
  5.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  6.           RX packets:8924 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:3188 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:100
  9.           RX bytes:666606 (650.9 KiB)  TX bytes:470300 (459.2 KiB)
  10.           Interrupt:10
  11. eth1      Link encap:Ethernet  HWaddr 00:48:54:83:27:0C 
  12.           inet6 addr: fe80::248:54ff:fe83:270c/10 Scope:Link
  13.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  14.           RX packets:1065 errors:0 dropped:0 overruns:0 frame:0
  15.           TX packets:106 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:100
  17.           RX bytes:75465 (73.6 KiB)  TX bytes:6430 (6.2 KiB)
  18.           Interrupt:12 Base address:0x2000
  19. lo        Link encap:Local Loopback 
  20.           inet addr:127.0.0.1  Mask:255.0.0.0
  21.           inet6 addr: ::1/128 Scope:Host
  22.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  23.           RX packets:135 errors:0 dropped:0 overruns:0 frame:0
  24.           TX packets:135 errors:0 dropped:0 overruns:0 carrier:0
  25.           collisions:0 txqueuelen:0
  26.           RX bytes:12678 (12.3 KiB)  TX bytes:12678 (12.3 KiB)

 
 
voici ma table de routage :
 
 

Code :
  1. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  2. localnet        *               255.255.255.0   U     0      0        0 eth0
  3. default         donald          0.0.0.0         UG    0      0        0 eth0

 
 
A noter que j'arrive a recuperer une ip, mais apres je rien du tout, meme pas un ping (ip ou nom)
 
Merci de m'aider

Reply

Marsh Posté le 10-05-2003 à 22:40:49   

Reply

Marsh Posté le 10-05-2003 à 22:58:50    

Que nous dis syslog ?
 
A+

Reply

Marsh Posté le 10-05-2003 à 23:01:08    

quelle est ta config de rp-pppoe ?


Message édité par e-deby le 10-05-2003 à 23:01:15
Reply

Marsh Posté le 10-05-2003 à 23:06:58    

Code :
  1. May 10 22:32:23 donald pppd[843]: Connect: ppp0 <--> /dev/pts/0
  2. May 10 22:32:54 donald pppd[843]: LCP: timeout sending Config-Requests
  3. May 10 22:32:54 donald pppd[843]: Connection terminated.
  4. May 10 22:32:57 donald pppoe[1348]: Timeout waiting for PADO packets
  5. May 10 22:33:24 donald pppd[843]: Serial connection established.
  6. May 10 22:33:24 donald pppd[843]: Using interface ppp0

Reply

Marsh Posté le 10-05-2003 à 23:11:09    

pppoe.conf
 
 

Code :
  1. # Ethernet card connected to ADSL modem
  2. ETH='eth1'
  3. # ADSL user name.  You may have to supply "@provider.com"  Sympatico
  4. # users in Canada do need to include "@sympatico.ca"
  5. # Sympatico uses PAP authentication.  Make sure /etc/ppp/pap-secrets
  6. # contains the right username/password combination.
  7. # For Magma, use xxyyzz@magma.ca
  8. USER='fti_monlogin@fti'
  9. # Bring link up on demand?  Default is to leave link up all the time.
  10. # If you want the link to come up on demand, set DEMAND to a number indicating
  11. # the idle time after which the link is brought down.
  12. DEMAND=no
  13. #DEMAND=300
  14. # DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
  15. # NOCHANGE=do not adjust.
  16. DNSTYPE=SPECIFY
  17. # Obtain DNS server addresses from the peer (recent versions of pppd only)
  18. # In old config files, this used to be called USEPEERDNS.  Changed to
  19. # PEERDNS for better Red Hat compatibility
  20. PEERDNS=no
  21. DNS1=193.252.19.3
  22. DNS2=193.252.19.4
  23. # Make the PPPoE connection your default route.  Set to
  24. # DEFAULTROUTE=no if you don't want this.
  25. DEFAULTROUTE=no
  26. ### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
  27. # How long adsl-start waits for a new PPP interface to appear before
  28. # concluding something went wrong.  If you use 0, then adsl-start
  29. # exits immediately with a successful status and does not wait for the
  30. # link to come up.  Time is in seconds.
  31. #
  32. # WARNING WARNING WARNING:
  33. #
  34. # If you are using rp-pppoe on a physically-inaccessible host, set
  35. # CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
  36. # to connect forever after adsl-start is called.  Otherwise, it will
  37. # give out after CONNECT_TIMEOUT seconds and will not attempt to
  38. # connect again, making it impossible to reach.
  39. CONNECT_TIMEOUT=30
  40. # How often in seconds adsl-start polls to check if link is up
  41. CONNECT_POLL=2
  42. # Specific desired AC Name
  43. ACNAME=
  44. # Specific desired service name
  45. SERVICENAME=
  46. # Character to echo at each poll.  Use PING="" if you don't want
  47. # anything echoed
  48. PING="."
  49. # File where the adsl-connect script writes its process-ID.
  50. # Three files are actually used:
  51. #   $PIDFILE       contains PID of adsl-connect script
  52. #   $PIDFILE.pppoe contains PID of pppoe process
  53. #   $PIDFILE.pppd  contains PID of pppd process
  54. CF_BASE=`basename $CONFIG`
  55. PIDFILE="/var/run/$CF_BASE-adsl.pid"
  56. # Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
  57. # easier on CPU usage, but may not work for you.  It is safer to use
  58. # "no", but you may want to experiment with "yes".  "yes" is generally
  59. # safe on Linux machines with the n_hdlc line discipline; unsafe on others.
  60. SYNCHRONOUS=no
  61. # Do you want to clamp the MSS?  Here's how to decide:
  62. # - If you have only a SINGLE computer connected to the ADSL modem, choose
  63. #   "no".
  64. # - If you have a computer acting as a gateway for a LAN, choose "1412".
  65. #   The setting of 1412 is safe for either setup, but uses slightly more
  66. #   CPU power.
  67. CLAMPMSS=1412
  68. #CLAMPMSS=no
  69. # LCP echo interval and failure count.
  70. LCP_INTERVAL=20
  71. LCP_FAILURE=3
  72. # PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
  73. PPPOE_TIMEOUT=80
  74. # Firewalling: One of NONE, STANDALONE or MASQUERADE
  75. FIREWALL=NONE
  76. # Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
  77. # plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
  78. LINUX_PLUGIN=
  79. # Any extra arguments to pass to pppoe.  Normally, use a blank string
  80. # like this:
  81. PPPOE_EXTRA=""
  82. # Rumour has it that "Citizen's Communications" with a 3Com
  83. # HomeConnect ADSL Modem DualLink requires these extra options:
  84. # PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
  85. # Any extra arguments to pass to pppd.  Normally, use a blank string
  86. # like this:
  87. PPPD_EXTRA=""
  88. ########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
  89. # If you wish to COMPLETELY overrride the pppd invocation:
  90. # Example:
  91. # OVERRIDE_PPPD_COMMAND="pppd call dsl"
  92. # If you want adsl-connect to exit when connection drops:
  93. RETRY_ON_FAILURE=no

Reply

Marsh Posté le 10-05-2003 à 23:11:58    

et tu as quoi comme message d'erreur ?

Reply

Marsh Posté le 10-05-2003 à 23:14:31    

Code :
  1. May 10 22:38:29 donald pppd[843]: Serial connection established.
  2. May 10 22:38:29 donald pppd[843]: Using interface ppp0
  3. May 10 22:38:29 donald pppd[843]: Connect: ppp0 <--> /dev/pts/0
  4. May 10 22:39:00 donald pppd[843]: LCP: timeout sending Config-Requests
  5. May 10 22:39:00 donald pppd[843]: Connection terminated.

Reply

Marsh Posté le 10-05-2003 à 23:16:43    

j'ai bien reussi a me connecter pourtant
 
 

Code :
  1. May 10 21:55:48 donald pppd[214]: Remote message: CHAP authentication success, unit 593
  2. May 10 21:55:48 donald pppd[214]: local  IP address 81.50.245.180
  3. May 10 21:55:48 donald pppd[214]: remote IP address 81.50.245.1
  4. May 10 21:55:48 donald pppd[214]: primary   DNS address 193.252.19.3
  5. May 10 21:55:48 donald pppd[214]: secondary DNS address 193.252.19.4

Reply

Marsh Posté le 11-05-2003 à 11:36:24    

# Make the PPPoE connection your default route.  Set to
  # DEFAULTROUTE=no if you don't want this.
    DEFAULTROUTE=no
 
faudrait peut etre mettre ca a yes histoire que tu es la bonne route par defaut (soit ppp0 et l'ip associée)


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Marsh Posté le 11-05-2003 à 11:40:26    

Voila mon fichier
 
shadowland:/etc/ppp/peers# cat dsl-provider
 
# Configuration file for PPP, using PPP over Ethernet  
# to connect to a DSL provider.
#
# See the manual page pppd(8) for information on all the options.
 
##
# Section 1
#
# Stuff to configure...
 
# MUST CHANGE: Uncomment the following line, replacing the user@provider.net
# by the DSL user name given to your by your DSL provider.
# (There should be a matching entry in /etc/ppp/pap-secrets with the password.)
user pwet
 
# Use the pppoe program to send the ppp packets over the Ethernet link
# This line should work fine if this computer is the only one accessing
# the Internet through this DSL connection. This is the right line to use
# for most people.
pty "/usr/sbin/pppoe -I eth1 -T 80 -m 1452"
 
# If the computer connected to the Internet using pppoe is not being used
# by other computers as a gateway to the Internet, you can try the following
# line instead, for a small gain in speed:
#pty "pppoe -I eth1 -T 80"
 
# An even more conservative version of the previous line, if things
# don't work using -m 1452...  
#pty "pppoe -I eth1 -T 80 -m 1412"
 
 
# The following two options should work fine for most DSL users.
 
# Assumes that your IP address is allocated dynamically
# by your DSL provider...
noipdefault
# Comment out if you already have the correct default route installed
defaultroute
 
##
# Section 2
#
# Uncomment if your DSL provider charges by minute connected
# and you want to use demand-dialing.  
#
# Disconnect after 300 seconds (5 minutes) of idle time.
 
#demand
#idle 300
 
##
# Section 3
#
# You shouldn't need to change these options...
 
hide-password
lcp-echo-interval 20
lcp-echo-failure 3
# Override any connect script that may have been set in /etc/ppp/options.
connect /bin/true
noauth
persist
mtu 1492
maxfail 0
 
 
Mais visiblement, on ne doit pas utiliser la meme chose...
 
Tu l'as installé comment rp-pppoe ? Par apt-get install pppoe ?
 
Bonne méthode Debian :
 
apt-get install pppoe pppoeconf
 
lancé pppoconf et voila


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Marsh Posté le 11-05-2003 à 11:40:26   

Reply

Marsh Posté le 11-05-2003 à 13:57:54    

bon avec pppoe c'est pareil :'(
 
 

Code :
  1. May 11 13:49:12 donald pppd[7652]: pppd 2.4.1 started by root, uid 0
  2. May 11 13:49:12 donald pppd[7652]: Serial connection established.
  3. May 11 13:49:12 donald pppd[7652]: Using interface ppp0
  4. May 11 13:49:12 donald pppd[7652]: Connect: ppp0 <--> /dev/pts/0
  5. May 11 13:49:12 donald pppoe[7653]: PADS: Service-Name: ''
  6. May 11 13:49:12 donald pppoe[7653]: PPP session is 7683
  7. May 11 13:49:15 donald pppd[7652]: Remote message: CHAP authentication success, unit 1032
  8. May 11 13:49:15 donald pppd[7652]: not replacing existing default route to eth0 [192.168.0.3]
  9. May 11 13:49:15 donald pppd[7652]: Cannot determine ethernet address for proxy ARP
  10. May 11 13:49:15 donald pppd[7652]: local  IP address 81.50.245.117
  11. May 11 13:49:15 donald pppd[7652]: remote IP address 81.50.245.1
  12. May 11 13:49:15 donald pppd[7652]: primary   DNS address 193.252.19.3
  13. May 11 13:49:15 donald pppd[7652]: secondary DNS address 193.252.19.4

 
 
Je me connecte mais je n'arrive pas a sortir :'(
 
ma table route quand je suis conecté
 
 
 
 

Code :
  1. donald:/etc/ppp# route
  2. Kernel IP routing table
  3. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  4. 81.50.245.1     *               255.255.255.255 UH    0      0        0 ppp0
  5. localnet        *               255.255.255.0   U     0      0        0 eth0
  6. default         donald          0.0.0.0         UG    0      0        0 eth0

Reply

Marsh Posté le 11-05-2003 à 13:58:38    

je crois me souvenir de devoir ajouter une route mais je ne sais plus laquelle :'(
 
une idée ?

Reply

Marsh Posté le 11-05-2003 à 14:13:53    

j'ai oublié, tu sembles avoir deja une route par defaut et c'est mal car pppd ne sait pas la remplacer. Il faut que tu vires ta route par defaut, elle sera ajoutée automatiquement par pppd a la connexion;


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Marsh Posté le 11-05-2003 à 14:16:25    

je viens de trouver et ca fonctionne :)
 
 route del default gw `route -n|awk '$1=="0.0.0.0" {print $2}'|head -1`
route add default gw `ifconfig ppp0|grep "P-t-P"|awk '{print $3}'|cut -d ':' -f 2`
 
Je peu descendre le P100 a la cave, il m'aura bien rendu service depuis 1995   :D

Reply

Marsh Posté le 11-05-2003 à 14:40:29    

je ne vois pas trop pq tu as besoin d'un tel script mais bon, tant mieux si ca marche.
 
Regarde plutot dans /etc/network/interfaces si tu n'as pas une route par defaut de definie, vire la sio necessaire et laisse l'option defaultroute a yes dans ton fichier de pppoe


---------------
Two thousand years of misery, of torture in my name, hypocrisy made paramount, paranoia the law, my name is called religion, sadistic, sacred whore.
Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed