Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
New setup - tagged vlan for default LAN interface
« previous
next »
Print
Pages: [
1
]
Author
Topic: New setup - tagged vlan for default LAN interface (Read 405 times)
yanndecay
Newbie
Posts: 14
Karma: 0
New setup - tagged vlan for default LAN interface
«
on:
August 06, 2024, 07:47:27 pm »
Hey guys,
i am struggeling with putting my default LAN interface in tagged vlan.
Right now it's a playground and I have no router/network at all. My computer is connected to my cisco switch and the switch is connected to Port1 of my OPNsense. Both are in the same vlan (on the switch), but right now there is no vlan of course.
After OPNsense installation I choose option 1 in the (vga) menu to assign interfaces. here I say "y" for the creation of the vlan and create the vlan of my choice. Later when it asks me for the LAN interface i point to that new vlan interface. And like that I have no connection to the GUI. If I point it to the parent interface, the connection works but then the vlan10 is unused in the OPNsense but that's not what I want.
Why is it not working like that? What do I need to do to be able to connect to the GUI on vlan10 only in my scenario?
Logged
Patrick M. Hausen
Hero Member
Posts: 6807
Karma: 572
Re: New setup - tagged vlan for default LAN interface
«
Reply #1 on:
August 06, 2024, 08:01:52 pm »
You need to configure the switch port connected to OPNsense as a trunk port with allowed VLAN 10 (or all, depending on your policy).
Logged
Deciso DEC750
People who think they know everything are a great annoyance to those of us who do.
(Isaac Asimov)
yanndecay
Newbie
Posts: 14
Karma: 0
Re: New setup - tagged vlan for default LAN interface
«
Reply #2 on:
August 06, 2024, 08:53:25 pm »
sounded like the solution. but unfortunetly it doesn't work.
Right now i have (for sense connection) on port 4 a working setup with Computer->vlan10<->SWITCH<->vlan10->OPNsense but connected to LAN without vlan.
And on Port 1 (my new test) I have from the switch a trunk to the sense (allowed all vlans for now).
Now in the opnsense I have an interface called VLAN10 which is igc0_vlan10 (igc0=port1) and my preferred IP which is in the same subnet like port 4.
I also activated the Parent interface igc0 but gave no IP (interestingly it still shows one in the console view (192.168.1.1./24).
Usually it should work like this, right?
Logged
Strator
Newbie
Posts: 17
Karma: 1
Re: New setup - tagged vlan for default LAN interface
«
Reply #3 on:
August 07, 2024, 12:20:43 am »
The OPNsense parent interface is your untagged VLAN on the switch, i.e. the native VLAN of the trunk. Child interfaces will be your tagged VLANs.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
New setup - tagged vlan for default LAN interface