<?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; CentOS网卡名称</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/centos%e7%bd%91%e5%8d%a1%e5%90%8d%e7%a7%b0/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>
	</channel>
</rss>
