[CentOS] Renaming NIC name in CentOS 7

Sun Oct 5 14:02:25 UTC 2014
George Kontostanos <gkontos.mail at gmail.com>

On Fri, Oct 3, 2014 at 11:08 PM, Robert Moskowitz <rgm at htt-consult.com>
wrote:

>
> On 10/03/2014 03:11 PM, Richer, Mark (CIV) wrote:
>
>> Thanks to everyone who responded. This led to some interesting reading
>> and learning, but it hasn’t avoided the reboot.
>>
>> I found this page on udev:
>> How to reload udev rules without reboot?<http://unix.
>> stackexchange.com/questions/39370/how-to-reload-udev-rules-without-reboot
>> >
>> http://unix.stackexchange.com/questions/39370/how-to-reload-
>> udev-rules-without-reboot
>>
>> Sounds perfect for my question, but at least one server I tried all the
>> suggestions on, it didn’t change anything. A reboot is a “magic sauce,” but
>> it’s nice to know how to avoid this with servers. If I find another
>> solution that works for me, I’ll post it.
>>
>
> I learned this to control the MAC address so that the IPv6 suffix for my
> servers was more to my liking and I could use an RA prefix.
>
>
>  Mark
>>
>> MARK H RICHER, MS CS
>> NPS-NCR Digital Forensics Lab IT Manager
>> Computer Science Department
>> Naval Postgraduate School - National Capital Region (NCR)
>> 900 N Glebe Rd, Rm 5-182, Arlington, VA 22203
>> 571.858.3254 (o) 571.303.9498 (m) mhricher at nps.edu<mailto:mhrich
>> er at nps.edu>
>>
>>
>>
>> On Oct 3, 2014, at 1:16 PM, Robert Moskowitz <rgm at htt-consult.com<mailto:
>> rgm at htt-consult.com>> wrote:
>>
>>
>> On 10/03/2014 12:38 PM, Darr247 wrote:
>> On 03 October 2014 @13:53 zulu, Digimer wrote:
>> On 03/10/14 09:12 AM, Richer, Mark (CIV) wrote:
>> All,
>>
>> I am trying to understand better how you give an interface a more
>> descriptive name and get it all working without a reboot, if possible.
>>
>> I actually wrote a small tutorial on how to do just this.
>>
>> https://alteeve.ca/w/Changing_Ethernet_Device_Names_in_EL7_
>> and_Fedora_15%2B
>>
>>
>> I think you missed the "without a reboot" part.  :)
>>
>> Supposedly you can restart udev and then networkservices
>>
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org<mailto:CentOS at centos.org>
>> http://lists.centos.org/mailman/listinfo/centos
>>
>> _______________________________________________
>> CentOS mailing list
>> CentOS at centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


Of course if you don't mind rebooting the system, this will work as well:
http://wiki.centos.org/FAQ/CentOS7#head-31ebc6642958a0df12304d6aab9a49034a3b7802

[root at entos7 ~]# ifconfig

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 10.30.1.100  netmask 255.255.255.0  broadcast 10.30.1.255

        inet6 fe80::a00:27ff:fe54:1d2d  prefixlen 64  scopeid 0x20<link>

        ether 08:00:27:54:1d:2d  txqueuelen 1000  (Ethernet)

        RX packets 64  bytes 7690 (7.5 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 74  bytes 11580 (11.3 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500

        inet 172.16.154.10  netmask 255.255.255.0  broadcast 10.30.1.255

        inet6 fe80::a00:27ff:fe54:1d3d  prefixlen 64  scopeid 0x20<link>

        ether 08:00:27:54:1d:3d  txqueuelen 1000  (Ethernet)

        RX packets 64  bytes 7690 (7.5 KiB)

        RX errors 0  dropped 0  overruns 0  frame 0

        TX packets 74  bytes 11580 (11.3 KiB)

        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

-- 
George Kontostanos
---