Configure an IPv4 DHCP Server
DHCP (Dynamic Host Configuration Protocol) is a method to assign IP addresses automatically to network clients. You can configure your Firebox as a DHCP server for the networks that it protects. If you have a DHCP server, we recommend that you continue to use that server for DHCP.
These DHCP settings apply to trusted, optional, or custom interfaces, and to VLAN, Bridge, and Link Aggregation interfaces in trusted, optional, or custom security zones.
If your Firebox is configured in drop-in mode, the configuration steps are different. To configure DHCP in drop-in mode, go to Configure DHCP in Drop-In Mode.
To configure DNS and WINS settings that apply only to an interface, go to Configure Per-Interface WINS/DNS.
Configure DHCP for IPv4
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- Select Network > Interfaces.
- Select a trusted, optional, or custom interface. Click Edit.
- From the drop-down list, select DHCP Server.
- To change the default lease time for addresses in the DHCP address pool, select a different option in the Lease Time drop-down list.
This is the time interval that a DHCP client can use an IP address that it receives from the DHCP server. When the lease time is about to expire, the client sends data to the DHCP server to get a new lease. - To add a group of IP addresses to assign to users on this interface, in the Address Pool section, click Add.
The Add Address Range dialog box appears. - Specify starting and ending IP addresses on the same subnet, then click OK.
The address pool must belong either to the interface’s primary or secondary IP subnet.
You can configure a maximum of six address ranges. Address groups are used from first to last. Addresses in each group are assigned by number, from lowest to highest. - If necessary, configure per-interface WINS/DNS.
- To configure predefined or custom DHCP options, go to Configure DHCP Options.
- (Fireware v12.1.1 or higher) By default, the Firebox IP address is the default gateway. To specify a different IP address as the default gateway, select Specify an IP address and type the IP address.
To modify or delete an address pool range:
- In the Address Pool table select the entry.
- Click Edit to edit the selected range.
- Click Remove to remove the selected range.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- Select Network > Configuration.
- Select a trusted, optional, or custom interface. Click Configure.
- Select Use DHCP Server.
- To add a group of IP addresses to assign to users on this interface, in the Address Pool section, click Add.
- Specify starting and ending IP addresses on the same subnet, then click OK.
The address pool must belong either to the interface’s primary or secondary IP subnet.
You can configure a maximum of six address ranges. Address groups are used from first to last. Addresses in each group are assigned by number, from lowest to highest. - To change the default lease time for addresses in the DHCP address pool, select a different option in the Leasing Time drop-down list.
This is the time interval that a DHCP client can use an IP address that it receives from the DHCP server. When the lease time is about to expire, the client sends data to the DHCP server to get a new lease. - If necessary, configure per-interface WINS/DNS.
- To configure predefined or custom DHCP options, go to Configure DHCP Options.
- (Fireware v12.1.1 and higher) By default, the Firebox IP address is the default gateway. To specify a different IP address as the default gateway, select Specify and type an IP address.
To modify or delete an address pool range:
- In the Address Pool table select the entry.
- Click Edit to edit the selected range.
- Click Remove to remove the selected range.
Configure DHCP Reservations
You can use DHCP reservations to reserve a specific IP address for a client.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
To reserve a specific IP address for a client:
- Select Network > Interfaces.
- Select an interface and click Edit.
- In the Reserved Addresses section, type a name for the reservation, the IP address you want to reserve, and the MAC address of the client’s network card.
The DHCP reservation name cannot start or end with a dot (.) or dash (-), and cannot contain an underscore (_). - Click Add.
To modify or delete a reservation:
- In the Reserved Addresses table, select the reservation.
- Click Edit to edit the selected reservation.
- Click Remove to remove the selected reservation.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
To reserve a specific IP address for a client:
- Select Network > Interfaces.
- Select an interface and click Edit.
- In the Reserved Addresses section, click Add.
- Type a name for the reservation, the IP address you want to reserve, and the MAC address of the client’s network card.
The DHCP reservation name cannot start or end with a dot (.) or dash (-), and cannot contain an underscore (_).
- Click OK.
To modify or delete a reservation:
- In the Reserved Addresses table, select the reservation.
- Click Edit to edit the selected reservation.
- Click Remove to remove the selected reservation.
Configure DHCP Options
The predefined DHCP options are:
DHCP Option Code | Name | Type | Description |
---|---|---|---|
150 | TFTP Server IP | IP address(es) | The IP address of the TFTP server where the DHCP client can download the boot configuration. |
66 | TFTP Server Name | Text | The name of the TFTP server where the DHCP client can download the boot configuration. |
67 | TFTP Boot Filename | Text | The name of the boot file. |
2 (deprecated) | Time Offset | 4 byte integer | Time offset in seconds from Coordinated Universal Time (UTC). Option 2 is deprecated. We recommend that you add a custom DHCP option and specify code 100 or 101. These options are described in RFC 4833. |
43 | Vendor specific information | Text | This option is used by clients and servers to exchange vendor-specific information. |
120 | SIP Servers | IP address(es) | IPv4 addresses of one or more Session Initiation Protocol (SIP) outbound proxy servers. This option is described in RFC 3361. |
138 | CAPWAP Access Controller | IP address(es) | IPv4 addresses of one or more CAPWAP Access controllers. This option is described in RFC 5417. |
156 | DHCP State | 1 byte integer (Unsigned) | State of the IP address. This option is used by ShoreTel phones for an FTP boot option. |
DHCP option codes 1, 6, 15, 28, 44, 46, and 51 are configured in the DHCP settings or interface configuration. To configure DHCP option 15, which is the domain suffix that DHCP clients use, specify a domain name in network DNS settings. For information about the network DNS settings, go to Configure Network DNS and WINS Servers.
Some versions of Fireware OS do not support all the predefined options. If the option code you select requires a specific minimum version of Fireware, a notation appears to the right of the selected code in Policy Manager.
You can add a predefined DHCP option or a custom DHCP option. If you use the same DHCP option code for more than one interface, the Type configured for the option code must be the same on each interface.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- In the DHCP Options list, click Add.
The Add DHCP Option dialog box appears. Predefined Option is selected by default
- From the Code drop-down list, select the DHCP option code.
The Name and Value associated with the code are selected automatically and you cannot edit these. - In the Value text box, type the value to assign to this option. It must match the Type for this option. If you specify a double quotation mark, you must preface it with a backslash. For example: ftpservers=\"10.254.252.240,10.255.252.240\",layer2tagging=1,vlanid=252
- Click OK.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- Click DHCP Options.
The DHCP Options dialog box appears. - Click Add.
The Add DHCP Option dialog box appears. Predefined Option is the default selection.
- From the Code drop-down list, select the DHCP option code.
The Name and Value associated with the code are selected automatically and you cannot edit these. - In the Value text box, type the value to assign to this option. It must match the Type for this option. If you specify a double quotation mark, you must preface it with a backslash. For example: ftpservers=\"10.254.252.240,10.255.252.240\",layer2tagging=1,vlanid=252
- Click OK.
If the option required by your vendor is not in the list of predefined options, you can add it as a custom option.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- In the DHCP Options list, click Add.
The Add DHCP Option dialog box appears.
- Select Custom Option.
- In the Code text box, type the DHCP option code.
- In the Name text box, type a name to describe this DHCP option.
- From the Type drop-down list, select the type of value required by this option.
- In the Value text box, type the value to assign to this option. It must match the Type you selected. If you specify a double quotation mark, you must preface it with a backslash. For example: ftpservers=\"10.254.252.240,10.255.252.240\",layer2tagging=1,vlanid=252
- Click OK.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- Click Add.
The Add DHCP Option dialog box appears. - Select Custom Option.
- In the Code text box, type the DHCP option code.
- In the Name text box, type a name to describe this DHCP option.
- From the Type drop-down list, select the type of value required for this option.
- In the Value text box, type or select the value to assign to this option. It must match the Type you selected. If you specify a double quotation mark, you must preface it with a backslash. For example: ftpservers=\"10.254.252.240,10.255.252.240\",layer2tagging=1,vlanid=252
- Click OK.
DHCP option codes 1, 6, 15, 28, 44, 46, and 51 are configured in the DHCP settings or interface configuration.
Configure Per-Interface WINS/DNS
By default, when your Firebox is configured as a DHCP server, it gives out the network DNS server and network WINS server configured on the Network > Interfaces > DNS/WINS tab. To specify different information for your Firebox to assign when it gives out IP addresses, you can add a DNS server for the interface.
If the DNSWatch feature is enabled on your Firebox, and enforcement is enabled, DNS queries for external resources are sent to DNSWatch servers in some cases. For more information about DNS server precedence, go to About DNS on the Firebox. For more information about DNSWatch, go to About WatchGuard DNSWatch.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- Select Network > Interfaces.
- Select an interface and click Edit.
- Select the DNS/WINS tab.
- To change the default DNS domain, in the Domain Name text box type a domain name.
- To create a new DNS server entry, in the DNS Server text box, type an IP address, and click Add.
- To create a new WINS server entry, in the WINS Server text box, type an IP address and click Add.
- To remove the selected server from a list, click Remove.
![Closed](../../../../Skins/Default/Stylesheets/Images/transparent.gif)
- Select Network > Configuration.
- Select an interface and click Configure.
- In the IPv4 tab for an interface, click Configure DNS/WINS servers.
The Configure DNS/WINS Servers dialog box appears. - To change the default DNS domain, type a Domain Name.
- To create a new DNS or WINS server entry, click Add adjacent to the server type you want, type an IP address, and click OK.
- To change the IP address of the selected server, click Edit.
- To remove the selected server from the adjacent list, click Delete.