Find the answer to your Linux question:
Results 1 to 2 of 2
Hi there, I'm running a dhcp server on a debian. It is designed to only assign ip addresses to a list of known hosts. The config file looks like : ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2008
    Posts
    20

    Question How to ignore requests in dhcpd?


    Hi there,

    I'm running a dhcp server on a debian. It is designed to only assign ip addresses to a list of known hosts.
    The config file looks like :

    Code:
    log-facility local6;
    ignore unknown-clients;
    subnet 172.16.0.0 netmask 255.255.0.0 { }
    host 1 { hardware ethernet 00:03:2d:xx:xx:xx; fixed-address 172.16.101.151; }
    host 2 { hardware ethernet 00:03:2d:yy:yy:yy; fixed-address 172.16.102.151; }
    host 3 { hardware ethernet 00:03:2d:zz:zz:zz; fixed-address 172.16.103.151; }
    The problem is that the log file show thousands of requests from unknown hosts that I was hopping to drop.
    Code:
    Feb 12 17:54:33 debian dhcpd: DHCPDISCOVER from 00:0b:3b:xx:xx:xx via 172.16.106.2: network 172.16/16: no free leases
    Feb 12 17:54:33 debian dhcpd: DHCPDISCOVER from 00:04:a3:xx:xx:xx via 172.16.169.2: network 172.16/16: no free leases
    Feb 12 17:54:35 debian dhcpd: DHCPDISCOVER from 00:04:8b:xx:xx:xx via 172.16.158.2: network 172.16/16: no free leases
    Is there any way I can completely ignore the requests from unknown hosts (not even logging them)?

    Thanks for your help
    Santiago

  2. #2
    Linux Engineer
    Join Date
    Apr 2012
    Location
    Virginia, USA
    Posts
    883
    Put the hosts on a different subnet. Broadcasts are only for each subnet.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •