Configure VLANs on Sophos Switch and Sophos Firewall to get DHCP from Sophos Firewall
You can configure VLANs on Sophos Switch and Sophos Firewall to use Sophos Firewall as a DHCP server.
Video
The following video shows you how to configure VLANs on Sophos Switch.
Network Details
The network configuration shown in this article is only an example. You must change the values to match your network infrastructure.
- Port 2 of Sophos Firewall connects to the internet.
- Port 6 of Sophos Firewall connects to Port 8 of Sophos Switch.
- Port 2 of Sophos Switch connects to a device that is part of the VLAN 100's network. Port 2 is an access port, so traffic is untagged.
- Port 8 on Sophos Switch is a trunk port, so traffic is tagged.
-
The network looks like the following diagram.
Configure a VLAN on Sophos Switch
Configure a VLAN on Sophos Switch as follows:
- Go to Configure > VLAN settings > 802.1Q.
- Click Add.
-
Configure the settings as follows:
- VID: 100
- Name: VLAN100
-
Click Apply.
- Select the VLAN you created and click Edit.
- Click Tagged and select port 8.
- Click Untagged and select port 2.
-
Confirm GVRP advertisment is Turned on and click the tick mark.
-
Click Apply.
- Go to PVID and ingress filter.
- Select port 8 and click Edit.
-
Configure the settings as follows:
- PVID: 100 (VLAN100)
- Ingress filtering: On
- Accept type: All
-
Click Apply.
Configure a VLAN interface on Sophos Firewall
Configure the VLAN interface on Sophos Firewall as follows:
- Sign in to the Sophos Firewall web admin console.
- Go to Network > Interfaces > Add Interface.
- Click Add VLAN.
-
Configure the settings as follows:
- Name: VLAN_100
- Interface: Port6
- VLAN ID: 100
- IP assignment: Static
- IPv4/netmask:
172.16.100.1/24
-
Click Save.
Configure the DHCP server on Sophos Firewall
Configure the DHCP server for your VLAN on Sophos Firewall as follows:
- Go to Network > DHCP and click Add.
-
Configure the settings as follows:
- Name: VLAN_100_DHCP
- Interface: VLAN 100-172.16.100.1
- Start IP:
172.16.100.2
- End IP:
172.16.100.254
-
Click Save.
Devices connected to Port 2 of Sophos Switch can obtain an IP address from the DHCP server created for VLAN100 on Sophos Firewall.
More resources