FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
509 views 0 comments
by

Hi community

I have a RUTX11 00.02.03.4

On the lan side I have a device that needs to get specific options like :

option my_vendor.enroll-url "address.of.enrollement";
option my_vendor.enroll-bundle "bundlename";
option my_vendor.enroll-password "my-secret-token";
option my_vendor.api-port "8443";

so here is what I tried in the rutx shell :

uci set dhcp.my_vendor='vendorclass'
uci set dhcp.my_vendor.vendorclass='*my_vendor*'
uci add_list dhcp.my_vendor.dhcp_option='2,url.of.firmware'
uci add_list dhcp.my_vendor.dhcp_option='3,address.of.enrollement'
uci add_list dhcp.my_vendor.dhcp_option='4,enroll.bundle.name'
uci add_list dhcp.my_vendor.dhcp_option='5,my.secret.token'
uci add_list dhcp.my_vendor.dhcp_option='6,api.port'
uci commit dhcp
/etc/init.d/dnsmasq restart

options correctly added in /etc/config/dhcp but no option is returned in the DHCP response.

so I tried with :

vendorclass="my_vendor" (no wildcard, matching the exact vendorclass)--> FAILED
Mac instead of vendorclass --> FAILED
Putting all options in a single line --> FAILED
Assigned the option to the LAN interface ---> FAILED

Does anyone has a working setup for that ?

1 Answer

–1 vote
by anonymous
Hello,

I suggest looking at the OpenWRT page about using DHCP options:

https://openwrt.org/docs/guide-user/base-system/dhcp_configuration