Filtering by MAC address

Glenn Satchell glenn.satchell at uniq.com.au
Tue Feb 7 11:24:08 UTC 2012


Hi Olivier

This has been covered on the list in the past, but the general idea is 
to create a class that matches a substring of the cisco mac address. 
Then use two pools in each subnet: one allowed for the cisco devices, 
and one denying the cisco for everything else.

class "voip" {
   match substring(hardware, 0, 3);
}
subclass "cisco" aa:bb:cc;
# add more subclass lines if needed.

subnet ... {
   pool {
     range ...
     allow members of "cisco";
   }
   pool {
     range ...
     deny members of "cisco";
   }
}

regards,
-glenn

On 7/02/2012 9:34 PM, Olivier Nicole wrote:
> Hi,
>
> On my network, I want my DHCP server to give a public IP address to
> the computers and a private IP address to all the VoIP phones.
>
> The VoIP phones are all Cisco, so I can identify the by the vendor
> prefix of the MAC address.
>
> How to configure my DHCP server to give IP from one range is the MAC
> address is from Cisco and give IP from another range else?
>
> Best regards,
>
> Olivier
> _______________________________________________
> dhcp-users mailing list
> dhcp-users at lists.isc.org
> https://lists.isc.org/mailman/listinfo/dhcp-users




More information about the dhcp-users mailing list