OPNsense Forum

English Forums => General Discussion => Topic started by: Kyar on February 02, 2024, 11:00:49 PM

Title: Same VLAN with 2 interfaces
Post by: Kyar on February 02, 2024, 11:00:49 PM
Hello,

I would like to have VLAN 2 on interfaces 1 and 3. How can I have VLAN 2 on multiple interfaces with the same DHCP? I tried the bridge mode without success.

Thank you for your help.
Title: Re: Same VLAN with 2 interfaces
Post by: Maurice on February 04, 2024, 02:58:22 AM
Create the VLAN on both interfaces individually and then bridge the VLANs (not the physical interfaces). Then apply the IP and DHCP configuration to the bridge. Don't forget to set the tunables required for bridging:
https://docs.opnsense.org/manual/how-tos/lan_bridge.html

Cheers
Maurice
Title: Re: Same VLAN with 2 interfaces
Post by: vinfra-dude on February 04, 2024, 10:29:45 PM
Quote from: Maurice on February 04, 2024, 02:58:22 AM
Create the VLAN on both interfaces individually and then bridge the VLANs (not the physical interfaces). Then apply the IP and DHCP configuration to the bridge. Don't forget to set the tunables required for bridging:
https://docs.opnsense.org/manual/how-tos/lan_bridge.html

Cheers
Maurice

I am trying to do the same thing as OP however there is no option to bridge vlan devices only physical devices or VPN/Wireguard interfaces

using 24.1_1 latest opnsense version
Title: Re: Same VLAN with 2 interfaces
Post by: vinfra-dude on February 04, 2024, 11:04:49 PM
never mind.. i figured out what i was doing wrong.. i am all set to bridge vlans
Title: Re: Same VLAN with 2 interfaces
Post by: Kyar on February 06, 2024, 01:40:38 PM
Ok it's works. Thanks you