(eth1, no VLAN) (eth0) |¯¯¯¯¯¯¯¯¯¯|-------------------|¯¯¯¯¯¯¯¯| |¯¯¯¯¯¯¯| |¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯|WAN --------| OPNSENSE | | D-Link |--------| CISCO |--------| some devices (PC's) | |__________|-------------------|________| |_______| |_____________________| (eth2, no VLAN) | | | | |¯¯¯¯¯¯¯¯¯¯¯¯| |¯¯¯¯¯¯¯¯¯¯¯¯| | unifi AP 1 | | unifi AP 2 | |____________| |____________|
! VLAN config vlan default delete 1:6 create vlan WIFI_Guest tag 100 config vlan WIFI_Guest add untagged 1:6 config gvrp 1:6 pvid 100 enable vlan_trunk config vlan_trunk ports 1:1 state enable
vlan databasevlan 100 exit!interface vlan 100 name WIFI_Guest !interface gigabitethernet1 switchport trunk allowed vlan add 100 !interface gigabitethernet2 switchport trunk allowed vlan add 100 !interface gigabitethernet3 switchport trunk allowed vlan add 100 !interface gigabitethernet4 switchport trunk allowed vlan add 100 !interface gigabitethernet5 switchport trunk allowed vlan add 100 !interface gigabitethernet6 switchport trunk allowed vlan add 100 !interface gigabitethernet7 switchport trunk allowed vlan add 100 !interface gigabitethernet8 switchport trunk allowed vlan add 100 !interface gigabitethernet9 switchport trunk allowed vlan add 100 !interface gigabitethernet10 switchport trunk allowed vlan add 100 !exit