During kickstart installation you can specify dhcpclass=intserver in the anaconda command line and in kickstart file as well. Anaconda honors the request and gets IP from the configured pool and it populates interface configuration file with two options: # grep -i dhcp /etc/sysconfig/network-scripts/ifcfg-eth0 BOOTPROTO=dhcp DHCPCLASS=intserver DHCP_HOSTNAME=pavilion DHCP_CLASSID=intserver Only DHCP_HOSTNAME is propagated into /etc/dhclient-eth0.conf: cat /etc/dhclient-eth0.conf send host-name "pavilion"; # temporary RHL ifup addition It should also add send user-class "intserver"; or, what anaconda uses, send vendor-class-identifier "intserver";
Dave, when was this added to anaconda?
24-Oct-2008, commit 8807d1cfc446bd23404e150e31eb0cf7fe4c98e1 I now write out dhclient-DEVICE.conf in anaconda since we're using NetworkManager now. It will pick up that file and combine it with its own internal settings for the device (which is picked up from ifcfg-DEVICE). ifcfg-fedora in NetworkManager doesn't read every possible value that could exist in ifcfg-DEVICE, which is why I put 'send vendor-class' in dhclient-DEVICE.conf during installation. Hope that explains it.
Given that anaconda writes out dhclient-DEVICE.conf, I'm not sure anything needs changed in initscripts. Am I missing something?
I assume anaconda does it during installation process, but installed system doesn't have 'send vendor-class-identifier' in dhclient-DEVICE.conf
Does anaconda need to copy it to the installed system?
(In reply to comment #5) > Does anaconda need to copy it to the installed system? Probably. It's not doing that now. Reassigning bug to me.
But if the settings in ifcfg-DEVICE are changed, anaconda won't be there to update dhclient-DEVICE.conf. I still think ifup-eth should do it, the same way it does it for DHCP_HOSTNAME, the changes are really trivial: if [ -n "${DHCP_CLASSID}" ]; then # Send a vendor-class-identifier to the DHCP server if [ -w /etc/dhclient-${DEVICE}.conf ] ; then if ! LC_ALL=C grep "send *vendor-class-identifier *\"${DHCP_CLASSID}\"" /etc/dhclient-${DEVICE}.conf > /dev/null 2>&1 ; then echo "send vendor-class-identifier \"${DHCP_CLASSID}\"; # temporary RHL ifup addition" >> /etc/dhclient-${DEVICE}.conf fi elif ! [ -e /etc/dhclient-${DEVICE}.conf ] ; then echo "send vendor-class-identifier \"${DHCP_CLASSID}\"; # temporary RHL ifup addition" >> /etc/dhclient-${DEVICE}.conf fi fi
This fix will be included in anaconda-11.4.1.59-1 in rawhide.