DHCP Options (solved)

What values types in dhcp options are now supported in ver 6 ??
I can only find one. The hexadecimal .. like 0x123456
I getting error on all another one.

Thanks

/Patrik

I can see in the changelog this above but what types are supported.
I only get the hex working like 0x00.

And the env string value.

$(HOSTNAME)

But how to type you own strings ??


What’s new in 6.0rc1 (2012-Sep-26 14:56):

*) i386 - increased number of supported cores to 64;
*) userman - fix unpaid profile activation while authenticating;
*) dhcp client - custom options;
*) dhcp options - allow mixing different data types;

Bump We need to know how to enter strings.

I won’t be able to test for a few days but you may find luck converting a string to HEX and putting it in there. If you’re able to test please report your results back here as it may help others.

For example, I used http://string-functions.com/string-hex.aspx to convert “ftp://username:password@boot.server.com” to “6674703a2f2f757365726e616d653a70617373776f726440626f6f742e7365727665722e636f6d” then added a 0x in front and pasted into my DHCP Option 66 for my VoIP phones to get a boot server.

Hopefully this helps. I’ll be able to test it on Friday and can report back here then.

–Lyle

Yes of course you can convert to hex, like my another post.
http://forum.mikrotik.com/t/dhcp-options-option-60-66-not-working/65046/1

But how about to enter text strings ??
Or maybe i can enter a global variable with the string and use
the variable like dhcp option string in client. $(HOSTNAME).

But a don’t know how to enter a global variable that stays in the system.
To make a script that autostarts when the router starts.

And a have also a suggestion, to another problem a have.

I want to enter a hostname in the some fields insted of ip address.
So the router make a dns lookup first.

I have a pptp vpn connection. That hops/jumps on many ip addresses.
I want to solv it with a dyndns solution.

Best regards
/Patrik

ok, first of, this all works in CLI, winbox support i tested on 6.0rc14 also works.
previously ony hex value where possible, now there are additional stuff. All posibilities:
0xaabb
‘text’
$(VARIABLE)

now, VARIABLE can be
HOSTNAME
CLIENT_MAC


note: option value can hold any combination of types, so 0xaa’text’ is valid value (you can reorder those as required.

In addition to it all there is new field - raw-value that is calculated on print. If Option have valid value, it will be converted to HEX and shown.

and as allwasy option len field is calculated from length of actual value field.

And a have also a suggestion, to another problem a have.

I want to enter a hostname in the some fields insted of ip address.
So the router make a dns lookup first.

I have a pptp vpn connection. That hops/jumps on many ip addresses.
I want to solv it with a dyndns solution.

Great that you (Mikrotik) solved my question with dns resolv in the new firmware.

Thank you.