VLAN IP not getting assigned thru smart switch

Started by smnaqvee, February 06, 2025, 01:16:59 AM

Previous topic - Next topic
Hello Everyone!

I am facing a issue where smart switch configured with VLAN's not assigning IP thru Opnsnese. HEre are details :
1- I created VLAN on OPT1 - 10.10.20.10 interface
VLANS tagged as :
  • USER[30]-10.10.30.10
  • IOT[40]-10.10.40.10
  • DMZ[50]-10.10.50.10
2- Assigned interfaces all are active
3- Enabled DHCP ranges
4- Attached smart switch in setup confogued VLANS as follows:
 - Tagged port 8 - Opnsense cable from OPT1 interface to switch
 - Untagged port 1,2 and port port 3,4 and port 5,6

However when I insert PC port to switch port 1 or 2 dont get IP which I am suppose dto get from USER VLAN 10.10.20.100-10.10.30.200 ranges
Same happens t other untagged ports whcih were tagged /trunk port 8 for opnsnes OPT1 interface

Any help or direction if I am mking any mistakes.

Thanks

Which switch?

802.1Q is used, right?
The port connected to OPN needs to allow tagged traffic for all VLANs.
For an access port for a given VLAN, the VLAN should be untagged and the PVID should be set to VLAN ID.

Another troubleshooting step is to use a static IP in the expected VLAN and try to ping the VLAN GW (FW rule needed tho).
If that doesn't work, the VLAN setup is wrong.


Hmm, can you make VLAN 1 not a member of 1-6? IOW, only a member of 7,8.
It's been a while since I tinkered with a smart easy switch...
The rest looks fine.

February 06, 2025, 03:24:09 PM #4 Last Edit: February 06, 2025, 04:36:45 PM by smnaqvee
Finally found solution as proxmox with opsnese rewquire vlan bridge thru openvswitch

This is a solution: https://www.youtube.com/watch?v=lY87aVDOy3w

Howveer issue wit switch still not resolved not getting IP from VLAN thru switch

Proxmox was not mentioned earlier...

The use of an OVS bridge is absolutely not required.
I have 2 instances of PVE+OPN (prod and test) and both of them use the standard bridge on the PVE side.
I typically pass the entire bridge to the OPN VM and do all VLAN management there (as I would with PCIe pass-through or bare metal).

Which firmware do you have on your switch?
It turns out I have the exact same (used as a dumb switch now) and I might find the time to test a few things.
This said, the UX is bit different on mine (Firmware Version 1.0.2 Build 20160526).
It's been years since I've done VLANs on these...

February 07, 2025, 08:44:56 PM #6 Last Edit: February 07, 2025, 09:06:54 PM by smnaqvee
Thanks !

Yeah it was strange As I am getting VLANS assigned IPs for VM in Promxox perfectly fine but LAN2 interface where I ceated new VLANS not still getting UP assigment. Chnaged switch to Netgear smart switch same issue . ATtching Proxmox and OPnsese screen shots for further details
So LAN interface at 10.10.60.10 having 2 VLAN's 10.10.70.10 and 10.10.80.10 tagged to switch also got support from netgear side all looks pefectly fine but VLANS not getting IPs but as soon as I switch other port on switch than assigned to VLAN get main LAN2 interface DHCP 10.10.60.x adress but not VLANS.

All others than created on LAN2 interface working fine on Proxmox VM's and assigning IP thrugh VLANS. 

images here : https://postimg.cc/gallery/07MvJMQ

Finally got hold of 50% of issue. As removed all VLANsinterfaces  . Created 1 new VLAN TAG 30 on LAN2 interface and TAG40 on LAN interface . Now switch routing from LAN interface VLAN on TAG40 . However stil not getting IP from other LAN2 interfcae created VLAN TAG30 with same settings in switch and in opnsnese. Any guidance or areas to look for ? Thanks

You might want to use the built-in attachments in the future. Some users refuse to go through external links...

I think you're saying you have:
* LAN + VLAN40 on one vtnet bridge
* LAN2 + VLAN30 on another
The first set is working fine while the other doesn't.

I can't check that you've replicated everything properly.
I'm actually not entirely sure why you have 2 LANs + 2 VLANs (versus 1 LAN + 3 VLANs).
You have all of these hooked up to a single switch???

At some point, if you're going to tinker with the switch a lot, you might want to reboot it here and there.
I suspect it may have lost what's up and down :-)
There are couple more threads with VLANs and that smart easy switch. Rebooting helped one of them...