I'm having trouble setting up VLAN-s in my network. For router I use RB4011iGS+RM (6.44.6) and Ubiquiti US-8-60W for switch.
In RB4011 I have created VLAN interfaces to "Switch_bonding" interface what is connected to Ubiquiti switch where main devices are connected through access ports and WiFi AP with trunk port. I need some devices still to be connected directly to RB4011 with access port. For them I have created bridge and added VLAN and port into it. VLAN-s what are only connected to trunk port in RB4011 have DHCP server on VLAN interface, these two VLAN's what are also on access ports on router have DHCP server on bridge, because otherwise DHCP didn't work.
Problem is that my log is filled with following: Core_vlan: bridge port received packet with own address as source address (c4:ad:34:d7:d5:45), probably loop
Here's diagram of my network. There are devices missing from access ports behind switch, but I guess they aren't very important also right now. Also VLAN 4 may be ignored, because it's IPTV from my ISP and works like it should.
Code: Select all
/interface bonding
add mode=802.3ad name=Switch_bonding slaves=ether1,ether2
/interface bridge
add name=Core_bridge
add name=Guest_bridge
add name=Home_bridge
add name=IPTV_bridge protocol-mode=none
add name=IoT_bridge
/interface vlan
add interface=sfp-sfpplus1 name=IPTV_vlan vlan-id=4
add interface=Switch_bonding name=Core_vlan vlan-id=10
add interface=Switch_bonding name=Home_vlan vlan-id=20
add interface=Switch_bonding name=IoT_vlan vlan-id=30
add interface=Switch_bonding name=Guest_vlan vlan-id=80
/interface bridge port
add bridge=IPTV_bridge interface=IPTV_vlan
add bridge=IPTV_bridge interface=ether9
add bridge=Core_bridge interface=Core_vlan
add bridge=Core_bridge interface=ether5
add bridge=Home_bridge interface=Home_vlan
add bridge=Home_bridge interface=ether7
add bridge=Home_bridge interface=ether8
Here's output of interfaces what have C4:AD:34:D7:D5:45 MAC address.
Code: Select all
> /interface print where mac-address=C4:AD:34:D7:D5:45
Flags: D - dynamic, X - disabled, R - running, S - slave
# NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS
0 RS ether1 ether 1500 1592 9578 C4:AD:34:D7:D5:45
1 RS ether2 ether 1500 1592 9578 C4:AD:34:D7:D5:45
2 RS Core_vlan vlan 1500 1588 C4:AD:34:D7:D5:45
3 R Guest_vlan vlan 1500 1588 C4:AD:34:D7:D5:45
4 RS Home_vlan vlan 1500 1588 C4:AD:34:D7:D5:45
5 R IoT_vlan vlan 1500 1588 C4:AD:34:D7:D5:45
6 R Switch_bonding bond 1500 1592 C4:AD:34:D7:D5:45
I also tried VLAN and bridging with following configuration and added DHCP to VLANs. But then devices connected directly to didn't get addresses from DHCP server. And there was packet loss on network.
Code: Select all
/interface bridge
add name=Bridge-LAN
/interface vlan
add interface=Bridge-LAN name=VLAN-Core vlan-id=10
add interface=Bridge-LAN name=VLAN-Home vlan-id=20
add interface=Bridge-LAN name=VLAN-IoT vlan-id=30
add interface=Bridge-LAN name=VLAN-Guest vlan-id=80
/interface bridge port
add bridge=Bridge-LAN interface=Bonding-Switch
add bridge=Bridge-LAN interface=ether5 pvid=10
add bridge=Bridge-LAN interface=ether7 pvid=20
add bridge=Bridge-LAN interface=ether8 pvid=20
/interface bridge vlan
add bridge=Bridge-LAN untagged=ether5 tagged=Bridge-LAN,Bonding-Switch vlan-ids=10
add bridge=Bridge-LAN untagged=ether7,ether8 tagged=Bridge-LAN,Bonding-Switch vlan-ids=20
add bridge=Bridge-LAN tagged=Bridge-LAN,Bonding-Switch vlan-ids=30
add bridge=Bridge-LAN tagged=Bridge-LAN,Bonding-Switch vlan-ids=80