[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: How to send DHCP hostname with NM?



Mogens Kjaer wrote:

> Neal Becker wrote:
>> How in the world do I get hostname set on a dhcp connection managed by
>> NM?
> 
> I have a
> 
> DHCP_HOSTNAME=evon800c
> 
> in the /etc/sysconfig/network-scripts/ifcfg-eth0 file,
> and the DHCP server sees it:
> 
> Mar  9 12:22:39 server1 dhcpd: DHCPDISCOVER from 00:08:02:6c:20:ad via
> bond0.20
> Mar  9 12:22:40 server1 dhcpd: DHCPOFFER on 172.20.2.252 to
> 00:08:02:6c:20:ad (evon800c) via bond0.20
> Mar  9 12:22:40 server1 dhcpd: DHCPREQUEST for 172.20.2.252 (172.20.0.1)
> from 00:08:02:6c:20:ad (evon800c) via bond0.20
> Mar  9 12:22:40 server1 dhcpd: DHCPACK on 172.20.2.252 to
> 00:08:02:6c:20:ad (evon800c) via bond0.20
> 
> Mogens
> 

Doesn't work here.  I have 
in /etc/sysconfig/network-scripts/ifcfg-eth1:

DHCP_HOSTNAME=nbecker6

Mar  3 07:38:26 localhost dhclient: DHCPDISCOVER on eth1 to 255.255.255.255 
port 67 interval 8
Mar  3 07:38:26 localhost dhclient: DHCPOFFER from 10.32.111.2
Mar  3 07:38:26 localhost dhclient: DHCPREQUEST on eth1 to 255.255.255.255 
port 67
Mar  3 07:38:26 localhost dhclient: DHCPACK from 10.32.111.2

Here is the entire file:
DEVICE=eth1
HWADDR=00:e0:81:b1:49:f8
ONBOOT=yes
DHCP_HOSTNAME=nbecker6
BOOTPROTO=dhcp
TYPE=Ethernet
USERCTL=no
PEERDNS=yes
IPV6INIT=no
NM_CONTROLLED=yes




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]