Hi, I’m trying to get this RB2011UiAS to work with my ISP’s multiple VLAN configuration for internet and IPTV, but I am running into problems where it seems that I can only have one DHCP client active on WAN. As soon as the second DHCP client gets a lease, the first one stops working.
Config page for my ISP (in Dutch)
https://blog.tweak.nl/hardware/vlan-configuratie-bij-gebruik-eigen-apparatuur/
Cliffnotes:
2 VLANs on WAN, 34 and 4. Both need a DHCP client, only VLAN 34 DHCP needs to add a default route. Both VLANs need to be NAT’ed, and there needs to be a static route for 185.6.48.0/26 on VLAN4, and IGMP snooping needs to be enabled for VLAN 4.
My current config is as follows (only relevant parts pasted, ofc)
/interface bridge
add admin-mac=E4:8D:8C:1D:E4:A4 auto-mac=no fast-forward=no igmp-snooping=yes \
name=bridge-local
/interface vlan
add interface=sfp1 name=vlan4 vlan-id=4
add interface=sfp1 name=vlan34 vlan-id=34
/ip dhcp-client
add dhcp-options=clientid,hostname disabled=no interface=vlan34
add add-default-route=no dhcp-options=clientid,hostname interface=vlan4 \
use-peer-dns=no use-peer-ntp=no
add chain=input connection-state=established,related
add action=fasttrack-connection chain=forward connection-state=\
established,related
add action=accept chain=input in-interface=sfp1
add action=drop chain=forward connection-state=invalid in-interface=sfp1
add action=log chain=input in-interface=sfp1 log-prefix="DROP INPUT"
/ip firewall nat
add action=masquerade chain=srcnat out-interface=vlan4
add action=masquerade chain=srcnat out-interface=vlan34
/ip route
add distance=1 dst-address=185.6.48.0/26 gateway=10.10.16.1