RTNETLINK answers :No such file or directory error

前端 未结 4 1657
攒了一身酷
攒了一身酷 2021-02-07 16:43
1. ETH=$1
2. LATENCY=$2
3. LOSS=$3
4. JITTER=$4
5. BW=$5
6. sudo /sbin/tc qdisc del dev eth0 root
7. sudo /sbin/tc qdisc add dev eth0 root handle 1: netem delay $LATENCY         


        
4条回答
  •  说谎
    说谎 (楼主)
    2021-02-07 17:30

    The problem is with missing kernel modules and/or kernel support. Make sure you can run

    modprobe sch_netem
    

    I also had to rebuild the kernel after I enabled because there's something built-in that is enabled after you enable network emulation.

    See also http://forums.fedoraforum.org/showthread.php?t=285408 and http://www.linuxfoundation.org/collaborate/workgroups/networking/netem

提交回复
热议问题