1
General Discussion / DHCP between OPNsense und Ubiquiti (VLANs) not working
« on: July 25, 2018, 08:47:27 am »
Hi.
Some guys in the German forum are looking for help because they do not get a DHCP lease on an untagged port of their UniFi switch (https://forum.opnsense.org/index.php?topic=9227.0).
This is the setup:
Those interfaces are configured at OPNsense:
The VLAN interfaces have static IPs (192.168.X.100). For each VLAN a DHCP range from 192.168.X.1 to 192.168.X.99 is configured.
The uplink port (port 1) of the UniFi switch has profile "All", i.e. configured as Trunk or tagged port. Port 2 is configured as VLAN 10 (LAN). If a laptop is plugged to this port 2 it gets no IP. No DHCP lease is provided. This only works for the ports that are configured for the DEFAULT net (VLAN 0). On those ports a lease is provided immediatelly.
Anyone who has an idea what's wrong here? Many thanks!
Greetings
Joe
Some guys in the German forum are looking for help because they do not get a DHCP lease on an untagged port of their UniFi switch (https://forum.opnsense.org/index.php?topic=9227.0).
This is the setup:
Code: [Select]
<-> UniFi Controller (Port 7)
ISP / WAN <-> Modem / Router <-> OPNSense (18.1.6) <-> UniFi Switch (UniFi Switch 8 POE-60W) <-> UniFi UAP-AC-Lite (Port 6)
<-> Laptop (Port 2 or 3)
Those interfaces are configured at OPNsense:
Code: [Select]
Interface Port
------------------------------------------
DEFAULT re0 (physikalischer Port)
DMZ VLAN 20 auf re0 (DMZ)
GUEST VLAN 40 auf re0 (GUEST)
LAN VLAN 10 auf re0 (LAN)
MANAGEMENT VLAN 50 auf re0 (MANAGEMENT)
VOICE VLAN 30 auf re0 (VOICE)
WAN re1
The VLAN interfaces have static IPs (192.168.X.100). For each VLAN a DHCP range from 192.168.X.1 to 192.168.X.99 is configured.
The uplink port (port 1) of the UniFi switch has profile "All", i.e. configured as Trunk or tagged port. Port 2 is configured as VLAN 10 (LAN). If a laptop is plugged to this port 2 it gets no IP. No DHCP lease is provided. This only works for the ports that are configured for the DEFAULT net (VLAN 0). On those ports a lease is provided immediatelly.
Anyone who has an idea what's wrong here? Many thanks!
Greetings
Joe