【发布时间】:2020-07-12 05:17:32
【问题描述】:
我正在尝试调试我在 OVH.com 订购的新服务器,他们坚持认为一切正常,即使它在对示例 github.com 执行 curl 请求时超时(大约 10 次尝试超时 9 )
curl -L -v https://github.com
我明白了
* Rebuilt URL to: https://github.com/
* Trying 140.82.118.4...
* connect to 140.82.118.4 port 443 failed: Connection timed out
* Failed to connect to github.com port 443: Connection timed out
* Closing connection 0
curl: (7) Failed to connect to github.com port 443: Connection timed out
即使我设置了 NGINX 服务器,站点几乎每隔一个请求就会超时
所以我认为 DHCP 服务器可能是一个问题,所以我检查了它,我从 (var/lib/dhcp..) 看到了这个
lease {
interface "ens4";
fixed-address 10.0.X.XX;
option subnet-mask 255.255.255.0;
option routers 10.0.X.X;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.X.X;
option domain-name-servers 10.0.X.X;
renew 6 2020/03/28 02:16:19;
rebind 6 2020/03/28 13:47:57;
expire 6 2020/03/28 16:47:57;
}
lease {
interface "ens4";
fixed-address 10.0.X.XX;
option subnet-mask 255.255.255.0;
option routers 10.0.X.X;
option dhcp-lease-time 86400;
option dhcp-message-type 5;
option dhcp-server-identifier 10.0.X.X;
option domain-name-servers 10.0.X.X;
renew 5 2020/03/27 16:51:54;
rebind 5 2020/03/27 16:51:54;
expire 5 2020/03/27 16:51:54;
}
我尝试通过执行此命令获得一个新的,但没有任何变化,仍然和上面一样
sudo dhclient -r
我是在查看 DHCP 错误还是看起来正常?作为记录,我在这个专用设备上的公共 IP 以 5 而不是 1 开头,它在 Ubuntu 16.04 LTS 上运行
【问题讨论】: