/!\ aun en construccion /!\
Esta es una guía para conectar un computador a vía LAN a un enrutador con FreiFunk y que sea posible verlo desde la red inalambrica.

Olsrd

Lo primero es instalar el cliente Olsrd en la maquina que queremos conectar, para ello descargamos el paquete y lo compilamos a mano:

bajamos la version del CVS:

cvs -d:pserver:anonymous@olsrd.cvs.sourceforge.net:/cvsroot/olsrd login
cvs -z3 -d:pserver:anonymous@olsrd.cvs.sourceforge.net:/cvsroot/olsrd co olsrd-current

Primero algunas dependencias:

aptitude install bison flex

luego entramos a la carpeta creada en el paso anterior y compilamos:

cd olsrd-current
make
make install

Por ultimo es necesario compilar las librerias necesarias para que corra el cliente:

cd lib/

el listado nos debe mostrar algo como:

ls

arprefresh  dot_draw      httpinfo  nameservice  quagga  txtinfo
bmf         dyn_gw        Makefile  pgraph       secure
CVS         dyn_gw_plain  mini      powerinfo    tas

Entramos a las a cada una de las carpetas y las compilamos a mano (yo unicamente lo hice con dyn_gw_plain, nameservice y txtinfo)

cd LIBRERIA
make 
make install

olsrd.conf

El archivo de configuración se encuentra en /etc/olsrd.conf la manera rápida de configurar el cliente es copiando el archivo que esta en el router en la misma ubicación. A continuación pego el que use en la maquina donde probé esto:

DebugLevel              0
IpVersion               4
AllowNoInt              yes
Pollrate                0.1
TcRedundancy            2
MprCoverage             7
LinkQualityFishEye      1
LinkQualityWinSize      100
LinkQualityDijkstraLimit 0 9.0

LoadPlugin "olsrd_nameservice.so.0.3"
{
        PlParam "name"          "chapimovil"
        PlParam "hosts-file"    "/var/run/hosts"
        PlParam "suffix"        ".olsr"
}
LoadPlugin "olsrd_txtinfo.so.0.1"
{
        PlParam "Accept" "127.0.0.1"
}

IpcConnect
{
        MaxConnections  1
        Host            127.0.0.1
}
LinkQualityLevel 2
UseHysteresis no
Interface "eth0"
{
        HelloInterval           6.0
        HelloValidityTime       108.0
        TcInterval              4.0
        TcValidityTime          324.0
        MidInterval             18.0
        MidValidityTime         324.0
        HnaInterval             18.0
        HnaValidityTime         108.0
        
        
        
}
# Add your addons (e.g. plugins) to olsrd.conf here,
# addons for interfaces in /etc/local.olsrd.conf.eth1

En el router

Pego explicación de sparkid a una pregunta sobre el tema en la lista de correo:

bueno resulta ke para ke el server este ne la lan como un nodo se necesita ke la lan este también en el segmento de red de la inalambrica

wifi : 10.0.0.10
netmask 255.255.0.0
olsrd dhcp 10.0.0.10/28,255.255.0.0

lan: 10.0.0.11
netmask 255.255.0.0

Deshabilitar NAT: chulito
Deshabilitar Firewall: chulito

Número de Usuarios DHCP: 0   -> para desabilitar el dhcp por lan

Lanzar olsr

Para lanzar el programa basta con digitar en una consola como root:

olsrd

Pero para verificar que todo esta funcionando correctamente lo podemos lanzar en modo debug con:

olsrd -d 2

y esta es la salida que tira:

 *** olsr.org - 0.5.4pre ***
 Build date: Aug 21 2007
 http://www.olsr.org

Parsing file: "/etc/olsrd.conf"
 *** olsrd configuration ***
Debug Level      : 2
IpVersion        : 4
No interfaces    : ALLOWED
TOS              : 0x10
Willingness      : AUTO
IPC connections  : 1
        Host 127.0.0.1
Pollrate         : 0.10
NIC ChangPollrate: 2.50
TC redundancy    : 2
MPR coverage     : 7
LQ level         : 2
LQ fish eye      : 1
LQ Dijkstra limit: 0, 9.00
LQ window size   : 100
Clear screen     : no
Interfaces:
 dev: "eth0"
        IPv4 broadcast           : AUTO
        IPv6 addrtype            : global
        IPv6 multicast site/glbl : ff05::15/ff0e::1
        HELLO emission/validity  : 6.00/108.00
        TC emission/validity     : 4.00/324.00
        MID emission/validity    : 18.00/324.00
        HNA emission/validity    : 18.00/108.00
        Autodetetc changes       : yes
Plugins:
        Name: "olsrd_txtinfo.so.0.1"
        Name: "olsrd_nameservice.so.0.3"
Not using hysteresis
Could not read APM info - setting default willingness(3)
Using IP version 4
Added 0.0.0.0 to IP deny set
Added 127.0.0.1 to IP deny set

 ---- Interface configuration ---- 

Checking eth0:
        Not a wireless interface
        Metric: 0
        MTU - IPhdr: 1472
        Index 2
        Address:10.10.0.83
        Netmask:255.255.0.0
        Broadcast address:10.10.255.255
Adding OLSR socket entry 5
New main address: 10.10.0.83
Adding OLSR socket entry 6
---------- LOADING LIBRARY olsrd_txtinfo.so.0.1 ----------
OLSRD txtinfo plugin 0.1 by Lorenz Schori
Checking plugin interface version:  5 - OK
Trying to fetch plugin init function: OK
Trying to fetch parameter table and it's size... 
Sending parameters...
"Accept"/"127.0.0.1"... Got IP address 127.0.0.1
Accept: OK
Running plugin_init function...
Adding OLSR socket entry 7
(TXTINFO) listening on port 2006
---------- LIBRARY olsrd_txtinfo.so.0.1 LOADED ----------

---------- LOADING LIBRARY olsrd_nameservice.so.0.3 ----------
OLSRD nameservice plugin 0.3
Checking plugin interface version:  4 - OK

WARNING: YOU ARE USING AN OLD DEPRECATED PLUGIN INTERFACE!
DETECTED VERSION 4 AND THE CURRENT VERSION IS 5
PLEASE UPGRADE YOUR PLUGIN!
WILL CONTINUE IN 5 SECONDS...

Trying to fetch plugin init function: OK
Trying to fetch parameter table and it's size... 
Trying to fetch param function: OK
Sending parameters...
"suffix"/".olsr"... Registering parameter "suffix": 
NAME PLUGIN: parameter suffix: .olsr
OK
"hosts-file"/"/var/run/hosts"... Registering parameter "hosts-file": 
NAME PLUGIN: parameter filename: /var/run/hosts
OK
"name"/"chapimovil"... Registering parameter "name": 
NAME PLUGIN: parameter name: chapimovil (main address)OK
Running plugin_init function...
NAME PLUGIN: insert main addr for name chapimovil 
NAME PLUGIN: validate parameter chapimovil (10.10.0.83) -> OK
---------- LIBRARY olsrd_nameservice.so.0.3 LOADED ----------

-- ALL PLUGINS LOADED! --

Main address: 10.10.0.83

Scheduler started - polling every 0.10 seconds
Received TC from NON SYM neighbor 10.10.0.82
NAME PLUGIN: writing hosts file
NAME PLUGIN: writing services file
NAME PLUGIN: writing latlon file
|
--- 17:53:11.69 ------------------------------------------------- DIJKSTRA

10.10.0.83 no next-hop

--- 17:53:11.69 ---------------------------------------------------- LINKS

IP address       hyst   LQ     lost   total  NLQ    ETX

--- 17:53:11.69 ------------------------------------------------ NEIGHBORS

IP address       LQ     NLQ    SYM   MPR   MPRS  will

--- 17:53:11.02694801 ----------------------- TWO-HOP NEIGHBORS

IP addr (2-hop)  IP addr (1-hop)  TLQ

--- 17:53:11.69 ------------------------------------------------- TOPOLOGY

Source IP addr   Dest IP addr     LQ     ILQ    ETX
Received TC from NON SYM neighbor 10.10.0.82
Willingness for 10.10.0.81 changed from 0 to 3 - UPDATING
TC: adding entry 10.10.0.81
MID new: (10.10.0.81, 10.10.0.82)
Inserting alias 10.10.0.82 for 10.10.0.81
\
--- 17:53:20.43 ------------------------------------------------- DIJKSTRA

10.10.0.83 no next-hop
(ioctl)Adding route with metric 1 to 10.10.0.82/255.255.255.255 via 10.10.0.82/eth0.
(ioctl)Adding route with metric 1 to 10.10.0.81/255.255.255.255 via 10.10.0.82/eth0.

--- 17:53:20.43 ---------------------------------------------------- LINKS

IP address       hyst   LQ     lost   total  NLQ    ETX
10.10.0.82       0.000  0.571  0      4      0.976  1.79

--- 17:53:20.43 ------------------------------------------------ NEIGHBORS

IP address       LQ     NLQ    SYM   MPR   MPRS  will
10.10.0.81       0.571  0.976  YES   NO    NO    3

--- 17:53:20.02434497 ----------------------- TWO-HOP NEIGHBORS

IP addr (2-hop)  IP addr (1-hop)  TLQ

--- 17:53:20.43 ------------------------------------------------- TOPOLOGY

Source IP addr   Dest IP addr     LQ     ILQ    ETX
10.10.0.81       10.10.0.83       0.247  0.976  4.15
-
--- 17:53:29.86 ------------------------------------------------- DIJKSTRA

10.10.0.83 no next-hop
(ioctl)Adding route with metric 1 to 0.0.0.0/0.0.0.0 via 10.10.0.82/eth0.

--- 17:53:29.86 ---------------------------------------------------- LINKS

IP address       hyst   LQ     lost   total  NLQ    ETX
10.10.0.82       0.000  0.727  0      8      0.976  1.41

--- 17:53:29.86 ------------------------------------------------ NEIGHBORS

IP address       LQ     NLQ    SYM   MPR   MPRS  will
10.10.0.81       0.727  0.976  YES   NO    NO    3

--- 17:53:29.02866037 ----------------------- TWO-HOP NEIGHBORS

IP addr (2-hop)  IP addr (1-hop)  TLQ

Olsrd en Windows

Toda la información sobre el cliente olsrd para Windows se encuentra en OlsrdWin

ALTRED: ClienteOLSRD (last edited 2008-01-23 19:08:59 by Kalashnikov)