github.com/netdata/go.d.plugin@v0.58.1/modules/dnsmasq_dhcp/testdata/dnsmasq.conf (about)

     1  # Uncomment this to enable the integrated DHCP server, you need
     2  # to supply the range of addresses available for lease and optionally
     3  # a lease time. If you have more than one network, you will need to
     4  # repeat this for each network on which you want to supply DHCP
     5  # service.
     6  #dhcp-range=192.168.0.50,192.168.0.150,12h
     7  
     8  # This is an example of a DHCP range where the netmask is given. This
     9  # is needed for networks we reach the dnsmasq DHCP server via a relay
    10  # agent. If you don't know what a DHCP relay agent is, you probably
    11  # don't need to worry about this.
    12  #dhcp-range=192.168.0.50,192.168.0.150,255.255.255.0,12h
    13  
    14  # This is an example of a DHCP range which sets a tag, so that
    15  # some DHCP options may be set only for this network.
    16  #dhcp-range=set:red,192.168.0.50,192.168.0.150
    17  
    18  # Use this DHCP range only when the tag "green" is set.
    19  #dhcp-range=tag:green,192.168.0.50,192.168.0.150,12h
    20  
    21  # Specify a subnet which can't be used for dynamic address allocation,
    22  # is available for hosts with matching --dhcp-host lines. Note that
    23  # dhcp-host declarations will be ignored unless there is a dhcp-range
    24  # of some type for the subnet in question.
    25  # In this case the netmask is implied (it comes from the network
    26  # configuration on the machine running dnsmasq) it is possible to give
    27  # an explicit netmask instead.
    28  #dhcp-range=192.168.0.0,static
    29  
    30  # Enable DHCPv6. Note that the prefix-length does not need to be specified
    31  # and defaults to 64 if missing/
    32  #dhcp-range=1234::2, 1234::500, 64, 12h
    33  
    34  # Do Router Advertisements, BUT NOT DHCP for this subnet.
    35  #dhcp-range=1234::, ra-only
    36  
    37  # Do Router Advertisements, BUT NOT DHCP for this subnet, also try and
    38  # add names to the DNS for the IPv6 address of SLAAC-configured dual-stack
    39  # hosts. Use the DHCPv4 lease to derive the name, network segment and
    40  # MAC address and assume that the host will also have an
    41  # IPv6 address calculated using the SLAAC alogrithm.
    42  #dhcp-range=1234::, ra-names
    43  
    44  # Do Router Advertisements, BUT NOT DHCP for this subnet.
    45  # Set the lifetime to 46 hours. (Note: minimum lifetime is 2 hours.)
    46  #dhcp-range=1234::, ra-only, 48h
    47  
    48  # Do DHCP and Router Advertisements for this subnet. Set the A bit in the RA
    49  # so that clients can use SLAAC addresses as well as DHCP ones.
    50  #dhcp-range=1234::2, 1234::500, slaac
    51  
    52  # Do Router Advertisements and stateless DHCP for this subnet. Clients will
    53  # not get addresses from DHCP, but they will get other configuration information.
    54  # They will use SLAAC for addresses.
    55  #dhcp-range=1234::, ra-stateless
    56  
    57  # Do stateless DHCP, SLAAC, and generate DNS names for SLAAC addresses
    58  # from DHCPv4 leases.
    59  #dhcp-range=1234::, ra-stateless, ra-names
    60  
    61  dhcp-range=192.168.0.1,192.168.0.100,12h
    62  dhcp-range = 1230::1, 1230::64
    63  
    64  dhcp-range = 1235::2, 1235::500, ra-stateless
    65  dhcp-range=1234::, ra-stateless, ra-names
    66  dhcp-range=1234::, ra-stateless
    67  dhcp-range=1234::, ra-only, 48h
    68  
    69  dhcp-host=11:22:33:44:55:66,12:34:56:78:90:12,192.168.0.99
    70  dhcp-host=id:00:01:00:01:16:d2:83:fc:92:d4:19:e2:d8:b2, fred, [1230::63]
    71  
    72  conf-file=testdata/dnsmasq.conf
    73  conf-file=testdata/dnsmasq2.conf
    74  
    75  conf-dir=testdata/dnsmasq.d2
    76  conf-dir=testdata/dnsmasq.d3,.bak
    77  conf-dir=testdata/dnsmasq.d4,*.conf