1
General Discussion / Static DHCP mapping for client with bonded interface.
« on: January 31, 2021, 12:17:17 am »
I am trying to configure the OPNSense DHCP server to send a fixed IP address to clients with bonded interfaces (multiple physical interfaces bonded in one virtual interface). The problem is that the bonded interface arbitrarily chooses the mac address of one of its underlying physical interfaces as its own mac address. This means that the mac address can change (and does change) each time the interface is rebooted. Thus, the static mapping in OPNSense cannot be based on a fixed MAC address for the client.
I have tried two things:
I am curious if anyone has had the same issue and found a way to make it work. It seems like a limitation with DHCP itself, although it does seem like this is what the "client identifier" option is for.
I have tried two things:
- Leave the mac address blank in the DHCP static map specification in OPNSense, and just set the client identifier. Have the client send that same identifier.
- Add a static map for all (four) physical mac addresses the bonding interface can take
I am curious if anyone has had the same issue and found a way to make it work. It seems like a limitation with DHCP itself, although it does seem like this is what the "client identifier" option is for.