dhcp-options.5
来自「open source dhcp server client etc...」· 5 代码 · 共 1,358 行 · 第 1/3 页
5
1,358 行
.\" dhcp-options.5.\".\" Copyright (c) 1996-2001 Internet Software Consortium..\" Redistribution and use in source and binary forms, with or without.\" modification, are permitted provided that the following conditions.\" are met:.\".\" 1. Redistributions of source code must retain the above copyright.\" notice, this list of conditions and the following disclaimer..\" 2. Redistributions in binary form must reproduce the above copyright.\" notice, this list of conditions and the following disclaimer in the.\" documentation and/or other materials provided with the distribution..\" 3. Neither the name of The Internet Software Consortium nor the names.\" of its contributors may be used to endorse or promote products derived.\" from this software without specific prior written permission..\".\" THIS SOFTWARE IS PROVIDED BY THE INTERNET SOFTWARE CONSORTIUM AND.\" CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,.\" INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE.\" DISCLAIMED. IN NO EVENT SHALL THE INTERNET SOFTWARE CONSORTIUM OR.\" CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF.\" SUCH DAMAGE..\".\" This software has been written for the Internet Software Consortium.\" by Ted Lemon in cooperation with Vixie Enterprises and Nominum, Inc..\" To learn more about the Internet Software Consortium, see.\" ``http://www.isc.org/''. To learn more about Vixie Enterprises,.\" see ``http://www.vix.com''. To learn more about Nominum, Inc., see.\" ``http://www.nominum.com''..TH dhcpd-options 5.SH NAMEdhcp-options - Dynamic Host Configuration Protocol options.SH DESCRIPTIONThe Dynamic Host Configuration protocol allows the client to receive.B optionsfrom the DHCP server describing the network configuration and variousservices that are available on the network. When configuring.B dhcpd(8)or.B dhclient(8) ,options must often be declared. The syntax for declaring options,and the names and formats of the options that can be declared, aredocumented here..SH REFERENCE: OPTION STATEMENTS.PPDHCP \fIoption\fR statements always start with the \fIoption\fRkeyword, followed by an option name, followed by option data. Theoption names and data formats are described below. It is notnecessary to exhaustively specify all DHCP options - only thoseoptions which are needed by clients must be specified..PPOption data comes in a variety of formats, as defined below:.PPThe.B ip-addressdata type can be entered either as an explicit IPaddress (e.g., 239.254.197.10) or as a domain name (e.g.,haagen.isc.org). When entering a domain name, be sure that thatdomain name resolves to a single IP address..PPThe.B int32data type specifies a signed 32-bit integer. The .B uint32data type specifies an unsigned 32-bit integer. The .B int16and.B uint16data types specify signed and unsigned 16-bit integers. The .B int8and.B uint8data types specify signed and unsigned 8-bit integers.Unsigned 8-bit integers are also sometimes referred to as octets..PPThe.B textdata type specifies an NVT ASCII string, which must beenclosed in double quotes - for example, to specify a root-pathoption, the syntax would be.nf.sp 1option root-path "10.0.1.4:/var/tmp/rootfs";.fi.PPThe.B domain-namedata type specifies a domain name, which must notenclosed in double quotes. This data type is not used for anyexisting DHCP options. The domain name is stored just as if it werea text option..PPThe.B flagdata type specifies a boolean value. Booleans can be either true orfalse (or on or off, if that makes more sense to you)..PPThe.B stringdata type specifies either an NVT ASCII stringenclosed in double quotes, or a series of octets specified inhexadecimal, seperated by colons. For example:.nf.sp 1 option dhcp-client-identifier "CLIENT-FOO";or option dhcp-client-identifier 43:4c:49:45:54:2d:46:4f:4f;.fi.SH SETTING OPTION VALUES USING EXPRESSIONSSometimes it's helpful to be able to set the value of a DHCP optionbased on some value that the client has sent. To do this, you canuse expression evaluation. The .B dhcp-eval(5)manual page describes how to write expressions. To assign the resultof an evaluation to an option, define the option as follows:.nf.sp 1 \fBoption \fImy-option \fB= \fIexpression \fB;\fR.fi.PPFor example:.nf.sp 1 option hostname = binary-to-ascii (16, 8, "-", substring (hardware, 1, 6));.fi.SH STANDARD DHCP OPTIONSThe documentation for the various options mentioned below is takenfrom the latest IETF draft document on DHCP options. Options notlisted below may not yet be implemented, but it is possible to usesuch options by defining them in the configuration file. Please seethe DEFINING NEW OPTIONS heading later in this document for moreinformation..PPThe standard options are:.PP.B option \fBall-subnets-local\fR \fIflag\fR\fB;\fR.RS 0.25i.PPThis option specifies whether or not the client may assume that allsubnets of the IP network to which the client is connected use thesame MTU as the subnet of that network to which the client isdirectly connected. A value of true indicates that all subnets sharethe same MTU. A value of false means that the client should assume thatsome subnets of the directly connected network may have smaller MTUs..RE.PP.B option \fBarp-cache-timeout\fR \fIuint32\fR\fB;\fR.RS 0.25i.PPThis option specifies the timeout in seconds for ARP cache entries..RE.PP.B option \fBbootfile-name\fR \fItext\fR\fB;\fR.RS 0.25i.PPThis option is used to identify a bootstrap file. If supported by theclient, it should have the same effect as the \fBfilename\fRdeclaration. BOOTP clients are unlikely to support this option. SomeDHCP clients will support it, and others actually require it..RE.PP.B option \fBboot-size\fR \fIuint16\fR\fB;\fR.RS 0.25i.PPThis option specifies the length in 512-octet blocks of the defaultboot image for the client..RE.PP.B option \fBbroadcast-address\fR \fIip-address\fR\fB;\fR.RS 0.25i.PPThis option specifies the broadcast address in use on the client'ssubnet. Legal values for broadcast addresses are specified insection 3.2.1.3 of STD 3 (RFC1122)..RE.PP.B option \fBcookie-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe cookie server option specifies a list of RFC 865 cookieservers available to the client. Servers should be listed in orderof preference..RE.PP.B option \fBdefault-ip-ttl\fR \fIuint8;\fR.RS 0.25i.PPThis option specifies the default time-to-live that the client shoulduse on outgoing datagrams..RE.PP.B option \fBdefault-tcp-ttl\fR \fIuint8\fR\fB;\fR.RS 0.25i.PPThis option specifies the default TTL that the client should use whensending TCP segments. The minimum value is 1..RE.PP.B option \fBdhcp-client-identifier\fR \fIstring\fR\fB;\fR.RS 0.25i.PPThis option can be used to specify the a DHCP client identifier in ahost declaration, so that dhcpd can find the host record by matchingagainst the client identifier..PPPlease be aware that some DHCP clients, when configured with clientidentifiers that are ASCII text, will prepend a zero to the ASCIItext. So you may need to write:.nf option dhcp-client-identifier "\\0foo";rather than: option dhcp-client-identifier "foo";.fi.RE.PP.B option \fBdhcp-max-message-size\fR \fIuint16\fR\fB;\fR.RS 0.25i.PPThis option, when sent by the client, specifies the maximum size ofany response that the server sends to the client. When specified onthe server, if the client did not send a dhcp-max-message-size option,the size specified on the server is used. This works for BOOTP aswell as DHCP responses..RE.PP.B option \fBdhcp-parameter-request-list\fR \fIuint16\fR\fB;\fR.RS 0.25i.PPThis option, when sent by the client, specifies which options theclient wishes the server to return. Normally, in the ISC DHCPclient, this is done using the \fIrequest\fR statement. If thisoption is not specified by the client, the DHCP server will normallyreturn every option that is valid in scope and that fits into thereply. When this option is specified on the server, the serverreturns the specified options. This can be used to force a client totake options that it hasn't requested, and it can also be used totailor the response of the DHCP server for clients that may need amore limited set of options than those the server would normallyreturn..RE.PP.B option \fBdomain-name\fR \fItext\fR\fB;\fR.RS 0.25i.PPThis option specifies the domain name that client should use whenresolving hostnames via the Domain Name System..RE.PP.B option \fBdomain-name-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe domain-name-servers option specifies a list of Domain Name System(STD 13, RFC 1035) name servers available to the client. Serversshould be listed in order of preference..RE.PP.B option \fBextensions-path-name\fR \fItext\fR\fB;\fR.RS 0.25i.PPThis option specifies the name of a file containing additional optionsto be interpreted according to the DHCP option format as specified inRFC2132..RE.PP.B option \fBfinger-server\fR \fIip-address\fR [\fB,\fR\fIip-address\fR... ]\fB;\fR.RS 0.25i.PPThe Finger server option specifies a list of Finger available to theclient. Servers should be listed in order of preference..RE.PP.B option \fBfont-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThis option specifies a list of X Window System Font servers availableto the client. Servers should be listed in order of preference..RE.PP.B option \fBhost-name\fR \fIstring\fR\fB;\fR.RS 0.25i.PPThis option specifies the name of the client. The name may or maynot be qualified with the local domain name (it is preferable to usethe domain-name option to specify the domain name). See RFC 1035 forcharacter set restrictions..RE.PP.B option \fBieee802-3-encapsulation\fR \fIflag\fR\fB;\fR.RS 0.25i.PPThis option specifies whether or not the client should use EthernetVersion 2 (RFC 894) or IEEE 802.3 (RFC 1042) encapsulation if theinterface is an Ethernet. A value of false indicates that the clientshould use RFC 894 encapsulation. A value of true means that the clientshould use RFC 1042 encapsulation..RE.PP.B option \fBien116-name-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...];.RS 0.25i.PPThe ien116-name-servers option specifies a list of IEN 116 name serversavailable to the client. Servers should be listed in order ofpreference..RE.PP.B option \fBimpress-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe impress-server option specifies a list of Imagen Impress serversavailable to the client. Servers should be listed in order ofpreference..RE.PP.B option \fBinterface-mtu\fR \fIuint16\fR\fB;\fR.RS 0.25i.PPThis option specifies the MTU to use on this interface. The minimumlegal value for the MTU is 68..RE.PP.B option \fBip-forwarding\fR \fIflag\fR\fB;\fR.RS 0.25i.PPThis option specifies whether the client should configure its IPlayer for packet forwarding. A value of false means disable IPforwarding, and a value of true means enable IP forwarding..RE.PP.B option \fBirc-server\fR \fIip-address\fR [\fB,\fR\fIip-address\fR... ]\fB;\fR.RS 0.25i.PPThe IRC server option specifies a list of IRC available to theclient. Servers should be listed in order of preference..RE.PP.B option \fBlog-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe log-server option specifies a list of MIT-LCS UDP log serversavailable to the client. Servers should be listed in order ofpreference..RE.PP.B option \fBlpr-servers\fR \fIip-address \fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe LPR server option specifies a list of RFC 1179 line printerservers available to the client. Servers should be listed in orderof preference..RE.PP.B option \fBmask-supplier\fR \fIflag\fR\fB;\fR.RS 0.25i.PPThis option specifies whether or not the client should respond tosubnet mask requests using ICMP. A value of false indicates that theclient should not respond. A value of true means that the client shouldrespond..RE.PP.B option \fBmax-dgram-reassembly\fR \fIuint16\fR\fB;\fR.RS 0.25i.PPThis option specifies the maximum size datagram that the clientshould be prepared to reassemble. The minimum value legal value is576..RE.PP.B option \fBmerit-dump\fR \fItext\fR\fB;\fR.RS 0.25i.PPThis option specifies the path-name of a file to which the client'score image should be dumped in the event the client crashes. Thepath is formatted as a character string consisting of characters fromthe NVT ASCII character set..RE.PP.B option \fBmobile-ip-home-agent\fR \fIip-address\fR [\fB,\fR \fIip-address\fR... ]\fB;\fR.RS 0.25i.PPThis option specifies a list of IP addresses indicating mobile IPhome agents available to the client. Agents should be listed inorder of preference, although normally there will be only one suchagent..RE.PP.B option \fBnds-context\fR \fIstring\fR\fB;\fR.RS 0.25i.PPThe nds-context option specifies the name of the initial NetwareDirectory Service for an NDS client..RE.PP.B option \fBnds-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR... ]\fB;\fR.RS 0.25i.PPThe nds-servers option specifies a list of IP addresses of NDS servers..RE.PP.B option \fBnds-tree-name\fR \fIstring\fR\fB;\fR.RS 0.25i.PPThe nds-context option specifies NDS tree name that the NDS clientshould use..RE.PP.B option \fBnetbios-dd-server\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe NetBIOS datagram distribution server (NBDD) option specifies alist of RFC 1001/1002 NBDD servers listed in order of preference..RE.PP.B option \fBnetbios-name-servers\fR \fIip-address\fR [\fB,\fR \fIip-address\fR...]\fB;\fR.RS 0.25i.PPThe NetBIOS name server (NBNS) option specifies a list of RFC1001/1002 NBNS name servers listed in order of preference. NetBIOSName Service is currently more commonly referred to as WINS. WINSservers can be specified using the netbios-name-servers option..RE.PP.B option \fBnetbios-node-type\fR \fIuint8\fR\fB;\fR.RS 0.25i.PPThe NetBIOS node type option allows NetBIOS over TCP/IP clients whichare configurable to be configured as described in RFC 1001/1002. Thevalue is specified as a single octet which identifies the client type..PPPossible node types are:.PP.TP 5
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?