tak se mi to podarilo vyresit. VLANy se nastavi na urovni swithe a na jeden interface se pripoji VLANa a na ni DHCP
/interface ethernet
set master-port=ether2
/interface vlan
add interface=ether2 l2mtu=1594 name=vlan10 vlan-id=10
/interface ethernet switch port
set 2 default-vlan-id=10 vlan-header=always-strip vlan-mode=secure
set 3 default-vlan-id=10 vlan-header=always-strip vlan-mode=secure
set 11 vlan-mode=secure
/interface ethernet switch vlan
add independent-learning=no ports=ether2,ether3,switch1-cpu switch=switch1\
vlan-id=10
/ip address
add address=192.168.10.1/24 interface=vlan10 network=192.168.10.0
/ip pool
add name=dhcp_pool1 ranges=192.168.10.2-192.168.10.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=vlan10 name=dhcp1
/ip dhcp-server network
add address=192.168.10.0/24 dns-server=192.168.10.1 gateway=192.168.10.1