TC 필터 제거(트래픽 쉐이핑)

TC 필터 제거(트래픽 쉐이핑)

단일 필터를 어떻게 제거할 수 있나요?

tc filter show dev peth1

filter parent 1: protocol ip pref 16 u32
filter parent 1: protocol ip pref 16 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 16 u32 fh 800::800 order 2048 key ht 800 bkt 0 flowid 1:2 match 5bd6aaf9/ffffffff at 12

왜 작동하지 않나요?:

tc filter del dev peth1 pref 1 protocol ip handle 800:800 u32

답변1

이전 게시물이지만 참고로 다음과 같은 몇 가지 이유로 작동하지 않습니다.

  • 우선순위는 1이 아닌 16이어야 합니다.
  • 필터 핸들은 800:800이 아닌 800::800이어야 합니다.
  • 필터가 연결된 상위 qdisc를 제공해야 합니다.

이것은 작동합니다:

tc filter del dev peth1 parent 1: handle 800::800 prio 16 protocol ip u32

관련 정보