17. marts 2009 - 18:44Der er
10 kommentarer og 1 løsning
DHCPD3 dhcpd.conf - tildeling af ip adresser til bestemte mac adresser
Jeg har en fungerne dhcpd server koerende. Mit problem er bare at jeg gerne ville tildele nogen bestemte maskiner den samme ip adresse altid uden at skulle saette en fast ip adresse op paa maskinen.
min config ser saadan her ud: ------------------------
problemet er bare at ingen af de to maskiner jeg har tastet mac adressen ind paa faar den ip. De bliver bare tildelt en fra "range 10.0.0.10 10.0.0.230;"
Nogen ide til hvordan jeg kan tvinge min dhcp server til "offer" de intastede ip adresser?
Og hvor vigtig er host <host>. Ville jo faktisk gerne have det saa den udelukkende kiggede paa mac adressen.
her er lige et lille output fra loggen. -------------------
Mar 17 18:45:20 h0 dhcpd: DHCPRELEASE of 10.0.0.34 from 00:1a:6b:ce:47:18 (Z13225) via eth1 (found) Mar 17 18:45:49 h0 dhcpd: DHCPDISCOVER from 00:1a:6b:ce:47:18 via eth1 Mar 17 18:45:50 h0 dhcpd: DHCPOFFER on 10.0.0.34 to 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 18:45:50 h0 dhcpd: DHCPREQUEST for 10.0.0.34 (10.0.0.1) from 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 18:45:50 h0 dhcpd: DHCPACK on 10.0.0.34 to 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 18:45:50 h0 dhcpd: DHCPREQUEST for 10.0.0.34 (10.0.0.1) from 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 18:45:50 h0 dhcpd: DHCPACK on 10.0.0.34 to 00:1a:6b:ce:47:18 (Z13225) via eth1
Nu brokker den sig ikke over: WARNING: Host declarations are global. They are not limited to the scope you declared them in. men det virker stadig ikke :/
Mar 17 19:17:33 h0 dhcpd: DHCPRELEASE of 10.0.0.34 from 00:1a:6b:ce:47:18 (Z13225) via eth1 (found) Mar 17 19:17:41 h0 dhcpd: DHCPDISCOVER from 00:1a:6b:ce:47:18 via eth1 Mar 17 19:17:42 h0 dhcpd: DHCPOFFER on 10.0.0.34 to 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 19:17:42 h0 dhcpd: DHCPREQUEST for 10.0.0.34 (10.0.0.1) from 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 19:17:42 h0 dhcpd: DHCPACK on 10.0.0.34 to 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 19:17:42 h0 dhcpd: DHCPREQUEST for 10.0.0.34 (10.0.0.1) from 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 19:17:42 h0 dhcpd: DHCPACK on 10.0.0.34 to 00:1a:6b:ce:47:18 (Z13225) via eth1 Mar 17 19:17:45 h0 dhcpd: DHCPINFORM from 10.0.0.34 via eth1: not authoritative for subnet 10.0.0.0 Mar 17 19:17:45 h0 dhcpd: DHCPINFORM from 10.0.0.34 via eth1: not authoritative for subnet 10.0.0.0 Mar 17 19:17:49 h0 dhcpd: DHCPINFORM from 10.0.0.34 via eth1: not authoritative for subnet 10.0.0.0
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.