DHCP server
When you use a static IP address, Magic WAN Connector can also act as a DHCP server in your network. To enable this feature:
- Log in to the Cloudflare dashboard ↗ and select your account.
 - Go to Magic WAN > Connector on-ramps (beta).
 - Select the Connector you want to configure > Edit.
 - Select Network Configuration, and scroll down to LAN configuration.
 - In LAN configuration, select the LAN where you want to enable DHCP server.
 - Select Edit.
 - Under Static addressing, select This is a DHCP Server. You also have to specify:
- The DNS server address
 - The DHCP pool start
 - The DHCP pool end
 
 
Create a PUT request to update the LAN where you want to enable DHCP server:
Example:
Required API token permissions
 
At least one of the following token permissions 
is required:
Magic WAN WriteMagic Transit Write
curl https://api.cloudflare.com/client/v4/accounts/$ACCOUNT_ID/magic/sites/$SITE_ID/lans/$LAN_ID \  --request PUT \  --header "X-Auth-Email: $CLOUDFLARE_EMAIL" \  --header "X-Auth-Key: $CLOUDFLARE_API_KEY" \  --json '{    "lan": {        "static_addressing": {            "dhcp_server": {                "dhcp_pool_end": "<IP_ADDRESS>",                "dhcp_pool_start": "<IP_ADDRESS>",                "dns_server": "<IP_ADDRESS>"            }        }    }  }'Was this helpful?
- Resources
 - API
 - New to Cloudflare?
 - Products
 - Sponsorships
 - Open Source
 
- Support
 - Help Center
 - System Status
 - Compliance
 - GDPR
 
- Company
 - cloudflare.com
 - Our team
 - Careers
 
- 2025 Cloudflare, Inc.
 - Privacy Policy
 - Terms of Use
 - Report Security Issues
 - Trademark