<?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>VPS侦探 &#187; IP</title> <atom:link href="http://www.vpser.net/tag/ip/feed" rel="self" type="application/rss+xml" /><link>http://www.vpser.net</link> <description>致力于VPS主机推荐、VPS管理维护、VPS优惠信息及VPS相关的信息共享平台</description> <lastBuildDate>Wed, 08 Sep 2010 04:35:23 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>Linode VPS 添加多IP/设置静态IP(Kloxo no_ip_address解决方法)</title><link>http://www.vpser.net/manage/linode-vps-add-ip.html</link> <comments>http://www.vpser.net/manage/linode-vps-add-ip.html#comments</comments> <pubDate>Sun, 31 Jan 2010 12:49:56 +0000</pubDate> <dc:creator>VPSer</dc:creator> <category><![CDATA[VPS管理维护]]></category> <category><![CDATA[IP]]></category> <category><![CDATA[Kloxo]]></category> <category><![CDATA[linode]]></category> <category><![CDATA[no_ip_address]]></category> <category><![CDATA[VPS]]></category><guid
isPermaLink="false">http://www.vpser.net/?p=890</guid> <description><![CDATA[Linode VPS默认情况下是通过DHCP自动获取IP的，所以在安装Kloxo完成设置Kloxo的时候会出现no_ip_address的提示，这个时候就需要手动设置上IP，这样才能添加域名。 如果你设置Kloxo的时候出现no_ip_address的提示你可以按照下面步骤修改： 使用编辑器编辑：/etc/sysconfig/network-scripts/ifcfg-eth0 # Configuration for eth0 DEVICE=eth0 BOOTPROTO=none # This line ensures that the interface will be brought up during boot. ONBOOT=yes # eth0 - This is the main IP address that will be used for most outbound connections. # The address, netmask and gateway are all necessary. IPADDR=12.34.56.78   #你的IP地址 NETMASK=255.255.255.0  #子网掩码 GATEWAY=12.34.56.1 [...]]]></description> <content:encoded><![CDATA[<p><a
href="http://www.vpser.net/go/linode" target="_blank">Linode VPS</a>默认情况下是通过DHCP自动获取IP的，所以在<a
href="http://www.vpser.net/vps-cp/centos-linux-vps-kloxol-xadmin.html" target="_blank">安装Kloxo</a>完成设置Kloxo的时候会出现no_ip_address的提示，这个时候就需要手动设置上IP，这样才能添加域名。</p><p>如果你设置Kloxo的时候出现no_ip_address的提示你可以按照下面步骤修改：</p><p>使用编辑器编辑：<em>/etc/sysconfig/network-scripts/ifcfg-eth0</em></p><p># Configuration for eth0<br
/> DEVICE=eth0<br
/> BOOTPROTO=none</p><p># This line ensures that the interface will be brought up during boot.<br
/> ONBOOT=yes</p><p># eth0 - This is the main IP address that will be used for most outbound connections.<br
/> # The address, netmask and gateway are all necessary.<br
/> IPADDR=12.34.56.78   #你的IP地址<br
/> NETMASK=255.255.255.0  #子网掩码<br
/> GATEWAY=12.34.56.1 #网关</p><p>一般这样设置好，再执行命令：service network restart 重启网络就好了。<span
id="more-890"></span></p><p>添加第2个IP，可以创建 <em>/etc/sysconfig/network-scripts/ifcfg-eth0:0</em><br
/> # Configuration for eth0:0<br
/> DEVICE=eth0:0<br
/> BOOTPROTO=none</p><p># This line ensures that the interface will be brought up during boot.<br
/> ONBOOT=yes</p><p># eth0:0<br
/> IPADDR=34.56.78.90<br
/> NETMASK=255.255.255.0</p><p>添加第3个IP，创建 <em>/etc/sysconfig/network-scripts/ifcfg-eth0:1</em> 按上面的内容添加到这个文件中，以此类推。</p><p>以上办法都是在CentOS或者Fedora下添加IP的方法，如果是在Debian/Ubuntu下添加IP的方法(注，当然Kloxo没有Debian下的版本)：</p><p>修改 <em>/etc/network/interfaces </em></p><p># The loopback interface<br
/> auto lo<br
/> iface lo inet loopback</p><p># Configuration for eth0 and aliases</p><p># This line ensures that the interface will be brought up during boot.<br
/> auto eth0 eth0:0 eth0:1</p><p># eth0 - This is the main IP address that will be used for most outbound connections.<br
/> # The address, netmask and gateway are all necessary.<br
/> iface eth0 inet static<br
/> address 12.34.56.78<br
/> netmask 255.255.255.0<br
/> gateway 12.34.56.1</p><p># eth0:0<br
/> iface eth0:0 inet static<br
/> address 34.56.78.90<br
/> netmask 255.255.255.0</p><p># eth0:1 - Private IPs have no gateway (they are not publicly routable) so all you need to<br
/> # specify is the address and netmask.<br
/> iface eth0:1 inet static<br
/> address 192.168.133.234<br
/> netmask 255.255.128.0</p><p>保存，重启网络，/etc/init.d/networking restart 即可。</p><hr
/><p><small>© VPSer for <a
href="http://www.vpser.net">VPS侦探</a>, 2010. | <a
href="http://www.vpser.net/manage/linode-vps-add-ip.html">Permalink</a> | <a
href="http://www.vpser.net/manage/linode-vps-add-ip.html#comments">4 comments</a> |
Add to <a
href="http://del.icio.us/post?url=http://www.vpser.net/manage/linode-vps-add-ip.html&title=Linode VPS 添加多IP/设置静态IP(Kloxo no_ip_address解决方法)">del.icio.us</a> <br/> Post tags: <a
href="http://www.vpser.net/tag/ip" rel="tag">IP</a>, <a
href="http://www.vpser.net/tag/kloxo" rel="tag">Kloxo</a>, <a
href="http://www.vpser.net/tag/linode" rel="tag">linode</a>, <a
href="http://www.vpser.net/tag/no_ip_address" rel="tag">no_ip_address</a>, <a
href="http://www.vpser.net/tag/vps" rel="tag">VPS</a><br/> <br/> <img
src="http://www.vpser.net/images/tuijian.gif"> <a
href="http://www.vpser.net/usa-vps/">美国VPS推荐</a> | <a
href="http://jungehost.taobao.com">军哥代购 - 提供美国及海外VPS/VPN/域名代购，美元/欧元代付</a> </small></p>]]></content:encoded> <wfw:commentRss>http://www.vpser.net/manage/linode-vps-add-ip.html/feed</wfw:commentRss> <slash:comments>4</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (user agent is rejected)
Database Caching 6/14 queries in 0.005 seconds using disk

Served from: www.vpser.net @ 2010-09-09 12:05:13 -->