Jagadeesh wrote:
> I have downloaded the latest version of
> iproute2-2.6.9-ss040831.tar.gz.
> I have compiled it against linux-2.4.25. while it compiled fine, i get
> error messages when i try to add delay.
>
> For iproute-2.6.8:
>
> #[root@iproute2-2.6.8]# /usr/sbin/tc qdisc add root dev eth0 netem
> delay 10ms
You have "root" in the wrong place. You want the following:
tc qdisc add dev eth0 root netem delay 10ms
See
http://developer.osdl.org/shemminger/netem/example.html
> What is "delay"?
> Usage: ... netem latency TIME [ jitter TIME ] [ limit PACKETS]
> [ loss PERCENT ] [ duplicate PERCENT ]
> [ gap PACKETS]
>
>
> For iproute-2.6.9:
>
> [root@tools]# /usr/sbin/tc qdisc add root dev eth0 netem delay 10ms
> RTNETLINK answers: Invalid argument
If you have built netem scheduler into your kernel then sch_netem
will autoload. To configure it you need to enable:
Device Drivers
Network Devices
Networking options
QOS and queuing
Network Emulator
Normally it is configured as a module.