|
|
|
|
||||||
| linux.debian.user debian-user@lists.debian.org. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On 26 Jul 2007 at 16:05, Clarence W. Robison wrote:
> I have an entry in my dhcp3 dhcpd.conf which says that host xyz with > certain MAC address should receive a fixed ip address. The server does > not respect that entry and gives the IP address to another host with a > different MAC address. I don't quite understand why it, dhcpd, should do > that. Is normal behavior? > OPPS, the message left before I could paste snippets of the conf file. ------------ dhcpd.conf ---------------------------------------------- # # Global Options pid-file-name "/var/run/dhcpd.pid"; lease-file-name "/var/lib/dhcp3/dhcpd.leases"; log-facility local1; ignore client-updates; ddns-update-style none; option domain-name-servers XXX.XXX.XXX.3, XXX.XXX.XXX.223; default-lease-time 3600; max-lease-time 14400; authoritative; subnet XXX.XXX.XXX.0 netmask 255.255.255.192 { # Default Options option routers XXX.XXX.XXX.1; option subnet-mask 255.255.255.192; option domain-name "XXXXXXXX.XXXXXX.XXX"; option time-offset -25200; # Mountain Standard Time option ntp-servers XXX.XXX.XXX.3, XXX.XXX.XXX.58; range dynamic-bootp XXX.XXX.XXX.22 XXX.XXX.XXX.60; host xxx { hardware ethernet 00:13:20:2d:31:d1; fixed-address XXX.XXX.XXX.22; } host yyy { hardware ethernet 00:03:47:f4:6b:8e; fixed-address XXX.XXX.XXX.23; } ........ snipped out 27 fixed-address blocks .......... host zzz { hardware ethernet 00:19:d1:05:ce:fd; fixed-address XXX.XXX.XXX.50; } } -------------------- endof conf ----------------------- The ip address which are not "fixed" in the conf file do not appear to be all in use when this happens. Any advice would be appreciated. TIA Clarence -- Clarence W. Robison, P.E. robison@kimberly.uidaho.edu 208-423-6610 ------- End of forwarded message --------- Clarence W. Robison, P.E. robison@kimberly.uidaho.edu 208-423-6610 |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Clarence W. Robison(robison@kimberly.uidaho.edu) is reported to have said:
Content-Description: Mail message body > On 26 Jul 2007 at 16:05, Clarence W. Robison wrote: > > > I have an entry in my dhcp3 dhcpd.conf which says that host xyz with > > certain MAC address should receive a fixed ip address. The server does > > not respect that entry and gives the IP address to another host with a > > different MAC address. I don't quite understand why it, dhcpd, should do > > that. Is normal behavior? > > > > OPPS, the message left before I could paste snippets of the conf file. > ------------ dhcpd.conf ---------------------------------------------- # # > Global Options pid-file-name "/var/run/dhcpd.pid"; lease-file-name > "/var/lib/dhcp3/dhcpd.leases"; log-facility local1; ignore client-updates; > ddns-update-style none; option domain-name-servers XXX.XXX.XXX.3, > XXX.XXX.XXX.223; default-lease-time 3600; max-lease-time > 14400; authoritative; subnet XXX.XXX.XXX.0 netmask > 255.255.255.192 { # Default Options > option routers XXX.XXX.XXX.1; > option subnet-mask 255.255.255.192; > option domain-name "XXXXXXXX.XXXXXX.XXX"; > option time-offset -25200; # Mountain Standard Time > option ntp-servers XXX.XXX.XXX.3, XXX.XXX.XXX.58; > > range dynamic-bootp XXX.XXX.XXX.22 XXX.XXX.XXX.60; > > host xxx { > hardware ethernet 00:13:20:2d:31:d1; > fixed-address XXX.XXX.XXX.22; > } > No expert here, but as mine works, and differs from your config I'll show ehat I had to do. in my /etc/dhcp3/dhcpd.conf (not the /etc/dhcpd.conf) I have host classy { hardware ethernet XX:XX:XX:XX:XX:XX; fixed-address 192.168.1.5; option host-name "classy.mtntop.home"; } HTH Wayne -- Warning, keyboard not found. Press Enter to continue. __________________________________________________ _____ -- To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
On Thu, Jul 26, 2007 at 04:18:39PM -0700, Clarence W. Robison wrote:
Content-Description: Mail message body > On 26 Jul 2007 at 16:05, Clarence W. Robison wrote: > > > I have an entry in my dhcp3 dhcpd.conf which says that host xyz with > > certain MAC address should receive a fixed ip address. The server does > > not respect that entry and gives the IP address to another host with a > > different MAC address. I don't quite understand why it, dhcpd, should do > > that. Is normal behavior? > > > > OPPS, the message left before I could paste snippets of the conf file. > ------------ dhcpd.conf ---------------------------------------------- # # > Global Options pid-file-name "/var/run/dhcpd.pid"; lease-file-name > "/var/lib/dhcp3/dhcpd.leases"; log-facility local1; ignore client-updates; > ddns-update-style none; option domain-name-servers XXX.XXX.XXX.3, > XXX.XXX.XXX.223; default-lease-time 3600; max-lease-time > 14400; authoritative; subnet XXX.XXX.XXX.0 netmask > 255.255.255.192 { # Default Options > option routers XXX.XXX.XXX.1; > option subnet-mask 255.255.255.192; > option domain-name "XXXXXXXX.XXXXXX.XXX"; > option time-offset -25200; # Mountain Standard Time > option ntp-servers XXX.XXX.XXX.3, XXX.XXX.XXX.58; > > range dynamic-bootp XXX.XXX.XXX.22 XXX.XXX.XXX.60; Here, you tell dhcpd it's OK to hand out 22 - 60 to non-matching hosts, so it does just that. Fixed address and range assigned addresses should not overlap. > host xxx { > hardware ethernet 00:13:20:2d:31:d1; > fixed-address XXX.XXX.XXX.22; > } -- Rob -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFGq3oDnvKppSZW8osRAhQQAJ0TZcArvntOSAEFPsVwdx kdfDSICACeM5mM hYQhz6dT6IR4H51BF8plwnw= =vzGh -----END PGP SIGNATURE----- |
|
![]() |
| Outils de la discussion | |
|
|