Bonjour à tous, J'utilise dnsmasq sur mon petit réseau local, à la fois comme cache dns et comme serveur dhcp. J'aime bien la manière facile pour donner une ip fixe à une machine :
1) Renseigner son adresse mac dans /etc/ethers, et lui donner un nom. 2) Associer une adresse IP à ce nom dans /etc/hosts. Exemple : kunpuu|charles|$ cat /etc/ethers 00:11:24:2b:be:04 sorbet 00:0d:93:b4:98:8e sorbet-eth0 00:a0:cc:d6:23:fc lidl 00:07:40:FB:20:D7 kuro 00:0d:93:cd:af:f9 iceberg-wan kunpuu|charles|$ cat /etc/hosts 127.0.0.1 localhost.localdomain localhost kunpuu 192.168.0.1 kunpuu.igloo 193.168.0.2 sorbet-eth0.igloo sorbet-eth0 192.168.0.3 sorbet.igloo sorbet 192.168.0.4 kuro.igloo kuro 192.168.0.5 iceberg-wan.igloo iceberg-wan Le hic, c'est que ça ne marche qu'avec les machines qui ne tournent pas sous debian... Voici ce qui arrive quand j'active l'interface ethernet de mon mac sous debian : sorbet【~】$ sudo ifup eth0 Internet Software Consortium DHCP Client 2.0pl5 Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium. All rights reserved. Please contribute if you find this software useful. For info, please visit http://www.isc.org/dhcp-contrib.html sit0: unknown hardware address type 776 eth1: unknown hardware address type 24 sit0: unknown hardware address type 776 eth1: unknown hardware address type 24 Listening on LPF/eth0/00:0d:93:b4:98:8e Sending on LPF/eth0/00:0d:93:b4:98:8e Sending on Socket/fallback/fallback-net DHCPREQUEST on eth0 to 255.255.255.255 port 67 ip length 328 disagrees with bytes received 332. accepting packet with data after udp payload. DHCPACK from 192.168.0.1 bound to 192.168.0.62 -- renewal in 21600 seconds. Et voici ce qui dit dnsmasq sur mon serveur : Mar 4 13:25:07 kunpuu dnsmasq[2734]: not giving name sorbet-eth0.igloo to the DHCP lease of 192.168.0.62 because the name exists in /etc/hosts with address 193.168.0.2 Mar 4 13:25:07 kunpuu dnsmasq[2734]: not giving name sorbet-eth0 to the DHCP lease of 192.168.0.62 because the name exists in /etc/hosts with address 193.168.0.2 En attendant de comprendre, j'ai mis l'adresse IP en dur dans /etc/ethers, mais si quelqu'un a saisi l'origine du problème, je veux bien entendre la solution. -- Charles -- Pensez � lire la FAQ de la liste avant de poser une question : http://wiki.debian.net/?DebianFrench Pensez � rajouter le mot ``spam'' dans vos champs "From" et "Reply-To:" To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

