📄 opendhcpd.ini
字号:
#This file is required for custom settings#If not exists defaults are assumed.#Any entry starting with a punctuation character will be a comment#This file should be in the same folder where DualServer.exe file is.#You need to remove ' from begining of values and replace with your #own values below if you need change settings#IMPORTANT WARNING Never Edit this file usig Windows Editor[LISTEN_ON]#Specify the Interfaces you would like Server to listen#if you have more than one NIC card on your server#always specify which cards will listen DHCP/DNS requests#Requests from diffent Interfaces look for matching DHCP ranges.#Requests from relay agents look for matching range to relay agent IP.#upto 8 interfaces can be specified#Default is All Interfaces'192.168.0.1[LOGGING]#Logging will be done only if run as Service.#default is None#Logging "All" consumes little more resources.'None'Errors'All[REPLICATION_SERVERS]#You can have 2 DHCP Servers in a network.#This will send replication inform messages to other#server The IP address alloted by one server will not#be realotted by other server.You need to specify Primary#and secondary servers for replication to work.#make sure that Primary & Secondary#Server entries are identical on both servers.'Primary=192.168.99.254'Secondary=192.168.5.40[HTTP_INTERFACE]#Default is first interface, port 6789#You can change it here.#Only this server's alotted dynamic leases and static leases are displayed#Replicated dynamic leases (from Replicated server) are not diplayed.'192.168.0.1:6789#Clients can be alotted addresses in two ways, dynamically from#DHCP Range or statically. For static addresses,#client section needs to be created for each static client#against its MAC Address. BOOTP clients are always static.#The Policy for alloting dynamic address is:-#1)First Look for MacAddress in DHCP Client sections#2)If not found look for old expired/active address of same host#3)If not found, look if DNS has matching hostname entry and this IP is free# and falls in matching DHCP Range#4)If not,look at requested IP Address and it is free and it falls in matching DHCP range#5)If not, allot virgin IP Adress, if any available#6)If no virgin IP address exists, allot expired IP address of other host.#From 2) to 6), requests from diffent Interfaces look for matching DHCP ranges#of Interface IP and requests from relay agents look for matching range to relay agent IP.[DHCP_RANGE]#There can be multiple DHPC-RANGE sections.#You can specify one or more ranges in each [DHCP_RANGE]#section, in format specified. You can also add some#range specific options, which will override global options.#DHCP Server will alot addresses from these ranges.#Static Hosts and BootP clients do not need ranges.#do not specify [DHCP_RANGE] if all clients are static#Range or part of range falling within subnet of listening NIC#or relay agent IP will only be used to allot addresses.#You can copy more option names from [GLOBAL_OPTIONS]DHCP_Range=192.168.0.1-192.168.0.254'DHCP_Range=192.168.10.1-192.168.10.254'DHCP_Range=192.168.1.1-192.168.1.254'DHCP_Range=192.168.2.1-192.168.2.254#If Mac_Range is specified, this section's ranges#will only be available to hosts, whoes Mac Address#Falls in this range. Each Manufacturer has a fixed Mac Range.#If any host has matching Mac_Range in any DHCP_RANGE section#then sections without Mac_Range will not be available to it.#Same Mac range can repeat in many DHCP_RANGE sections.'Mac_Range=00:0d:60:c5:4e:00-00:0d:60:c5:4e:ff'Subnet_Mask=255.255.255.0'DNS_Server=10.5.6.90'DNS_Server=11.4.5.6'Router=11.5.6.7'Router=192.168.99.1'Domain_Name=mydomain.com#Lease_Time can be different for this range#specify 0 for infinity.Lease_Time'Lease_Time=360'Ethernet_Encp=1'NETBIOS_Name_Srv=192.168.0.201[DHCP_RANGE]#This is second DHCP range section example,#some options are diffrent for these ranges.#You can copy more options names from [GLOBAL_OPTIONS]'Mac_Range=00:0d:60:c5:4e:00-00:0d:60:c5:4e:ff'DHCP_Range=192.168.0.5-192.168.0.10'Subnet_Mask=255.255.255.0'DHCP_Range=192.168.4.1-192.168.4.254'DHCP_Range=192.168.5.1-192.168.5.254'DNS_Server=10.5.6.21'DNS_Server=11.4.5.61#Lease Time can be different for this Range'Lease_Time=11000'Domain_Name=hisdomain.com[GLOBAL_OPTIONS]#These are global DHCP Options and would suppliment#client specific options and DHCP_RANGE options.#Network Boot (PXE) global options can also be here.#if any option has more than one value, immediately#repeat option for each value (not valid for hex options)#You can specify missing options in hexformat as#optiontag=hexstring, like 233=4D:61:63:20:4E:43:20:23#options with suboptions can only be specified as hex.#If options have client specific values, move/copy them#to specific client's section. If any option has DHCP range#specific value, move/copy them to [DHCP_RANGE] sections.#Subnet_Mast if not specified, automatically calculated.'Subnet_Mask=255.255.0.0'Lease_Time=360000'Domain_Name=mydomain.com'DNS_Server=10.5.6.90'DNS_Server=11.4.5.6'Router=11.5.6.7'Boot_File=pxelinux.0'Boot_File_Size=255'Root_Path=/'Extension_Path=/linux/#Next_Server is PXEBoot TFTP Server'Next_Server=192.168.0.1'Time_Offset=0'Time_Server=0.0.0.0'Name_Server=0.0.0.0'Cookie_Server=0.0.0.0'Impress_Server=7.0.0.0'RLP_Server=0.0.0.0'Swap_Server=123.45.8.23'Log_Server=0.0.0.0'LPR_Server=2.0.0.0'LPR_Server=3.0.0.0'Forward_On/Off=1'SrcRte_On/Off=0#Needs both Entries for each policy filter, IP and mask'Policy_Filter_IP=123.5.6.78'Policy_Filter_Mask=255.255.255.240'Default_IP_TTL=0'MTU_Timeout=0'MTU_Plateau=89'MTU_Plateau=234'MTU_Interface=0'MTU_Subnet=0'Broadcast_Address=0.0.0.0'Mask_Discovery=1'Mask_Supplier=0.0.0.0'Router_Discovery=1'Router_Request=4.5.6.7#Needs both Entries for each static route IP and mask'Static_Route_IP=12.13.14.15'Static_Route_Mask=255.255.255.0'Trailers=0'LDAP_URL=ldap://chutial.com'ARP_Timeout=0'Ethernet_Encp=1'Default_TCP_TTL=0'Keepalive_Time=0'Keepalive_Data=0'NIS_Domain=not specified'NIS_Servers=0.0.0.0.0'NTP_Servers=0.0.0.0'NETBIOS_Name_Srv=192.168.0.201'NETBIOS_Dist_Srv=192.168.0.201'NETBIOS_Node_Type=8'NETBIOS_Scope=not specified'X_Window_Font=0.0.0.0'X_Window_Manager=6.7.8.9'Renewal_Time=120'Rebinding_Time=240'NIS+_Domain_Name=achal'NIS+_Server_Addr=22.33.44.55'TFTP_Server_Name=not specified'Home_Agent_Addrs=2.6.7.8'SMTP_Server=192.168.0.201'POP3_Server=192.168.0.201'NNTP_Server=0.0.0.0'WWW_Server=192.168.0.201'Finger_Server=0.0.0.0'IRC_Server=0.0.0.0'StreetTalk_Server=0.0.0.0'STDA_Server=0.0.0.0'NDS_Servers=0.0.0.0'NDS_Tree_Name=not specified'NDS_Context=not specified'Auto_Configure=1'Name_Service_Search=8686'Subnet_Selection=255.255.255.0'DNS_Domain_Search=not specified'TFTP_Phone_Server==0.0.0.0'Call_Server=0.0.0.0'Discrimination_String=not specified'RemoteStatisticsServer=0.0.0.0'Phone_Http_Proxy=127.0.0.7'IP_Phone=MCIPADD=10.10.0.1,MCPORT=1719,TFTPSRVR=10.10.0.254,TFTPDIR=,VLANTEST=0#next few are sample hex option, (global mac boot options)#option mac-version'230=00:00:00:00#option mac-nb-img'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#option mac-apps-img'235=ac:11:00:09:02:24:0a:4D:61:63:20:48:44:5F:4E:42:53:00:00:00:00:02:20:53:68:61:72:65:64:49:6D:61:67:65:73:00:41:70:70:6C:69:63:61:74:69:6F:6E:73:20:48:44:2E:69:6D:67#Following sections are client specific DHCP entries/options#You need to specify IP Adress only. Other options are optional.#More option Names can be copied from GLOBAL_OPTIONS to clients.#For BOOTP requests, only these options would be sent.#For DHCP requests. Missing Options will be supplimented from#first [DHCP_RANGE] options (if IP falls in any range), other Missing#options will be supplemented from [GLOBAL_OPTIONS].[00:ff:60:c5:4e:61:00]#This is a client with MAC addr 00:41:42:41:42:05IP_Addr=192.168.99.211#DHCP will offer following hostname to this clientHostName=TestHost#For example, you can specify DNS Servers, Routers separately for this client'DNS_Server=10.5.6.90'DNS_Server=11.4.5.6'Router=11.5.6.7'Router=4.6.7.34'NETBIOS_Node_Type=8#Lease_Time can be different for this client#Lease_Time here should be < Lease_Time given under [TIMINGS]#specify 0 for infinity.Lease_Time'Lease_Time=360000#For non BOOPT requests, Missing Options will be supplimented from first [DHCP_RANGE]#options (if IP falls in any range) and still missing would be added from [GLOBAL_OPTIONS].[00:41:42:41:42:00]#This is a client with MAC addr 00:41:42:41:42:00IP_Addr=192.168.0.200#No other options specified for this client#For non BOOPT requests, Missing Options will be supplimented from first [DHCP_RANGE]#options, If IP falls in any range. and other missing would be added from [GLOBAL_OPTIONS].[00:ff:a4:0e:ef:d5]#this is an example for MacOsX network boot, client specific options#for client having MAC addr 00:ff:a4:0e:ef:d5IP_Addr=10.10.0.12#you can omit the comments, these are for guidance only#Next Server (TFTP Boot Server) and Boot File can be different for this client'Boot_File=pxelinux.0'Boot_File_Size=255'Root_Path=/'Extension_Path=/linux/'Next_Server=192.168.0.1#option mac-nc-client-unknown'220=00:00:00:00#option mac-nc-client-id'221=4D:61:63:20:4E:43:20:23:38#option mac-username'232=61:63:68:61:6C#option mac-password'233=4D:61:63:20:4E:43:20:23:31:#option mac-machine-name'237=4D:61:63:20:4E:43:20:23:31#option mac-client-nb-img'238=ac:11:00:09:02:24:0a:4D:61:63:20:48:04:5F:4E:42:53:00:00:00:00:02:27:43:6C:69:65:6E:74:49:6D:61:67:65:73:00:4D:61:63:20:4E:43:20:23:31:0a:4E:65:74:42:6F:6F:74:20:48:44:2E:69:6D:67:5F:73
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -