Advertisement
the-technoholik

ISC DHCP Server particular subnet for MAC address vendor

Jan 24th, 2015
380
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. class "plc" {
  2. # Devices with hardware vendor "00:13:c1" belong to the "plc" class.
  3. match if binary-to-ascii(16,8,":",substring(hardware, 1, 3)) = "00:13:c1";
  4. }
  5.  
  6. subnet 172.16.0.0 netmask 255.255.255.0 {
  7. # PLC devices will use IP addresses 172.16.0.49-55.
  8. pool {
  9. allow members of "plc";
  10. range 172.16.0.49 172.16.0.55;
  11. }
  12.  
  13. # All other devices will use IP addresses 172.16.0.193-254
  14. pool {
  15. deny members of "plc";
  16. range 172.16.0.193 172.16.0.254;
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement