OPNsense Forum

Archive => 21.7 Legacy Series => Topic started by: supercm on December 08, 2021, 07:45:01 pm

Title: VLAN creation issue
Post by: supercm on December 08, 2021, 07:45:01 pm
I have a new installation and DHCP works fine on the LAN interface.

I created a new vlan, assigned it, enabled the interface, assigned an IP, set up a dhcp scope and enabled it. Created a temporary allow all rule in the firewall to test. When I move a device to the new vlan, the DHCP request (in the log) tries to be served by the LAN address.

So I assigned a static address and tried to ping the gateway and cant ping. Where do I look to troubleshoot?

For context, this is a hyper-v vm and I have another firewall as a vm (from another vendor) that I am migrating from with the same settings on the same switch and the same hyper v settings and it works over there, so I can say the switch and the hyperv network are not the issue.

Thank you
Title: Re: VLAN creation issue
Post by: Patrick M. Hausen on December 08, 2021, 08:12:01 pm
You should probably create and manage VLANs in Hyper-V and assign dedicated interfaces to OPNsense.
Title: Re: VLAN creation issue
Post by: supercm on December 08, 2021, 09:34:35 pm
Thank you. That works but is that by design. With both Sophos XG and PFSense, I am able to configure it as a VLAN in the respective tool and that seems to work just fine.
Title: Re: VLAN creation issue
Post by: Patrick M. Hausen on December 08, 2021, 09:42:07 pm
I honestly don't know. Never run Hyper-V. I try to keep layer 2 stuff as close to the hypervisor as possible in ESXi. And I can recommend not to mix tagged and untagged on a single interface in FreeBSD.

So if you want to re-evaluate your approach at least run only tagged VLANs on that port.

HTH,
Patrick
Title: Re: VLAN creation issue
Post by: supercm on December 08, 2021, 11:18:11 pm
Got it. Thank you.