Hi all,
I'm trying to give fixed addresses to some devices through CNR DHCP.
To do that, I assign a dhcp-client-identifier to the incoming DHCP
request through a post-packet-decode C extension (the code is the
following:
strcpy(zt_ClientID, "01:11:11:11:22:22:22");
pRequest->put( pRequest, "dhcp-client-identifier",
zt_ClientID,DEX_REPLACE);
zp_Attr = pRequest->get( pRequest, "dhcp-client-identifier", 0,0);
)
So the dhcp-client-identifier is different from the client
Mac-address.
Then I add a reservation for this client by nrcmd :
nrcmd> client 1,6,11:11:11:22:22:22 create
nrcmd> scope SAN1-data addreservation 192.168.1.100
1,6,11:11:11:22:22:22
nrcmd> save
nrcmd> lease 192.168.1.100 send-reservation
But it does not work.
What is wrong ?
|