[OLSR-users] how to insert static routes

Konstantinos Skarlatos (spam-protected)
Wed Nov 9 00:20:34 CET 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hello, i just have installed olsrd-0.4.9 on the linux routers of the
wireless network i participate in. the network has the following topology:
every router connects with its 2 neighbors forming a circle. so
10.176.6.1<-->10.176.4.1<-->10.176.9.1<-->10.176.10.1<-->10.176.11.1<-->10.176.6.1

my olsrd.conf on every node is something like:

DebugLevel      0
IpVersion       4
AllowNoInt      yes
IpcConnect
{
     MaxConnections  0
     Host            127.0.0.1
}
UseHysteresis no
LinkQualityLevel        2
LinkQualityWinSize      10
Pollrate        0.05
Interface "eth0" "eth1" "eth2" "wifi0" "wifi1" "wlan0" "wlan1"
{
}

a routing table

(spam-protected):/var/log# route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
10.176.6.155    0.0.0.0         255.255.255.255 UH    1      0        0 eth3
10.176.11.161   10.176.6.155    255.255.255.255 UGH   1      0        0 eth3
10.176.9.129    10.176.4.203    255.255.255.255 UGH   2      0        0 eth4
10.176.9.145    10.176.4.203    255.255.255.255 UGH   2      0        0 eth4
10.176.4.203    0.0.0.0         255.255.255.255 UH    1      0        0 eth4
10.176.9.1      10.176.4.203    255.255.255.255 UGH   2      0        0 eth4
10.176.11.1     10.176.6.155    255.255.255.255 UGH   1      0        0 eth3
10.176.4.158    10.176.4.203    255.255.255.255 UGH   2      0        0 eth4
10.176.5.1      10.176.4.203    255.255.255.255 UGH   1      0        0 eth4
10.176.4.156    10.176.4.203    255.255.255.255 UGH   1      0        0 eth4
10.176.10.161   10.176.6.155    255.255.255.255 UGH   2      0        0 eth3
10.176.9.137    10.176.4.203    255.255.255.255 UGH   2      0        0 eth4
10.176.4.161    10.176.4.203    255.255.255.255 UGH   1      0        0 eth4
10.176.10.1     10.176.6.155    255.255.255.255 UGH   2      0        0 eth3
10.176.9.157    10.176.4.203    255.255.255.255 UGH   2      0        0 eth4
10.176.11.157   10.176.6.155    255.255.255.255 UGH   1      0        0 eth3
10.176.4.1      10.176.4.203    255.255.255.255 UGH   1      0        0 eth4
10.176.9.158    10.176.6.155    255.255.255.255 UGH   2      0        0 eth3
10.176.11.158   10.176.6.155    255.255.255.255 UGH   2      0        0 eth3
10.176.10.65    10.176.6.155    255.255.255.255 UGH   2      0        0 eth3
10.176.6.160    0.0.0.0         255.255.255.252 U     0      0        0 eth2
10.176.4.200    0.0.0.0         255.255.255.248 U     0      0        0 eth4
10.176.8.88     0.0.0.0         255.255.255.248 U     0      0        0 eth5
10.176.6.168    0.0.0.0         255.255.255.248 U     0      0        0
wlan0
10.176.6.160    0.0.0.0         255.255.255.248 U     0      0        0 eth2
10.176.6.152    0.0.0.0         255.255.255.248 U     0      0        0 eth3
10.176.6.144    0.0.0.0         255.255.255.248 U     0      0        0 eth0
10.176.6.0      0.0.0.0         255.255.255.128 U     0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         10.176.4.203    0.0.0.0         UG    1      0        0 eth4

first of all, all the 255.255.255.255 netmasks are wrong. for example
10.176.9.1 should have a netmask of 255.255.255.128. what should i do
for this?

also, every router has some static non olsr routes that i want to
propagate to the whole network. for example the router who is the owner
of the 10.176.4.0 class C subnet has the following route:
10.176.4.224/29 10.176.4.6
how can i declare that route? i guess it has something to do with
olsrd.conf and the hna, but i havent figured out how to declare a
gateway there.

thanks for your attention
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDcTLCDPg0rePeXUwRAvTQAKCq3V/8CLPG8kGJC6OwotTjVjQWXQCgkpiX
Srvvv7qD32onXYQYmhF5VlI=
=Z5Jx
-----END PGP SIGNATURE-----




More information about the Olsr-users mailing list