]>
Commit | Line | Data |
---|---|---|
1 | # DHCP range ::= "subnet" IPN "{" options "}" NEWLINE | |
2 | # IPN := ipv4_net " " ipv4_mask | ipv6_net " " ipv6_mask | |
3 | # options ::= option ";" | suboption | options | |
4 | # option ::= token " " value | |
5 | # token ::= "range" | "ttl" | "rttl" | "router" | "dns-servers" | "ntp-servers" | "broadcast" | "domain-name" | |
6 | # value ::= us-ascii | |
7 | # suboption ::= "{" NEWLINE soptions NEWLINE "}" NEWLINE | |
8 | # soptions ::= soption ";" | soptions | |
9 | # soption ::= allow | static | |
10 | # allow ::= "allow" " " allow-list | |
11 | # allow-list ::= MAC ";"| MAC "," allow-list | |
12 | # static ::= "static" " " static-list | |
13 | # static-list ::= MAC " " IP ";" | MAC " " IP "," static-list | |
14 | ||
15 | subnet 192.168.9.0 netmask 255.255.255.0 { | |
16 | range 192.168.9.2 192.168.9.100; | |
17 | ttl 7200; | |
18 | rttl 3600; | |
19 | router 192.168.9.254; | |
20 | dns-servers 192.168.2.201; | |
21 | ntp-servers 192.168.9.254; | |
22 | broadcast 192.168.9.255; | |
23 | domain-name "foo.bar"; | |
24 | { | |
25 | allow 001cc0c33317,001cc0c33318,001cc0c33319,001cc0c33320; | |
26 | static 001cc0c33317 192.168.9.100,001cc0c33318 192.168.9.200; | |
27 | } | |
28 | } | |
29 | subnet 192.168.8.0 netmask 255.255.255.0 { | |
30 | range 192.168.8.2 192.168.8.100; | |
31 | ttl 7200; | |
32 | rttl 3600; | |
33 | router 192.168.8.254; | |
34 | dns-servers 192.168.2.201; | |
35 | ntp-servers 192.168.8.254; | |
36 | broadcast 192.168.8.255; | |
37 | domain-name "foo.bar"; | |
38 | } | |
39 | ||
40 |