Problem
The dhcpd daemon is reporting messages similar to the following in to syslog;
Dec 18 18:27:18 servername dhcpd[28655]: Unknown user class RRAS.Microsoft Dec 18 18:27:18 servername dhcpd[28655]: Unknown vendor class 0x4d53465420352e30
What is happening and how can I stop this happening?
Cause
This is not an operating system error. /etc/dhcpd.conf needs to be edited to make it aware of the new device requesting an IP address.
Solution
The "0x4d53465420352e30" part of the vendor class is a series of hex numbers, which need to be split as follows, then converted to ascii for inclusion in the dhcpd.conf file.
4d 53 46 54 20 35 2e 30The following script will convert these numbers to ascii characters as follows. Ensure that you have Perl installed and in your path first.
**********echo "4d 53 46 54 20 35 2e 30" | \
perl -nle 'print join "", map { chr hex $_ } split " ";'---> MSFT 5.0**********Adding the following to your /etc/dhcpd.conf should therefore stop the messages:
vendor_class "MSFT 5.0" { comment To Silence Dhcpd }
You may also need the following to silence the RRAS.Microsoft issues;
user_class "RRAS.Microsoft" { comment To Silence DHCP RE MS Devices }
You must restart dhcpd for the changes to take effect. This
can be accomplished by either by issuing a `kill -1` on
the dhcpd pid or restarting your server.NOTES: OpenServer 5.0.5 & 5.0.6 - If you try to add a vendor class string
with white space (such as "MSFT 98" or "MSFT 5.0") in the GUI DHCP
Manager and select the OK button, the window closes, disappears and
the vendor class information is not saved. If I enter the same string
info with no white space then the vendor class info is saved. This is
a known issue which has been resolved in OpenServer 5.0.7. See also
man dhcpd