<?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>系统运维 &#187; eth0</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/eth0/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>把CentOS 7.x网卡名称eno16777736改为eth0</title>
		<link>https://www.osyunwei.com/archives/9726.html</link>
		<comments>https://www.osyunwei.com/archives/9726.html#comments</comments>
		<pubDate>Sat, 08 Oct 2016 07:45:48 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS网卡名称]]></category>
		<category><![CDATA[eno16777736]]></category>
		<category><![CDATA[eth0]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9726</guid>
		<description><![CDATA[CentOS 7.x系统中网卡命名规则被重新定义，可能会是”eno167777xx”等，下面我们把网卡名称改为eth0这种。 一、cd  /etc/sysconfig/network-scripts/  #进入网卡配置目录 mv  eno16777736  ifcfg-eth0  #修改名称 vi  eth0  #编辑 NAME=eth0   #修改 DEVICE=eth0   #修改 :wq! #保持退出 二、vi /etc/sysconfig/grub  #编辑 在”GRUB_CMDLINE_LINUX“变量中添加一句”net.ifnames=0 biosdevname=0“ :wq! #保存退出 三、运行命令：grub2-mkconfig -o /boot/grub2/grub.cfg  #重新生成grub配置并更新内核参数 四、添加udev的规则 在”/etc/udev/rules.d“目录中创建一个网卡规则”70-persistent-net.rules“,并写入下面的语句: SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?*",ATTR{address}=="00:0c:29:dc:dd:ad",ATTR｛type｝=="1" ,KERNEL=="eth*",NAME="eth0" #ATTR{address}=="00:0c:29:dc:dd:ad"是网卡的MAC地址 cd  /etc/udev/rules.d vi  70-persistent-net.rules   #添加 SUBSYSTEM=="net",ACTION=="add",DRIVERS=="?*",ATTR{address}=="00:0c:29:dc:dd:ad",ATTR｛type｝=="1" ,KERNEL=="eth*",NAME="eth0" :wq! #保存退出 shutdown -r now  #重启系统 网卡已经更改为eth0 至此，CentOS 7.x网卡名称eno16777736已经改为eth0。 &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/9726.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » 把CentOS 7.x网卡名称eno16777736改为eth0<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9726.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9726.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS系统修改网卡em1为eth0</title>
		<link>https://www.osyunwei.com/archives/9277.html</link>
		<comments>https://www.osyunwei.com/archives/9277.html#comments</comments>
		<pubDate>Tue, 27 Oct 2015 08:09:27 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[em1]]></category>
		<category><![CDATA[eth0]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[网卡]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=9277</guid>
		<description><![CDATA[问题： 部分Dell服务器在安装Linux操作系统之后，发现网卡名称变成em1了。 解决办法： 修改网卡名称为eth0，这里以CentOS操作系统为例。 一：修改系统grub vi /boot/grub/grub.conf #在内核参数后面添加biosdevname=0 kernel /vmlinuz-2.6.32-573.7.1.el6.x86_64 ro root=/dev/mapper/VolGroup-lv_root rd_NO_LUKS LANG=en_US.UTF-8 rd_NO_MD rd_LVM_LV=VolGroup/lv_swap SYSFONT=latarcyrheb-sun16 crashkernel=auto rd_LVM_LV=VolGroup/lv_root KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM biosdevname=0 rhgb quiet :wq! #保存退出 二、修改udev的网卡命名规则配置文件 vi /etc/udev/rules.d/70-persistent-net.rules #修改 此服务器有四张网卡，识别出的网卡名字为：em1、em2、em3、em4（em代号是从1开始的，没有em0）， 我们需要把上面的em1修改为eth0、em2修改为eth1、em3修改为eth2、em4修改为eth3 :wq! #保存退出 三、修改当前网卡配置文件名称 cd /etc/sysconfig/network-scripts/ #进入网卡配置文件目录 mv ifcfg-em1 ifcfg-eth0 #重命名 mv ifcfg-em2 ifcfg-eth1 mv ifcfg-em3 ifcfg-eth2 mv ifcfg-em4 ifcfg-eth3 四、修改网卡配置文件内容，把em全部修改改为eth cd /etc/sysconfig/network-scripts/ [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/9277.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/9277.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
