[CentOS] More on Re: Really changing the hostname

m.roth at 5-cent.us m.roth at 5-cent.us
Fri Feb 15 19:39:04 UTC 2013


Robert Moskowitz wrote:
>
> On 02/15/2013 01:35 PM, Les Mikesell wrote:
>> On Fri, Feb 15, 2013 at 12:26 PM, Robert Moskowitz <rgm at htt-consult.com>
>> wrote:
>>> And when you edit ifcfg-eth0 what command restarts the interface?
>> ifdown eth0
>> ifup eth0
>>
>> If you are changing related routes or the MAC address, do the down
>> before the change so the right values are seen.  If you change
>> something that doesn't affect the address you can usually stay
>> connected if you put both commands on one line with a ; separator.
>
> Shows how long it has been.  A dah moment when I saw your response.

Oh, and if you're changing the MAC, don't forget, as of CentOS 6, to edit
/etc/udev/rules.d/70-persistent-net.rules. If you don't, you're hosed.

And then there's the new Dell boxen, which come up with em1 rather than
eth0....

        mark




More information about the CentOS mailing list