<?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; 绑定IP</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E7%BB%91%E5%AE%9Aip/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>linux系统下单网卡绑定多个IP地址</title>
		<link>https://www.osyunwei.com/archives/2125.html</link>
		<comments>https://www.osyunwei.com/archives/2125.html#comments</comments>
		<pubDate>Fri, 10 Feb 2012 09:18:30 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[CentOS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[单网卡多IP]]></category>
		<category><![CDATA[绑定IP]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=2125</guid>
		<description><![CDATA[说明： 操作系统：CentOS 6.2 IP地址：192.168.21.164 子网掩码：255.255.255.0 网关：192.168.21.2 问题： 现在要增加一个IP地址：192.168.21.165（子网掩码、网关与原来的相同） 操作方法： 1、cp /etc/sysconfig/network-scripts/ifcfg-eth0   /etc/sysconfig/network-scripts/ifcfg-eth0:0  #拷贝原网卡配置文件 2、vi /etc/sysconfig/network-scripts/ifcfg-eth0:0   #编辑网卡配置文件 DEVICE="eth0:0"     #修改为eth0:0 HWADDR="00:0C:29:4E:0E:EF" NM_CONTROLLED="yes" ONBOOT="yes" IPADDR=192.168.21.165    #修改为要增加的IP地址 NETMASK=255.255.255.0 GATEWAY=192.168.21.2 DNS1=8.8.8.8 DNS2=8.8.4.4 :wq!   #保存 3、shutdown -r now  #重启系统 备注：单网卡绑定多IP，其实是增添网卡的IP别名，如果要再增加IP地址可以继续配置一个ifcfg-eth0:1文件，依次类推“eth0:2”“eth0:3” &#160;&#160;&#160;&#160;&#160;» 本文链接：https://www.osyunwei.com/archives/2125.html» 订阅本站：https://www.osyunwei.com/feed» 转载请注明来源：系统运维 » linux系统下单网卡绑定多个IP地址<p><a rel="bookmark" href="https://www.osyunwei.com/archives/2125.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/2125.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
