Завихрение - соединяет интерфейсом с проблемой

Я пытаюсь указать беспроводной интерфейс для завихрения, но чего-то не работающего правильно.

Когда кабель LAN разъединился, он работает как ожидалось. когда кабель LAN включается, приведенное к таймауту соединение.

Посмотрите журнал ниже, сначала попытайтесь с включенным кабелем LAN.

user@user-Latitude-E6410:~/Downloads/ATS$ sudo curl http://speedtest4.ziggo.nl/testfile_20G.bin -o /dev/null --retry 0 --limit-rate 500000 --speed-limit 3000 --speed-time 2 --connect-timeout 5 --interface wlp2s0 --verbose   
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
                                 Dload  Upload   Total   Spent    Left  Speed  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 212.54.52.11...  
* Local Interface wlp2s0 is ip 192.168.2.73 using address family 2  
* Local port: 0  
* Connected to speedtest4.ziggo.nl (212.54.52.11) port 80 (#0)  
> GET /testfile_20G.bin HTTP/1.1  
> Host: speedtest4.ziggo.nl  
> User-Agent: curl/7.47.0  
> Accept: */*  
>   
< HTTP/1.1 200 OK  
< Date: Thu, 20 Oct 2016 20:57:28 GMT  
< Server: Apache  
< Last-Modified: Tue, 10 Mar 2015 13:29:21 GMT  
< ETag: "500000000-510ef23751ccf"  
< Accept-Ranges: bytes  
< Content-Length: 21474836480  
< Content-Type: application/octet-stream  
<   
^{ [4018 bytes data]  
  0 20.0G    0 16.1M    0     0   487k      0 11:56:28  0:00:33 11:55:55  488k^C  
user@user-Latitude-E6410:~/Downloads/ATS$ sudo curl http://speedtest4.ziggo.nl/testfile_20G.bin -o /dev/null --retry 0 --limit-rate 500000 --speed-limit 3000 --speed-time 2 --connect-timeout 5 --interface wlp2s0 --verbose   
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current  
                                 Dload  Upload   Total   Spent    Left  Speed  
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 212.54.52.11...  
* Local Interface wlp2s0 is ip 192.168.2.73 using address family 2  
* Local port: 0  
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0* Connection timed out after 5001 milliseconds  
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0  
* Closing connection 0  
curl: (28) Connection timed out after 5001 milliseconds  
0
задан 21 October 2016 в 00:41

1 ответ

Вы, возможно, должны были бы использовать --dns-interface.

От страница справочника :

--dns-interface <interface>
       Tell curl to send outgoing DNS requests through <interface>. This option is a counterpart to --interface (which does not affect DNS).
       The supplied string must be an interface name (not an address).
0
ответ дан 28 September 2019 в 08:49

Другие вопросы по тегам:

Похожие вопросы: