Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hi,
I have a DHCP relay to forward the DHCP messages between the
dhcp client and server. I have to add the Agent Information option,
(82) to the DHCP discover packet from the Relay to the server.
This generally includes the Circuit Id and Remote Id. I also need
to add the Relay IP address so that the server sends a unicast
DHCP offer with the destination ip as Relay IP.
What is the sub option code for agent ip address in Agent information
option?
What do u mean "agent Ip address" in Agent Information option?
The agent IP will go in 'giaddr' field of DHCP packet. And it will be the IP address of the interface on which the packet was received.
When the DHCP server is responding with a DHCP offer, the destination
address of the OFFER is the address that is being offered to the client.
The agent is not able to receive this packet as the destination address
is not that of the agent.
So, if I fill the gateway address as the address of the agent IP address,
then the destination address in OFFER should be that of the agent.
relay agent is not broadcast the offer to the interface it listens
The agent is not broadcasts the offer to the listen interface
Quote:
Originally Posted by jayadhanesh
Hi,
When the DHCP server is responding with a DHCP offer, the destination
address of the OFFER is the address that is being offered to the client.
The agent is not able to receive this packet as the destination address
is not that of the agent.
So, if I fill the gateway address as the address of the agent IP address,
then the destination address in OFFER should be that of the agent.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.