I want implement docsis provisioning with mikrotik dhcp server, authenticated with radius.
The radius authentication is ok, i get the file-name in radius reply to “RADIUS_MT_STR1” variable. But.
Noticed that, some modems don’t request the option 67, but it needed to start up.
Trided to write static string to the network “Boot File Name” option and it sended, but if configured in options as option 67 it not sended.
This is not sended:
There’s no use force sending a dhcp option that the client didn’t specifically request. It will be ignored even if it were sent along with the dhcp offer. The best you can do is to modify the client, the modem in this case, so that it specifically requests that option, if that’s even possible.
I’m not sure how the boot-file-name option in /ip dhcp-server network can work but not the one in the /ip dhcp-server option when provided via the dhcp-option option, if the boot-file-name dhcp option (code 67) is NOT specifically requested by the client. The two should function just the same, i.e. provide option code 67 to clients that request it. The variable RADIUS_MT_STR1 is only valid under the /ip dhcp-server option scope, so you can’t use that inside the network submenu.
If it is the case that the boot-file-name option works, then my suggestion would be to define a fixed boot-file-name that you can supply to that option, and not rely on the variable provided from the radius authentication reply.