]> git.datanom.net - pve-dhcp-server.git/commitdiff
BNF for leases file and config file
authorMichael Rasmussen <mir@datanom.net>
Mon, 21 Jul 2014 23:28:19 +0000 (01:28 +0200)
committerMichael Rasmussen <mir@datanom.net>
Mon, 21 Jul 2014 23:28:19 +0000 (01:28 +0200)
dhcpd.cfg [new file with mode: 0644]
dhcpd.leases [new file with mode: 0644]

diff --git a/dhcpd.cfg b/dhcpd.cfg
new file mode 100644 (file)
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 (file)
index 0000000..a2d9ac5
--- /dev/null
@@ -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;
+}
+
This page took 0.032845 seconds and 5 git commands to generate.