I was taught in school, that routers can be coupled with point to point links as stated in RFC3021, with a /31 subnet, as follows:
I’m building a private network, composed of various nodes, linked with air point-to-point links.
those links are made with the Wireless Wire Dish LHGG-60ad.
so, if I want to implement the links between the routers with these equipments. It looks like this:
but.., Technically those dishes are hosts, they have a little web server for inspecting their signal status. That can be accessed with a webbrowser.
so, the point to point link, is in fact, a LAN!!!
but, it is a LAN with two gateways?, if i configure the IP address of the antenna, what gateway should I use?,
because I do not have a single router, but two routers, one each side.
How can the dishes communicate to a host outside the “LAN” ?
I can let these up without gateways, and these work, the link works in fact, because they work in layer2 level, but what if I want to inspect the signal strength and current status via web browser?
I guess i can’t put a DHCP server in this little LAN, because, there are two routers, the two routers can’t offer the DHCP service simultaneously in the same LAN.
What can I do for access and inspect the status of the antennas?
RouterOS doesn’t support /31 subnets, but it can use point-to-point with two completely different /32 addresses. I think it may even work with device that can only do /31, I read something like that in this forum, but I never had an opportunity to test it with such device.
Default gateway depends on what you want to achieve. If it’s access to internet (e.g. for updates), default gateway must lead to internet. So if you’d have internet only on R1, and R2 would be for remote LAN without own internet connection, the right default gateway for all devices is R1. If both R1 and R2 have internet and this link is connecting two independent networks, it might be best for wireless devices to use nearest router as default gateway.
If you don’t care about internet, only about access to wireless devices from both LANs, then you need to either add static routes to both LANs to both wireless devices, or you’d have to play with NAT, i.e. add srcnat rule to both routers, which would apply to all connections to wireless devices and make them look as if they come from routers (= same subnet => no need for gateways).
And for DHCP, if it’s static link, just use static addresses, no need to complicate it with DHCP.