I am using RB951-2n rOS 6.39.2 (stable) .ether1 is WAN . There 3 network 1 for hotspot 2 for local network.
Wan IP: 192.168.2.30/24 GW : 192.168.2.1
Hotspot : 10.5.50.1/24
Local1 : 192.168.1.1/24
Local2 : 192.168.2.1/24
I cant use internet when Local2 address enabled.If I disabled Local2 address,I am using internet from all network. I configure static route for wan 192.168.2.1 but not working. I need local2 address 192.168.2.1 How can I solve ?
You’re duplicating an IP. The router knows where 192.168.2.1 is (on one of it’s own ports). I’m assuming you have no control of the IP and GW on your WAN port.
Easiest solution is to use a different Network IP range for local 2. If you want to keep the numbers easy to remember (local 1 is 192.168.1.x, local 2 is 192.168.2.x, etc), you can add 100 to it (local 1 becomes 192.168.101.x and local 2 becomes 19.168.102.x, etc).
Your default route 0.0.0.0 says to use 192.168.2.1 as gateway. I think the “reachable via ether1” means nothing, it’s just friendly info for the tech to see.
So it’ll route to 192.168.2.1, that IP belongs to Local2. Now I think Local2 will put it back in the routing, where it’ll get routed back to Local2 and the process repeats until the TTL expires and the packet is dropped.
Ofcourse I can change range but I noticed that Mikrotik can access to internet when Mikrotik listed mac address of wan device. Mikrotik listed mac address of wan when disabled local2 adress. Mikrotik works multiple wan with same gateway and I think it should work with static routes because I route 192.168.2.1%ether1 and reacheable on ether1.
Your statement about MAC address is just a symptom of the duplicated IP.
Once again: you cannot have the same IP range twice on one device. Period.
Change LAN2 or WAN, then it’ll work. If you don’t change one of those, it won’t work.