<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>default network name (ens33) Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/default-network-name-ens33/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Tue, 06 Feb 2018 10:55:14 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>Change default network name (ens33) to “eth0” in Centos7/RHEL7</title>
		<link>https://www.osradar.com/change-default-network-name-ens33-eth0-centos7-rhel7/</link>
					<comments>https://www.osradar.com/change-default-network-name-ens33-eth0-centos7-rhel7/#comments</comments>
		
		<dc:creator><![CDATA[Mel K]]></dc:creator>
		<pubDate>Wed, 31 Jan 2018 15:22:14 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[default network name (ens33)]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=1666</guid>

					<description><![CDATA[<p>RHEL 7 came with new feature called “consistent network device naming“.This feature change the name of network interfaces on a system in order to make locating and differentiating the interfaces easier. Traditionally, network interfaces in Linux are enumerated as eth[0123…], but these names do not necessarily correspond to actual labels on the chassis. Modern server [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-default-network-name-ens33-eth0-centos7-rhel7/">Change default network name (ens33) to “eth0” in Centos7/RHEL7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>RHEL 7 came with new feature called “consistent network device naming“.This feature change the name of network interfaces on a system in order to make locating and differentiating the interfaces easier.</p>
<div class="para">Traditionally, network interfaces in Linux are enumerated as <code class="interfacename">eth[0123…]</code>, but these names do not necessarily correspond to actual labels on the chassis. Modern server platforms with multiple network adapters can encounter non-deterministic and counter-intuitive naming of these interfaces. This affects both network adapters embedded on the motherboard (<em class="firstterm">Lan-on-Motherboard</em>, or <em class="firstterm"><acronym class="acronym">LOM</acronym></em>) and add-in (single and multiport) adapters.</div>
<div>Let show you how to  Change default network name (ens33) to “eth0” in Centos7 or RHEL7</div>
<div></div>
<div><img loading="lazy" class="alignnone size-full wp-image-1672" src="https://www.osradar.com/wp-content/uploads/2018/01/eth-cmd.png" alt="" width="850" height="513" srcset="https://www.osradar.com/wp-content/uploads/2018/01/eth-cmd.png 850w, https://www.osradar.com/wp-content/uploads/2018/01/eth-cmd-300x181.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/eth-cmd-768x464.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/eth-cmd-696x420.png 696w" sizes="(max-width: 850px) 100vw, 850px" /></div>
<p>The below procedure disables “consistent network device naming” and renames interfaces.</p>
<p>The default config is like this :</p>
<p><img loading="lazy" class="alignnone size-full wp-image-1674" src="https://www.osradar.com/wp-content/uploads/2018/01/grub1.png" alt="" width="828" height="328" srcset="https://www.osradar.com/wp-content/uploads/2018/01/grub1.png 828w, https://www.osradar.com/wp-content/uploads/2018/01/grub1-300x119.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/grub1-768x304.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/grub1-696x276.png 696w" sizes="(max-width: 828px) 100vw, 828px" /></p>
<p><strong>and  Should be changed to: add the string bellow the the config<br />
</strong></p>
<pre class=""><strong>net.ifnames=0 biosdevname=0</strong></pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1675" src="https://www.osradar.com/wp-content/uploads/2018/01/grub2.png" alt="" width="985" height="325" srcset="https://www.osradar.com/wp-content/uploads/2018/01/grub2.png 985w, https://www.osradar.com/wp-content/uploads/2018/01/grub2-300x99.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/grub2-768x253.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/grub2-696x230.png 696w" sizes="(max-width: 985px) 100vw, 985px" /></p>
<p>&nbsp;</p>
<p>test the new configuration to see if no mistake has been made:</p>
<p>Run first : grub2-mkconfig to see if no mistake has been made</p>
<pre class="">[root@osradar-com ~]# grub2-mkconfig</pre>
<p><strong>Then</strong></p>
<pre class="">[root@osradar-com ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-693.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-693.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-5a816247fa35410a9ee4234442a188c0
Found initrd image: /boot/initramfs-0-rescue-5a816247fa35410a9ee4234442a188c0.img
done</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1676" src="https://www.osradar.com/wp-content/uploads/2018/01/grub-config.png" alt="" width="769" height="222" srcset="https://www.osradar.com/wp-content/uploads/2018/01/grub-config.png 769w, https://www.osradar.com/wp-content/uploads/2018/01/grub-config-300x87.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/grub-config-768x222.png 768w, https://www.osradar.com/wp-content/uploads/2018/01/grub-config-696x201.png 696w" sizes="(max-width: 769px) 100vw, 769px" /></p>
<p>Copy the old  configuraton</p>
<pre class="">cp /etc/sysconfig/network-scripts/ifcfg-ens33 /etc/sysconfig/network-scripts/ifcfg-eth0</pre>
<p>edit /etc/sysconfig/network-scripts/ifcfg-eth0  to</p>
<pre class="">TYPE="Ethernet"
PROXY_METHOD="none"
BROWSER_ONLY="no"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
IPV6_ADDR_GEN_MODE="stable-privacy"
<span style="color: #ff0000;">NAME="eth0"</span>
UUID="84cad80a-0c42-4540-90c6-9209735e8ea8"
<span style="color: #ff0000;">DEVICE="eth0"</span>
ONBOOT="yes"</pre>
<p>save  and  exit</p>
<p>Reboot the machine</p>
<pre class="">shutdown -r now</pre>
<p><img loading="lazy" class="alignnone size-full wp-image-1677" src="https://www.osradar.com/wp-content/uploads/2018/01/eth0-finale.png" alt="" width="764" height="436" srcset="https://www.osradar.com/wp-content/uploads/2018/01/eth0-finale.png 764w, https://www.osradar.com/wp-content/uploads/2018/01/eth0-finale-300x171.png 300w, https://www.osradar.com/wp-content/uploads/2018/01/eth0-finale-696x397.png 696w, https://www.osradar.com/wp-content/uploads/2018/01/eth0-finale-736x420.png 736w" sizes="(max-width: 764px) 100vw, 764px" /></p>
<p>Ping form Another  machione</p>
<pre class="">#:\&gt;ping 192.168.65.132

Pinging 192.168.65.132 with 32 bytes of data:
Reply from 192.168.65.132: bytes=32 time=1ms TTL=64
Reply from 192.168.65.132: bytes=32 time=4ms TTL=64
Reply from 192.168.65.132: bytes=32 time=4ms TTL=64
Ping statistics for 192.168.65.132:
Packets: Sent = 3, Received = 3, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 4ms, Average = 3ms

</pre>
<p>Enjoy</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/change-default-network-name-ens33-eth0-centos7-rhel7/">Change default network name (ens33) to “eth0” in Centos7/RHEL7</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/change-default-network-name-ens33-eth0-centos7-rhel7/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
