manually fixing IPs

Ralf Corsepius rc040203 at freenet.de
Sun Mar 27 15:57:04 UTC 2011


On 03/27/2011 05:27 PM, Chuck Anderson wrote:
> On Sun, Mar 27, 2011 at 03:58:06PM +0200, Ralf Ertzinger wrote:
>> Hi.
>>
>> On Sun, 27 Mar 2011 15:48:14 +0200, Kevin Kofler wrote
>>> NM supports static IPs these days. So I think that rather than
>>> hacking around NM, you should just fix the IP inside NM's
>>> configuration and have NM work FOR you rather than AGAINST you.
>>
>> I'm sorry, but by the time I have clicked through the GUI to do
>> that I have configured the interface via ip, did what I wanted to
>> do and unconfigured the interface again.
>>
>> I uncheck "Enable networking" in nm-applet before doing that,
>> and for me that makes NM keep it's grubby paws off my manually
>> configured interface, so I'm not complaining.
>
> You don't need to use the GUI.  Just edit
> /etc/sysconfig/network-scripts/ifcfg-* with a static IP and NM will
> pick it up right away and configure it.

And how to tweak /etc/sysconfig/network-scripts/ifcfg-* (and/or 
/etc/sysconfig/network) for static IPs such that NM sets 
hostname/domainname correctly?

I have never got this working correctly.

In all cases, I've tried either "hostname -f" or "hostname" did not work.

Ralf





More information about the devel mailing list