Opnsense and Juniper switch?

Started by hellfyre9, June 12, 2025, 03:39:08 AM

Previous topic - Next topic
Is anyone using opnsense with a Juniper managed switch with trunked vlans?  I can't get multiple vlans to work across the trunk.  Configuring ports in access mode, I'm able to see the router, switch and local pc.  When I add a vlan to the config and convert it to trunk mode, nothing seems to work.

Anyone have any ideas?

This works.
on opnsense (LAN) set to igb0 -> juniper mge-0/0/47 -> Local pc on mge-0/0/46
set interfaces mge-0/0/46 unit 0 family ethernet-switching interface-mode access
set interfaces mge-0/0/47 unit 0 family ethernet-switching interface-mode access


Did you get this working?

Below is an example of one of my trunk ports. You need to set the native VLAN AND include the native VLAN as a member.

In the example, the native VLAN is 1, but I also included the 'default' vlan (which is VLAN 1) as a member.

set interfaces ge-0/0/14 native-vlan-id 1
set interfaces ge-0/0/14 ether-options flow-control
set interfaces ge-0/0/14 unit 0 family ethernet-switching interface-mode trunk
set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members guest
set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members dockernet
set interfaces ge-0/0/14 unit 0 family ethernet-switching vlan members default
set interfaces ge-0/0/14 unit 0 family ethernet-switching storm-control default