OPNsense Forum

English Forums => General Discussion => Topic started by: deanfourie on October 13, 2024, 08:19:53 AM

Title: No DHCP on VLAN interface?
Post by: deanfourie on October 13, 2024, 08:19:53 AM
So a weird problem I cannot figure out.

I have an interface, on a VLAN, with an assigned IP address. I have setup ISC DHCP for this interface with a pool.

On a client on the same VLAN, it does not get a lease from OPNsense, however, if I go static on the same subnet I can reach OPNSense via the static gateway (OPNsense IP) for the VLAN subnet.

Any ideas on this one?

Thanks
Title: Re: No DHCP on VLAN interface?
Post by: dseven on October 13, 2024, 09:27:16 AM
Check Services -> ISC DHCPv4 -> Log File for clues?
Title: Re: No DHCP on VLAN interface?
Post by: deanfourie on October 13, 2024, 09:58:49 AM
Thanks, nothing in the logs.

I have run a packet capture on the VLAN interface and cannot capture ANY packets unless I ping via static IP
Title: Re: No DHCP on VLAN interface?
Post by: deanfourie on October 13, 2024, 10:03:16 AM
Also just to add,

This is a trunk, there is more then one VLAN trunked to OPN.

I just did a packet capture on my main LAN interface, and I can see traffic fine via the capture,

However still on the other VLAN, I see absolutely no packets.
Title: Re: No DHCP on VLAN interface?
Post by: deanfourie on October 13, 2024, 10:12:46 AM
Also, I'm curious as i've never had ths problem, but the VLAN in question is not listed in "Vlans allowed and active in management domain" and "vlans in spanning tree forwarding state and not pruned"

Not sure if this is related.

The vlan in question here is 10.

Title: Re: No DHCP on VLAN interface?
Post by: deanfourie on October 13, 2024, 10:50:29 AM
Bugger, sorted.

I hadn't created the vlan on the switch.