Linode VPS 添加多IP/設(shè)置靜態(tài)IP(Kloxo no_ip_address解決方法)
Linode VPS默認(rèn)情況下是通過DHCP自動(dòng)獲取IP的,所以在安裝Kloxo完成設(shè)置Kloxo的時(shí)候會(huì)出現(xiàn)no_ip_address的提示,這個(gè)時(shí)候就需要手動(dòng)設(shè)置上IP,這樣才能添加域名。
如果你設(shè)置Kloxo的時(shí)候出現(xiàn)no_ip_address的提示你可以按照下面步驟修改:
使用編輯器編輯(如果不會(huì)用編輯器,可以使用winscp):/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.
# The address, netmask and gateway are all necessary.
IPADDR=12.34.56.78?? #你的IP地址
NETMASK=255.255.255.0? #子網(wǎng)掩碼
GATEWAY=12.34.56.1 #網(wǎng)關(guān)
一般這樣設(shè)置好,再執(zhí)行命令:service network restart 重啟網(wǎng)絡(luò)就好了,如果還是不通,重啟試一下。
添加第2個(gè)IP,可以創(chuàng)建 /etc/sysconfig/network-scripts/ifcfg-eth0:0
# Configuration for eth0:0
DEVICE=eth0:0
BOOTPROTO=none
# This line ensures that the interface will be brought up during boot.
ONBOOT=yes
# eth0:0
IPADDR=34.56.78.90
NETMASK=255.255.255.0
GATEWAY=12.34.56.1
添加第3個(gè)IP,創(chuàng)建 /etc/sysconfig/network-scripts/ifcfg-eth0:1 按上面的內(nèi)容添加到這個(gè)文件中,以此類推。
以上辦法都是在CentOS或者Fedora下添加IP的方法,如果是在Debian/Ubuntu下添加IP的方法(注,當(dāng)然Kloxo沒有Debian下的版本):
修改 /etc/network/interfaces
# The loopback interface
auto lo
iface lo inet loopback
# Configuration for eth0 and aliases
# This line ensures that the interface will be brought up during boot.
auto eth0 eth0:0 eth0:1
# eth0 - This is the main IP address that will be used for most outbound connections.
# The address, netmask and gateway are all necessary.
iface eth0 inet static
address 12.34.56.78
netmask 255.255.255.0
gateway 12.34.56.1
# eth0:0
iface eth0:0 inet static
address 34.56.78.90
netmask 255.255.255.0
# eth0:1 - Private IPs have no gateway (they are not publicly routable) so all you need to
# specify is the address and netmask.
iface eth0:1 inet static
address 192.168.133.234
netmask 255.255.128.0
保存,重啟網(wǎng)絡(luò),/etc/init.d/networking restart 即可。
| 如果您覺得本文對您有所幫助,并想購買?Linode VPS?[1GB內(nèi)存, 20GB SSD硬盤, 1個(gè)獨(dú)立IP, 1TB流量/月 =?5美元/月],請點(diǎn)擊 [鏈接]訪問官網(wǎng),購買時(shí)在Referral Code欄填寫:8dbfedc418b92f8c07e6f03860ece56ea1bd1ec6 謝謝。目前Linode僅支持Visa/Master信用卡,沒有可以聯(lián)系軍哥代購,聯(lián)系方式見右側(cè)。 |











@stone,我原來也試過不行
ifcfg-eth0-range 這樣快速綁定的kloxo 認(rèn)不出來嗎?
我的快速綁定的添加時(shí)no_ip_address的提示
@alpha2beta, 等Kloxo能支持Nginx了,不如等我的lnmpWeb版的面板,哈哈
Kloxo的問題是不方便用Nginx吧?
收藏先
頂........