understand that there is no built-in function in RouterOSto fallback to static IP in the case DHCP Client is unable to get any IP (cmiiw). Has anyone successfully implement such thing?
I can imagine a script conditionally enabling the static ip address if the dynamic is not assigned. But why do you need it?
that’s what on my mind, but it’s not a good solution to have a schedule running to check on dhcp client status. to simplify cpe deployment
You can have multiple ip addresses active on interface, so you maybe don’t need to disable the static address at all…
right, but problem come when multiple devices are deployed on same network, ip conflict ![]()
When all will have the same script and will loose the dhcp address, do you expect that all will set themselves the same ip?
Thats the same.
What is the purpose? To be able to get to the device when no IP is asigned? You have available other more convenient options:
- management network splitted from the network of users (vlans, mpls/vpls, eoip, ppoe…)
- romon
- backup management over mac connection without IP address
Anythning wont fit for you? If not, what is the final goal you want to achieve?
to be able to have “plug and go” in a production network while having a “fallback” method for troubleshooting in the case the device plugged and not working. well, romon/mac inbox is another way, but i imagine no winbox, so browser+ip is a better way to go
I would say: setting a fixed IP like 192.168.88.1/24 on all devices is the way to go.
This is also how MikroTik equipment is normally delivered.