Mel*_*kis 1 server networking 14.04
今天我从 OVH 为我的专用服务器购买了 4 个 ips,我想附加它们。文档说要auto eth0:0在网络/接口中添加一个新的,但我想确保这是准确的,不要搞砸任何事情!
这是来自 ovh 的文档:
auto eth0:0
iface eth0:0 inet static
address IP.DE.FAIL.OVER
netmask 255.255.255.255
broadcast IP.DE.FAIL.OVER
Run Code Online (Sandbox Code Playgroud)
那么,对于 4 个 ip,我会做eth0:0 eth0:1 eth0:2 eth0:3而没有别的?此外,我当前的 ip 有一些我并不真正了解并且与 docs 示例不匹配的东西。
auto eth0
iface eth0 inet static
address 198.27.67.144
netmask 255.255.255.0
network 198.27.67.0
broadcast 198.27.67.255
gateway 198.27.67.254
Run Code Online (Sandbox Code Playgroud)
network我也可以只使用 OVH 文档中的选项吗?谢谢你的时间 :)
哦,操作系统是 Ubuntu 14.04
这真的就像将以下内容添加到您的 /etc/network/interfaces 一样简单
auto eth0:1
iface eth0:1 inet static
address failoverIP
netmask 255.255.255.255
broadcast failoverIP
Run Code Online (Sandbox Code Playgroud)
您不添加网关。您也不包括网络号 - 只是 IP、网络掩码和广播(应该与 IP 相同)。
重复,将 eth0:2、eth0:3 和 eth0:4 用于其他 3 个故障转移 IP。您也可以从 eth0:0 开始,而不是从 eth0:1 开始。
来源:我自己的 OVH 配置
OVH 文档:http : //help.ovh.co.uk/IpFailover(使用与 Debian 相同的 Ubuntu)