Port1(WAN) is subjected to untagged traffic and vlan66 tagged traffic. VLAN 66 tagged is passed to all ports in the bridge and vise a versa, while the untagged traffic on port 1 is natt'd and routed to and from all ports on the bridge.
The second config fails to work, why? It acts like a network loop occurs on the bridge itself, but I cannot prove or disprove this. Furthermore, I'm mystified as to the way the bridge seems to inherit properties from physical ports. For example, put a DHCP server on a port, then put all your ports in the bridge, and suddenly there's DHCP on all the ports that were added to the bridge. It makes more sense to me to think of the bridge as a layer 3 capable device and to add the DHCP server to the bridge and let the ports inherit form it.
Is there a more efficient way to accomplish what the first configuration does without having to add vlan66 to a physical port?
VLAN on port then added to bridge works...
Code: Select all
# 2024-03-07 15:49:04 by RouterOS 7.14
# software id = 3T7B-55NM
#
# model = CCR2116-12G-4S+
# serial number = HFD09A9M9VZ
/interface bridge
add name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name="WAN ether1 "
/interface vlan
add interface=ether9 name="VLAN66 Private" vlan-id=66
add interface="WAN ether1 " name="VLAN66 Public" vlan-id=66
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.100.2-192.168.100.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=bridge1 name=dhcp1
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge1 interface="VLAN66 Public"
add bridge=bridge1 interface=ether9
add bridge=bridge1 interface="VLAN66 Private"
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=ether6
add bridge=bridge1 interface=ether7
add bridge=bridge1 interface=ether10
add bridge=bridge1 interface=ether11
add bridge=bridge1 interface=ether12
add bridge=bridge1 interface=ether13
add bridge=bridge1 interface=ether8
/ip firewall connection tracking
set udp-timeout=10s
/interface bridge vlan
add bridge=bridge1 comment="VLAN66 Tagged" tagged="VLAN66 Private,VLAN66 Publi\
c,bridge1,ether2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,ether10,\
ether11,ether12,ether13" vlan-ids=66
add bridge=bridge1 comment="VLAN 1 Untagged" vlan-ids=1
/ip address
add address=192.168.100.1/24 comment=defconf interface=ether9 network=\
192.168.100.0
/ip dhcp-client
add interface="WAN ether1 "
/ip dhcp-server network
add address=192.168.100.0/24 gateway=192.168.100.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface="WAN ether1 "
/system clock
set time-zone-name=America/Los_Angeles
/system note
set show-at-login=no
VLAN directly on bridge, fails to pass traffic, private vlan interface refuses to come online in bridge vlan tab?
Code: Select all
# 2024-03-07 16:23:05 by RouterOS 7.14
# software id = 3T7B-55NM
#
# model = CCR2116-12G-4S+
# serial number = HFD09A9M9VZ
/interface bridge
add name=bridge1 vlan-filtering=yes
/interface ethernet
set [ find default-name=ether1 ] name="WAN ether1 "
/interface vlan
add interface=bridge1 name="VLAN66 Private" vlan-id=66
add interface="WAN ether1 " name="VLAN66 Public" vlan-id=66
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool0 ranges=192.168.100.2-192.168.100.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=bridge1 name=dhcp1
/port
set 0 name=serial0
/interface bridge port
add bridge=bridge1 interface="VLAN66 Public"
add bridge=bridge1 interface=ether9
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether2
add bridge=bridge1 interface=ether4
add bridge=bridge1 interface=ether5
add bridge=bridge1 interface=ether6
add bridge=bridge1 interface=ether7
add bridge=bridge1 interface=ether10
add bridge=bridge1 interface=ether11
add bridge=bridge1 interface=ether12
add bridge=bridge1 interface=ether13
add bridge=bridge1 interface=ether8
add bridge=bridge1 interface="VLAN66 Private"
/ip firewall connection tracking
set udp-timeout=10s
/interface bridge vlan
add bridge=bridge1 comment="VLAN66 Tagged" tagged="VLAN66 Public,bridge1,ether\
2,ether3,ether4,ether5,ether6,ether7,ether8,ether9,ether10,ether11,ether12\
,ether13,VLAN66 Private" vlan-ids=66
add bridge=bridge1 comment="VLAN 1 Untagged" vlan-ids=1
/ip address
add address=192.168.100.1/24 comment=defconf interface=ether9 network=\
192.168.100.0
/ip dhcp-client
add interface="WAN ether1 "
/ip dhcp-server network
add address=192.168.100.0/24 gateway=192.168.100.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface="WAN ether1 "
/system clock
set time-zone-name=America/Los_Angeles
/system note
set show-at-login=no
/system routerboard settings
set enter-setup-on=delete-key