Configure AODV in Debian Lenny…

I wanted to have an AODV network to test with 5 laptops, so i just read a lot of documentations over the internet..
Then decided to step in on the driver’s seat…
I had to downoad the aodv files..

Downloaded the aodv files into a separate directory from the following svn snapshot,

This can be done by the following command:
svn co aodvuu

It was much easier for me as i had subversion already installed 🙂

Anyway i’ll tel how to install the subversion..
apt-get install subversion

which may in turn ask for the linux headers..
Install the linux-headers.
apt-get install linux-headers-$(uname -r)

Now cd to the directory where the downloaded files are kept.
Now type, make

then, make install

The kernel module kaodv can be installed now by typing,
modprobe kaodv

Now I installed the AODV daemon…
First I downloaded the aodv .deb package from the following url:
select the aodv-uu-source_0.9.5-1_all.deb file, to download it.

Install the downloaded deb package by,
dpkg -i aodv-uu-source_0.9.5-1_all.deb

This may , in turn need the module-assistant to be installed.. You can install it by,
apt-get install module-assistant

Since this is all going to be wireless and out of any network, i just made sure to disable the network manager…
Configure wire-less adapters in ad-hoc mode :

Ensure that network manager has been stopped and then bring the interface down.
/etc/init.d/Network-Manager stop
ifconfig wlan0 down
1.Switch the card into ad hoc mode
iwconfig wlan0 mode ad-hoc
2.Set the channel/frequency that you want to use.
iwconfig wlan0 channel 11
Bring the interface back up
ifconfig wlan0 up
3.Add the name (ssid) for the network you want to create/join. Use single quotes if there is a space in the name.
iwconfig wlan0 essid ‘name’
4.Add a WEP encryption key
iwconfig wlan0 key 1234567890
3.If you want to do it manually, you will have to make up an IP address.
ifconfig wlan0 netmask
echo 1 > /proc/sys/net/ipv4/ip_forward


5 thoughts on “Configure AODV in Debian Lenny…

  1. hiya

    i have installed aodv-uu-0.9.6 on two ubuntu machines and then i make an adhoc netwirk and start running aodv by the following command

    aodvd -l -r 3

    however when i observe it on wireshark tool both machines start conversation with destination ip , well my question is how can i make them communicate with each other, well both machines sense each other as a neighbour but talk to ip

    could you help me in this regards please?

    thanks in advance

  2. Dear Kashif,

    How did you install aodv-uu-0.9.6 on ubuntu? I mean when I am trying to follow the steps, everything works fine till make install. But running “aodvd -l -r 3” gives me following error
    module kodv does not exist in /proc/module
    when I am doing modprobe kaodvd it gives me another error.

    Kindly help me. Tell me which ubuntu version are you using? What did you do extra from the steps mentioned?


  3. Hi

    I’m trying to implement this AODV-UU in 10.04.

    I was running this command for both machines (ACER):

    sudo stop network-manager
    ifconfig wlan0 down
    iwconfig wlan0 mode ad-hoc
    iwconfig wlan0 channel 11
    ifconfig wlan0 up
    ifconfig wlan0 10.0.0.x netmask
    echo 1 > /proc/sys/net/ipv4/ip_forward
    modprobe kaodv
    aodvd -l -D -r 3 -i wlan0

    it works for both machines.
    Laptop A can discover Laptop B as neighbor & so does laptop B.

    when i try with different laptop (ACER & HP), both of the machines won’t discover each other.

    can you give me a solution for this problem ?

  4. gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o main.o main.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o list.o list.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o debug.o debug.c
    debug.c: In function ‘print_rt_table’:
    debug.c:349:13: warning: variable ‘written’ set but not used [-Wunused-but-set-variable]
    ssize_t written;
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o timer_queue.o timer_queue.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_socket.o aodv_socket.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_hello.o aodv_hello.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_neighbor.o aodv_neighbor.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_timeout.o aodv_timeout.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o routing_table.o routing_table.c
    routing_table.c: In function ‘rt_table_insert’:
    routing_table.c:92:17: warning: variable ‘nm’ set but not used [-Wunused-but-set-variable]
    struct in_addr nm;
    routing_table.c: In function ‘rt_table_update’:
    routing_table.c:196:17: warning: variable ‘nm’ set but not used [-Wunused-but-set-variable]
    struct in_addr nm;
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o seek_list.o seek_list.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_rreq.o aodv_rreq.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_rrep.o aodv_rrep.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o aodv_rerr.o aodv_rerr.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o nl.o nl.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -c -o locality.o locality.c
    gcc -Wall -O3 -g -DDEBUG -DCONFIG_GATEWAY -DDEBUG -o aodvd main.o list.o debug.o timer_queue.o aodv_socket.o aodv_hello.o aodv_neighbor.o aodv_timeout.o routing_table.o seek_list.o aodv_rreq.o aodv_rrep.o aodv_rerr.o nl.o locality.o
    make -C /root/aodvuu/lnx KERNEL_DIR=/lib/modules/3.19.0-15-generic/build KCC=gcc XDEFS=-DDEBUG
    make[1]: Entering directory ‘/root/aodvuu/lnx’
    gcc -Wall -Wno-strict-aliasing -O2 -D__KERNEL__ -DMODULE -nostdinc -DMODVERSIONS -include /lib/modules/3.19.0-15-generic/build/include/linux/modversions.h -I /usr/lib/gcc/x86_64-linux-gnu/4.9/include -I/lib/modules/3.19.0-15-generic/build/include -DDEBUG -c -o kaodv-mod.o kaodv-mod.c
    cc1: fatal error: /lib/modules/3.19.0-15-generic/build/include/linux/modversions.h: No such file or directory
    compilation terminated.
    Makefile:48: recipe for target ‘kaodv-mod.o’ failed
    make[1]: *** [kaodv-mod.o] Error 1
    make[1]: Leaving directory ‘/root/aodvuu/lnx’
    Makefile:125: recipe for target ‘kaodv’ failed
    make: *** [kaodv] Error 2

    I am getting above error while installing AODV-UU in Ubuntu 15.4.
    please help me

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s