DHCP-server option 242 - Configuration file errors encountered

I’m trying to set the dhcp option 242 in the dhcp server, but I get an error when I type it in

set service dhcp-server global-parameters ‘option option-242 HTTPSRVR=10.xx.xx.2,TLSSRVR=10.xx.xx.2;’ [edit]
vyos@sfw# commit

Configuration file errors encountered - check your options!

[[service dhcp-server]] failed
Commit failed

Version: VyOS 1.4-rolling-202211220318
Release train: current

Built by: autobuild@vyos.net
Built on: Tue 22 Nov 2022 03:18 UTC
Build UUID: beaf575e-8fad-4c48-914f-43c4f4510b3c
Build commit ID: fddf616cdfe464

Try this

set service dhcp-server global-parameters 'option option-242 code 242 = string;'
set service dhcp-server shared-network-name NET01 subnet x.x.x.0/24 subnet-parameters 'option option-242 "HTTPSRVR=10.xx.xx.2,TLSSRVR=10.xx.xx.2";'


3 Likes

It works, thank you very much for your help

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.