16
German - Deutsch / Re: Fiber 7 via Swisscom und Opnsense
« on: November 14, 2019, 11:06:41 am »
Und?
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.
(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 database
vlan 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
You should be able to get a fibre modem that would bridge to ethernet AND support VLAN. That's how my VDSL works now, the modem is in bridge mode but it's using VLAN101 to connect. Opnsense then just does the PPPoE as normal.
WAN / Internet
:
: FTTH provider
:
.----+------------.
| PPPoE Router | (or Bridge, whatever)
'-----+-----------'
|
WAN
|
.-----+------.
| OPNsense |
'-----+------'
|
LAN