Comment 57 for bug 10239

Revision history for this message
oliver (oliver-schinagl) wrote :

I'm not entirely sure if this is the same bug, I can always open a new one, but my University wired network requires me to send my student ID (e.g. an arbitrary string) as hostname. Uni laptops have their hostname setup as heir student ID. Of course, I could just setup my hostname as my student ID but why if there's a proper way of doing this.

With ISC dhcpcd I simply supplied the -h parameter and it worked. Network manager since then has under the DHCP Client ID field under IPV4 settings for a wired connection. However this does not seem to get passed to dhclient, as send host-name "<hostname>"; from the config file gets used and always sent.

E.g. the DHCP Client ID field doesn't do anything. A workaround is to go into /etc/dhcp3/dhclient.conf and comment out the send host-name "<hostname> "; part. Now network manager nicely passes along the host-name from the DHCP Client ID field and everything works.

So I suppose, 'a' proper fix would be to set the DHCP Client ID field to hostname default and pass that to dhclient and not have a hardcoded override in dhclient.conf. I also belive, and I do not know the inner workings of network-manager, but this should be in the daemon bit of it, and not only in the GUI bit.

oliver