I'm a network engineer doing a NAC project for Cisco ISE. We need to make sure that the various Linux boxes announce what they are in their DHCP request so they can be profiled correctly and put in the right VLAN. For some reason it doesn't appear to be working. Below is a copy of my /etc/dhcp/dhclient.conf file.
# DHCP Client Configuration file.
# see /usr/share/doc/dhclient/dhclient.conf.example
# see dhclient.conf(5) man page
#
# Send client identifier as "hardware-type.link-layer address" (e.g. "1.c2.23.7d.c3.52.2c")
# Required in environments where a bridge might be clobbering the forwarded
# packet's MAC address (common in Wifi, Docsis, or ADSL bridging scenarios)
# see dhcp-options(5) man page for 'dhcp-client-identifier'
# see dhcp-eval(5) man page for 'hardware'
send host-name = pick-first-value(gethostname(), "ISC-dhclient");
send vendor-class-identifier "CentOS Linux";
I also attached some of the leases in my DHCP server. The CentOS box is the Mac ending in ea:ba with the IP 192.168.0.78. Other Linux boxes including my Rasperry Pi send the VCI without having to change any files. My guess is that my syntax is wrong or that this file is not actually being used when it brings up networking. Hoping someone in here ran in to this already and knows the answer. Thanks in advance!
CentOS 8 DHCP client not sending hostname or vendor class identifier
CentOS 8 DHCP client not sending hostname or vendor class identifier
- Attachments
-
- Firewall DHCP lease.png (146.68 KiB) Viewed 2612 times
Re: CentOS 8 DHCP client not sending hostname or vendor class identifier
hostnamectl set-hostname $yourhostname
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke
Re: CentOS 8 DHCP client not sending hostname or vendor class identifier
Thanks Trevor. It is now sending the hostname. Any idea how to get it to send the VCI? That's really the important part.