1nl-qdisc(8) System Manager's Manual nl-qdisc(8)
2
3
4
6 nl-qdisc-{add|list|delete} - Manage queueing disciplines
7
9 nl-qdisc-add --dev dev --parent id [OPTIONS] qdisc-type [QDISC]
10
11 nl-qdisc-delete [ --interactive ] [OPTIONS]
12
13 nl-qdisc-list [OPTIONS]
14
15
17 The nl-qdisc tools allow to manage and configure queueing disciplines
18 (qdiscs) in the kernel.
19
20
22 -h or --help
23 Print help text to console and exit.
24
25 -v or --version
26 Print versioning information to console and exit.
27
28 -q or --quiet
29 Do not print informal notifications about actions taken to the
30 console. By default a short description of each qdisc
31 added/update/deleted will be printed to the console. This option
32 disables this behaviour.
33
34 -d or --dev=DEV
35 Network device the qdisc is attached to.
36
37 -p or --parent=ID
38 Identifier of the parent qdisc/class this qdisc is attached to.
39 The identifier can be specified as classid, name or one of the
40 special values "root" or "ingress".
41
42 -i or --id=ID
43 Identifier of qdisc. It can be specified as classid or name.
44
45
46 nl-qdisc-add Options
47 --update
48 Update qdisc if it already exists, otherwise attempting to add a
49 qdisc which already exists will result in an error. This does
50 not include changing the type of the qdisc, use --replace if you
51 wish to do so.
52
53 --replace
54 Replace or update qdisc if it already exists. Same behaviour as
55 --update but will completely replace the qdisc if it exists
56 already.
57
58 --update-only
59 Update an existing qdisc but do not create it if it does not
60 exist.
61
62 --replace-only
63 Update or replace an existing qdisc but do not create it if it
64 does exist.
65
66
67 nl-qdisc-delete Options
68 --interactive
69 The interactive mode requires confirmation by the user for each
70 qdisc deleted. It will print a prompt for each qdisc matching
71 the provided filter and requires the user to answer 'y'es or
72 'n'o.
73
74 --yes Make the default answer for interactive prompts be 'y'es. This
75 option is also required to delete all qdiscs on all network
76 devices.
77
78 -k or --kind=TYPE
79 Only delete qdiscs of this type.
80
81
82 nl-qdisc-list Options
83 --details
84 Show detailed information for each qdisc listed.
85
86 --stats
87 Show statistics information for each qdisc listed. This option
88 will also turn on detailed information automatically.
89
90 -r or --recursive
91 List all TC objects recurisvely attached to all qdiscs matching
92 the filter.
93
94 -k or --kind=TYPE
95 Only list qdiscs of this type.
96
97
99 Add a HTB root qdisc with id "5:":
100
101 nl-qdisc-add --dev eth0 --parent root --id 5: htb
102
103 List all qdiscs on eth0 and print statistical data:
104
105 nl-qdisc-list --stats --dev eth0
106
107 Delete the qdisc "5:":
108 nl-qdisc-delete --id 5:
109
110
112 nl-classid-lookup(8)
113
114
116 Thomas Graf is the original author and current maintainer of libnl and
117 libnl tools. Many people have contributed to it since.
118
119
120
121libnl 21 October 2010 nl-qdisc(8)