From 2fadf44a158334cada39a8b81862e3b70316a159 Mon Sep 17 00:00:00 2001 From: Michael Rasmussen Date: Tue, 22 Jul 2014 01:28:19 +0200 Subject: [PATCH] BNF for leases file and config file --- dhcpd.cfg | 15 +++++++++++++++ dhcpd.leases | 29 +++++++++++++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 dhcpd.cfg create mode 100644 dhcpd.leases diff --git a/dhcpd.cfg b/dhcpd.cfg new file mode 100644 index 0000000..389436d --- /dev/null +++ b/dhcpd.cfg @@ -0,0 +1,15 @@ +# DHCP range ::= "network" IPN "{" options "}" NEWLINE +# IPN := ipv4_net | ipv6_net +# options ::= option ";" | suboption | options +# option ::= token " " value +# token ::= "range" | "ttl" | "rttl" | "router" | "dns servers" | "ntp servers" | "broadcast" | "netmask" +# value ::= us-ascii +# suboption ::= token "{" soptions "}" NEWLINE +# soptions ::= soption ";" | soptions +# soption ::= allow | static +# allow ::= "allow" " " allow-list +# allow-list ::= MAC | MAC "," allow-list +# static ::= "static" " " static-list +# static-list ::= MAC " " IP | MAC " " IP "," static-list + + diff --git a/dhcpd.leases b/dhcpd.leases new file mode 100644 index 0000000..a2d9ac5 --- /dev/null +++ b/dhcpd.leases @@ -0,0 +1,29 @@ +# lease ::= "lease" IP "{" options "}" NEWLINE +# IP ::= ipv4_addr | ipv6_addr +# options ::= option ";" | options +# option ::= token " " value +# token ::= "binding state" | "starts" | "ends" | "hardware ethernet" | "client-hostname" +# value ::= us-ascii + +lease 172.16.0.28 { + binding state active; + starts 2014/07/21 09:15:34; + hardware ethernet 8cfabab21168; + ends 2014/07/21 11:15:34; + client-hostname "iPad"; +} +lease 192.168.2.84 { + client-hostname "router"; + ends 2014/07/21 11:12:48; + starts 2014/07/21 09:12:48; + hardware ethernet 06d364fca6a5; + binding state active; +} +lease 172.16.0.20 { + client-hostname "Wii"; + ends 2014/07/21 10:11:32; + starts 2014/07/21 09:11:32; + hardware ethernet d86bf789796b; + binding state active; +} + -- 2.39.2