I want to use a single vlan bridge for best performance.
ETH1 is the WAN port, ETH3 is the trunk port to the next MT router.
WAN traffic is VLAN100, LAN traffic is VLAN200 on the trunk.
Both VLANS are defined on the bridge interface.
ETH1 and ETH3 are connected to the bridge (with pvid 100 and 200 resp.).
LAN network is configured by adding a DHCP server on VLAN200.
WAN IP should be got through DHCP Client of VLAN100.
But it doesn't get IP unless I set the bridge itself as the DHCP client interface but this is not what I want to achieve.
The config:
Code: Select all
/interface vlan add interface=bridge name=vlan100 vlan-id=100
add interface=bridge name=vlan200 vlan-id=200
/interface bridge add disabled=yes name=WAN-bridge
add admin-mac=... auto-mac=no comment=defconf name=bridge port-cost-mode=short
/interface bridge port add bridge=bridge comment=defconf ingress-filtering=no interface=ether2 internal-path-cost=10 path-cost=10 pvid=200
add bridge=bridge comment=defconf ingress-filtering=no interface=ether4 internal-path-cost=10 path-cost=10 pvid=200
add bridge=bridge interface=ether3
add bridge=bridge interface=ether1 pvid=100
/interface bridge vlan add bridge=bridge tagged=ether3,bridge vlan-ids=100,200
/ip dhcp-server add address-pool=dhcp interface=vlan200 name=dhcp
/ip dhcp-server network add address=192.168.128.0/24 comment=defconf dns-server=192.168.128.1 gateway=192.168.128.1 netmask=24
/ip dhcp-client add interface=vlan100
What am I doing wrong?