1997-02-22 10:19:20 +00:00
|
|
|
.\" dhcrelay.8
|
|
|
|
.\"
|
2009-11-24 02:06:57 +00:00
|
|
|
.\" Copyright (c) 2004,2007,2009 by Internet Systems Consortium, Inc. ("ISC")
|
2005-03-17 20:15:29 +00:00
|
|
|
.\" Copyright (c) 1997-2003 by Internet Software Consortium
|
1997-02-22 10:19:20 +00:00
|
|
|
.\"
|
2005-03-17 20:15:29 +00:00
|
|
|
.\" Permission to use, copy, modify, and distribute this software for any
|
|
|
|
.\" purpose with or without fee is hereby granted, provided that the above
|
|
|
|
.\" copyright notice and this permission notice appear in all copies.
|
1997-02-22 10:19:20 +00:00
|
|
|
.\"
|
2005-03-17 20:15:29 +00:00
|
|
|
.\" THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES
|
|
|
|
.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR
|
|
|
|
.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
|
|
|
|
.\" OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
1997-02-22 10:19:20 +00:00
|
|
|
.\"
|
2005-03-17 20:15:29 +00:00
|
|
|
.\" Internet Systems Consortium, Inc.
|
|
|
|
.\" 950 Charter Street
|
|
|
|
.\" Redwood City, CA 94063
|
|
|
|
.\" <info@isc.org>
|
2009-07-23 18:52:21 +00:00
|
|
|
.\" https://www.isc.org/
|
1997-02-22 10:19:20 +00:00
|
|
|
.\"
|
2005-03-17 20:15:29 +00:00
|
|
|
.\" This software has been written for Internet Systems Consortium
|
2002-06-09 23:01:03 +00:00
|
|
|
.\" by Ted Lemon in cooperation with Vixie
|
2005-03-17 20:15:29 +00:00
|
|
|
.\" Enterprises. To learn more about Internet Systems Consortium,
|
2009-07-23 18:52:21 +00:00
|
|
|
.\" see ``https://www.isc.org/''. To learn more about Vixie
|
1997-02-22 10:19:20 +00:00
|
|
|
.\" Enterprises, see ``http://www.vix.com''.
|
2002-05-27 03:54:47 +00:00
|
|
|
.\"
|
2009-11-24 02:06:57 +00:00
|
|
|
.\" $Id: dhcrelay.8,v 1.17 2009/11/24 02:06:57 sar Exp $
|
2002-05-27 03:54:47 +00:00
|
|
|
.\"
|
1997-02-22 10:19:20 +00:00
|
|
|
.TH dhcrelay 8
|
|
|
|
.SH NAME
|
1997-10-29 18:35:50 +00:00
|
|
|
dhcrelay - Dynamic Host Configuration Protocol Relay Agent
|
1997-02-22 10:19:20 +00:00
|
|
|
.SH SYNOPSIS
|
|
|
|
.B dhcrelay
|
|
|
|
[
|
2008-06-13 00:55:53 +00:00
|
|
|
.B -4
|
1997-02-22 10:19:20 +00:00
|
|
|
]
|
|
|
|
[
|
2008-06-13 00:55:53 +00:00
|
|
|
.B -dqaD
|
1997-02-22 10:19:20 +00:00
|
|
|
]
|
|
|
|
[
|
2008-06-13 00:55:53 +00:00
|
|
|
.B -p
|
|
|
|
.I port
|
1998-11-06 00:15:17 +00:00
|
|
|
]
|
|
|
|
[
|
2005-03-17 20:15:29 +00:00
|
|
|
.B -c
|
|
|
|
.I count
|
|
|
|
]
|
|
|
|
[
|
1998-11-06 00:15:17 +00:00
|
|
|
.B -A
|
|
|
|
.I length
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -m
|
|
|
|
.I append
|
|
|
|
|
|
|
|
|
.I replace
|
|
|
|
|
|
|
|
|
.I forward
|
|
|
|
|
|
|
|
|
.I discard
|
|
|
|
]
|
2008-06-13 00:55:53 +00:00
|
|
|
[
|
|
|
|
.B -i
|
|
|
|
.I interface0
|
|
|
|
[
|
|
|
|
.B ...
|
|
|
|
.B -i
|
|
|
|
.I interfaceN
|
|
|
|
]
|
|
|
|
]
|
1997-02-22 10:19:20 +00:00
|
|
|
.I server0
|
|
|
|
[
|
|
|
|
.I ...serverN
|
|
|
|
]
|
2008-06-13 00:55:53 +00:00
|
|
|
.PP
|
|
|
|
.B dhcrelay -6
|
|
|
|
[
|
|
|
|
.B -dqI
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -p
|
|
|
|
.I port
|
|
|
|
]
|
|
|
|
[
|
|
|
|
.B -c
|
|
|
|
.I count
|
|
|
|
]
|
|
|
|
.B -l
|
|
|
|
.I lower0
|
|
|
|
[
|
|
|
|
.B ...
|
|
|
|
.B -l
|
|
|
|
.I lowerN
|
|
|
|
]
|
|
|
|
.B -u
|
|
|
|
.I upper0
|
|
|
|
[
|
|
|
|
.B ...
|
|
|
|
.B -u
|
|
|
|
.I upperN
|
|
|
|
]
|
1997-02-22 10:19:20 +00:00
|
|
|
.SH DESCRIPTION
|
2005-03-17 20:15:29 +00:00
|
|
|
The Internet Systems Consortium DHCP Relay Agent, dhcrelay, provides a
|
1997-02-22 10:19:20 +00:00
|
|
|
means for relaying DHCP and BOOTP requests from a subnet to which
|
2008-06-13 00:55:53 +00:00
|
|
|
no DHCP server is directly connected to one or more DHCP servers on
|
|
|
|
other subnets. It supports both DHCPv4/BOOTP and DHCPv6 protocols.
|
1997-02-22 10:19:20 +00:00
|
|
|
.SH OPERATION
|
|
|
|
.PP
|
2008-06-13 00:55:53 +00:00
|
|
|
The DHCP Relay Agent listens for DHCPv4 or DHCPv6 queries from clients or
|
|
|
|
other relay agents on one or more interfaces, passing them along to
|
|
|
|
``upstream'' servers or relay agents as specified on the command line.
|
|
|
|
When a reply is received from upstream, it is multicast or unicast back
|
|
|
|
downstream to the source of the original request.
|
1997-02-22 10:19:20 +00:00
|
|
|
.SH COMMAND LINE
|
|
|
|
.PP
|
2008-06-13 00:55:53 +00:00
|
|
|
\fIProtocol selection options:\fR
|
|
|
|
.TP
|
|
|
|
-6
|
|
|
|
Run dhcrelay as a DHCPv6 relay agent. Incompatible with the \fB-4\fR
|
2005-03-17 20:15:29 +00:00
|
|
|
option.
|
2008-06-13 00:55:53 +00:00
|
|
|
.TP
|
|
|
|
-4
|
|
|
|
Run dhcrelay as a DHCPv4/BOOTP relay agent. This is the default mode of
|
|
|
|
operation, so the argument is not necessary, but may be specified for
|
|
|
|
clarity. Incompatible with \fB-6\fR.
|
|
|
|
.PP
|
|
|
|
\fISpecifying DHCPv4/BOOTP servers\fR
|
|
|
|
.PP
|
|
|
|
In DHCPv4 mode, a list of one or more server addresses must be specified on
|
|
|
|
the command line, to which DHCP/BOOTP queries should be relayed.
|
|
|
|
.PP
|
|
|
|
\fIOptions available for both DHCPv4 and DHCPv6:\fR
|
|
|
|
.TP
|
|
|
|
-c COUNT
|
|
|
|
Maximum hop count. When forwarding packets, dhcrelay discards packets
|
|
|
|
which have reached a hop count of COUNT. Default is 10. Maximum is 255.
|
|
|
|
.TP
|
|
|
|
-d
|
|
|
|
Force dhcrelay to run as a foreground process. Useful when running
|
|
|
|
dhcrelay under a debugger, or running out of inittab on System V systems.
|
|
|
|
.TP
|
|
|
|
-p PORT
|
|
|
|
Listen and transmit on port PORT. This is mostly useful for debugging
|
|
|
|
purposes. Default is port 67 for DHCPv4/BOOTP, or port 547 for DHCPv6.
|
|
|
|
.TP
|
|
|
|
-q
|
|
|
|
Quiet mode. Prevents dhcrelay6 from printing its network configuration
|
|
|
|
on startup.
|
|
|
|
.PP
|
|
|
|
\fIOptions available in DHCPv4 mode only:\fR
|
|
|
|
.TP
|
|
|
|
-a
|
|
|
|
Append an agent option field to each request before forwarding it to
|
|
|
|
the server. Agent option fields in responses sent from servers to
|
|
|
|
clients will be stripped before forwarding such responses back to the
|
|
|
|
client. The agent option field will contain two agent options: the Circuit
|
|
|
|
ID suboption and the Remote ID suboption. Currently, the Circuit ID will
|
|
|
|
be the printable name of the interface on which the client request was
|
|
|
|
received. The client supports inclusion of a Remote ID suboption as well,
|
|
|
|
but this is not used by default.
|
|
|
|
.TP
|
|
|
|
-A LENGTH
|
|
|
|
Specify the maximum packet size to send to a DHCPv4/BOOTP server. This
|
|
|
|
might be done to allow sufficient space for addition of relay agent
|
|
|
|
options while still fitting into the Ethernet MTU size.
|
|
|
|
.TP
|
|
|
|
-D
|
|
|
|
Drop packets from upstream servers if they contain Relay Agent
|
|
|
|
Information options that indicate they were generated in response to
|
|
|
|
a query that came via a different relay agent. If this option is not
|
|
|
|
specified, such packets will be relayed anyway.
|
|
|
|
.TP
|
|
|
|
-i \fIifname\fR
|
|
|
|
Listen for DHCPv4/BOOTP queries on interface \fIifname\fR. Multiple
|
|
|
|
interfaces may be specified by using more than one \fB-i\fR option. If
|
|
|
|
no interfaces are specified on the command line, dhcrelay will identify
|
|
|
|
all network interfaces, eliminating non-broadcast interfaces if possible,
|
|
|
|
and attempt to listen on all of them.
|
|
|
|
.TP
|
|
|
|
-m \fIappend\fR|\fIreplace\fR|\fIforward\fR|\fIdiscard\fR
|
|
|
|
Control the handling of incoming DHCPv4 packets which already contain
|
|
|
|
relay agent options. If such a packet does not have \fIgiaddr\fR set in
|
|
|
|
its header, the DHCP standard requires that the packet be discarded.
|
|
|
|
However, if \fIgiaddr\fR is set, the relay agent may handle the situation
|
|
|
|
in four ways: It may \fIappend\fR its own set of relay options to the
|
|
|
|
packet, leaving the supplied option field intact; it may \fIreplace\fR the
|
|
|
|
existing agent option field; it may \fIforward\fR the packet unchanged; or,
|
|
|
|
it may \fIdiscard\fR it.
|
|
|
|
.PP
|
|
|
|
\fIOptions available in DHCPv6 mode only:\fR
|
|
|
|
.TP
|
|
|
|
-I
|
|
|
|
Force use of the DHCPv6 Interface-ID option. This option is
|
|
|
|
automatically sent when there are two or more downstream interfaces
|
|
|
|
in use, to disambiguate between them. The \fB-I\fR option causes
|
|
|
|
dhcrelay to send the option even if there is only one downstream
|
|
|
|
interface.
|
|
|
|
.TP
|
|
|
|
-l [\fIaddress%\fR]\fIifname\fR[\fI#index\fR]
|
|
|
|
Specifies the ``lower'' network interface for DHCPv6 relay mode: the
|
|
|
|
interface on which queries will be received from clients or from other
|
|
|
|
relay agents. At least one \fB-l\fR option must be included in the command
|
|
|
|
line when running in DHCPv6 mode. The interface name \fIifname\fR is a
|
|
|
|
mandatory parameter. The link address can be specified by \fIaddress%\fR;
|
|
|
|
if it isn't, dhcrelay will use the first non-link-local address configured
|
|
|
|
on the interface. The optional \fI#index\fR parameter specifies the
|
|
|
|
interface index.
|
|
|
|
.TP
|
|
|
|
-u [\fIaddress%\fR]\fIifname\fR
|
|
|
|
Specifies the ``upper'' network interface for DHCPv6 relay mode: the
|
|
|
|
interface to which queries from clients and other relay agents should be
|
|
|
|
forwarded. At least one \fB-u\fR option must be included in the command
|
|
|
|
line when running in DHCPv6 mode. The interface name \fIifname\fR is a
|
|
|
|
mandatory parameter. The destination unicast or multicast address can be
|
|
|
|
specified by \fIaddress%\fR; if not specified, the relay agent will forward
|
|
|
|
to the DHCPv6 \fIAll_DHCP_Relay_Agents_and_Servers\fR multicast address.
|
|
|
|
.PP
|
|
|
|
It is possible to specify the same interface with different addresses
|
|
|
|
more than once, and even, when the system supports it, to use the same
|
|
|
|
interface as both upper and lower interfaces.
|
1997-02-22 10:19:20 +00:00
|
|
|
.SH SEE ALSO
|
2008-06-13 00:55:53 +00:00
|
|
|
dhclient(8), dhcpd(8), RFC3315, RFC2132, RFC2131.
|
1998-11-06 00:15:17 +00:00
|
|
|
.SH BUGS
|
|
|
|
.PP
|
2008-06-13 00:55:53 +00:00
|
|
|
Using the same interface on both upper and lower sides may cause
|
|
|
|
loops, so when running this way, the maximum hop count should be set
|
|
|
|
to a low value.
|
|
|
|
.PP
|
|
|
|
The loopback interface is not (yet) recognized as a valid interface.
|