<?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设置IP地址</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/centos%E8%AE%BE%E7%BD%AEip%E5%9C%B0%E5%9D%80/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/152.html</link>
		<comments>https://www.osyunwei.com/archives/152.html#comments</comments>
		<pubDate>Fri, 21 Oct 2011 15:37:17 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[CentOS 6.0]]></category>
		<category><![CDATA[CentOS设置DNS]]></category>
		<category><![CDATA[CentOS设置IP地址]]></category>
		<category><![CDATA[CentOS设置网关]]></category>

		<guid isPermaLink="false">http://w66416.s75.chinaccnet.cn/?p=152</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配置文件 保存退出 cp /etc/resolv.conf /etc/resolv.confbak #备份文件 vi /etc/resolv.conf #设置DNS服务器 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链接 重启网络服务：  service network restart [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/152.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/152.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
