I built a network on Mikrotik using 2 different ISP networks then I created 3 LAN networks with different IPs, such as port 1 for ISP 1 and port for ISP 2, port 3 for LAN 1 with IP 192.168.30.1 and port 4 for LAN 2 with IP 192.168.31.1 and port 5 for LAN 3 with IP 192.168.32.1 but LAN 1 with LAN2 and LAN 3 cannot communicate. How can I make port 3 and port 4 communicate (can ping each other) what should I do?
Since a router normally allows routing among all networks connected to it unless you explicitly ask it not to do so (using firewall rules and/or routing rules and/or VRF settings), it is clear that something in your configuration is set differently from what you actually want to happen. Until you post an export of the current configuration, you cannot get a more useful response.
because I use 2 different ISPs so I have to make settings in mangle so that port 3 can access internet via ISP 1 and port 4 via ISP 2. Each IP gateway can be pinged. Laptop A is connected to port 3 with IP address 192.168.90.23 and laptop B is connected to port 4 with IP address 192.168.91.46, the two laptops cannot interconnect (laptop A cannot ping laptop B). Please help with the settings I need to do
OK, so you use mangle rules to choose a specific routing table for packets depending on their origin (source-address(-list) and/or in-interface(-list)). So you have to make these rules match also on dst-address-list so that they would not act on packets whose destination address is in another local subnet, something like /ip firewall address-list
add list=local-subnet address=local.sub.net.a/mask-a
…
add list=local-subnet address=local.sub.net.z/mask-z
/ip firewall mangle
set [find where action=mark-routing] dst-address-list=!local-subnet
But take these commands only as an inspiration - you haven’t posted the actual configuration so the actual mangle rules that need this modification may be those with action=mark-connection.