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

関連情報