OVH 中的专用服务器 - IP 故障转移不起作用

OVH 中的专用服务器 - IP 故障转移不起作用

我在 OVH 有服务器。我购买了 13 个 IP 块,添加到服务器,但 IP 不起作用。

我的步骤:我将新的 IP 块 151.80.170.164/30 添加到我的 /etc/systemd/network/50-default.network,我添加了以下行

[Address]
Address=151.80.170.164/30

在 DirectAdmin 中,我从这个块添加了 IP:

151.80.170.165
151.80.170.166

因为我的区块有 4 个 IP。我将网络掩码设置为 255.255.255.252,将区块 151.80.170.165 中的 IP 分配给域 tr-bahis.com,然后重启服务器。域仍然无法正常工作。在域提供商中,我将记录 A 设置为 151.80.170.165,2 周前。

当我 ping 服务器外部的 IP 时,没有得到任何响应,而当我在登录时 ping 时,一段时间后就会得到回复。

我使用了这个教程https://docs.ovh.com/gb/en/dedicated/network-ipaliasing/#debian-9-ubuntu-1704-fedora-26-and-arch-linux_1因为我的服务器上有 Debian 9。我联系了 OVH 支持人员,他们说应该可以解决问题,他们的帮助已经结束。

我的 /etc/systemd/network/50-default.network:

# This file sets the IP configuration of the primary (public) network device.
# You can also see this as "OSI Layer 3" config.
# It was created by the OVH installer, please be careful with modifications.
# Documentation: man systemd.network or https://www.freedesktop.org/software/systemd/man/systemd.network.html

[Match]
MACAddress=a4:bf:01:24:fe:c3

[Network]
Description=network interface on public network, with default route
DHCP=no
Address=51.38.52.235/24
Gateway=51.38.52.254
IPv6AcceptRA=no
NTP=ntp.ovh.net
DNS=127.0.0.1
DNS=213.186.33.99
DNS=2001:41d0:3:163::1
Gateway=2001:41d0:0403:16ff:ff:ff:ff:ff

[Address]
Address=2001:41d0:0403:16eb::/64

[Address]
Address=151.80.170.164/32
Label=failover1

[Route]
Destination=2001:41d0:0403:16ff:ff:ff:ff:ff
Scope=link

systemctl status systemd-networkd 输出

pawel@51:/etc/systemd/network# systemctl status systemd-networkd
● systemd-networkd.service - Network Service
   Loaded: loaded (/lib/systemd/system/systemd-networkd.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2019-12-27 17:27:06 UTC; 2s ago
     Docs: man:systemd-networkd.service(8)
 Main PID: 14590 (systemd-network)
   Status: "Processing requests..."
   CGroup: /system.slice/systemd-networkd.service
           └─14590 /lib/systemd/systemd-networkd

Dec 27 17:27:06 51.38.52.235 systemd[1]: Starting Network Service...
Dec 27 17:27:06 51.38.52.235 systemd-networkd[14590]: eno1: Gained IPv6LL
Dec 27 17:27:06 51.38.52.235 systemd-networkd[14590]: Enumeration completed
Dec 27 17:27:06 51.38.52.235 systemd[1]: Started Network Service.
Dec 27 17:27:06 51.38.52.235 systemd-networkd[14590]: eno1: Configured

我尝试在几个地方找出我应该怎么做才能使它工作,但不幸的是,唯一的答案是完全重新安装系统而不是 debian 9,但对我来说这不是解决方案。

有谁有更好的想法为什么它不起作用?:(

命令结果

是否配置

pawel@51:/home/pawel# ifconfig
eno1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 51.38.52.235  netmask 255.255.255.0  broadcast 51.38.52.255
        inet6 fe80::a6bf:1ff:fe24:fec3  prefixlen 64  scopeid 0x20<link>
        inet6 2001:41d0:403:16eb::  prefixlen 64  scopeid 0x0<global>
        ether a4:bf:01:24:fe:c3  txqueuelen 1000  (Ethernet)
        RX packets 8275014  bytes 575280957 (548.6 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 344641  bytes 81811319 (78.0 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device memory 0xa2b00000-a2bfffff

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 12428  bytes 8113671 (7.7 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 12428  bytes 8113671 (7.7 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

ip -br 链接

pawel@51:/home/pawel# ip -br link
lo               UNKNOWN        00:00:00:00:00:00 <LOOPBACK,UP,LOWER_UP>
dummy0           DOWN           fa:ae:bb:5a:8f:02 <BROADCAST,NOARP>
ifb0             DOWN           fe:a4:b1:ef:80:de <BROADCAST,NOARP>
ifb1             DOWN           2a:f1:09:b9:fa:34 <BROADCAST,NOARP>
eno1             UP             a4:bf:01:24:fe:c3 <BROADCAST,MULTICAST,UP,LOWER_UP>
eno2             DOWN           a4:bf:01:24:fe:c4 <BROADCAST,MULTICAST>
teql0            DOWN           <NOARP>
tunl0@NONE       DOWN           0.0.0.0 <NOARP>
gre0@NONE        DOWN           0.0.0.0 <NOARP>
gretap0@NONE     DOWN           00:00:00:00:00:00 <BROADCAST,MULTICAST>
erspan0@NONE     DOWN           00:00:00:00:00:00 <BROADCAST,MULTICAST>
sit0@NONE        DOWN           0.0.0.0 <NOARP>
ip6tnl0@NONE     DOWN           :: <NOARP>

ip -br 地址

pawel@51:/home/pawel# ip -br address
lo               UNKNOWN        127.0.0.1/8 ::1/128
dummy0           DOWN
ifb0             DOWN
ifb1             DOWN
eno1             UP             51.38.52.235/24 151.80.170.164/30 2001:41d0:403:16eb::/64 fe80::a6bf:1ff:fe24:fec3/64
eno2             DOWN
teql0            DOWN
tunl0@NONE       DOWN
gre0@NONE        DOWN
gretap0@NONE     DOWN
erspan0@NONE     DOWN
sit0@NONE        DOWN
ip6tnl0@NONE     DOWN

路由

pawel@51:/home/pawel# ip route
default via 51.38.52.254 dev eno1 proto static
51.38.52.0/24 dev eno1 proto kernel scope link src 51.38.52.235
151.80.170.164/30 dev eno1 proto kernel scope link src 151.80.170.164

相关内容