]> git.datanom.net - pve-dhcp-server.git/commitdiff
Fix BNF. Add example
authorMichael Rasmussen <mir@datanom.net>
Tue, 22 Jul 2014 00:05:16 +0000 (02:05 +0200)
committerMichael Rasmussen <mir@datanom.net>
Tue, 22 Jul 2014 00:05:16 +0000 (02:05 +0200)
dhcpd.cfg

index 389436df23e352c0e478f55aeb9578eddcee4537..90641b3974f9f0811362ef1a63a0ca9dc0903acc 100644 (file)
--- a/dhcpd.cfg
+++ b/dhcpd.cfg
@@ -1,15 +1,40 @@
-# DHCP range   ::= "network" IPN "{" options "}" NEWLINE
-# IPN                  := ipv4_net | ipv6_net
+# DHCP range   ::= "subnet" IPN "{" options "}" NEWLINE
+# IPN                  := ipv4_net " " ipv4_mask | ipv6_net " " ipv6_mask
 # options              ::= option ";" | suboption | options
 # option               ::= token " " value
 # options              ::= option ";" | suboption | options
 # option               ::= token " " value
-# token                        ::= "range" | "ttl" | "rttl" | "router" | "dns servers" | "ntp servers" | "broadcast" | "netmask"
+# token                        ::= "range" | "ttl" | "rttl" | "router" | "dns-servers" | "ntp-servers" | "broadcast" | "domain-name"
 # value                        ::= us-ascii
 # value                        ::= us-ascii
-# suboption            ::= token "{" soptions "}" NEWLINE
+# suboption            ::= "{" soptions "}" NEWLINE
 # soptions             ::= soption ";" | soptions
 # soption              ::= allow | static
 # allow                        ::=     "allow" " " allow-list
 # soptions             ::= soption ";" | soptions
 # soption              ::= allow | static
 # allow                        ::=     "allow" " " allow-list
-# allow-list   ::= MAC | MAC "," allow-list
+# allow-list   ::= MAC ";"| MAC "," allow-list
 # static               ::= "static" " " static-list
 # static               ::= "static" " " static-list
-# static-list  ::= MAC " " IP | MAC " " IP "," static-list
+# static-list  ::= MAC " " IP ";" | MAC " " IP "," static-list
+
+subnet 192.168.9.0 netmask 255.255.255.0 {
+       range 192.168.9.2 192.168.9.100;
+       ttl 7200;
+       rttl 3600;
+       router 192.168.9.254;
+       dns-servers 192.168.2.201;
+       ntp-servers 192.168.9.254;
+       broadcast 192.168.9.255;
+       domain-name "foo.bar";
+       {
+               allow 001cc0c33317,001cc0c33318,001cc0c33319,001cc0c33320;
+               static 001cc0c33317 192.168.9.100,001cc0c33318 192.168.9.200;
+       }
+}
+subnet 192.168.8.0 netmask 255.255.255.0 {
+       range 192.168.8.2 192.168.8.100;
+       ttl 7200;
+       rttl 3600;
+       router 192.168.8.254;
+       dns-servers 192.168.2.201;
+       ntp-servers 192.168.8.254;
+       broadcast 192.168.8.255;
+       domain-name "foo.bar";
+}
 
 
 
 
This page took 0.032767 seconds and 5 git commands to generate.