doubt dhcp relay agent.circuit-id and remote.circuit-id

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

doubt dhcp relay agent.circuit-id and remote.circuit-id

Ricardo Barbosa
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:

https://linux.die.net/man/5/dhclient.conf
-----------------------------------------
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).
------------------------------------------

https://linux.die.net/man/5/dhcp-options
---------------------------------------------
Relay Agent Information Option

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.

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.

option agent.circuit-id string;

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.

option agent.remote-id string;

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.
----------------------------------------------------------

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. That from what I understand and does not exist. If anyone can explain it. Thank you very much.



_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: doubt dhcp relay agent.circuit-id and remote.circuit-id

Bjørn Mork
Ricardo Barbosa <[hidden email]> writes:

> 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.

See the '-a', '-D' and '-m' options in dhcrelay(8)


Bjørn
_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: doubt dhcp relay agent.circuit-id and remote.circuit-id

Ricardo Barbosa

Hi thanks for response.

I visualized these options but what I wanted was for me to define the agent.circuit-id and remote-id string. Is this possible? Be it in dhclient or dhcrelay

regards.

Em 20/03/2019 08:59, Bjørn Mork escreveu:
Ricardo Barbosa [hidden email] writes:

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.
See the '-a', '-D' and '-m' options in dhcrelay(8)


Bjørn

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

RE: doubt dhcp relay agent.circuit-id and remote.circuit-id

Patrick Trapp

On our network, the network gear populates the agent.circuit-id, which tells the destination DHCP server where the request originated. We manipulate that value on the network gear, but it is a function of the configuration options on that gear rather than something handled via ISC-DHCP software.

 

I realize that’s probably of little value for you, but we use that value extensively – just not the way I think you are striving for. I’ve forgotten what you said you were trying to accomplish. Perhaps if you remind us what you want to do, one of the more experienced folks on the forum can help you get what you want through a different method.

 

Cheers!

 

From: dhcp-users <[hidden email]> On Behalf Of Ricardo Barbosa
Sent: Wednesday, March 20, 2019 12:50 PM
To: Bjørn Mork <[hidden email]>
Cc: [hidden email]
Subject: Re: doubt dhcp relay agent.circuit-id and remote.circuit-id

 

Hi thanks for response.

I visualized these options but what I wanted was for me to define the agent.circuit-id and remote-id string. Is this possible? Be it in dhclient or dhcrelay

 

regards.

 

Em 20/03/2019 08:59, Bjørn Mork escreveu:

Ricardo Barbosa [hidden email] writes:
 
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.
 
See the '-a', '-D' and '-m' options in dhcrelay(8)
 
 
Bjørn

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users
Reply | Threaded
Open this post in threaded view
|

Re: doubt dhcp relay agent.circuit-id and remote.circuit-id

Ricardo Barbosa

hi.

I followed the link below and it worked. Thank you all.

https://github.com/jpereira/isc-dhp-relay


Att.


Em 20/03/2019 15:48, Patrick Trapp escreveu:

On our network, the network gear populates the agent.circuit-id, which tells the destination DHCP server where the request originated. We manipulate that value on the network gear, but it is a function of the configuration options on that gear rather than something handled via ISC-DHCP software.

 

I realize that’s probably of little value for you, but we use that value extensively – just not the way I think you are striving for. I’ve forgotten what you said you were trying to accomplish. Perhaps if you remind us what you want to do, one of the more experienced folks on the forum can help you get what you want through a different method.

 

Cheers!

 

From: dhcp-users [hidden email] On Behalf Of Ricardo Barbosa
Sent: Wednesday, March 20, 2019 12:50 PM
To: Bjørn Mork [hidden email]
Cc: [hidden email]
Subject: Re: doubt dhcp relay agent.circuit-id and remote.circuit-id

 

Hi thanks for response.

I visualized these options but what I wanted was for me to define the agent.circuit-id and remote-id string. Is this possible? Be it in dhclient or dhcrelay

 

regards.

 

Em 20/03/2019 08:59, Bjørn Mork escreveu:

Ricardo Barbosa [hidden email] writes:
 
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.
 
See the '-a', '-D' and '-m' options in dhcrelay(8)
 
 
Bjørn

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users

_______________________________________________
dhcp-users mailing list
[hidden email]
https://lists.isc.org/mailman/listinfo/dhcp-users