Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - posterberg

#1
General Discussion / Re: Static DHCP lease on VLAN
January 06, 2021, 01:21:44 AM
I think I just solved it... I just had to click Apply on the interface settings, Save wasn't sufficient. A bit weird that I could define the DHCP scope and that it seemed to understand the ip range of the interface even though the interface settings weren't applied, but the static lease didn't understand it.

Anyway, that seemed to do it and I think I've learnt that Save isn't Apply. Rookie mistake... :-)
#2
General Discussion / Static DHCP lease on VLAN
January 06, 2021, 12:58:02 AM
Hi

Version: OPNsense 20.7-amd64

I am brand new to OPNsense, have been running a pure iptables based fw for roughly 20yrs in my home network. Thought that it was a good idea to try out something new.

OPNsense is installed in a vm and it has been given two physical nics on my esxi host. One for the external interface and one for all internal vlans.

First thing I want to do is to set up all DHCP ranges and static leases before I decommission my old firewall so all existing hosts get a hiccup. I do however get into trouble right away.

Lets start with one of the vlans, 1003. I have the nic vmx1_VLAN1003 configured to 10.x.3.253/24. The DHCP scope configured is 10.x.3.20-100. I then try to set up a static lease for one host to be 10.x.3.186.

That gives me an error saying, "The IP address must lie in the TRUNK1003_MEDIA subnet.".

I really don't understand why this happens, the static lease is well in range of that subnet.

I also tried to do the same thing on vmx1, a subnet that isn't vlan tagged. It worked right away. Seems like this only happens on vlan interfaces.

Is there something OPNsenseish that a noob like me is bound to miss?

/p