Skip to content
The XG Series hardware appliances will reach end-of-life (EOL) on March 31, 2025. Click here to see the XG to XGS migration documentation.

Configure Sophos Firewall as a DHCP server

When you configure Sophos Firewall as the DHCP server, it provides IP addresses and network parameters, such as the default gateway, subnet mask, DNS servers, and WINS servers to DHCP clients.

Introduction

In this scenario, we configure Sophos Firewall as the DHCP server to lease IP addresses to clients within the server's subnet. Do as follows:

  • Specify the DHCP server settings.
  • Add static IP addresses if required.
  • Start the DHCP server if required.
  • Check the IP addresses leased by the server.

Specify the DHCP server settings

Configure Sophos Firewall as the DHCP server to lease dynamic IP addresses directly to endpoint devices and a static IP address to a test server within the server's network.

  1. Go to Network > DHCP.
  2. Under Server, click Add.
  3. The following settings are an example. You must specify your network's settings:

    Name Setting
    Interface Port2 - 192.168.1.1

    Interface on which Sophos Firewall listens to DHCP requests.
    Dynamic IP lease 192.168.1.2 to 192.168.1.25
    Static IP MAC mapping Hostname: TestServer

    MAC address: 2C:0E:3D:9C:CB:E4

    IP address: 192.168.1.26
    Gateway Interface IP address as the gateway for the clients.
    Use device's DNS settings DNS servers for the clients to contact.
  4. Click Save.

    Here's an example:

    Configure Sophos Firewall as DHCP server.

Start the DHCP server

  1. Go to System services > Services.
  2. For DHCP server, click Start if required.

    Here's an example:

    DHCP server status.

Manage leased IP addresses

You can see the start and end times for IP addresses leased by the DHCP server. You can also see the client's MAC address and hostname.

  1. To see the list of leased IP addresses, go to Network > DHCP.
  2. See the listed IP address ranges under IPv4 lease and IPv6 lease.

    Here's an example:

    DHCP leased IP addresses in use.