You are not logged in.
Pages: 1
SliTaz 4.0
I installed the iproute2 package (has tc in it).
root@slitaz:/# tc qdisc
qdisc pfifo_fast 0: dev eth0 root refcnt 2 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
however
root@slitaz:/# tc qdisc del dev eth0 root
RTNETLINK answers: No such file or directory
searching suggests that there may be some module(s) missing...
Offline
According to http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
iproute2/tc/netem requires sch_netem module
No version of slitaz kernel is configured to build it.
http://hg.slitaz.org/wok-stable/file/0ee9a1d56ed3/linux/stuff/linux-2.6.37-slitaz.config#l901
#CONFIG_NET_SCH_NETEM is not set
change to
CONFIG_NET_SCH_NETEM=m
Build/install sch_netem
Offline
Thanks mojo. Judging by the description of netem, it doesn't seem to be a basic component? (I'm ignorantly guessing)
I'm trying a basic command that is supposed to delete the default qdisc
tc qdisc del dev eth0 root
I'm not sure why doing that would require "network emulation"?
http://www.tldp.org/HOWTO/html_single/Traffic-Control-HOWTO/
5.1. Kernel requirements
#
# QoS and/or fair queueing
#
CONFIG_NET_SCHED=y
CONFIG_NET_SCH_CBQ=m
CONFIG_NET_SCH_HTB=m
CONFIG_NET_SCH_CSZ=m
CONFIG_NET_SCH_PRIO=m
CONFIG_NET_SCH_RED=m
CONFIG_NET_SCH_SFQ=m
CONFIG_NET_SCH_TEQL=m
CONFIG_NET_SCH_TBF=m
CONFIG_NET_SCH_GRED=m
CONFIG_NET_SCH_DSMARK=m
CONFIG_NET_SCH_INGRESS=m
CONFIG_NET_QOS=y
CONFIG_NET_ESTIMATOR=y
CONFIG_NET_CLS=y
CONFIG_NET_CLS_TCINDEX=m
CONFIG_NET_CLS_ROUTE4=m
CONFIG_NET_CLS_ROUTE=y
CONFIG_NET_CLS_FW=m
CONFIG_NET_CLS_U32=m
CONFIG_NET_CLS_RSVP=m
CONFIG_NET_CLS_RSVP6=m
CONFIG_NET_CLS_POLICE=y
--------
netem isn't listed there. But I notice for instance CONFIG_NET_QOS=y wich is missing in my SliTaz config. (it's not even commented out)
Maybe the QoS switch is more important than netem? (again, just guessing)
Offline
I'm not sure why doing that would require "network emulation"?
http://www.linuxfoundation.org/collaborate/workgroups/networking/netem
If you run a current 2.6 distribution, (Fedora, OpenSuse, Gentoo, Debian, Mandriva, Ubuntu), then netem is already enabled in the kernel and a current version of iproute2 is included. The netem kernel component is enabled under:
Networking -->
Networking Options -->
QoS and/or fair queuing -->
Network emulator
Netem is controlled by the command line tool 'tc' which is part of the iproute2 package of tools. The tc command uses shared libraries and data files in the /usr/lib/tc directory.
But I notice for instance CONFIG_NET_QOS=y wich is missing in my SliTaz config. (it's not even commented out)
Slitaz 4.0 is kernel 2.6.37
CONFIG_NET_QOS: QoS support
General informations
The Linux kernel configuration item CONFIG_NET_QOS:
prompt: QoS support
type: bool
depends on: CONFIG_NET_SCHED
defined in net/sched/Kconfig
found in Linux kernels: 2.6.0–2.6.14
Offline
Ah, OK. So CONFIG_NET_QOS is not an issue.
Offline
So I compiled sch_netem.ko, inserted it
lsmod
Module Size Used by Tainted: P
sch_netem 3904 0
and...tc doesn't work. It still gives the same error.
I actually built all the stuff in /home/slitaz/4.0/src/linux-2.6.37/net/sched
so I have a bunch of modules, which I'm thinking they all need to be installed? Where?
/lib/modules/2.6.37-slitaz/kernel/net/ ?
and then run depmod?
-----------
done. So I can modprobe all these
act_gact.ko cls_flow.ko em_nbyte.ko sch_htb.ko
act_ipt.ko cls_fw.ko em_text.ko sch_ingress.ko
act_mirred.ko cls_route.ko em_u32.ko sch_multiq.ko
act_nat.ko cls_rsvp6.ko sch_atm.ko sch_netem.ko
act_pedit.ko cls_rsvp.ko sch_cbq.ko sch_prio.ko
act_police.ko cls_tcindex.ko sch_drr.ko sch_red.ko
act_simple.ko cls_u32.ko sch_dsmark.ko sch_sfq.ko
act_skbedit.ko em_cmp.ko sch_gred.ko sch_tbf.ko
cls_basic.ko em_meta.ko sch_hfsc.ko sch_teql.ko
and still tc gives the same errror message.
Offline
Pages: 1
[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]