Another bit of dhcp configuring. This ti ... / 2011-02-11

2011-02-11 Another bit of dhcp configuring. This ti ...
Another bit of dhcp configuring. This time not to deny an entire subset of ethernet addresses such as the previous case of denying DHCP to an entire vendor range but this time to one specific ethernet address. Config snippets:
class "rogue-clients" {
    match hardware;
}

# rogue clients. Match hardware including type 1 (ethernet)
# internet connection sharing + v6 probleem
subclass "rogue-clients" 1:00:00:00:xx:aa:bb;

subnet .. {
    pool {
        range ..;

        deny members of "rogue-clients";
    }
}
and the DHCPNAK and 'no free leases' messages show up as wished.

The correct notation of a 'hardware' class in dhcpd got me again on the first try: you need to include the hardware type (1 for Ethernet).

Sources: Deny DHCP Address by MAC Address? (with the WRONG notation for hardware + mac address and Problem using subclasses, getting no free leases with the right notation.

Tags: , ,

IPv6 check

Running test...
, reachable as koos+website@idefix.net. PGP encrypted e-mail preferred. PGP key 5BA9 368B E6F3 34E4 local copy PGP key 5BA9 368B E6F3 34E4 via keyservers

RSS
Meningen zijn die van mezelf, wat ik schrijf is beschermd door auteursrecht. Sommige publicaties bevatten een expliciete vermelding dat ze ongevraagd gedeeld mogen worden.
My opinions are my own, what I write is protected by copyrights. Some publications contain an explicit license statement which allows sharing without asking permission.
Other webprojects: Camp Wireless, wireless Internet access at campsites, The Virtual Bookcase, book reviews
This page generated by $Id: newsitem.cgi,v 1.57 2022/02/15 21:48:18 koos Exp $ in 0.006625 seconds.