VLAN Configuration: OPNsense & Netgear MS308E#
What Was Established#
Configuration pattern for implementing tagged (trunk) and untagged (access) VLANs using OPNsense as the router and a Netgear MS308E managed switch.
Key Decisions#
- VLAN Naming/ID: Example VLAN “Incánus” assigned ID
20. - Trunking Strategy: The port connecting OPNsense to the Netgear switch must be configured as a Tagged port for all active VLANs.
- Access Port Strategy: Ports for end-devices must be Untagged for the specific VLAN, with the PVID (Port VLAN ID) set to match that VLAN.
Current Configuration#
OPNsense Setup#
- Create VLAN:
Interfaces → Other Types → VLAN(Assign Parent Interface and Tag ID). - Assign Interface:
Interfaces → Assignments(Add the new VLAN interface). - Configure IP: Set a static IPv4 address (e.g.,
192.168.20.1/24for VLAN 20). - DHCP: Enable DHCPv4 under
Services → DHCPv4 → [VLAN Interface].
Netgear MS308E Setup#
- VLAN Membership:
- Trunk Port (to OPNsense): Set as Tagged for all VLANs (e.g., VLAN 20, 30).
- Access Port (to Device): Set as Untagged for the target VLAN.
- PVID Configuration:
- For Access Ports, the PVID must be updated to match the VLAN ID (e.g., Port 1: PVID 20).
Historical Notes#
Configuration established during the rollout of the “Incánus” network segment.
Related Pages#
OPNsense DHCP Configuration, Cloudflare Integration: SSL & DNS, Network Infrastructure & VLANs
Sources#
Adjust IP Assignment Range in OPNsense · ingested/chats/adjust_ip_assignment_range_in_opnsense.md