tc / iproute2, how to list the configuration

20,929

Perhaps your problem is that you said "list the rules", while tools from iproute2 use "show" as keyword instead.

Examples:

tc qdisc show
tc class show dev eth0
tc filter show dev eth0

For more details, consult the manpage for tc and the well known resource LARTC.

Share:
20,929
Walter
Author by

Walter

Updated on September 17, 2022

Comments

  • Walter
    Walter over 1 year

    This is my first time using traffic shaping and I am wondering how I can list the rules I applied like you can with iptables?

    Walter

  • Walter
    Walter about 13 years
    Ok, that is what I thought it was after reading the manpage, but after restarting the router, all of my rules appear to have been deleted.
  • vtest
    vtest about 13 years
    To make the rules persistent, have a boot script that sets them during the boot process. How exactly you would do it is highly distribution specific. It's the same with iptables: if you add some rules in the command line and reboot - they get lost. To achieve persistency, you either use iptables-save to save the current rules and iptables-restore during boot, or have a boot script which explicitly calls iptables to set the rules.
  • Houman
    Houman about 6 years
    I wished there was something like iptables-persistent for persisting tc.