Changing host name

Rick Stevens ricks at nerd.com
Thu Apr 8 00:02:13 UTC 2010


On 04/07/2010 03:59 PM, Ed Greshko wrote:
> On 04/08/2010 05:36 AM, Aaron Konstam wrote:
>> On Wed, 2010-04-07 at 17:38 +0800, Ed Greshko wrote:
>>
>>> On 04/07/2010 05:34 PM, Ed Greshko wrote:
>>>
>>>> On 04/07/2010 05:28 PM, Aaron Konstam wrote:
>>>>
>>>>
>>>>> On Wed, 2010-04-07 at 11:11 +0800, Ed Greshko wrote:
>>>>>
>>>>>
>>>>>
>>>>>> I've never found a need to reboot on changing hostnames.  The most
>>>>>> drastic action I've taken was to "service network restart".
>>>>>>
>>>>>>
>>>>>>
>>>>> One wold assumme if yo are using 'service network start' you are not
>>>>> using NM so your comments about the changing hostname may not apply to
>>>>> the OP's system.
>>>>>
>>>>>
>>>>>
>>>> Unless I'm out of my mind...that assumption would not be true.....
>>>>
>>>> Even if you use NM you can still use "service network restart".   When
>>>> one uses NM the directories /etc/sysconfig/networking/profiles/default
>>>> and /etc/sysconfig/networking/devices are empty.  This is the case on my
>>>> system.
>>>>
>>>> So, give it a try for yourself.
>>>>
>>>>
>>>>
>>>>
>>> As further evidence for the doubting Thomas....
>>>
>>> egreshko at meimei networking]$ ps -eaf | grep Network
>>> root      1631     1  0 Mar30 ?        00:00:00 NetworkManager
>>> --pid-file=/var/run/NetworkManager/NetworkManager.pid
>>> root      1640     1  0 Mar30 ?        00:00:00
>>> /usr/sbin/nm-system-settings --config
>>> /etc/NetworkManager/nm-system-settings.conf
>>>
>>> egreshko at meimei networking]$ sudo service network restart
>>> Shutting down interface eth0:                              [  OK  ]
>>> Shutting down loopback interface:                          [  OK  ]
>>> Bringing up loopback interface:                            [  OK  ]
>>> Bringing up interface eth0:                                [  OK  ]
>>>
>>>
>>>
>>>
>> I guess we are going to have to disagree. I am not saying you can't
>> run : system network restart
>>
> ????
>
> You said, "One wold assumme if yo are using 'service network start' you
> are not using NM".
>
> Now, I've been known to misinterpret statements, but to me this seems to
> be saying that if one uses "service network restart" then they can't be
> using NM.  I took it to mean you were doubting that I was using NM.  If
> that is not what you were saying...well there was no need for me to say
> what I did.
>> if you are running NM, just that these are different approaches to
>> networking and there is not good purpose to running network if you are
>> running NetworkManager and your illustration does not disprove that
>> assertion.
>>
> So, we don't disagree.   There are simply 2 ways to accomplish the same
> thing.   Or, at least what I want to accomplish.
>
> And, just to reiterate, I wasn't trying to disprove anything you said.
> I was only trying to prove what I said I did and to prove what my
> configuration was since it was my interpretation that doubt was being
> cast upon my statements.
>
> Bottom line....  One can use "service network restart" when using NM if
> one wants to.  One can also use "service NetworkManager restart".  If
> anything I choose to use the former since network is 7 keystrokes and
> NetworkManager 14 plus it involves the use of the shift key, and it does
> what I want and what I expect of it.  I certainly hope nobody would take
> issue with that.  Besides, isn't Linux all about choice?  :-)

And all I'm saying is that NM and the classic network system can and
often do conflict with each other.  Unless one is confident in
understanding the interplay between them, one is better off using one
or the other, not both.
----------------------------------------------------------------------
- Rick Stevens, Systems Engineer, C2 Hosting          ricks at nerd.com -
- AIM/Skype: therps2        ICQ: 22643734            Yahoo: origrps2 -
-                                                                    -
-     I was married by a judge.  I should have asked for a jury.     -
-                                                   -- Groucho Marx  -
----------------------------------------------------------------------


More information about the users mailing list