I want to reduce the priority of specific network traffic using tc
in particular tc-u32
in my Linux server. In other words all other traffic must have higher priority than traffic with specified IP-proto.
I'm trying to apply this tc filter rule to make outgoing ICMP traffic lower priority:
tc f a dev eno1 parent 1: prio 2 u32 match ip protocol 1 0xff
But it returns this error:
RTNETLINK answers: Invalid argument
We have an error talking to the kernel
Here are some things are still unclear to me about tc in this context:
- How to make this rule work properly?
- Do I need some another rule to tell Linux something like "all other traffic goes with 1 priority" or this is done by default?
- What is the basic logic behind such naming -
1:
,2:
, etc.? What does0xff
mean? Should I explicitly specifyclassid
field?