Page MenuHomeVyOS Platform

DHCP Server Custom Options
Open, WishlistPublicFEATURE REQUEST

Description

Summary

Add support back for custom DHCP options. Apparently, this was removed due to using the Kea DHCP server in the new version.

Use case

I am running FreePBX at home with Cisco SIP phones. I need to add option 150 to tell them where to download their configuration, but I can't do that in 1.5. I'm trying to migrate away from an Ubiquiti Edgerouter to a custom device running VyOS 1.5 and this is a hard stop. I also can't use v1.4 since that one removed the "modify" firewall statement, so I can't tag my SIP provider's packets with DSCP.

Additional information

I've found that Kea does make it possible to do this. Please see here: https://www.isc.org/docs/2023kea_custom_options.pdf

Details

Version
-
Is it a breaking change?
Config syntax change (non-migratable)
Issue type
Feature (new functionality)

Event Timeline

How do you see it in the CLI?
In my opinion each option should be configurable from the proper CLI if such option does not exist, it should be added.

Viacheslav triaged this task as Wishlist priority.Fri, Mar 21, 9:47 AM

At the moment, it's not configurable in the CLI or if it is, it's not documented or it's buried somewhere that my question marking through the whole thing hasn't revealed it.

Which option do you propose for CLI to configure it?

Well, it could go something like this:

set service dhcp-server custom-option ciscotftp code 150
set service dhcp-server custom-option ciscotftp type ipv4-address
set service dhcp-server shared-network-name NetworkNameHere option custom-option ciscotftp '192.168.x.x'

*I forgot to include the type definition previously. That is apparently necessary. I found the full docs on that here: https://kea.readthedocs.io/en/kea-2.6.1/arm/dhcp4-srv.html#custom-dhcpv4-options