I have RB951G-2HnD as home router and configured VLANs on it (Switch Chip Vlan Filtering - Atheros 8327 Chip):
VLAN 88 → home network, untagged, VLAN 10 → guest network, tagged,- VLAN 20 → IoT network, tagged .
Ether 1 is WAN port, ether2-ether5 have connected other vendor APs.
Each AP has 3 SSID:
1 home (untagged with 192.168.88.1 gateway),
2.guest (tagged VLAN10 with 192.168.10.1 gateway)
3. IoT (tagged VLAN20 with 192.168.20.1 gateway).
Everything works but I want to ask do I need some changes in my config.
So my config is next:
/interface bridge
add name=bridge1
/interface bridge port
add bridge=bridge1 interface=ether2 hw=yes
add bridge=bridge1 interface=ether3 hw=yes
add bridge=bridge1 interface=ether4 hw=yes
add bridge=bridge1 interface=ether5 hw=yes
/interface ethernet switch vlan
add ports=ether2,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=88
add ports=ether2,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=10
add ports=ether2,ether3,ether4,ether5,switch1-cpu switch=switch1 vlan-id=20
/interface vlan
add interface=bridge1 name=VLAN10 vlan-id=10
add interface=bridge1 name=VLAN20 vlan-id=20
/ip address
add address=192.168.88.1/24 interface=bridge1
add address=192.168.10.1/24 interface=VLAN10
add address=192.168.20.1/24 interface=VLAN20
/ip pool
add name=POOL88 ranges=192.168.88.2-192.168.88.254
add name=POOL10 ranges=192.168.10.2-192.168.10.254
add name=POOL20 ranges=192.168.20.2-192.168.20.254
/ip dhcp-server
add address-pool=POOL88 disabled=no interface=bridge1 name=DHCP88
add address-pool=POOL10 disabled=no interface=VLAN10 name=DHCP10
add address-pool=POOL20 disabled=no interface=VLAN20 name=DHCP20
/ip dhcp-server network
add address=192.168.88.0/24 gateway=192.168.88.1
add address=192.168.10.0/24 gateway=192.168.10.1
add address=192.168.20.0/24 gateway=192.168.20.1
/interface ethernet switch port
set ether2 vlan-mode=secure vlan-header=leave-as-is default-vlan-id=88
set ether3 vlan-mode=secure vlan-header=leave-as-is default-vlan-id=88
set ether4 vlan-mode=secure vlan-header=leave-as-is default-vlan-id=88
set ether5 vlan-mode=secure vlan-header=leave-as-is default-vlan-id=88
set switch1-cpu vlan-mode=secure vlan-header=leave-as-is default-vlan-id=88
As you can see I used bridge1 as interface for home network (VLAN88 ) - do I need to make such changes ?:
- Add one more vlan in ‘/interface vlan’ → add interface=bridge1 name=VLAN88 vlan-id=88
- Set interface=VLAN88 for 192.168.88.1/24 in ‘/ip address’
- Set interface=VLAN88 for DHCP88 in ‘/ip dhcp-server’
- “Home” interface list (used for access to Mac-WinBox, now includes bridge1)
→ replace bridge1 with VLAN88 - “LAN” interface list (used for basic firewall rules, includes bridge1, VLAN10, VLAN20 )
replace bridge1 with VLAN88
Or if it work it should not be changed ?
Thank You.