You are not logged in.

#1 2015-03-29 10:18:47

leniviy
Member
Registered: 2009-05-23
Posts: 177

[SOLVED] NetworkManager dhclient send host-name

I use network-manager-applet on xfce4 . dhclient does not send the host name to the server. I don't see any related option in the applet.

dhclient is started without the "-H" option and the generated conf does not have a "send host-name" line.

"dhcp-client-identifier" is something different.

[il@vmarch ~]$ ps -Af | grep dhcp
root       548   185  0 12:01 ?        00:00:00 /usr/bin/dhclient -d -q -sf /usr/lib/networkmanager/nm-dhcp-helper -pf /var/run/dhclient-enp0s3.pid -lf /var/lib/NetworkManager/dhclient-eae8589b-41a8-4e9a-9bf1-29c0a43dc88a-enp0s3.lease -cf /var/lib/NetworkManager/dhclient-enp0s3.conf enp0s3


[il@vmarch ~]$ sudo cat /var/lib/NetworkManager/dhclient-enp0s3.conf
# Created by NetworkManager

option rfc3442-classless-static-routes code 121 = array of unsigned integer 8;
option ms-classless-static-routes code 249 = array of unsigned integer 8;
option wpad code 252 = string;

also request rfc3442-classless-static-routes;
also request ms-classless-static-routes;
also request static-routes;
also request wpad;
also request ntp-servers;

Last edited by leniviy (2015-03-29 15:54:58)


Arch 64, xfce4

Offline

#2 2015-03-29 15:52:16

leniviy
Member
Registered: 2009-05-23
Posts: 177

Re: [SOLVED] NetworkManager dhclient send host-name

For some reason, NM does not use the host name obtained from OS.
Workaround:

[root@vmarch ~]# nmcli con show 
NAME    UUID                                  TYPE            DEVICE 
enp0s3  84b17c75-9129-4944-849e-b82003511578  802-3-ethernet  enp0s3 
[root@vmarch ~]# nmcli con show enp0s3 | grep ipv4.dhcp-hostname
ipv4.dhcp-hostname:                     --
[root@vmarch ~]# nmcli con modify enp0s3 ipv4.dhcp-hostname `hostname`

Last edited by leniviy (2015-03-29 15:54:46)


Arch 64, xfce4

Offline

Board footer

Powered by FluxBB