I have an IOT device with static IP connected to a Mikrotik LTE device on ether1. The IOT host sends a multicast packet every second. The packet contains the IP and MAC of the host.
I need to configure the IOT device on a Linux box connected to the internet. (DDNS but I am also willing to configure the IP.)
What is the easiest way to get the host IP and MAC to the Linux server? Will it be to configure multicasting or by sending the hostname (IP and MAC) from the Mikrotik to the Linux server on startup?
Other constraints are that I would like to stop the multicast once the IOT device is detected and it would also be nice if the link can include compression as it is XML data that is sent via the TCP or UDP packets in both directions so at least a 25 % cost saving can be achieved.
The purpose of forwarding the multicast is to read the IP- and MAC- address of the IOT device as mentioned. The information is contained in the multicast packet. Once the information is detected, the multicast will be unsubscribed from that specific device, but I will still need to detect the multicast from others, so I suspect I will need IGMPv3 if multicasting is used?
I do not know if it will be simpler to just use the hostname table on the Mikrotik? I then need the Mikrotik to report the IP and MAC to the Linux box on start-up.
The final deployment will not be via the internet but on private APN and so no security is required, only compression as mentioned.
What I know so far:
- create bridge1 on the Mikrotik - I can do this
- move lte1 and ether1 to bridge1 - I can do this
- set up the static IP route on the mikrotik - help please
- do I need to configure the firewall - help please
- test route and firewall by pinging in both directions - I will be able do this
- etc. ?
Any help or suggestions are welcome.