【问题标题】:HTTP/HTTPS timeouts in/out because of DHCP?由于 DHCP,HTTP/HTTPS 超时输入/输出?
【发布时间】: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/dh​​cp..) 看到了这个

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 上运行

【问题讨论】:

    标签: http https dhcp ovh


    【解决方案1】:

    您在 OVH 有什么优惠?他们通常不给专用服务器或虚拟专用服务器提供私有 IP,所以这很奇怪。

    您可能希望收集一些跟踪信息以检查以下工具出了什么问题:

    • tcptraceroute 检查域的路径是否在端口 80 或 443 上 看起来很奇怪
    • ping能看到有没有丢包
    • tcpdump 在发生超时时捕获原始网络数据包以查看发生了什么

    这是一个好的开始,也可以帮助您返回 OVH 支持并证明他们有问题。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-27
      • 1970-01-01
      • 1970-01-01
      • 2015-08-11
      相关资源
      最近更新 更多