設為首頁

收藏本站

導覽首頁 | 新登場    ◇聯盟溫泉 | 民宿 | 人力銀行 | 女性 |

類型:Linux_commend

OVH VPS IP(Kloxo no_ip_address解决方法)官方版
CentOS and Fedora (25 and earlier)
Step 1: Create the source file

First, make a copy of the source file so that you can use it as a template:

cp /etc/sysconfig/network-scripts/ifcfg-eth0 /etc/sysconfig/network-scripts/ifcfg-eth0:0


Step 2: Edit the source file

You can now modify the eth0:0 file in order to replace the IP:

nano /etc/sysconfig/network-scripts/ifcfg-eth0:0

First, replace the name of the device, then replace the existing IP with the failover IP you have received:

DEVICE="eth0:0"
ONBOOT="yes"
BOOTPROTO="none" # For CentOS use "static"
IPADDR="IP"
NETMASK="255.255.255.255"
BROADCAST="IP"

Step 3: Restart the interface

service network restart

You now need to restart your interface:

ifup eth0:0

104休閒信箱 2.3.0 © 104mm.com 2001 - 2019. 您尚未登錄
Page generated in 0.00402808 seconds with 3 Queries