2022-09-19 02:40:07 +07:00
# Disable DHCP proxy in dnsmasq
2022-07-18 01:39:02 +07:00
## Overview
2022-07-18 01:50:48 +07:00
2022-07-24 00:14:12 +07:00
Dnsmasq is used as either a DHCP server or DHCP proxy server for PXE metal provisioning.
2022-07-18 01:39:02 +07:00
2022-07-18 01:50:48 +07:00
Proxy mode is enabled by default allowing the use of existing DHCP servers on the network.
2022-09-19 02:40:07 +07:00
A good description on how DHCP Proxy works can be found on the related [FOG project wiki page ](https://wiki.fogproject.org/wiki/index.php?title=ProxyDHCP_with_dnsmasq ).
2022-07-18 01:39:02 +07:00
2022-09-19 02:40:07 +07:00
## Disabling Proxy mode
2022-07-18 01:39:02 +07:00
2022-07-18 01:50:48 +07:00
Certain scenarios will require this project to use a DHCP server, such as an air-gap deployment or dedicated VLAN.
2022-09-19 02:40:07 +07:00
To disable proxy mode thereby using dnsmasq as a DHCP server, modify `metal/roles/pxe_server/defaults/main.yml` and set `dhcp_proxy` to `false` .