[dhcp ad-hoc] configuration dhcpcd en ad-hoc (résolu)

Applications, problèmes de configuration réseau
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

voila le ifconfig wlan0

Code : Tout sélectionner

ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 1C:4B:D6:69:D9:69  
          inet addr:10.42.43.1  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::1e4b:d6ff:fe69:d969/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16919 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8004 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9188878 (8.7 Mb)  TX bytes:1127939 (1.0 Mb)
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

voila le ifconfig wlan0

Code : Tout sélectionner

ifconfig wlan0
wlan0     Link encap:Ethernet  HWaddr 1C:4B:D6:69:D9:69  
          inet addr:10.42.43.1  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::1e4b:d6ff:fe69:d969/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:16919 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8004 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9188878 (8.7 Mb)  TX bytes:1127939 (1.0 Mb)
et le grep

Code : Tout sélectionner

grep 'dhcpd' /var/log/daemon.log
Mar  8 22:56:24 localhost dhcpd: Wrote 0 leases to leases file.
Mar  8 22:56:58 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:57:09 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:57:53 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:58:10 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e via wlan0
Mar  8 22:58:10 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:11:24 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:10 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:22 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:32 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:13:08 localhost dhcpd: DHCPINFORM from 10.42.43.22 via wlan0: not authoritative for subnet 10.42.43.0
Mar  8 23:13:08 localhost dhcpd: If this DHCP server is authoritative for that subnet,
Mar  8 23:13:08 localhost dhcpd: please write an `authoritative;' directive either in the
Mar  8 23:13:08 localhost dhcpd: subnet declaration or in some scope that encloses the
Mar  8 23:13:08 localhost dhcpd: subnet declaration - for example, write it at the top
Mar  8 23:13:08 localhost dhcpd: of the dhcpd.conf file.
Mar  8 23:13:08 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:14:01 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:14:01 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:26:30 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:26:30 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:27:10 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:27:10 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:51:17 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:51:35 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:53:19 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:00:37 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:00:44 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:01:57 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:03:21 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:03:31 localhost dhcpd: receive_packet failed on wlan0: Network is down
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

C'est bizarre, quand même; on voit dans les logs qu'il marche "un peu" :/

Ok, retourne dans /etc/dhcpd.conf:
- met 255.0.0.0 au lieu de 255.255.255.0 (pour le netmask)
- essaye de décommenter "authoritative"

puis relance ton script + /etc/rc.d/dhcpd start

EDIT: Je suis bête; ton serveur dhcp est déjà lancé, non ? c'est pour ca que le start FAIL. "pidof dhcpd" te renvoie quelquechose ? Si oui, "/etc/rc.d/dhcpd stop" puis recomence la procédure habituelle (script + start), et ca devrait marcher.
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

voila le resultat du script

Code : Tout sélectionner

:: Stopping wicd Daemon                        [DONE] 
dhcpcd: aucun processus trouvé
dhcpcd[4194]: version 5.2.11 starting
dhcpcd[4194]: eth0: rebinding lease of 172.16.33.246
dhcpcd[4194]: eth0: acknowledged 172.16.33.246 from 192.168.55.55 `belfort4'
dhcpcd[4194]: eth0: checking for 172.16.33.246
dhcpcd[4194]: eth0: leased 172.16.33.246 for 3600 seconds
dhcpcd[4194]: forked to background, child pid 4215
:: Starting DHCP Server                                                                                [FAIL] 
en decommentant authoritative; et en changeant le netmask

voila le grep

Code : Tout sélectionner

grep 'dhcpd' /var/log/daemon.l
Mar  8 22:56:24 localhost dhcpd: Wrote 0 leases to leases file.
Mar  8 22:56:58 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:57:09 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:57:53 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:58:10 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e via wlan0
Mar  8 22:58:10 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:11:24 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:10 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:22 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:32 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:13:08 localhost dhcpd: DHCPINFORM from 10.42.43.22 via wlan0: not authoritative for subnet 10.42.43.0
Mar  8 23:13:08 localhost dhcpd: If this DHCP server is authoritative for that subnet,
Mar  8 23:13:08 localhost dhcpd: please write an `authoritative;' directive either in the
Mar  8 23:13:08 localhost dhcpd: subnet declaration or in some scope that encloses the
Mar  8 23:13:08 localhost dhcpd: subnet declaration - for example, write it at the top
Mar  8 23:13:08 localhost dhcpd: of the dhcpd.conf file.
Mar  8 23:13:08 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:14:01 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:14:01 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:26:30 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:26:30 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:27:10 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:27:10 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:51:17 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:51:35 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:53:19 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:00:37 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:00:44 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:01:57 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:03:21 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:03:31 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:10:23 localhost dhcpd: Wrote 1 leases to leases file.
Mar  9 00:10:23 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  9 00:10:23 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  9 00:13:02 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:13:16 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:14:06 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:14:13 localhost dhcpd: receive_packet failed on wlan0: Network is down

et le ifconfig wlan0

Code : Tout sélectionner

wlan0     Link encap:Ethernet  HWaddr 1C:4B:D6:69:D9:69  
          inet addr:10.42.43.1  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::1e4b:d6ff:fe69:d969/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:17740 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8051 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9392052 (8.9 Mb)  TX bytes:1132161 (1.0 Mb)

Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

As-tu vu mon edit ?
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

oui je lai vu et jai tester meme en larretant et en le relancant ca ne marche pas

Edit: cela viendrai-t-il du ip forward qui nest pas a 1 ? il lest sur lautre pc mai pas sur celui la?
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

Etrange ...
Bon, tu ne devrais plus avoir besoin de relancer le script à chaque fois.

Concentrons nous sur le dhcpd:
Après un /etc/rc.d/dhcpd stop, est-ce que tu as toujours un résultat avec "pidof dhcpd" ?
Si oui, fais un kill sur chaque pid que pidof te renvoie

Ensuite, mettons une marque dans le deamon.log; par exemple

Code : Tout sélectionner

echo "-----------------------------" >> /var/log/daemon.log
Puis démarre le démon (pas besoin de relancer le script, donc)
et donne les logs qui sont après le "----------------------"


EDIT: Qu'est-ce que tu entends par "l'autre PC"; tu n'es pas sur la passerelle, là ?
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

bizarre ca necrit pas le --------> dans le daemon.log

Code : Tout sélectionner

grep 'dhcpd' /var/log/daemon.log
Mar  8 22:56:24 localhost dhcpd: Wrote 0 leases to leases file.
Mar  8 22:56:58 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:57:09 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:57:53 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 22:58:10 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e via wlan0
Mar  8 22:58:10 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:11:24 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:10 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:22 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:12:32 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:13:08 localhost dhcpd: DHCPINFORM from 10.42.43.22 via wlan0: not authoritative for subnet 10.42.43.0
Mar  8 23:13:08 localhost dhcpd: If this DHCP server is authoritative for that subnet,
Mar  8 23:13:08 localhost dhcpd: please write an `authoritative;' directive either in the
Mar  8 23:13:08 localhost dhcpd: subnet declaration or in some scope that encloses the
Mar  8 23:13:08 localhost dhcpd: subnet declaration - for example, write it at the top
Mar  8 23:13:08 localhost dhcpd: of the dhcpd.conf file.
Mar  8 23:13:08 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:14:01 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:14:01 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:26:30 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:26:30 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:27:10 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:27:10 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  8 23:51:17 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:51:35 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  8 23:53:19 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:00:37 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:00:44 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:01:57 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:03:21 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:03:31 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:10:23 localhost dhcpd: Wrote 1 leases to leases file.
Mar  9 00:10:23 localhost dhcpd: DHCPREQUEST for 10.42.43.22 from 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  9 00:10:23 localhost dhcpd: DHCPACK on 10.42.43.22 to 00:21:5d:69:28:9e (redox-PC) via wlan0
Mar  9 00:13:02 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:13:16 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:14:06 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:14:13 localhost dhcpd: receive_packet failed on wlan0: Network is down
Mar  9 00:17:34 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:17:34 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:17:34 localhost dhcpd:                                   ^
Mar  9 00:17:34 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:17:34 localhost dhcpd: 
Mar  9 00:17:34 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:17:34 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:17:34 localhost dhcpd: requesting help.
Mar  9 00:17:34 localhost dhcpd: 
Mar  9 00:17:34 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:17:34 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:17:34 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:17:34 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:17:34 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:17:34 localhost dhcpd: 
Mar  9 00:17:34 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:17:34 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:17:34 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:17:34 localhost dhcpd: the README file.
Mar  9 00:17:34 localhost dhcpd: 
Mar  9 00:17:34 localhost dhcpd: exiting.
Mar  9 00:17:53 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:17:53 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:17:53 localhost dhcpd:                                   ^
Mar  9 00:17:53 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:17:53 localhost dhcpd: 
Mar  9 00:17:53 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:17:53 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:17:53 localhost dhcpd: requesting help.
Mar  9 00:17:53 localhost dhcpd: 
Mar  9 00:17:53 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:17:53 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:17:53 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:17:53 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:17:53 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:17:53 localhost dhcpd: 
Mar  9 00:17:53 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:17:53 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:17:53 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:17:53 localhost dhcpd: the README file.
Mar  9 00:17:53 localhost dhcpd: 
Mar  9 00:17:53 localhost dhcpd: exiting.
Mar  9 00:18:31 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:18:31 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:18:31 localhost dhcpd:                                   ^
Mar  9 00:18:31 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:18:31 localhost dhcpd: 
Mar  9 00:18:31 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:18:31 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:18:31 localhost dhcpd: requesting help.
Mar  9 00:18:31 localhost dhcpd: 
Mar  9 00:18:31 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:18:31 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:18:31 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:18:31 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:18:31 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:18:31 localhost dhcpd: 
Mar  9 00:18:31 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:18:31 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:18:31 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:18:31 localhost dhcpd: the README file.
Mar  9 00:18:31 localhost dhcpd: 
Mar  9 00:18:31 localhost dhcpd: exiting.
Mar  9 00:19:12 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:19:12 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:19:12 localhost dhcpd:                                   ^
Mar  9 00:19:12 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:19:12 localhost dhcpd: 
Mar  9 00:19:12 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:19:12 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:19:12 localhost dhcpd: requesting help.
Mar  9 00:19:12 localhost dhcpd: 
Mar  9 00:19:12 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:19:12 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:19:12 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:19:12 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:19:12 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:19:12 localhost dhcpd: 
Mar  9 00:19:12 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:19:12 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:19:12 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:19:12 localhost dhcpd: the README file.
Mar  9 00:19:12 localhost dhcpd: 
Mar  9 00:19:12 localhost dhcpd: exiting.
Mar  9 00:23:23 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:23:23 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:23:23 localhost dhcpd:                                   ^
Mar  9 00:23:23 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:23:23 localhost dhcpd: 
Mar  9 00:23:23 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:23:23 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:23:23 localhost dhcpd: requesting help.
Mar  9 00:23:23 localhost dhcpd: 
Mar  9 00:23:23 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:23:23 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:23:23 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:23:23 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:23:23 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:23:23 localhost dhcpd: 
Mar  9 00:23:23 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:23:23 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:23:23 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:23:23 localhost dhcpd: the README file.
Mar  9 00:23:23 localhost dhcpd: 
Mar  9 00:23:23 localhost dhcpd: exiting.
Mar  9 00:27:48 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:27:48 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:27:48 localhost dhcpd:                                   ^
Mar  9 00:27:48 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:27:48 localhost dhcpd: 
Mar  9 00:27:48 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:27:48 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:27:48 localhost dhcpd: requesting help.
Mar  9 00:27:48 localhost dhcpd: 
Mar  9 00:27:48 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:27:48 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:27:48 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:27:48 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:27:48 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:27:48 localhost dhcpd: 
Mar  9 00:27:48 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:27:48 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:27:48 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:27:48 localhost dhcpd: the README file.
Mar  9 00:27:48 localhost dhcpd: 
Mar  9 00:27:48 localhost dhcpd: exiting.
Mar  9 00:29:43 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:29:43 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:29:43 localhost dhcpd:                                   ^
Mar  9 00:29:43 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:29:43 localhost dhcpd: 
Mar  9 00:29:43 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:29:43 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:29:43 localhost dhcpd: requesting help.
Mar  9 00:29:43 localhost dhcpd: 
Mar  9 00:29:43 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:29:43 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:29:43 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:29:43 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:29:43 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:29:43 localhost dhcpd: 
Mar  9 00:29:43 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:29:43 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:29:43 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:29:43 localhost dhcpd: the README file.
Mar  9 00:29:43 localhost dhcpd: 
Mar  9 00:29:43 localhost dhcpd: exiting.
Mar  9 00:31:52 localhost dhcpd: /etc/dhcpd.conf line 105: subnet 10.42.43.0 netmask 255.0.0.0: bad subnet number/mask combination.
Mar  9 00:31:52 localhost dhcpd: subnet 10.42.43.0 netmask 255.0.0.0 
Mar  9 00:31:52 localhost dhcpd:                                   ^
Mar  9 00:31:52 localhost dhcpd: Configuration file errors encountered -- exiting
Mar  9 00:31:52 localhost dhcpd: 
Mar  9 00:31:52 localhost dhcpd: If you did not get this software from ftp.isc.org, please
Mar  9 00:31:52 localhost dhcpd: get the latest from ftp.isc.org and install that before
Mar  9 00:31:52 localhost dhcpd: requesting help.
Mar  9 00:31:52 localhost dhcpd: 
Mar  9 00:31:52 localhost dhcpd: If you did get this software from ftp.isc.org and have not
Mar  9 00:31:52 localhost dhcpd: yet read the README, please read it before requesting help.
Mar  9 00:31:52 localhost dhcpd: If you intend to request help from the dhcp-server@isc.org
Mar  9 00:31:52 localhost dhcpd: mailing list, please read the section on the README about
Mar  9 00:31:52 localhost dhcpd: submitting bug reports and requests for help.
Mar  9 00:31:52 localhost dhcpd: 
Mar  9 00:31:52 localhost dhcpd: Please do not under any circumstances send requests for
Mar  9 00:31:52 localhost dhcpd: help directly to the authors of this software - please
Mar  9 00:31:52 localhost dhcpd: send them to the appropriate mailing list as described in
Mar  9 00:31:52 localhost dhcpd: the README file.
Mar  9 00:31:52 localhost dhcpd: 
Mar  9 00:31:52 localhost dhcpd: exiting.
EDIT: le pidof ne renvoie rien, il a renvoyer au debut mai vu que j'ai killer tout les processus c bon il renvoie plus rien


ben la je suis sur le netbook mais le serveur a la base je le fais sur le 15 pouces je me remet sur la passerelle de base le 15 pouces ..
Dernière modification par xyoos le mer. 09 mars 2011, 00:38, modifié 1 fois.
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

Ok, il y a du mieux; effectivement il faut modifier le réseau quand on modifie le masque (dans le dhcpd.conf).

Tout à l'heure c'était 10.42.43.0 netmask 255.255.255.0.
Maintenant, tu as 10.42.43.0 netmask 255.0.0.0.
Et il faut: 10.0.0.0 netmask 255.0.0.0.

Oubli de ma part, désolé (je fatigue).
Une fois le réseau modifié dans le dhcpd.conf, réessaie le start.

Edit: Ok mais a terme le serveur DHCP sera bien sur la passerelle ? et QUE sur la passerelle ?
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

oui oui a terme il ne sera que sur la passerelle, et bonne nouvelle j'ai changer en 10.0.0.0 et le serveur marche
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

Cool, j'étais loin de m'imaginer que ca nous prendrait 2 pages, mais c'est cool que ca finisse par fonctionner ! :)
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

Merci bien pour le temps passer pour m'aider, c'est vraiment gentil :)

EDIT: concretement le serveur DHCP est donc opérationnel pour distribuer les IP aux client ?
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

Ouaip
IP + Serveur de nom + route par défaut.
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

merci bcp bcp je test ca et je vous redis, c'est très gentil :)
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

Derien; fais bien attention à ne pas avoir les 2 serveurs DHCP qui tournent sur 2 machines du réseau.
(sur ce, je vais dormir ^^)
Si les cons savaient voler, il ferait nuit tout le temps ...
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

merci bcp je vous redis si tout marche bonne nuit! merci
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17596
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par benjarobin »

J'ai lu vite fait les posts, il ne faut surtout pas killer tous les dhcpd, en effet tu as besoin d'au moins un pour obtenir une ip de la box internet :D
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
Avatar de l’utilisateur
Abazigal
Chu Ko Nu
Messages : 313
Inscription : sam. 26 avr. 2008, 14:45
Localisation : Seine et Marne

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par Abazigal »

dhcpd ne demande d'IP à personne.
C'est dhcpcd qui fait ca.
Si les cons savaient voler, il ferait nuit tout le temps ...
Avatar de l’utilisateur
benjarobin
Maître du Kyudo
Messages : 17596
Inscription : sam. 30 mai 2009, 15:48
Localisation : Lyon

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par benjarobin »

oups :?
Zsh | KDE | PC fixe : AMD Ryzen 9900X, Radeon RX 7700 XT
Titre d'un sujet : [Thème] Sujet (état) / Règles du forum
xyoos
Hankyu
Messages : 49
Inscription : lun. 14 févr. 2011, 19:39

Re: [dhcp ad-hoc] configuration dhcpcd en ad-hoc (non résolu

Message par xyoos »

Tout marche très bien je suis content, ma passerelle est opérationnnel, chose que wicd n'arrivait pas a faire alors qu'il devrai... merci à vous
Répondre