Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
OPNsense Installation - VLAN Config
« previous
next »
Print
Pages: [
1
]
Author
Topic: OPNsense Installation - VLAN Config (Read 8853 times)
spetrillo
Hero Member
Posts: 721
Karma: 8
OPNsense Installation - VLAN Config
«
on:
January 16, 2022, 11:34:31 pm »
Hello all,
In going thru the install of OPNsense I noticed there is a dialog that allows me to configure vlans as part of the install. In testing this I can set a vlan to a physical interface but there is no place to assign an IP to this vlan. Is there something I am missing or is this true bc it does not help when installing the OS for the first time.
Thanks,
Steve
Logged
OmnomBánhmì
Newbie
Posts: 20
Karma: 2
Re: OPNsense Installation - VLAN Config
«
Reply #1 on:
January 18, 2022, 12:26:52 pm »
You don't assign an IP to a VLAN. It is just slightly more complex.
What you do is follow a multi-step process:
* create an interface for the VLAN, Interfaces -> Other Types -> VLAN. Click + to add a new one, pick a parent interface (like re0), give it a VLAN tag (id) and a description (name). Say, re0, id=999, description=internaltest
* In Interfaces -> Assignments, you'll see the new VLAN in the lowest line. Here, assign a name to the interface like internaltest999 and check the assignment of the VLAN to the correct physical interface (there might be many available depending on resources)
* next, the new VLAN will show up as an interface in Interfaces menu. Go to Interfaces -> internaltest999 and click "Enable interface". Last step, you configure the actual interface to your liking.
Short version, if "you only need a VLAN" this is a two minute process.
The Interface -> Assignment overview will, if you have many VLANs, show all of them and the interfaces they run on.
Logged
spetrillo
Hero Member
Posts: 721
Karma: 8
Re: OPNsense Installation - VLAN Config
«
Reply #2 on:
January 18, 2022, 04:21:56 pm »
Can this process be done for the default LAN interface? I want to convert that to a vlan.
Logged
OmnomBánhmì
Newbie
Posts: 20
Karma: 2
Re: OPNsense Installation - VLAN Config
«
Reply #3 on:
January 19, 2022, 04:54:20 pm »
I don't see why not. The procedure above should work, and you can start sending tagged packets towards the interface.
Logged
spetrillo
Hero Member
Posts: 721
Karma: 8
Re: OPNsense Installation - VLAN Config
«
Reply #4 on:
January 19, 2022, 05:05:24 pm »
Ahhhh....so the switch port that this is connected to needs to be a tagged port?
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Installation - VLAN Config
«
Reply #5 on:
January 19, 2022, 07:49:30 pm »
Probably. That's the point of VLANs.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
spetrillo
Hero Member
Posts: 721
Karma: 8
Re: OPNsense Installation - VLAN Config
«
Reply #6 on:
January 19, 2022, 08:17:58 pm »
Not always...all switch ports do not have to be tagged to get traffic to its end point.
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Installation - VLAN Config
«
Reply #7 on:
January 19, 2022, 08:21:21 pm »
Correct, but VLANs in the OPNsense world are always tagged interfaces on a parent one, since OPNsense is not a switch. And you must connect this "trunk" port to another "trunk" (i.e. tagged) port on the switch to transport the VLAN tags ... otherwise it's just single interfaces.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
spetrillo
Hero Member
Posts: 721
Karma: 8
Re: OPNsense Installation - VLAN Config
«
Reply #8 on:
January 19, 2022, 08:25:33 pm »
I got it...yes you are right in that respect! Now a stupid question, which really kicked this whole dialog off.
My temp firewall is built with the default LAN interface configured and connected in a traditional manner. I would prefer to configure a vlan on this physical interface, so all my internal interfaces are running over vlan. I would assume I need to connect to the firewall over a different interface/subnet and then I can delete the LAN interface and make it a vlan?
Logged
Patrick M. Hausen
Hero Member
Posts: 6820
Karma: 572
Re: OPNsense Installation - VLAN Config
«
Reply #9 on:
January 19, 2022, 10:09:04 pm »
More or less. You can define all the VLANs you need using a different physical port and then
assign
the LAN interface to VLAN x in Interfaces > Assignments.
OPNsense provides an additional layer of abstraction between your rules and the network interfaces proper. WAN, LAN, ... are symbolic names that are used to assign the rules and are thenselves in turn assigned to the real interfaces.
No need to delete anything or recreate/move rules.
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
OPNsense Installation - VLAN Config