[OLSR-users] olsrd and default gateway

Sven-Ola Tuecke (spam-protected)
Mon Nov 7 10:26:25 CET 2005


Hey,

one more sentence. This is on my wishlist for olsrd-0.5.x: Add a config 
param to olsrd.conf "which-routing-table-to-use". Currently the linux main 
table (ip route ls table 254) is used by default. For host routes it is 
therefore not possible to add other routes with higher prio to a high prio 
table (the only table with higher prio than main=254 is the local=255 table 
not suitable for host routes). Heres an expample output FYI:

(spam-protected):~# cat /etc/iproute2/rt_tables
#
# reserved values
#
255     local
254     main
253     default
0       unspec
(spam-protected):~# ip route ls table local
local 192.168.1.1 dev br0  proto kernel  scope host  src 192.168.1.1
broadcast 192.168.1.0 dev br0  proto kernel  scope link  src 192.168.1.1
broadcast 127.255.255.255 dev lo  proto kernel  scope link  src 127.0.0.1
broadcast 212.91.225.40 dev vlan1  proto kernel  scope link  src 
212.91.225.45
broadcast 104.0.0.0 dev eth1  proto kernel  scope link  src 104.198.65.65
broadcast 212.91.225.47 dev vlan1  proto kernel  scope link  src 
212.91.225.45
local 212.91.225.45 dev vlan1  proto kernel  scope host  src 212.91.225.45
broadcast 192.168.1.255 dev br0  proto kernel  scope link  src 192.168.1.1
broadcast 104.255.255.255 dev eth1  proto kernel  scope link  src 
104.198.65.65
broadcast 127.0.0.0 dev lo  proto kernel  scope link  src 127.0.0.1
local 104.198.65.65 dev eth1  proto kernel  scope host  src 104.198.65.65
local 127.0.0.1 dev lo  proto kernel  scope host  src 127.0.0.1
local 127.0.0.0/8 dev lo  proto kernel  scope host  src 127.0.0.1
(spam-protected):~# ip route ls table main
104.65.65.69 dev eth1  scope link  metric 1
212.91.225.40/29 dev vlan1  proto kernel  scope link  src 212.91.225.45
192.168.1.0/24 dev br0  proto kernel  scope link  src 192.168.1.1
104.0.0.0/8 dev eth1  proto kernel  scope link  src 104.198.65.65
default via 212.91.225.41 dev vlan1

LG Sven-Ola 





More information about the Olsr-users mailing list