I will give an example of a speed limit of up to 3.3 Gb/s on a network interface on Ubuntu Server 16.04:
/sbin/tc qdisc del dev ens2f0 parent ffff: /sbin/tc qdisc add dev ens2f0 handle ffff: ingress /sbin/tc filter add dev ens2f0 parent ffff: protocol ip prio 50 u32 match ip dst 0.0.0.0/0 police rate 3300mbit burst 330k mtu 30000 drop flowid 1:0
Check:
tc filter show dev ens2f0 parent ffff: tc -s -d class show dev ens2f0 tc -s -d class show dev ens2f0 parent ffff
See also my articles:
Configuring the Network in Linux
nload – monitoring network interface bandwidth
Installing and using jnettop