question about DHCP-DHCP-Server-Identifier
I'm currently testing my configuration for freeradius as a dhcp server - I'm not yet utilizing any of the radius services - just dhcp. I have multiple vlans (each vlan is an independent network). In my test config, I have two networks defined in raddb/mods-config/files/dhcp under the 'network' section, and I am calling the dhcp_network section from raddb/sites-enabled/dhcp. Everything seems to be working fine with the example options, except it seems I need to set DHCP-DHCP-Server-Identifier somewhere to ensure requests come to the server correctly. Otherwise, I just continue to see discover/offer repeatedly in the debug log. I've currently got it set in the network section of raddb/mods-config/files/dhcp - that seems fine. I've also tried adding it under both DHCP-Discover and DHCP-Request in an 'update reply' - that also worked. If I set DHCP-DHCP-Server-Identifier to my server IP, it all seems to work as expected. I'm confused because: A. this wasn't part of the example options, so I assumed it would not be need to be added B. DHCP-DHCP-Server-Identifier is already defined under "update control" in both DHCP-Discover and DHCP-Request sections of raddb/sites-enabled/dhcp C. comments in raddb/sites-available/dhcp said to use either dhcp_common or dhcp_network - but not both. I noticed the option difference between raddb/policy.d/dhcp and raddb/mods-config/files/dhcp was DHCP-DHCP-Server-Identifier, and adding it has fixed my problem. Basically I just want to be sure I'm not doing something dumb by adding it where I have it, and that I'm correctly understanding how the config files are intended to work. Thank you -- <https://boonecsd.org> 500 7th Street <https://www.google.com/maps/dir//42.0623769,-93.8859242/@42.0624429,-93.8861345,115m/data=!3m1!1e3!4m2!4m1!3e0> | Boone, IA 50036 <https://www.google.com/maps/dir//42.0623769,-93.8859242/@42.0624429,-93.8861345,115m/data=!3m1!1e3!4m2!4m1!3e0> | tel (515) 433-0750 | fax (515) 433-0753Website <https://boonecsd.org> | Twitter <https://twitter.com/BooneSchools> | Facebook <https://www.facebook.com/Boone-Community-School-District-111182762280156> | BooneTV <http://www.boonetv.com/>
On 21/07/2023 20:29, Levi Baber via Freeradius-Users wrote:
A. this wasn't part of the example options, so I assumed it would not be need to be added B. DHCP-DHCP-Server-Identifier is already defined under "update control" in both DHCP-Discover and DHCP-Request sections of raddb/sites-enabled/dhcp C. comments in raddb/sites-available/dhcp said to use either dhcp_common or dhcp_network - but not both. I noticed the option difference between raddb/policy.d/dhcp and raddb/mods-config/files/dhcp was DHCP-DHCP-Server-Identifier, and adding it has fixed my problem.
Basically I just want to be sure I'm not doing something dumb by adding it where I have it, and that I'm correctly understanding how the config files are intended to work.
Yes, DHCP-DHCP-Server-Identifier should be set in the reply packets - that is used off the back of an Offer to tell the client where to sent the Request. For the use of the dhcp_network policy, this can either be done, as you have, by adding it to the files module data or by adding some policy to do update reply { DHCP-DHCP-Server-Identifier := &control.DHCP-DHCP-Server-Identifier } The entry in the control list is intended for policy driving, particularly in relation to handling Request packets - i.e. ignoring requests that are not for the current server, allowing for multiple DHCP servers to serve the same network. Nick -- Nick Porter
participants (2)
-
Levi Baber -
Nick Porter