OpenWrt Forum Archive

Topic: Sending DHCP options

The content of this topic has been archived on 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Is it possible to have the DHCP client of OpenWrt to send specific DHCP options such as vendor class id to its gateway? I know that it is possible to receive options however i have found no way of sending them.

I am running the latest release candidate of backfire on my wndr3700.

/lib/network/config.sh

config_get clientid "$config" clientid
config_get vendorclass "$config" vendorclass
...
$DEBUG eval udhcpc -t 0 -i "$iface" ${ipaddr:+-r $ipaddr} ${hostname:+-H $hostname} ${clientid:+-c $clientid} ${vendorclass:+-V $vendorclass} -b -p "$pidfile" ${dhcpopts:- -R &}

/etc/config/network

config interface wan
option proto dhcp
option vendorclass 'CLASSID'

Network configuration - OpenWrt Wiki

The discussion might have continued from here.