<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Centos_7%3A_old_network_interface_name</id>
	<title>Centos 7: old network interface name - История изменений</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.webko.net.ua/index.php?action=history&amp;feed=atom&amp;title=Centos_7%3A_old_network_interface_name"/>
	<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Centos_7:_old_network_interface_name&amp;action=history"/>
	<updated>2026-04-07T14:04:54Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.35.1</generator>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Centos_7:_old_network_interface_name&amp;diff=547&amp;oldid=prev</id>
		<title>Sol в 06:46, 19 мая 2017</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Centos_7:_old_network_interface_name&amp;diff=547&amp;oldid=prev"/>
		<updated>2017-05-19T06:46:34Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия 06:46, 19 мая 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l39&quot; &gt;Строка 39:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 39:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note: It is also possible and perhaps quicker to use the grubby command instead of the grub2-mkconfig command. However, you don’t check the syntax of the /etc/default/grub file with this command and you only apply changes to the current kernels: if you add a new kernel later, it will not receive your change.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Note: It is also possible and perhaps quicker to use the grubby command instead of the grub2-mkconfig command. However, you don’t check the syntax of the /etc/default/grub file with this command and you only apply changes to the current kernels: if you add a new kernel later, it will not receive your change.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Категория:Linux]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
	<entry>
		<id>https://wiki.webko.net.ua/index.php?title=Centos_7:_old_network_interface_name&amp;diff=167&amp;oldid=prev</id>
		<title>Sol: Новая страница: «== Presentation ==  As people were complaining about network interface names changing each time a new one was added, it was decided to call a network interface ac…»</title>
		<link rel="alternate" type="text/html" href="https://wiki.webko.net.ua/index.php?title=Centos_7:_old_network_interface_name&amp;diff=167&amp;oldid=prev"/>
		<updated>2015-05-11T17:51:32Z</updated>

		<summary type="html">&lt;p&gt;Новая страница: «== Presentation ==  As people were complaining about network interface names changing each time a new one was added, it was decided to call a network interface ac…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Presentation ==&lt;br /&gt;
&lt;br /&gt;
As people were complaining about network interface names changing each time a new one was added, it was decided to call a network interface according to its physical location. The details of the naming convention are available in the RHEL 7 Networking Guide.&lt;br /&gt;
&lt;br /&gt;
However, having a network interface called '''enp2s0''' or '''enp4s2f0''' doesn’t satisfy everybody.&lt;br /&gt;
&lt;br /&gt;
Hopefully, a solution exists to restore the previous behavior.&lt;br /&gt;
&lt;br /&gt;
== The old naming convention ==&lt;br /&gt;
&lt;br /&gt;
To restore the old naming convention, you need to edit the '''/etc/default/grub''' file and add '''net.ifnames=0 biosdevname=0''' at the end of the '''GRUB_CMDLINE_LINUX''' variable:&lt;br /&gt;
&lt;br /&gt;
 GRUB_CMDLINE_LINUX=&amp;quot;rd.lvm.lv=centos/swap vconsole.keymap=us crashkernel=auto rd.lvm.lv=centos/root vconsole.font=latarcyrheb-sun16 rhgb quiet net.ifnames=0 biosdevname=0&amp;quot;&lt;br /&gt;
Then, test the new configuration to see if no mistake has been made:&lt;br /&gt;
&lt;br /&gt;
 # grub2-mkconfig&lt;br /&gt;
Note: When preparing this tutorial, I forgot the last quote in the GRUB_CMDLINE_LINUX variable.&lt;br /&gt;
I got the following error: '''/etc/default/grub''': line 7: unexpected EOF while looking for matching `”‘.&lt;br /&gt;
This is only to remind you that testing can be useful!&lt;br /&gt;
&lt;br /&gt;
If everything is fine, update the grub2 configuration:&lt;br /&gt;
&lt;br /&gt;
 # grub2-mkconfig -o /boot/grub2/grub.cfg&lt;br /&gt;
 Generating grub configuration file ...&lt;br /&gt;
 Found linux image: /boot/vmlinuz-3.10.0-123.el7.x86_64&lt;br /&gt;
 Found initrd image: /boot/initramfs-3.10.0-123.el7.x86_64.img&lt;br /&gt;
 Found linux image: /boot/vmlinuz-3.10.0-123.9.3.el7.x86_64&lt;br /&gt;
 Found initrd image: /boot/initramfs-3.10.0-123.9.3.el7.x86_64.img&lt;br /&gt;
 Found linux image: /boot/vmlinuz-0-rescue-eda26f60d4c948d09cd50d9086a87fcc&lt;br /&gt;
 Found initrd image: /boot/initramfs-0-rescue-eda26f60d4c948d09cd50d9086a87fcc.img&lt;br /&gt;
 done&lt;br /&gt;
Update the network interface configuration file (here the initial interface name was '''enp2s0''' and the new one is '''eth0'''):&lt;br /&gt;
&lt;br /&gt;
 # cd /etc/sysconfig/network-scripts&lt;br /&gt;
 # cp ifcfg-enp2s0 ifcfg-eth0&lt;br /&gt;
Edit the ifcfg-eth0 file and replace the network interface name in the NAME variable with “eth0“.&lt;br /&gt;
&lt;br /&gt;
After a reboot, everything should be OK.&lt;br /&gt;
&lt;br /&gt;
Note: It is also possible and perhaps quicker to use the grubby command instead of the grub2-mkconfig command. However, you don’t check the syntax of the /etc/default/grub file with this command and you only apply changes to the current kernels: if you add a new kernel later, it will not receive your change.&lt;br /&gt;
[[Категория:Linux]]&lt;/div&gt;</summary>
		<author><name>Sol</name></author>
	</entry>
</feed>