Hello guys,
I am trying to make work mikrotik dhcp server with option82
The network layout:
- Mikrotik CCR (ros 37.1) as dhcp server.
- As DHCP relay works ZTE GPON C300 OLT+ F601 ONU Option82 is configured and working.
- As DHCP client – Mikrotik (hap) ros 39.2
Desired result – To Get client IP address from Mikrotik DHCP server only with option82 remote-id= ZTE12345678 (<- sn of ONU), and not to use mac-address
Same network layout was tested with isc-dhcp-server on Debian. Other network components are the same.
The config of isc-dhcp server v4.3.1 dhcpd.conf:
host ONU {
host-identifier option agent.remote-id “ZTE12345678”;
fixed-address 192.168.88.10;
}
And everything works perfect. But we do not want to use another device on network, when we are using Mikrotiks. So, with Mikrotik:
To create dhcp option via cli we need:
/ip dhcp-server option add value=“‘ZTE12345678’” name=ONU code=82
And to create lease via cli:
/ip dhcp-server lease add dhcp-option=ONU address=192.168.88.10 server=test_server
failure: mac-address or client-id must be present
so we see, that is mandatory mac-address= or client-id=
Any ideas, how to workaround with mac-address ?