Where now to fill in the host-name?
If I try to make a new DCHCP Client Option in the “DHCP Client Options” section, I’ll get an error “Couldn’t add New DHCP Client Option - Unknown data type! (6)”
If I look in the lease table of the AP I see now the client has the full system ID in its ‘Active Host Name’ field. I don’t want that, I just want the antenna number. Not the full ID…
So obviously it has to be done another way. But I can’t find any documentation about it and after trying some options I gave up. Why can’t MT not come up with a manual if they bring out a new software version!
I mean, its not rc anymore, It’s real…
similar to dhcp-server, starting RouterOS 6.0 it is possible to add client-side options that are sent to DHCP server. Mechanism used to do that is similar to dhcp-server.
Configuration item is available under ‘/ip dhcp-client option’ where you can set up options used for client.
for example:
/ip dhcp-client option
set clientid code=61 name=clientid value=“0x01$(CLIENT_MAC)”
set hostname code=12 name=hostname value="$(HOSTNAME)"in this case values will be generated on the fly when request is created and CLIENT_MAC will be set to MAC address of interface and hostname will be taken from RouterOS identity. Other options can be added in a similar manner.
In your case you have to add option 12 with different value and name, and use your custom option 12.
Anyway, I have to use opcion 12, I guessed that. But then, how do I get my info in that field?
I want the client to surface in the dhcp-server ‘active hostname’ with a certain number, like ; “A3-005”
The hostname is actuall different, “A3-005 Mr. Mistername”
But I only want the CPE number to pop up in the dhcp-server. I’m in Spain here and people have long, looong names here.. I don’t want that in my dhcp-server hostname overview…
I tried
set hostname code=12 name=hostname value="A3-005"
but that is rejected.
I tried serveral things in winbox but everytime I get an error message. Since there is no manual on how to do this I’m getting nowhere…
So please give me a example what to do to make the client pop up in the dchp-server active hostname with “A3-005”
OK, your remark re quotation marks helped. I see now that ‘xx’ is with quotation marks, and "xx"is merely to quote or give the example.
Hence your “‘xx’” was a bit confusiong to me, after I even red over it a hundred time…