The main network is 172.16.2.0/24, the vlan is 192.168.10.0/24. There's a dhcp server on each network: both are defined on M1.
The setup works almost completely: if I connect something to M2 it correctly gets an IP inside the vlan. Also I have internet on devices connected like that.
The problem is, I can't ping a device inside the lan from one inside the vlan, and viceversa.
I can ping anything from both RBs and I can ping all routers' IPs from any device in both subnets, but I can't ping a device in one subnet from a device in the other, and viceversa.
This happens with all filters disabled.
I'm kind of lost here, I'll paste the relevant code from both boars, hope you guys can help me.
Code: Select all
M1 (main routerboard, 172.16.2.1, 192.168.10.254)
/interface vlan
add interface=bridge-local name=vlan777 vlan-id=777
/ip pool
add name=dhcp_pool2 ranges=192.168.10.100-192.168.10.199
/ip dhcp-server
add address-pool=default-dhcp authoritative=after-2sec-delay disabled=no \
interface=bridge-local lease-time=7h name=default
add address-pool=guest-dhcp authoritative=after-2sec-delay disabled=no \
interface=bridge-guest lease-time=1h name=guest
add address-pool=vlan-dhcp disabled=no interface=vlan777 name=vlan
/interface bridge port
add bridge=bridge-local interface=ether2-local
add bridge=bridge-local interface=ether3-local
/ip address
add address=192.168.10.254/24 interface=vlan777 network=192.168.10.0
add address=172.16.2.1/24 interface=bridge-local network=172.16.2.0
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=192.168.10.254 gateway=192.168.10.254
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=192.168.10.0/24 \
new-routing-mark=VLAN passthrough=no src-address=172.16.2.0/24
/ip route
add distance=1 dst-address=192.168.10.0/24 gateway=vlan777 routing-mark=VLAN
M2 ("vlan" routerboard, 172.16.2.136 (dhcp), 192.168.10.198 (dhcp))
/interface bridge
add name=bridge1
/interface vlan
add interface=ether1 name=vlan777 vlan-id=777
/interface bridge port
add bridge=bridge1 hw=no interface=ether2
add bridge=bridge1 hw=no interface=ether3
add bridge=bridge1 interface=vlan777
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=bridge1
add default-route-distance=2 dhcp-options=hostname,clientid disabled=no \
interface=ether1
/ip firewall mangle
add action=mark-routing chain=prerouting dst-address=172.16.2.0/24 \
new-routing-mark=VLAN passthrough=no
/ip route
add distance=1 dst-address=172.16.2.0/24 gateway=172.16.2.1 routing-mark=VLAN