"Fossies" - the Fresh Open Source Software Archive

Member "opendhcp/opendhcp.ini" (21 Jun 2021, 14093 Bytes) of package /linux/misc/opendhcpV1.80.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) INI source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "opendhcp.ini": V1.66_vs_V1.70.

    1 # This is configuration file, may need editing
    2 # Any line starting with a punctuation character will be a comment
    3 # You need to remove ' from begining of values and replace with your 
    4 # own values below if you need change settings.
    5 
    6 
    7 [LISTEN_ON]
    8 # Specify the Interfaces you would like Server to listen
    9 # if you have more than one NIC card on your server
   10 # always specify which cards will listen DHCP/DNS requests
   11 # Requests from diffent Interfaces look for matching DHCP ranges.
   12 # Requests from relay agents look for matching range to relay agent IP.
   13 # upto 125 interfaces can be specified
   14 # Default is All static Interfaces
   15 ;192.168.0.1
   16 
   17 
   18 [LOGGING]
   19 # LogLevel can be set as None, Errors or All
   20 # It is advisable to keep logging to Normal, Normal include errors 
   21 # and DHCP renewal messages. Normal is defaul logging also.
   22 ;LogLevel=None
   23 ;LogLevel=Normal
   24 ;LogLevel=All
   25 
   26 
   27 [REPLICATION_SERVERS]
   28 # You can have 2 instances of Open DHCP Servers in a network. Open DHCP Server
   29 # will send replication inform messages to other instance of Open DHCP
   30 # server and leases will be replicated. The IP address alloted by one server 
   31 # will not be realotted by other server to another host. Also when one server
   32 # goes down, other can will renew the leases, without NAK and DISCOVER. You need
   33 # to specify Primary and secondary servers for replication to work.
   34 # Make sure that Primary & Secondary Server entries are identical on both
   35 # servers. You may copy the entire ini file on both servers and change the 
   36 # LISTEN_ON on individual servers, if needed.
   37 ;Primary=192.168.0.253
   38 ;Secondary=192.168.0.254
   39 
   40 
   41 [HTTP_INTERFACE]
   42 # This is http inerface for viewing lease status,
   43 # Default is 127.0.0.1:6789
   44 # You can change it here to any network interface.
   45 ;HTTPServer=192.168.55.1:6789
   46 # Also to limit the clients access, you can specify upto 8
   47 # HTTP client IPs Here. If no Client IP is specified then All
   48 # Clients can access the HTTP Interface
   49 ;HTTPClient=192.168.0.11
   50 ;HTTPClient=192.168.23.123
   51 # You can also change the title of html page
   52 ;HTTPTitle=This is Custom Title
   53 
   54 
   55 # Sections below are other DHCP Sections. Clients can be alotted addresses in
   56 # two ways, dynamically from DHCP Range or statically. For static addresses,
   57 # client section needs to be created for each static client
   58 # against its MAC Address. BOOTP clients are allways static.
   59 # The DHCP Ranges are grouped into [RANGE_SET]s, so that range specific options
   60 # can be specified for a group of ranges at one place. The total ranges together
   61 # in all [RANGE_SET]s is also 125 and there can also be 125 [RANGE_SET]s max.
   62 # You can specify one or more ranges in each [RANGE_SET] section, in format
   63 # specified. Open DHCP Server will alot addresses from these ranges. Static Hosts
   64 # and BootP clients do not need ranges. No need to specify any [RANGE_SET]
   65 # or DHCP_Range if all clients are Static.
   66 
   67 # The Policy for alloting dynamic address is:-
   68 # 1)First Look if MacAddress is specified as Static DHCP Client and use that IP
   69 # 2)If not found look for old expired/active address of same host
   70 # 3)If not,look at requested IP Address and if it is free
   71 # 4)If not, allot virgin IP Adress, if any available
   72 # 5)If no virgin IP address exists, allot expired IP address of other host.
   73 # From 2) to 6), requests from diffent Interfaces look for matching DHCP ranges
   74 # of Interface IP and requests from relay agents look for matching range to 
   75 # relay agent IP.
   76 
   77 # All the ranges in a [RANGE_SET] section can be further restricted
   78 # by Filter_Mac_Range, Filter_Vender_Class and Filter_User_Class
   79 # If for example Mac Range is specified, then this section's ranges
   80 # will only be available to hosts, whoes Mac Address
   81 # Falls in this range. Also if any host has matching Filter_Mac_Range in
   82 # any DHCP_RANGE section then other DHCP Range sections 
   83 # without Filter_Mac_Range or not having matching Mac Range will
   84 # not be available to it. Each Manufacturer has a fixed Mac Range.
   85 # However Mac ranges can repeat in many DHCP_RANGE sections.
   86 # For Filter_Vendor_Class (option 60) and Filter_User_Class filter (option 77),
   87 # the range would only be available to matching value of Filter_Vender_Class
   88 # and Filter_User_Class sent in client request. If Filter_Vender_Class and 
   89 # Filter_User_Class do match in one or more ranges, other ranges with missing
   90 # or not matching values would not be available to such clients.
   91 # You can specify upto 32 Filter_Mac_Range, Filter_Vender_Class and
   92 # Filter_User_Class in each [RANGE_SET].
   93 
   94 # Generally you dont have to specify any filters for relay agent. The range is
   95 # automatically selected based on relay agent IP and range's subnetmask. Relay agent
   96 # always sends it's subnet side IP. This server would only use the DHCP Range, which
   97 # matches this IP. This would ensure that correct range is used. This feature
   98 # eliminate the need of additional configuration. For matching purpose, range is
   99 # recalculated using Subnet Mask of range and Relay Agent IP. However if you want 
  100 # to manually configure the subnet selection, you can use FilterSubnetSelection in
  101 # a RANGE_SET. If this fitler is specified it will be first matched with SubnetSelection
  102 # Option 118 sent by client. If client sends no such option, it will be matched
  103 # with relay Agent IP. If not relay agent IP is sent, Listening Interface's IP 
  104 # will be matched. You can also override the Target Relay Agent using TargetRelayAgent option.
  105 
  106 [RANGE_SET]
  107 # This is first and simple DHCP range section example,
  108 # This example may be good enough for simple/home use.
  109 # If you need range filters, look at example below
  110 DHCPRange=192.168.0.1-192.168.0.254
  111 ;DHCPRange=192.168.5.1-192.168.5.254
  112 # Following are range specific DHCP options.
  113 # You can copy more options names from [GLOBAL_OPTIONS]
  114 ;SubnetMask=255.255.255.0
  115 ;DomainServer=192.168.55.252
  116 #Router is default gateway
  117 ;Router=192.168.0.1
  118 # Lease Time can be different for this Range
  119 ;AddressTime=360
  120 
  121 [RANGE_SET]
  122 # This section is also simple [RANGE_SET] section
  123 # Here the options are specified as flat options.
  124 ;DHCPRange=192.168.0.1-192.168.0.254
  125 ;DHCPRange=192.168.4.1-192.168.4.254
  126 ;DHCPRange=192.168.5.1-192.168.5.254
  127 # Following are flat range specific DHCP options.
  128 # SubnetMask below
  129 ;1=255.255.255.0
  130 # DomainServers below
  131 ;6=192.168.0.1, 192.168.0.2
  132 #Router is default gateway
  133 ;3=192.168.0.1
  134 # AddressTime
  135 ;51=11000
  136 
  137 
  138 [RANGE_SET]
  139 # This is filtered [RANGE_SET] section.
  140 # First eight entries in this example are filters.
  141 # Currently only following types of filters are supported
  142 # However 32 filters of each type can be specified
  143 ;FilterMacRange=00:0d:60:c5:4e:00-00:0d:60:c5:4e:ff
  144 ;FilterMacRange=00:0e:12:c5:4e:00-00:0e:12:c5:4e:ff
  145 ;FilterMacRange=00:0f:60:c5:4e:a1-00:0f:60:c5:4e:a1
  146 ;FilterVendorClass="MSFT 5.0"
  147 ;FilterVendorClass="MSFT 5.1"
  148 ;FilterVendorClass="MSFT 5.2"
  149 ;FilterUserClass="My User Class 4.0"
  150 ;FilterUserClass=123,56,87,123,109,0,23,56,156,209,234,56
  151 ;FilterUserClass=00:0d:60:c5:4e:0d:60:c5:4e
  152 # You can select RANGE_SET based on FilterSubnetSelection
  153 ;FilterSubnetSelection=192.168.55.1
  154 ;FilterSubnetSelection=192.168.33.1
  155 #You can send DHCP Messages for this range to TargetRelayAgent
  156 ;TargetRelayAgent=192.168.44.11
  157 # Next few are actual ranges of this section.
  158 ;DHCPRange=10.0.0.5-10.0.0.10
  159 ;DHCPRange=10.0.10.1-10.0.10.254
  160 ;DHCPRange=10.0.1.1-10.0.1.254
  161 ;DHCPRange=10.0.2.1-10.0.2.254
  162 # Following are range specific DHCP options.
  163 # You can copy more option names from [GLOBAL_OPTIONS]
  164 # or add flat options like 240="this is the string value"
  165 # or as IP like 6=192.168.5.1
  166 # or byte array like 6=123,45,1,0,3,67,4,3,22,4,3,5
  167 # or hex array like 6=23:89:a5:ba:a9:e4
  168 ;SubnetMask=255.255.255.0
  169 ;DomainServer=10.5.6.90, 11.4.5.6
  170 #Router is default gateway
  171 ;Router=11.5.6.7, 10.0.99.1
  172 # AddressTime can be different for this range
  173 # specify 0 for infinity.AddressTime
  174 ;AddressTime=360
  175 ;Ethernet=no
  176 ;NETBIOSNameSrv=192.168.0.201
  177 # You can also use hex array or byte array with named options
  178 # If you want to send option 43 back to client for
  179 # ranges in this section, specify it as flat option like:-
  180 ;43="this is return string"
  181 # or use the byte array in value
  182 ;43=123,56,87,123,109,0,23,56,156,209,234,56
  183 # or use the hex array in value
  184 ;43=a6:87:b6:c9:ae:eb:89:09:a4:67:d5
  185 
  186 [GLOBAL_OPTIONS]
  187 # These are global DHCP Options and would supplement
  188 # client specific options and [RANGE_SET] options.
  189 # Options tags start with 1 and goes up to 254, you can
  190 # always specify option like 1=255.255.255.0, but it may
  191 # be difficult to remember option tags. Try using Option Names
  192 # If no matching name found, you can use tag=value (flat options)
  193 # You can also specify the value as byte array or even hex array.
  194 # Some options having sub-options can only be specified as hex/byte
  195 # array If options have client specific values, move/copy them
  196 # to specific Static Client's section. If any option has DHCP range
  197 # specific value, move/copy them to [RANGE_SET] sections.
  198 # You may quote stings values (must quote if sting contain chars
  199 # like comma, dot or colon) for example NDS_Tree_Name="my.NDS.Tree"
  200 # or 43="this is return string" or use the byte array in value
  201 # like 43=123,56,87,123,109,0,23,56,156,209,234,56 or use the hex
  202 # array in value 43=a6:87:b6:c9:ae:eb:89:09:a4:67:d5
  203 ;DomainName="workgroup.com"
  204 ;SubNetMask=255.255.255.0
  205 ;DomainServer=192.168.1.1, 192.168.1.2
  206 #Router is default gateway
  207 ;Router=192.168.1.1
  208 # AddressTime is default lease time for server
  209 # specify 0 for infinity lease time
  210 ;AddressTime=36000
  211 ;RenewalTime=0
  212 ;RebindingTime=0
  213 # NextServer is PXEBoot TFTP Server
  214 ;NextServer=192.168.0.1
  215 ;TimeOffset=3000
  216 ;TimeServer=192.168.0.1
  217 ;NameServer=192.168.0.1
  218 ;LogServer=192.168.0.1
  219 ;QuotesServer=192.168.0.1
  220 ;LPRServer=192.168.0.1
  221 ;ImpressServer=192.168.0.1
  222 ;RLPServer=192.168.0.1
  223 ;BootFileSize=2345
  224 ;SwapServer=192.168.0.1
  225 ;RootPath=/opt/boot/
  226 ;ExtensionFile=bootdir/files
  227 ;ForwardOn/Off=yes
  228 ;SrcRteOn/Off=yes
  229 ;PolicyFilter=192.168.34.1/255.255.255.240
  230 ;DefaultIPTTL=234
  231 ;MTUTimeout=3453
  232 ;MTUPlateau=ac:c0:12:09:02:24:0a:4D:61:63:20:48:44:5F:4E:42:53
  233 ;MTUInterface=23553
  234 ;MTUSubnet=yes
  235 ;BroadcastAddress=192.168.0.255
  236 ;MaskDiscovery=yes
  237 ;MaskSupplier=yes
  238 ;RouterDiscovery=yes
  239 ;RouterRequest=192.168.67.1
  240 ;StaticRoute=192.168.11.1/255.255.255.0, 192.168.12.1/255.255.255.0
  241 ;Trailers=yes
  242 ;ARPTimeout=3453
  243 ;Ethernet=yes
  244 ;DefaultTCPTTL=21
  245 ;KeepaliveTime=120
  246 ;KeepaliveData=yes
  247 ;NISDomain=my.nis.domain
  248 ;NISServers=192.168.110.1, 192.168.120.1, 192.168.130.1
  249 ;NTPServers=192.168.116.1, 192.168.126.1, 192.168.136.1
  250 ;NETBIOSNameSrv=192.168.5.1
  251 ;NETBIOSDistSrv=192.168.5.1
  252 ;NETBIOSNodeType=8
  253 ;NETBIOSScope=NETBIOS.COM
  254 ;XWindowFont=192.168.0.1
  255 ;XWindowManager=192.168.0.1
  256 ;NetwareIPDomain=NETWAREDOMAIN.COM
  257 ;NetWareIPOption=123,7,0,45,234,20,27,167,198,34,112,45
  258 ;NISDomainName=NISDOMAINNAME.COM
  259 ;NISServerAddr=192.168.0.1
  260 ;TFTPServerName=MyTFTPServer
  261 ;BootFileName=BootFileName.ini
  262 ;BootFileOption=BootFileOption.ini
  263 ;HomeAgentAddrs=192.168.0.1
  264 ;SMTPServer=192.168.0.1
  265 ;POP3Server=192.168.0.1
  266 ;NNTPServer=192.168.0.1
  267 ;WWWServer=192.168.0.1
  268 ;FingerServer=192.168.0.1
  269 ;IRCServer=192.168.0.1
  270 ;StreetTalkServer=192.168.0.1
  271 ;STDAServer=192.168.0.1
  272 ;NDSServers=192.168.0.1
  273 ;NDSTreeName="myNDSTree"
  274 ;NDSContext=NewContext
  275 ;LDAP="ldap://192.168.1.1"
  276 ;AutoConfig=yes
  277 ;NameServiceSearch=23,0,235,4,2,0,236,7,94,34,87,4,127,254,23
  278 ;SubnetSelectionOption=255.255.255.240
  279 # Option TFTPServerIPaddress is for phone use only, for PXEBoot use NextServer option
  280 ;TFTPServerIPaddress=192.168.4.1
  281 ;CallServerIPaddress=192.168.0.1
  282 ;DiscriminationString=""
  283 ;RemoteStatisticsServerIPAddress=192.168.50.1
  284 ;HTTPProxyPhone=192.168.51.1
  285 ;IPTelephone="MCIPADD=10.10.0.1,MCPORT=1719,TFTPSRVR=10.10.0.254,TFTPDIR=,VLANTEST=0"
  286 # next few are sample flat option, (global mac boot options)
  287 # option mac-version
  288 ;230=00:00:00:00
  289 # option mac-nb-img
  290 ;234=ac:11:00:09:02:24:0a:4D:61:63:20:48:44:5F:4E:42:53:00:00:00:0:02:1b:53:68:61:72:65:64:49:6D:61:67:65:73:00:4E:65:74:42:6F:6F:74:20:48:44:2E:69:6D:67
  291 # option mac-apps-img
  292 ;235="\opt\isv\boot\bootimage.bin"
  293 
  294 
  295 # Following sections are Static Client DHCP entries/options
  296 # If no IP is given, then that host will never be allotted any IP
  297 # More option Names can be copied from DHCP-OPTIONS to clients.
  298 # For BOOTP requests, only these options would be sent.
  299 # For DHCP requests. Missing Options will be supplimented from
  300 # first [DHCP-RANGE] options (if IP falls in any range), other
  301 # options will be supplemented from [DHCP-OPTIONS].
  302 
  303 
  304 [00:41:42:41:42:00]
  305 # This is a client with MAC addr 00:41:42:41:42:00
  306 IP=192.168.0.200
  307 # No other options specified for this client
  308 # For non BOOPT requests, Missing Options will be supplemented from first [RANGE_SET]
  309 # options, if IP falls in any range. and other missing would be added from [GLOBAL_OPTIONS].
  310 
  311 [00:41:42:41:42:05]
  312 # This is a client with MAC addr 00:41:42:41:42:05
  313 IP=192.168.0.211
  314 # DHCP will offer following hostname to this client
  315 ;HostName=TestHost
  316 # For example, you can specify DNS Servers, Routers separately for this client
  317 ;DomainServer=10.5.6.90, 11.4.5.6
  318 ;Router=11.5.6.7, 4.6.7.34
  319 ;NETBIOSNodeType=8
  320 # AddressTime can be different for this client
  321 # specify 0 for infinity.AddressTime
  322 ;AddressTime=36000
  323 
  324 [00:ff:a4:0e:ef:d5]
  325 # this is an example for MacOsX network boot, client specific options
  326 # for client having MAC addr 00:ff:a4:0e:ef:d5
  327 IP=10.10.0.12
  328 # you can omit the comments, these are for guidance only
  329 # Next Server (TFTP Boot Server) and Boot File can be different for this client
  330 ;BootFileName=pxelinux.0
  331 ;BootFileSize=255
  332 ;RootPath="/"
  333 ;ExtensionFile="/linux/"
  334 ;NextServer=192.168.0.1
  335 # option mac-nc-client-unknown
  336 ;220=00:00:00:00
  337 # option mac-nc-client-id
  338 ;221=4D:61:63:20:4E:43:20:23:38
  339 # option mac-username
  340 ;232="bootuser"
  341 # option mac-password
  342 ;233="bootpassword"
  343 # option mac-machine-name
  344 ;237=myComputer
  345 # option mac-client-nb-img
  346 ;238="\opt\isv\boot\image.bin"
  347 
  348 [00:ff:a4:0e:ef:99]
  349 [ff:00:27:78:7b:01]
  350 [ff:00:27:78:7b:02]
  351 [ff:00:27:78:7b:03]
  352 # Above hosts has no IP specified
  353 # Above hosts will never get an
  354 # IP, even from Dynamic Ranges
  355 # You can disable some hosts from
  356 # Getting an IP from this Server.
  357 # using this kind of entries
  358 
  359