diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/services/dhcp.rst | 14 | 
1 files changed, 13 insertions, 1 deletions
| diff --git a/docs/services/dhcp.rst b/docs/services/dhcp.rst index ed5082d4..94efeaf1 100644 --- a/docs/services/dhcp.rst +++ b/docs/services/dhcp.rst @@ -317,12 +317,24 @@ Always verify that the parameters are correct before commiting the configuration  Refer to isc-dhcp's dhcpd.conf manual for more information:  https://kb.isc.org/docs/isc-dhcp-44-manual-pages-dhcpdconf +Quotes can be used inside parameter values by replacing all quote characters  +with the string ``"``. They will be replaced with literal quote characters +when generating dhcpd.conf. +  Example  ^^^^^^^  .. opcmd:: set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option domain-name-servers 192.0.2.11, 192.0.2.12;" -   Override the static-mapping's dns-server with a custom one that will be sent only to this host. +   Override the static-mapping's dns-server with a custom one that will be sent +   only to this host. + +.. opcmd:: set service dhcp-server shared-network-name dhcpexample subnet 192.0.2.0/24 static-mapping example static-mapping-parameters "option pxelinux.configfile "pxelinux.cfg/01-00-15-17-44-2d-aa";" + +   An option that takes a quoted string is set by replacing all quote characters +   with the string ``"`` inside the static-mapping-parameters value. +   The resulting line in dhcpd.conf will be +   ``option pxelinux.configfile "pxelinux.cfg/01-00-15-17-44-2d-aa";``.  Operation Mode  -------------- | 
