Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 23rd January 2013, 05:13 AM
m1boli Offline
Registered User
 
Join Date: Sep 2010
Posts: 11
linuxfirefox
NetworkManager ifcfg-rh persistent hostname not found

F18: The ifcfg-rh plugin in NetworkManager is supposed to pick up the persistent hostname from the traditional settings file: /etc/sysconfig/network. (The HOSTNAME= variable)

This seemed to be working OK in F17.

But my first F18 comes up localhost, even though HOSTNAME= is set in /etc/sysconfig/network.

In /var/log/messages I can see ifcfg-rh parsing the sysconfig/network-scripts/*cfg configuration files. It is picking up the correct other information (static IP, netmask, dns, etc.) from there.

I tried adding the keyfile plugin and the hostname to NetworkManager.conf:
[main]
plugins=ifcfg-rh,keyfile

[keyfile]
hostname=mglass

But this also no workee.

I am using the LXDE live-CD, installed to a hard drive.

I don't have a working nm-applet. The applet is there, but it doesn't display much of what you would want and I don't have Gnome to try it with. (I would prefer to also have a normal system management settings application!)

I was using this page for documentation: https://live.gnome.org/NetworkManager/SystemSettings

Last edited by m1boli; 23rd January 2013 at 05:22 AM.
Reply With Quote
  #2  
Old 23rd January 2013, 05:27 AM
DBelton's Avatar
DBelton Offline
Administrator
 
Join Date: Aug 2009
Posts: 6,612
linuxfirefox
Re: NetworkManager ifcfg-rh persistent hostname not found

Fedora 18 no longer uses the hostname in /etc/sysconfig/network. It now gets it from /etc/hostname.

You can set the hostname by using hostnamectl

Code:
hostnamectl set-hostname --static hostname.domainname
You can also edit your /etc/hostname and put it in manually as well.
Reply With Quote
  #3  
Old 23rd January 2013, 01:55 PM
m1boli Offline
Registered User
 
Join Date: Sep 2010
Posts: 11
linuxfirefox
Re: NetworkManager ifcfg-rh persistent hostname not found

Thank you very much!

hostnamectl seems to work as indicated.

(Editing /etc/hostname manually is what I did two decades ago, before several generations of network management software came along.)

---------- Post added at 07:55 AM ---------- Previous post was at 12:13 AM ----------

Two questions remain:

-- What is the new preferred method for setting up a fixed IP and host name in Fedora? Up until now I was using system-config-network (usually the -tui Curses version). In F17 with the new NetworkManager, the fixed settings were being picked up via the ifcfg-rh plugin.

The plugin is still there, picking up most of the settings, but it is no longer picking up the hostname. Either a) I should learn what is the replacement for system-config-network[-tui] or b) that program should be updated to do what hostnamectl is doing.

-- It seems to me that the NetworkManager documentation at https://live.gnome.org/NetworkManager/SystemSettings might be out of date.

Last edited by m1boli; 23rd January 2013 at 01:57 PM.
Reply With Quote
Reply

Tags
hostname, ifcfg-rh, ifcfgrh, networkmanager, persistent, sysconfig

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ifcfg-eth0 cannot be found uyenpham Installation and Live Media 1 7th March 2012 03:43 AM
Persistent Layer..not so much persistent LDC Using Fedora 5 14th October 2008 07:52 PM
NetworkManager and DHCP Hostname blinksilver Servers & Networking 0 23rd December 2005 09:10 AM
hosts puzzle ->host hostname -> host hostname not found alphonsebrown Servers & Networking 2 30th March 2005 09:26 AM
Fedora Core 3 Hostname Error (Windows cannot ping 'hostname') 3K Tech Servers & Networking 1 3rd January 2005 03:24 AM


Current GMT-time: 02:20 (Wednesday, 22-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat