简体   繁体   中英

Delay packets using Netem on Virtual Machine

I'm trying to delay packets using Ubuntu on a virtual machine, but when I type in the terminal: tc qdisc add dev eth0 root netem delay 100ms I get: RTNETLINK answers: Operation not permitted.

I'm working as an intern and I got assigned to a clock synchronization project on a network and I need to be able to create asymmetry in time for packets being sent and received and my prof told me to use netem.

I looked around and realized I needed to use the sudo command so I added sudo before the "tc qdisc..." I'm fairly new to linux so I don't know many stuff. My bad!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM