iptables set tos can not get in tc-prio?

0

I want to set all packet to 192.168.1.1 use tos 0x10.

iptables -t mangle -I OUTPUT -d 192.168.1.1 -j TOS --set-tos 0x10

tcpdump in the server, tos now is 0x10.

I want to use tc-prio:

tc qdisc replace dev $nic root handle 1: prio bands 3 priomap 2 2 2 2 2 2 0 2 2 2 2 2 2 2 2 2
tc qdisc add dev $nic parent 1:1 handle 10: sfq
tc qdisc add dev $nic parent 1:2 handle 20: sfq
tc qdisc add dev $nic parent 1:3 handle 30: sfq

But tc -s qdisc show packet do not get in handle 10:

jianxi sun

Posted 2019-09-18T07:46:34.417

Reputation: 1

No answers