Re: setting network hostname for Auto eth0



On Fri, 2009-01-30 at 09:06 -0500, Peter F. Patel-Schneider wrote:
> Hi:
> 
> I'm having a minor problem getting network manager (0.7.0 under Fedora
> 10) to set my network hostname when it automatically connects to a
> network.

Are you using different hostnames for different connections, or a
machine-wide hostname?  If you want to set a machine hostname, add
"HOSTNAME=mycomputer" to /etc/sysconfig/network, and NetworkManager will
ensure that hostname is always applied to you computer.

> Using system-config-network, I can set
> 	DHCP Settings:
> 	Hostname (optional): x.y.z
> for eth0 and then when I connect to System eth0 my network hostname is
> correctly set.

The hostname shown here is what gets sent to the DHCP server when you
are using Microsoft DHCP, which then (on the server) updates the DNS
entry for your machine with your IP address.  It doesn't not necessarily
get applied to your machine when you connect, either with NetworkManager
or with normal ifup/ifdown/system-config-network.

> However, I don't see anything analogous for Auto eth0 (except, maybe,
> DHCP client ID) but this doesn't seem to do the trick).
> 
> Anyway, I wouldn't bother with all this if I could automatically connect
> to System eth0, but it doesn't seem possible to change this setting for
> System eth0 (as I can't change anything for System eth0).

At the moment, you can change this connection in system-config-network.
Setting the "DHCP Hostname" for this connection in system-config-network
should make NetworkManager send that hostname to the DHCP server.

Dan




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