Contents: * howto install NISTnet: avoid common pitfalls * using Linux traffic control (tc): avoid common pitfalls HOWTO install NISTnet: avoid common pitfalls -------------------------------------------- 0 -- download a recent (> 2.6.14) linux kernel make it 1 -- download nistnet (nistnet.2.0.12c.tar.gz is for linux kernels 2.6.x ) 2 -- extract the archive: tar xzvf nistnet.2.0.12c.tar.gz 3 -- change into new directory "nistnet-3.0a" cd nistnet-3.0a 4 -- apply the appropriate patch + for kernel version 2.6.14 <= X > 2.6.17 http://dps.uibk.ac.at/archive/nistnet-2.0.12c-knistnet.c.patch-v2.6.14.gz + for kernel versions > 2.6.17 http://dps.uibk.ac.at/archive/nistnet-2.0.12c-knistnet.c.patch-v2.6.17.gz zcat path_to_the_patch/patch_name | patch -p1 5 -- configure: ./configure 6 -- make 7 -- make install if an error returns: make[3]: execvp: /bin/sh: Argument list too long) make sub_inst will succeed 8 -- start the script ./Load.Nistnet --> Ready. Have fun! :) X -- afterwards: unload nistnet module, reload genrtc: rmmod nistnet rmmod genrtc && modprobe genrtc Using Linux traffic control (tc): avoid common pitfalls ------------------------------------------------------- Q: I get the error "RTNETLINK answers: Invalid argument" I used the command: tc qdisc add dev eth2 root tbf rate 1mbit burst 10kb latency 70ms A: 1 -- Check your command line! 2 -- Check if your device exists and is up (here: 'eth2') 3 -- check if the queueing discipline is included in your kernel, either as a module or built-in, e.g. zcat /proc/config.gz | grep -i NET_SCH 4 -- If you use kernel modules: * check if the scheduling discipline (here: 'sch_tbf') is loaded: lsmod | grep sch_tbf * if not: modprobe sch_tbf -- version: $Id: eurongi-linz06-notes.txt,v 1.2 2006/12/07 14:07:44 sven Exp $