HUT AODV for IPv6

Linux/구현 | 2006/06/15 13:06 | adioshun
HUT AODV for IPv6

레드햇 9.0  
커널 2.4.20

Introduction

HUT AODV for IPv6 is an implementation of the Ad hoc On-demand Distance Vector (AODV) Routing Protocol[1] with IPv6 modifications[2], written by Antti J. Tuominen as part of his Master's Thesis.

This implementation supports all features of the specifications except for Data Flooding hop-by-hop options (which will probably be added later). A later release will also include Globalv6[3] support. HUT AODV for IPv6 was tested at the 1st MANET InterOp at UCSB. Report by Elizabeth Belding-Royer is available here.

News

HUT AODV for IPv6 0.20 will soon be available. It features full RFC 3561 compatibility, as well as Globalv6 support.

Currently in the works is support for SAODV[4]. I'm also looking into supporting AODV QoS extensions and Multicast AODV.

1. 다운 받기

hut-aodv6-0.11.tar.gz [다운]
tar -xf hut-aodv6-0.11.tar.gz


구현 보고서 (0.11용) [다운]

2. 커널 컴파일 하기 (9.0에서는 할필요 없는듯.)
사전 작업 : IPv6 , Netfilter 가 커널서 작동하도록 컴파일

more..


3 설치 하기
[리눅스 전체 패키지 설치시]
* Redhat 9.0 전체 설치후 yum update 수행하면 아래와 같이 소스파일 존재
[root@localhost src]# ls -al
total 20
drwxr-xr-x    5 root     root         4096 Jun 26 12:45 .
drwxr-xr-x   15 root     root         4096 Jun 25 22:12 ..
drwxr-xr-x    2 root     root         4096 Jan 24  2003 debug
lrwxrwxrwx    1 root     root           14 Jun 25 23:00 linux-2.4 -> linux-2.4.20-8
drwxr-xr-x   16 root     root         4096 Jun 25 22:59 linux-2.4.20-8
drwxr-xr-x    7 root     root         4096 Jun 25 22:39 redhat


* 심볼 링크만 걸어 주기
# cd /usr/src/
# ln -s linux-2.4.20-8/ linux


[리눅스 서버 모드 설치시]

more..


4. Install
Make sure you have a kernel configured with IPv6 support and
Netfilter.  Kernel modules were made for the 2.4.x series.
tar xzvf hut-aodv6-x.y.tar.gz
cd hut-aodv6-x.y
make all
make install
vi /etc/aodv6.conf 수정

* make install에서 아래 에러 발생시
[root@adhoc hut-aodv6-0.11]# make install
if test '!' -f /etc/aodvd.conf; then \
       install -m 0644 aodvd.conf /etc/aodvd.conf; fi
install -o root -m 0644 aodvd.8 /usr/local/man/man8/aodvd.8
install: cannot create regular file `/usr/local/man/man8/aodvd.8': No such file or directory
make: *** [install-manuals] Error 1
설정 파일 직접 복사 #cp aodvd.conf.example /etc/aodvd.conf
폴더 생성 : mkdir -p /usr/local/man/man8 후 다시 make install


추가1: make 성공시의 메시지

more..



추가2: make install 성공시의메시지

more..



5. Quick setup
First install queuing module and AODV module.
# insmod ip6_queue (netfilter module for queueing IPv6 packets)
# insmod ip6_nf_aodv
위치 : /lib/modules/2.4.20-8/kernel/net/ipv6/netfilter

위 방식으로 안되면(맞는 방법인지는 모르겠지만 )
cd ./hut-aodv6-0.11/kernel
modprobe ipv6 (IPv6모듈 먼저 올리고)
insmod ip6_queue.o
insmod ip6_nf_aodv.o



추가3: 출력 에러 메시지

more..



[참고 : 추후 자동 모듈 올리기 ]
/etc/modules.conf나 /etc/conf.modules에
alias net-pf-10 ipv6  #추가

[참고 : vi /etc/rc.d/rc.local에 추가]
ifconfig eth1 up
modprobe ipv6
ifconfig eth1 inet6 add 2001:0220:1404:5::1/64
iwconfig eth1 mode ad-hoc essid adioshun
insmod /root/hut-aodv6-0.11/kernel/ip6_queue.o
insmod /root/hut-aodv6-0.11/kernel/ip6_nf_aodv.o
ip link set aodv0 up


5.1 Then setup fake network interface aodv0 and add default route.
# ip link set aodv0 up
# ip -6 r a ::/0 dev aodv0
# ip -6 r d fe80::/10 dev aodv0   (link-local address)
# ip -6 r d ff00::/8 dev aodv0     (멀티 캐스트)


5.2 Set Linux IPv6 routing table garbage collector interval to 1.
# sysctl -w net.ipv6.route.gc_interval=1

5.3 설정 파일 수정
vi /etc/aodvd.conf
5: NodeAddressGlobal=2001:0220:1404:5::2/64; (콤마 추가)
6: NodeAddressSite=fec0:1336::1/64;
18: Interface=eth1;


6. 실행 하기
Now you are ready to start the aodvd daemon.
# $bindir$/aodvd -C $etcdir$/aodvd.conf
ex) /aodvd -C /etc/aodvd.conf

추가4: 실행후 ip6_queue 정상 동작 상태

more..




Tip1] Ad-hoc 모드 설정

iwconfig <인터페이스> mode ad-hoc essid <임의명칭>
ex) iwconfig eth1 mode ad-hoc essid adioshun


Tip2] IPv6 주소 추가

# ifconfig eth1 inet6 add 2001:0220:1404:5::1/64


Tip3] IPv6 tcpdump

tcpdump -i eth1 -vv ip6 or proto ipv6


Tip4] 라우팅 기능

echo 1 > /proc/sys/net/ipv6/conf/all/forwarding


추가4: 옵션과 설정 파일

more..



관련 자료 :

  1. Charles E. Perkins, Elizabeth Belding-Royer and Samir Das, Ad hoc On-Demand Distance Vector (AODV) Routing RFC 3561, July 2003.
  2. Charles E. Perkins, Elizabeth Belding-Royer and Samir Das, Ad hoc On-Demand Distance Vector (AODV) Routing for IP version 6 Internet-Draft, November 2001, Work-in-progress.
  3. Ryuji Wakikawa, Jari T. Malinen, Charles E. Perkins, Anders Nilsson and Antti J. Tuominen Global Connectivity for IPv6 Mobile Ad Hoc Networks Internet-Draft, November 2002, Work-in-progress.
  4. Manel Guerrero Zapata, Secure Ad hoc On-Demand Distance Vector (SAODV) Routing, Internet-Draft, October 2001, Work-in-progress.



    참조 링크 : http://www.tcs.hut.fi/~anttit/manet/aodv/
    작성 : 2006.06.25 by 임헌정
    http://www.4ellene.net
2006/06/15 13:06 2006/06/15 13:06
Trackback address :: http://4ellene.net/tt/trackback/928

Comments List

  1. karla spice strip 2008/05/23 07:09

  2. canada freebies free sample 2008/05/24 00:44

  3. lesbian massage portland 2008/05/24 00:54

Write a comment.

[로그인][오픈아이디란?]