Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - RZ36

#1
Tutorials and FAQs / How to configure VLANS.
November 15, 2021, 12:51:27 AM
My goal: is to have 3-5 VLANs with some access to other VLANs and some blocked from the internet. My layout
OPNsense
WAN
LAN
-VLAN1(192.168.10.1) -VLAN 2(192.168.20.1) parent interface set to LAN.

Juniper Switch EX4200 48 port
Port 0 -> LAN OPNsense
Port 1 -> VLAN 1
Port 24 -> VLAN 2
Port 2-23/25-47-> Default

attempt1:
My PC is plugged into Port 1. I should have VLAN1. I'm unable to connect to both my switch and OPNsense. When I check my IP with ifconfig I see my IP is still from from default LAN(192.168.0.3). Have to move PC to Switch-Port2 to gain access to switch. I am able to connect OPNsense VLAN1 gateway(192.168.10.1)

attempt 2:
I've read that you have to setup a Trunk port between the switch and OPNsense so I set Switch-Port0 to trunk mode. Added VLAN1 and VLAN2 as members to Trunk Switch-Port0. PC is plugged into Port 1. Unable to connect OPNsense and Switch. When I move my PC to Switch-Port2(Default LAN) I'm able to connect back to the switch but OPNsense unable to connect to VLAN1 gateway. I have to turn off trunk mode on Switch-Port0 to regain access to OPNsense.