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

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

  [résolu] Pbl serveur DHCP sous RH9

 


 Mot :   Pseudo :  
 
Bas de page
Auteur Sujet :

[résolu] Pbl serveur DHCP sous RH9

n°501271
cvince
Posté le 11-06-2004 à 00:22:40  profilanswer
 

Bonsoir...
 
Je n'arrive pas à lancer mon serveur DHCP sous RH9, et je ne sais pas où se trouve mon erreur. Si quelqu'un pouvait me filer un peu... :)  
 
La configuration : j'ai deux cartes reseau, une en dhcp connectée à un modem ADSL, l'autre en IP fixe (192.168.0.1). Ce pc sert de FW et de passerelle au lan. Je souhaites monter un serveur DHCP sur ce lan uniquement.
 
Voici le résultat d'un ifconfig :

Code :
  1. eth0      Lien encap:Ethernet  HWaddr
  2.           inet adr:192.168.0.1  Bcast:192.168.0.255  Masque:255.255.255.0
  3.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  4.           RX packets:26575869 errors:0 dropped:0 overruns:0 frame:0
  5.           TX packets:21218426 errors:0 dropped:0 overruns:0 carrier:0
  6.           collisions:0 lg file transmission:100
  7.           RX bytes:1281925057 (1222.5 Mb)  TX bytes:2981877187 (2843.7 Mb)
  8.           Interruption:10 Adresse de base:0xe400
  9. eth1      Lien encap:Ethernet  HWaddr
  10.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  11.           RX packets:21832605 errors:422 dropped:0 overruns:0 frame:422
  12.           TX packets:26796844 errors:0 dropped:0 overruns:0 carrier:0
  13.           collisions:0 lg file transmission:100
  14.           RX bytes:3156315076 (3010.0 Mb)  TX bytes:1468415147 (1400.3 Mb)
  15.           Interruption:5 Adresse de base:0xe800
  16. lo        Lien encap:Boucle locale
  17.           inet adr:127.0.0.1  Masque:255.0.0.0
  18.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  19.           RX packets:3456 errors:0 dropped:0 overruns:0 frame:0
  20.           TX packets:3456 errors:0 dropped:0 overruns:0 carrier:0
  21.           collisions:0 lg file transmission:0
  22.           RX bytes:14987772 (14.2 Mb)  TX bytes:14987772 (14.2 Mb)
  23. ppp0      Lien encap:Protocole Point-Ã -Point
  24.           inet adr:XX.XX.XX.XX  P-t-P:192.168.254.254  Masque:255.255.255.255
  25.           UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
  26.           RX packets:105062 errors:0 dropped:0 overruns:0 frame:0
  27.           TX packets:91459 errors:0 dropped:0 overruns:0 carrier:0
  28.           collisions:0 lg file transmission:3
  29.           RX bytes:36305173 (34.6 Mb)  TX bytes:24082975 (22.9 Mb)


 
Le contenu du fichier /etc/dhcpd.conf :

Code :
  1. subnet 192.168.0.1 netmask 255.255.255.0 {
  2.     range 192.168.0.20 192.168.0.30;
  3.     option routers 192.168.0.1;
  4.      option domain-name-servers 192.168.0.1;
  5.     default-lease-time 604800;
  6.     max-lease-time 2592000;
  7.     option broadcast-address 192.168.0.255;
  8.   }


 
Le contenu du fichier /etc/sysconfig/dhcpd

Code :
  1. # Command line options here
  2. DHCPDARGS=eth0


 
L'erreur en question lorsque le lance le serveur # /sbin/service dhcpd start

Code :
  1. Démarrage de dhcpd : Internet Software Consortium DHCP Server V3.0pl1
  2. Copyright 1995-2001 Internet Software Consortium.
  3. All rights reserved.
  4. For info, please visit http://www.isc.org/products/DHCP
  5. /etc/dhcpd.conf line 1: subnet 192.168.0.1: bad subnet number/mask combination.
  6. subnet 192.168.0.1 netmask 255.255.255.0
  7.                                        ^
  8. Configuration file errors encountered -- exiting
  9. If you did not get this software from ftp.isc.org, please
  10. get the latest from ftp.isc.org and install that before
  11. requesting help.
  12. If you did get this software from ftp.isc.org and have not
  13. yet read the README, please read it before requesting help.
  14. If you intend to request help from the dhcp-server@isc.org
  15. mailing list, please read the section on the README about
  16. submitting bug reports and requests for help.
  17. Please do not under any circumstances send requests for
  18. help directly to the authors of this software - please
  19. send them to the appropriate mailing list as described in
  20. the README file.
  21. exiting.
  22.                                                            [ECHOUE]


 
Je ne comprends pas cette erreur... :(  
 
Merci d'avance.
CVince
 
Edit : mise en forme...


Message édité par cvince le 14-06-2004 à 22:59:14
mood
Publicité
Posté le 11-06-2004 à 00:22:40  profilanswer
 

n°501279
cvince
Posté le 11-06-2004 à 00:43:16  profilanswer
 

Bon, j'ai remplacer subnet 192.168.0.1 netmask 255.255.255.0 par subnet 192.168.0.0 netmask 255.255.255.0
 

Code :
  1. subnet 192.168.0.0 netmask 255.255.255.0 { 
  2.         range 192.168.0.20 192.168.0.30; 
  3.         option routers 192.168.0.1; 
  4.          option domain-name-servers 192.168.0.1; 
  5.         default-lease-time 604800; 
  6.         max-lease-time 2592000; 
  7.         option broadcast-address 192.168.0.255; 
  8.     }


 
Lorsque je lance dhcpd -d, je n'ai plus d'erreur, mais le serveur (avec la commande /sbin/service dhcpd start) ne se lance pas pour autant!!?? :heink:  

Code :
  1. Démarrage de dhcpd : Internet Software Consortium DHCP Server V3.0pl1
  2. Copyright 1995-2001 Internet Software Consortium.
  3. All rights reserved.
  4. For info, please visit http://www.isc.org/products/DHCP
  5. ** You must add a ddns-update-style statement to /etc/dhcpd.conf.
  6.    To get the same behaviour as in 3.0b2pl11 and previous
  7.    versions, add a line that says "ddns-update-style ad-hoc;"
  8.    Please read the dhcpd.conf manual page for more information. **
  9. If you did not get this software from ftp.isc.org, please
  10. get the latest from ftp.isc.org and install that before
  11. requesting help.
  12. If you did get this software from ftp.isc.org and have not
  13. yet read the README, please read it before requesting help.
  14. If you intend to request help from the dhcp-server@isc.org
  15. mailing list, please read the section on the README about
  16. submitting bug reports and requests for help.
  17. Please do not under any circumstances send requests for
  18. help directly to the authors of this software - please
  19. send them to the appropriate mailing list as described in
  20. the README file.
  21. exiting.
  22.                                                            [ECHOUE]


n°501281
blame
(fir) Ô_Ô
Posté le 11-06-2004 à 00:55:37  profilanswer
 

voici un extrait de mon fichier qui pourra peut etre t'aider. Je vois que tu ne precise pas de masque c'est surement important.

Code :
  1. # options de notre reseau
  2. subnet 192.168.1.0 netmask 255.255.255.0 {
  3.         # Options a delivrer au client
  4.         option routers                  192.168.1.1;
  5.         option subnet-mask              255.255.255.0;
  6.         option netbios-name-servers     192.168.1.1;
  7.         option domain-name              "reseau.local";
  8.         option domain-name-servers      192.168.1.1;
  9.         # Option regionales - fonctions standard
  10.         option time-offset              -18000; # Eastern Standard Time
  11.         # Plage d'adresse pour le demon
  12.         range dynamic-bootp             192.168.1.128 192.168.1.254;
  13.         # Temps de renouvellement par defaut et max
  14.         default-lease-time              21600;
  15.         max-lease-time                  43200;
  16. }


---------------
je garde toujours une balle pour moi ou pour mon enemi
n°501287
cvince
Posté le 11-06-2004 à 01:24:57  profilanswer
 

blame a écrit :

voici un extrait de mon fichier qui pourra peut etre t'aider. Je vois que tu ne precise pas de masque c'est surement important.


J'ai repris ton exmple en changeant les ip, mais le problème reste le même : le serveur ne démarre pas ! :cry:

n°501761
Siam
Posté le 11-06-2004 à 13:50:23  profilanswer
 

Tu dois rajouter une ligne du style "ddns-update-style ad-hoc;" au debut de ton fichier de conf.
A la place de ad-hoc, tu peux aussi avoir "interim" ou none.
 
man dhcpd.conf est ton ami.


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

  [résolu] Pbl serveur DHCP sous RH9

 

Sujets relatifs
[Résolu]MDK 10.0 CD4[Résolu] - Partager une imprimante
[Résolu]Encore un problème de sonrsync [resolu] nouveau probleme avec cron
[resolu] nfs à travers un firewall (pf -openbsd)Résolu : postfix s'éteint sans raison apparente
Enemyterritory et Team Speak probleme de son [Resolu]authentification impossible avec konqueror sur serveur IIS
[Résolu] - Montage ressource automatiqueMontage d'un lecteur réseau 2003 serveur avec samba impossible
Plus de sujets relatifs à : [résolu] Pbl serveur DHCP sous RH9


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