Created
July 2, 2018 03:16
-
-
Save ethercflow/92bb3d71840a530a41efa7e8289ac80e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| modprobe ifb numifbs=1 | |
| ip link set dev ifb0 up | |
| tc qdisc add dev em1 handle ffff: ingress | |
| tc filter add dev em1 parent ffff: protocol ip u32 match u32 0 0 \ | |
| action mirred egress redirect dev ifb0 | |
| tc qdisc add dev ifb0 root handle 1: prio | |
| tc filter add dev ifb0 parent 1:0 protocol ip prio 1 u32 match ip src 172.16.21.3 flowid 2:1 | |
| tc filter add dev ifb0 parent 1:0 protocol ip prio 1 u32 match ip src 172.16.21.4 flowid 2:1 | |
| tc filter add dev ifb0 parent 1:0 protocol ip prio 1 u32 match ip src 172.16.21.5 flowid 2:1 | |
| tc qdisc add dev ifb0 parent 1:1 handle 2: netem delay 1ms |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment