⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dhcrelay.8

📁 open source dhcp server client etc...
💻 8
字号:
.\"	dhcrelay.8.\".\" Copyright (c) 1997, 1998 The Internet Software Consortium..\" All rights reserved..\".\" 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.  To learn more about the Internet Software Consortium,.\" see ``http://www.isc.org/isc''.  To learn more about Vixie.\" Enterprises, see ``http://www.vix.com''..TH dhcrelay 8.SH NAMEdhcrelay - Dynamic Host Configuration Protocol Relay Agent.SH SYNOPSIS.B dhcrelay[.B -p.I port][.B -d][.B -q][.B -i.I if0[.B ....B -i.I ifN]][.B -a][.B -A.I length][.B -D][.B -m.I append|.I replace|.I forward|.I discard].I server0[.I ...serverN].SH DESCRIPTIONThe Internet Software Consortium DHCP Relay Agent, dhcrelay, provides ameans for relaying DHCP and BOOTP requests from a subnet to whichno DHCP server is directly connected to one or more DHCP servers on othersubnets..SH OPERATION.PPThe DHCP Relay Agent listens for DHCP and BOOTP queries and responses.When a query is received from a client, dhcrelay forwards it to thelist of DHCP servers specified on the command line.  When a reply isreceived from a server, it is broadcast or unicast (according to therelay agent's ability or the client's request) on the network fromwhich the original request came..SH COMMAND LINE.PPThe names of the network interfaces that dhcrelay should attempt toconfigure may be specified on the command line using the.B -ioption.  If no interface namesare specified on the command line dhcrelay will identify all networkinterfaces, elimininating non-broadcast interfaces if possible, andattempt to configure each interface..PPThe.B -iflag can be used to specify the network interfaces on which the relayagent should listen.   In general, it must listen not only on thosenetwork interfaces to which clients are attached, but also on thosenetwork interfaces to which the server (or the router that reaches theserver) is attached.   However, in some cases it may be necessary toexclude some networks; in this case, you must list all those networkinterfaces that should \fInot\fR be excluded using the \fB-i\fR flag..PPIn some cases it.I ishelpful for the relay agent to forward requests from networks on whicha DHCP server is running to other DHCP servers.   This would be thecase if two DHCP servers on different networks were being used toprovide backup service for each other's networks..PPIf dhcrelay should listen and transmit on a port other than thestandard (port 67), the.B -pflag may used.  It should be followed by the udp port number thatdhcrelay should use.  This is mostly useful for debugging purposes..PPDhcrelay will normally run in the foreground until it has configuredan interface, and then will revert to running in the background.To run force dhcrelay to always run as a foreground process, the.B -dflag should be specified.  This is useful when running dhcrelay undera debugger, or when running it out of inittab on System V systems..PPDhcrelay will normally print its network configuration on startup.This can be unhelpful in a system startup script - to disable thisbehaviour, specify the.B -qflag..SH RELAY AGENT INFORMATION OPTIONSIf the.B -aflag is set the relay agent will append an agent option field to eachrequest before forwarding it to the server.   Agent option fields inresponses sent from servers to clients will be stripped beforeforwarding such responses back to the client..PPThe agent option field will contain two agent options: the Circuit IDsuboption and the Agent ID suboption.  Currently, the Circuit ID willbe the printable name of the interface on which the client request wasreceived.   The Agent ID will be the value that the relay agent storesin the DHCP packet's giaddr field.   The client supports inclusion ofa Remote ID suboption as well, but this is not used by default..PP.I Note:The Agent ID suboption is not defined in the current Relay AgentInformation Option draft (draft-ietf-dhc-agent-options-03.txt), buthas been proposed for inclusion in the next draft..PPRelay Agent options are added to a DHCP packet without the knowledgeof the DHCP client.   The client may have filled the DHCP packetoption buffer completely, in which case there theoretically isn't anyspace to add Agent options.   However, the DHCP server may be able tohandle a much larger packet than most DHCP clients would send.   Thecurrent Agent Options draft requires that the relay agent use amaximum packet size of 576 bytes.   .PPIt is recommended that with the Internet Software Consortium DHCPserver, the maximum packet size be set to about 1400, allowing plentyof extra space in which the relay agent can put the agent optionfield, while still fitting into the Ethernet MTU size.  This can bedone by specifying the.B -Aflag, followed by the desired maximum packet size (e.g., 1400)..PPNote that this is reasonably safe to do even if the MTU between theserver and the client is less than 1500, as long as the hosts on whichthe server and client are running support IP fragmentation (and theyshould).  With some knowledge as to how large the agent options mightget in a particular configuration, this parameter can be tuned asfinely as necessary..PPIt is possible for a relay agent to receive a packet which alreadycontains an agent option field.  If this packet does not have a giaddrset, the standard requires that the packet be discarded..PPIf giaddr is set, the server may handle the situation in one of fourways: it may.I appendits own set of relay options to the packet, leaving thesupplied option field intact.   It may.I replacethe existing agent option field.It may.I forwardthe packet unchanged.   Or, it may.I discardit..PPWhich of these behaviours is followed by the Internet SoftwareConsortium DHCP Relay Agent may be configured with the.B -mflag, followed by one of the four keywords specified in.I italicsabove..PPWhen the relay agent receives a reply from a server that it's supposedto forward to a client, and Relay Agent Information option processingis enabled, the relay agent scans the packet for Relay AgentInformation options and removes them.   As it's scanning, if it findsa Relay Agent Information option field containing an Agent IDsuboption that matches one of its IP addresses, that option isrecognized as its own.   If no such option is found, the relay agentcan either drop the packet, or relay it anyway.   If the.B -Doption is specified, all packets that don't contain a match will bedropped..SH SPECIFYING DHCP SERVERSThe name or IP address of at least one DHCP server to which DHCP andBOOTP requests should be relayed must be specified on the commandline..SH SEE ALSOdhclient(8), dhcpd(8), RFC2132, RFC2131, draft-ietf-dhc-agent-options-03.txt..SH BUGSIt should be possible for the user to define the Circuit ID and RemoteID values on a per-interface basis..PPThe relay agent should not relay packets received on a physicalnetwork to DHCP servers on the same physical network - if they do, theserver will receive duplicate packets.   In order to fix this,however, the relay agent needs to be able to learn about the networktopology, which requires that it have a configuration file..SH AUTHOR.B dhcrelay(8)has been written for the Internet Software Consortiumby Ted Lemon in cooperation with VixieEnterprises.  To learn more about the Internet Software Consortium,see.B http://www.vix.com.To learn more about VixieEnterprises, see.B http://www.vix.com.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -