<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-text-html" lang="x-unicode">
<pre class="code">Hi, I'm testing dhcrelay and tested successfully with the -a option, but this option generates a circuit-id, Is there an option that I can set the circuit-id and even the remote-id?
Reading the manpage of dhclient and dhcp-options I found:
<a class="moz-txt-link-freetext" href="https://linux.die.net/man/5/dhclient.conf">https://linux.die.net/man/5/dhclient.conf</a>
-----------------------------------------
The send statement
send { [ option declaration ] [, ... option declaration ]}
The send statement causes the client to send the specified options to
the server with the specified values. These are full option
declarations as described in dhcp-options(5).
------------------------------------------
<a class="moz-txt-link-freetext" href="https://linux.die.net/man/5/dhcp-options">https://linux.die.net/man/5/dhcp-options</a>
---------------------------------------------
Relay Agent Information Option</pre>
<p>An IETF draft, draft-ietf-dhc-agent-options-11.txt, defines a
series of encapsulated options that a relay agent can add to a
DHCP packet when relaying it to the DHCP server. The server can
then make address allocation decisions (or whatever other
decisions it wants) based on these options. The server also
returns these options in any replies it sends through the relay
agent, so that the relay agent can use the information in these
options for delivery or accounting purposes. </p>
<p>The current draft defines two options. To reference these
options in the dhcp server, specify the option space name,
"agent", followed by a period, followed by the option name. It
is not normally useful to define values for these options in the
server, although it is permissible. These options are not
supported in the client. </p>
<p>option agent.circuit-id string; </p>
<dl compact="compact">
<dt>The circuit-id suboption encodes an agent-local identifier
of the circuit from which a DHCP client-to-server packet was
received. It is intended for use by agents in relaying DHCP
responses back to the proper circuit. The format of this
option is currently defined to be vendor-dependent, and will
probably remain that way, although the current draft allows
for for the possibility of standardizing the format in the
future. </dt>
<dd><br>
</dd>
<dt>option agent.remote-id string;</dt>
<dd><br>
</dd>
<dt>The remote-id suboption encodes information about the remote
host end of a circuit. Examples of what it might contain
include caller ID information, username information, remote
ATM address, cable modem ID, and similar things. In principal,
the meaning is not well-specified, and it should generally be
assumed to be an opaque object that is administratively
guaranteed to be unique to a particular remote end of a
circuit.</dt>
<dt>----------------------------------------------------------</dt>
</dl>
<p><span class="tlid-translation translation" lang="en"><span
title="">it mentions that these options are not supported on
the client, only on the relay, but looking at dhcrelay does
not have a configuration file, how would you use these
options in a relay.</span> <span title="">That from what I
understand and does not exist.</span> <span title=""
class="">If anyone can explain it.</span> <span title=""
class="">Thank you very much.</span></span></p>
<p><br>
</p>
</div>
</body>
</html>