The hostname configured for the interface network script is set. The proper hostname is shown when checking nmcli for the ipv4.dhcp-hostname option, the ipv4.dhcp-send-hostname, and when viewing the generated interface configuration for send host-name option. With everything set and "dhclient eth0" as the executed command the hostname is not sent to the DHCP server. When "dhclient eth0 -H SPACE01" is executed the DHCP server finds hostname.
Anyone seen this behavior before? ================================= "dhclient eth0" Aug 17 20:45:38 DHCP02 dhcpd: DHCPDISCOVER from 52:54:00:a9:62:56 via eth0 Aug 17 20:45:39 DHCP02 dhcpd: DHCPOFFER on 192.168.1.200 to 52:54:00:a9:62:56 via eth0 Aug 17 20:45:39 DHCP02 dhcpd: DHCPREQUEST for 192.168.1.200 (192.168.1.6) from 52:54:00:a9:62:56 via eth0 Aug 17 20:45:39 DHCP02 dhcpd: DHCPACK on 192.168.1.200 to 52:54:00:a9:62:56 via eth0 "dhclient eth0 -H SPACE01" Aug 17 20:45:52 DHCP02 dhcpd: DHCPRELEASE of 192.168.1.200 from 52:54:00:a9:62:56 via eth0 (found) Aug 17 20:46:02 DHCP02 dhcpd: DHCPDISCOVER from 52:54:00:a9:62:56 via eth0 Aug 17 20:46:02 DHCP02 dhcpd: DHCPOFFER on 192.168.1.200 to 52:54:00:a9:62:56 (SPACE01) via eth0 Aug 17 20:46:02 DHCP02 named[13511]: client 127.0.0.1#15733: updating zone 'linux.soule.ad/IN': adding an RR at 'SPACE01.linux.soule.ad' A Aug 17 20:46:02 DHCP02 named[13511]: client 127.0.0.1#15733: updating zone 'linux.soule.ad/IN': adding an RR at 'SPACE01.linux.soule.ad' TXT Aug 17 20:46:02 DHCP02 dhcpd: DHCPREQUEST for 192.168.1.200 (192.168.1.6) from 52:54:00:a9:62:56 (SPACE01) via eth0 Aug 17 20:46:02 DHCP02 dhcpd: DHCPACK on 192.168.1.200 to 52:54:00:a9:62:56 (SPACE01) via eth0 Aug 17 20:46:02 DHCP02 named[13511]: zone linux.soule.ad/IN: sending notifies (serial 2017081636) Aug 17 20:46:02 DHCP02 dhcpd: Added new forward map from SPACE01.linux.soule.ad. to 192.168.1.200 Aug 17 20:46:02 DHCP02 named[13511]: client 127.0.0.1#15733: updating zone '1.168.192.in-addr.arpa/IN': deleting rrset at '200.1.168.192.in-addr.arpa' PTR Aug 17 20:46:02 DHCP02 named[13511]: client 127.0.0.1#15733: updating zone '1.168.192.in-addr.arpa/IN': adding an RR at '200.1.168.192.in-addr.arpa' PTR Aug 17 20:46:02 DHCP02 dhcpd: Added reverse map from 200.1.168.192.in-addr.arpa. to SPACE01.linux.soule.ad. Aug 17 20:46:02 DHCP02 named[13511]: zone 1.168.192.in-addr.arpa/IN: sending notifies (serial 2017081631) Aug 17 20:46:02 DHCP02 named[13511]: client 192.168.1.15#64099 (linux.soule.ad): transfer of 'linux.soule.ad/IN': IXFR started Aug 17 20:46:02 DHCP02 named[13511]: client 192.168.1.15#64099 (linux.soule.ad): transfer of 'linux.soule.ad/IN': IXFR ended [root@space01 ~]# [root@space01 ~]# nmcli con show eth0 | grep dhcp ipv4.dhcp-client-id: -- ipv4.dhcp-timeout: 0 ipv4.dhcp-send-hostname: yes ipv4.dhcp-hostname: SPACE01 ipv4.dhcp-fqdn: -- ipv6.dhcp-send-hostname: yes ipv6.dhcp-hostname: SPACE01 DHCP4.OPTION[9]: dhcp_server_identifier = 192.168.1.9 DHCP4.OPTION[14]: dhcp_rebinding_time = 453600 DHCP4.OPTION[16]: dhcp_message_type = 5 DHCP4.OPTION[19]: dhcp_renewal_time = 259200 DHCP4.OPTION[31]: dhcp_lease_time = 518400 [root@space01 ~]# cat /var/lib/NetworkManager/dhclient-eth0.conf # Created by NetworkManager send host-name "SPACE01"; # added 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; [root@space01 ~]# [root@space01 ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0 TYPE="Ethernet" BOOTPROTO="dhcp" DEFROUTE="yes" PEERDNS="yes" PEERROUTES="yes" IPV4_FAILURE_FATAL="no" IPV6INIT="yes" IPV6_AUTOCONF="yes" IPV6_DEFROUTE="yes" IPV6_PEERDNS="yes" IPV6_PEERROUTES="yes" IPV6_FAILURE_FATAL="no" NAME="eth0" UUID="2b0e25e9-3404-4510-8990-6ec7d8ff1568" DEVICE="eth0" ONBOOT="yes" DHCP_HOSTNAME="SPACE01" [root@space01 ~]# [root@space01 ~]# yum info NetworkManager Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.chpc.utah.edu * epel: mirror.chpc.utah.edu * extras: mirror.sesp.northwestern.edu * jpackage-generic: mirror.ibcp.fr * updates: centos-distro.cavecreek.net Installed Packages Name : NetworkManager Arch : x86_64 Epoch : 1 Version : 1.4.0 Release : 20.el7_3 Size : 10 M Repo : installed >From repo : updates Summary : Network connection manager and user applications URL : http://www.gnome.org/projects/NetworkManager/ License : GPLv2+ Description : NetworkManager is a system service that manages network interfaces and : connections based on user or automatic configuration. It supports : Ethernet, Bridge, Bond, VLAN, Team, InfiniBand, Wi-Fi, mobile broadband : (WWAN), PPPoE and other devices, and supports a variety of different VPN : services. ======================================================
_______________________________________________ networkmanager-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/networkmanager-list
