Linode VPS 添加多IP/設置靜態IP(Kloxo no_ip_address解決方法)
Linode VPS默認情況下是通過DHCP自動獲取IP的,所以在安裝Kloxo完成設置Kloxo的時候會出現no_ip_address的提示,這個時候就需要手動設置上IP,這樣才能添加域名。
如果你設置Kloxo的時候出現no_ip_address的提示你可以按照下面步驟修改:
使用編輯器編輯(如果不會用編輯器,可以使用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? #子網掩碼
GATEWAY=12.34.56.1 #網關
一般這樣設置好,再執行命令:service network restart 重啟網絡就好了,如果還是不通,重啟試一下。
添加第2個IP,可以創建 /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個IP,創建 /etc/sysconfig/network-scripts/ifcfg-eth0:1 按上面的內容添加到這個文件中,以此類推。
以上辦法都是在CentOS或者Fedora下添加IP的方法,如果是在Debian/Ubuntu下添加IP的方法(注,當然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
保存,重啟網絡,/etc/init.d/networking restart 即可。
| 如果您覺得本文對您有所幫助,并想購買?Linode VPS?[1GB內存, 20GB SSD硬盤, 1個獨立IP, 1TB流量/月 =?5美元/月],請點擊 [鏈接]訪問官網,購買時在Referral Code欄填寫:8dbfedc418b92f8c07e6f03860ece56ea1bd1ec6 謝謝。目前Linode僅支持Visa/Master信用卡,沒有可以聯系軍哥代購,聯系方式見右側。 |











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