Gentoo Archives: gentoo-server

From: Haim Ashkenazi <haim@××××××××××.org>
To: gentoo-server@l.g.o
Subject: [gentoo-server] tc (iproute2) question
Date: Mon, 28 Nov 2005 16:24:57
Message-Id: 1133194962.11138.30.camel@parker.babysnakes.org
1 Hi
2
3 I'm trying to configure simple traffic control using TBF. I actually had
4 it working in my old computer (which died last week) using kernel 2.6.x
5 but when I try to configure it with 2.6.14, I get no results.
6
7 I configured all the kernel options needed to run this (according to the
8 howto in the iproute2 page:
9 http://snafu.freedom.org/linux2.2/iproute-notes.html#syntcqtbf)
10
11 coltrane linux # grep CONFIG_NET_ESTIMATOR .config
12 CONFIG_NET_ESTIMATOR=y
13 coltrane linux # grep CONFIG_NET_SCH_TBF .config
14 CONFIG_NET_SCH_TBF=m
15 coltrane linux # grep CONFIG_NET_SCHED .config
16 CONFIG_NET_SCHED=y
17 coltrane linux # grep CONFIG_NET_QOS .config
18 CONFIG_NET_QOS=y
19
20 I loaded the sch_tbf kernel module:
21 coltrane linux # lsmod | grep tbf
22 sch_tbf 5504 0
23
24 and I get the following result:
25
26 coltrane linux # tc qdisc show
27 qdisc pfifo_fast 0: dev eth0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
28 1 1 1
29 qdisc pfifo_fast 0: dev eth1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
30 1 1 1
31 qdisc pfifo_fast 0: dev eth2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
32 1 1 1
33 qdisc pfifo_fast 0: dev eth3 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
34 1 1 1
35 qdisc pfifo_fast 0: dev ppp0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
36 1 1 1
37 coltrane linux # # tc qdisc add dev ppp0 root tbf rate 85kbit latency
38 50ms burst 1540
39 coltrane linux # tc qdisc show
40 qdisc pfifo_fast 0: dev eth0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
41 1 1 1
42 qdisc pfifo_fast 0: dev eth1 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
43 1 1 1
44 qdisc pfifo_fast 0: dev eth2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
45 1 1 1
46 qdisc pfifo_fast 0: dev eth3 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
47 1 1 1
48 qdisc pfifo_fast 0: dev ppp0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1
49 1 1 1
50
51 The second "show" command should reflect the changes I've made but it
52 doesn't. also I see nothing in the logs.
53
54 any ideas?
55
56 Bye
57 --
58 Haim

Attachments

File name MIME type
signature.asc application/pgp-signature