OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: Georgi27 on August 22, 2018, 07:05:20 pm

Title: Need help setting up vlans with OpnSense and Cisco Switch.
Post by: Georgi27 on August 22, 2018, 07:05:20 pm
Hey all,

So here's what I'm trying to do.

I have a Cisco switch configured to have Vlans separating two networks.

Network 1 is for the office, servers, routers, and network 2 is for the guest Wifi running through an access point.
I have OpnSense installed on an old-ish workstation as a Router giving out ips through DHCP.

My question is this;

How do I go about creating 2 vlans on the Cisco switch and have the DHCP server proliferate it's addresses through both networks?


Title: Re: Need help setting up vlans with OpnSense and Cisco Switch.
Post by: phab on August 22, 2018, 08:36:50 pm
either use 2 seperate interfaces on your firewall or create vlans on the firewall - the physical interface i.e. LAN then transports vlan 10, 20, 30 (example) - cisco switch port must be configured as trunk though (allow all vlans through) - all other ports must be so called "access ports" on specific vlans i.e 10 or 20 or 30.

on the firewall just have dhcp running for each network on each vlan

vlan 10   10.1.10.0/24  default gw (interface of fwl) 10.1.10.254   dhcp range 10.1.10.1-100
vlan 20   10.1.20.0/24  default gw (interface of fwl) 10.1.20.254   dhcp range 10.1.20.1-100

and so on