From 3eb8e2ed69a8d348037d0adbce972f4beaf7e43d Mon Sep 17 00:00:00 2001 From: Emmanuel Blot Date: Tue, 14 Apr 2020 17:16:08 +0200 Subject: [PATCH] Document MAC mask syntax --- README.rst | 8 ++++++++ pybootd/etc/pybootd.ini | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index 8520dc0..09cc6e5 100644 --- a/README.rst +++ b/README.rst @@ -265,6 +265,12 @@ block. The value for each entry is a boolean, *i.e.*:: Note that due to a limitation of the configuration parser, ':' byte separator in MAC addresses is not allowed, please use '-' separator. +It is possible to use a mask syntax to specify a range of MACs addresses, for +example: + + AA-BB-CC/24 = enable + +Accepts all Ethernet addresses whose OUI is AA:BB:CC. ``[static_dhcp]`` section ......................... @@ -346,6 +352,8 @@ likely needed. Each entry is a MAC address, using the ``-`` byte separator, with a boolean value. +This section also accepts mask syntax, see ``[mac]`` section for details. + ``[tftpd]`` section ................... diff --git a/pybootd/etc/pybootd.ini b/pybootd/etc/pybootd.ini index 00b89e6..f57fdcc 100644 --- a/pybootd/etc/pybootd.ini +++ b/pybootd/etc/pybootd.ini @@ -32,11 +32,12 @@ default = pxelinux.0 [buggy_clients] ; list of stupid clients (mostly Intel's) that ignores valid subnet broadcast ; and require global DHCP offer broadcast -1C-69-7A-00-6F-4C = yes +1C-69-7A/24 = yes [mac] ; see doc: byte separator should be defined with dash, not column 00-AA-55-12-34-56 = enable +1C-69-7A/24 = enable [uuid] 12345678-abcd-ef00-1111-abcdefabcdef = enable