Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
iyd747
V2EX  ›  Linux

Linux 如何让汇聚网口执行一个 sh

  •  
  •   iyd747 · Mar 21, 2023 · 1945 views
    This topic created in 1173 days ago, the information mentioned may be changed or developed.

    Linux 小白一个,正在学 Linux

    如题,要测试运行一个 sh 下载东西 服务器有两个网口,一个管理口,一个是汇聚口 如果默认不指定网口执行脚本,就会从管理口下载,也正常。 如果指定了汇聚口,不会报错,也不会下载。 汇聚是 eno7 下面有 5 个 vlan 是 101 ,102 ,103 ,104 ,105

    #!/bin/sh while [ 1 ]; do curl -s --limit-rate 200M --interface eno7 -o /home/work https://192.168.20.11/test.mp4 试了用 interface eno7.101 也不可以。

        往大神指定一下,
        最好能让 VLAN 的 5 个网口都能一起下载,或者是单独下载。
    
    iyd747
        1
    iyd747  
    OP
       Mar 22, 2023
    已解决,找 new bing 解答的。curl -s --ipv4 --limit-rate 2000M --interface ppp101
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2852 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 04:48 · PVG 12:48 · LAX 21:48 · JFK 00:48
    ♥ Do have faith in what you're doing.