You can use your Smoothwall Appliance as a DHCP Server to automatically allocate IP addresses and other network settings to connected clients.
To use your Smoothwall Appliance as a DHCP relay to forward requests across LAN interfaces to a remote DHCP Server, see Set up Smoothwall Appliance as a DHCP Relay .
Note
DHCP functionality supports up to 20 Bridge, Bonding, or VLAN interfaces.
Step 1: Turn on Server mode
- Go to Services > DHCP > Global.
- In the Global settings section, select the Enabled checkbox.
- Ensure the Server option is selected, not Relay (forwarding proxy).
- To generate logs you can report on from Reports > Logs > System under the DHCP server section, ensure the Enable logging checkbox is selected.
- Select Save.
Step 2: Configure your DHCP server settings
Go to Services > DHCP > DHCP server.
Important
After making changes on this page:
- Select Save.
- In the banner, select Restart.
- Reboot all devices that are either:
- Currently using the DHCP service.
- Waiting for an IP lease to be assigned.
DHCP subnets
Add a DHCP subnet
- In the DHCP subnet section:
- Select an Empty slot from the dropdown.
- Click Select.
- Enter a Subnet name.
- In the Settings section:
- Enter the Network IP address that, when combined with the Netmask, specifies the subnet's network ID.
- Enter the Netmask.
- Enter the values that requesting network hosts receive for Primary DNS, Default gateway and (optionally) Secondary DNS.
- (Optional) Select Advanced to configure additional settings:
- Primary WINS and Secondary WINS server fields.
-
Primary NTP and Secondary NTP server fields. Enter the IP address of your Smoothwall Appliance, so clients use your Appliance’s time.
Note
You must be using Option 1: Have a time server running continuously for your Smoothwall Appliance time settings.
- You can adjust the Default lease time (mins) assigned to network hosts that do not request a specific lease time from the default value of 60.
- You can adjust the Max lease time (mins), which prevents network hosts from requesting and being granted overly long DHCP leases, from the default value of 120.
- The Trivial File Transfer Protocol (TFTP) server that devices use from the network when starting up, and the Network boot filename for the network client to download from the selected TFTP server.
- Domain name suffix appended to the requesting host's hostname.
- Automatic proxy config URL that clients use for determining proxy settings, which references a Proxy Auto-Config (PAC) file.
- Custom options to enter the IP address or text.
Edit or delete a DHCP subnet
- In the DHCP subnet section, select a DHCP subnet from the dropdown and click Select.
- Select Delete, or edit the fields then select Save.
Dynamic DHCP Ranges
Use Dynamic ranges to provide the DHCP server with a pool of IP addresses in the DHCP subnet that it can dynamically allocate to requesting hosts.
Add a Dynamic DHCP Range
- In the DHCP subnet section, select a DHCP subnet from the dropdown and click Select.
- In the Add a new dynamic range section:
- Enter the Start address and End address of an IP range the DHCP server uses to supply dynamic addresses.
Note
Ensure this range doesn’t overlap with the statically assigned IP addresses of other devices on your LAN to prevent IP address conflicts and connectivity issues.
- (Optional) Enter a descriptive Comment.
- Ensure the Enabled checkbox is selected.
- Select Add dynamic range.
Edit or delete a Dynamic DHCP range
In the Current dynamic ranges section, select the checkbox in the Mark column.
- To delete, select Remove dynamic range.
- To edit:
- Select Edit dynamic range.
- In the Add a new dynamic range section, edit the fields as needed.
- Select Add dynamic range.
Static DHCP assignments
Use Static assignments to allocate fixed IP addresses to nominated hosts by referencing the unique MAC address of the requesting host’s network interface card (NIC).
Add a static DHCP assignment
- In the DHCP subnet section, select a DHCP subnet from the dropdown and click Select.
- In the Add a new static assignment section:
- Enter the MAC address of the network host’s interface.
- Enter the IP address to assign to the host.
- (Optional) Enter a descriptive Comment.
- Ensure the Enabled checkbox is selected.
- Select Add dynamic range.
Add a static DHCP assignment from the ARP table
- In the DHCP subnet section, select a DHCP subnet from the dropdown and click Select.
- In the Add static assignment from ARP table section:
- Select the checkbox in the Mark column for one or more MAC addresses.
- Select Add static from ARP table.
Edit or delete a DHCP assignment
In the Current static assignments section, select the checkbox in the Mark column.
- To delete, select Remove static.
- To edit, select Edit static.
- In the Add a new static assignment section, edit the fields as needed.
- Select Add static.
Step 3: Check your setup
- Go to Services > DHCP > Global.
- Ensure the Enable logging checkbox is selected.
- Connect a client device to your network.
- Go to Reports > Logs > System.
- For Section, select DHCP server.
- Select Update.
- Check the System log section for configuration errors.