<?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%E7%BB%9C%E8%AE%BE%E7%BD%AE/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 6.0 设置IP地址、网关、DNS</title>
		<link>https://www.osyunwei.com/archives/423.html</link>
		<comments>https://www.osyunwei.com/archives/423.html#comments</comments>
		<pubDate>Tue, 25 Oct 2011 07:19:03 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS ip设置]]></category>
		<category><![CDATA[CentOS网络设置]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=423</guid>
		<description><![CDATA[切忌:     在做任何操作之前先备份原文件,我们约定备份文件的名称为：源文件名称+bak，例如原文件名称为：centos.txt     那么备份文件名称为：centos.txtbak 引言：linux的网卡IP地址是存放在文件中的，这个配置文件在/etc/sysconfig/network-scripts下，       名称分别为ifcfg-eth0,ifcfg-eth1等       如果你只有一块网卡，就只有ifcfg-eth0一个文件，       如果你有两块或者两块以上的网卡，就会有ifcfg-eth1、ifcfg-eth2等文件的出现。       系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 ==================================================================================== 先查看电脑有几块网卡： 终端命令下面输入： cd /etc/sysconfig/network-scripts   #进入/etc/sysconfig/network-scripts文件夹中        ls -1 #查看/etc/sysconfig/network-scripts文件夹中所有的文件，发现只有一个ifcfg-eth0，说明电脑只有一块网卡       cd #返回 cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0bak110816  #备份文件       vi /etc/sysconfig/network-scripts/ifcfg-eth0   #进入网卡ifcfg-eth0配置文件       系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 cp /etc/resolv.conf /etc/resolv.confbak110816 #备份文件        vi /etc/resolv.conf #设置DNS服务器 如果不行，就重启一下服务器：shutdown -r now 或者reboot 到此，网络配置完成！ &#160;&#160;&#160;&#160;&#160;» [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/423.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/423.html/feed</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>
