Can anyone explain please !?

Hello ! i wish i can get fast answer for this both question as am beginner in Mikrotik !\

i have 2 ADSL WAN connection dhcp and i have 2 separated lan network
i want to connect each wan to its lan without mixing them like a switch so they can be totally separated 2 networks each lan receive from its wan
exammple WAN (192.168.2.1) to lan (192.168.22.1)
and WAN2 (192.168.3.1) to lan2 (192.168.23.1)
like a routing link not to distribute internet only link of internet so the lan side 1 can use only 1 ip address to get internet from wan1

same for lan 2 and wan 2



my second question is

i dad configure addresses and nat for a router board 750gl inteenet is ok all pcs on network have internet i did ad in quewe some users but any user connect with any ip can have access to internet , how to assign ip and disable internet for the rest of the lan network.

thanks
scheme.jpg

Fun fun fun… my 3rd reply this morning regarding Policy Based Routing.

As for only allowing DHCP assigned users access to the Internet, you’ll want to modify your NAT rule so that it only allows from those specific source addresses:
/ip firewall address-list
add address=192.168.22.0/24 list=LAN1
add address=192.168.23.0/24 list=LAN2
/ip firewall nat
add chain=srcnat action=src-nat src-address-list=LAN1 out-interface=WAN1 action=masquerade
add chain=srcnat action=src-nat src-address-list=LAN2 out-interface=WAN2 action=masquerade
/ip firewall mangle
add action=mark-routing chain=prerouting src-address-list=LAN1 new-routing-mark=WAN1
add action=mark-routing chain=prerouting src-address-list=LAN2 new-routing-mark=WAN2
/ip route
add gateway=192.168.2.1 routing-mark=WAN1
add gateway=192.168.3.1 routing-mark=WAN2* This config is from memory… it may not work as advertised, but it should get you going.

How can the same thing be done with WAN getting IP address via DHCP?