I'm getting this error when running /etc/init.d/olsrd start (this is the error at the bottom of this post):
*** olsr.org - 0.5.3 ***
Build date: Sep 30 2007
http://www.olsr.orgParsing file: "/etc/olsrd.conf"
No interfaces detected!
Bailing out!
I've tried to follow this guide for a couple of days but I've yet to get it working.
I've flashed my WRT54GL 1.1 with Kamikaze 7.09 and changed the password using telnet and passwd, this is what I've done from that point on:
slimg@desktop:~$ ssh 192.168.1.1
root@OpenWrt:~# ipkg update
root@OpenWrt:~# ipkg install olsrd olsrd-mod-httpinfo nano
Then I used nano to edit /etc/config/wireless, this is the result:
config wifi-device wl0
option type broadcom
option channel 5
option disabled 0
config wifi-iface
option device wl0
option mode adhoc
option ssid openmesh
option encryption none
Then I used nano to edit /etc/olsrd.conf, this is the result:
DebugLevel 0
IpVersion 4
ClearScreen yes
Hna4
{
0.0.0.0 0.0.0.0
192.168.1.0 255.255.255.0
}
AllowNoInt no
IpcConnect
{
MaxConnections 0
Host 127.0.0.1
}
UseHysteresis yes
HystScaling 0.50
HystThrHigh 0.80
HystThrLow 0.30
LinkQualityLevel 0
Pollrate 0.05
NicChgsPollInt 3.0
Interface "wl0"
{
AutoDetectChanges yes
}
LoadPlugin "olsrd_httpinfo.so.0.1"
{
PlParam "port" "1979"
PlParam "Net" "0.0.0.0 0.0.0.0"
}
Then I used nano to edit /etc/firewall.user, this is the result:
#!/bin/sh
iptables -F input_rule
iptables -F output_rule
iptables -F forwarding_rule
iptables -t nat -F prerouting_rule
iptables -t nat -F postrouting_rule
iptables -F input_wan
iptables -F forwarding_wan
iptables -t nat -F prerouting_wan
WIFI=wl0
iptables -A input_wan -p tcp --dport 22 -j ACCEPT
iptables -A input_wan -p tcp --dport 1979 -j ACCEPT
iptables -A input_rule -p udp --dport 698 -j ACCEPT
iptables -A forwarding_rule -i $WAN -o $WIFI -j ACCEPT
iptables -A forwarding_rule -i $WIFI -o $WAN -j ACCEPT
iptables -A forwarding_rule -i $LAN -o $WIFI -j ACCEPT
iptables -A forwarding_rule -i $WIFI -o $WIFI -j ACCEPT
iptables -A forwarding_rule -i $LAN -o $LAN -j ACCEPT
iptables -A forwarding_rule -i $WIFI -o $LAN -j ACCEPT
root@OpenWrt:~# reboot
After reboot:
root@OpenWrt:~# /etc/init.d/olsrd start
*** olsr.org - 0.5.3 ***
Build date: Sep 30 2007
http://www.olsr.org
Parsing file: "/etc/olsrd.conf"
No interfaces detected!
Bailing out!
root@OpenWrt:~# ifconfig
br-lan Link encap:Ethernet HWaddr 00:1C:10:9A:0A:99
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:997 errors:0 dropped:0 overruns:0 frame:0
TX packets:948 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:92381 (90.2 KiB) TX bytes:866354 (846.0 KiB)
eth0 Link encap:Ethernet HWaddr 00:1C:10:9A:0A:99
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1807 errors:0 dropped:0 overruns:0 frame:0
TX packets:1657 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:971376 (948.6 KiB) TX bytes:954943 (932.5 KiB)
Interrupt:4
eth0.0 Link encap:Ethernet HWaddr 00:1C:10:9A:0A:99
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:997 errors:0 dropped:0 overruns:0 frame:0
TX packets:948 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:96369 (94.1 KiB) TX bytes:870146 (849.7 KiB)
eth0.1 Link encap:Ethernet HWaddr 00:1C:10:9A:0A:99
inet addr:192.168.80.105 Bcast:192.168.80.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:817 errors:0 dropped:0 overruns:0 frame:0
TX packets:714 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:843241 (823.4 KiB) TX bytes:77551 (75.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:~# iwconfig
lo no wireless extensions.
eth0 no wireless extensions.
eth0.0 no wireless extensions.
eth0.1 no wireless extensions.
br-lan no wireless extensions.
wl0 IEEE 802.11-DS ESSID:"openmesh"
Mode:Ad-Hoc Frequency:2.432 GHz Cell: EE:05:9F:D0:F2:09
Tx-Power:19 dBm
RTS thr:2347 B Fragment thr:2346 B
Encryption key:off
root@OpenWrt:~# cat /etc/config/network
#### VLAN configuration
config switch eth0
option vlan0 "0 1 2 3 5*"
option vlan1 "4 5"
#### Loopback configuration
config interface loopback
option ifname "lo"
option proto static
option ipaddr 127.0.0.1
option netmask 255.0.0.0
#### LAN configuration
config interface lan
option type bridge
option ifname "eth0.0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
#### WAN configuration
config interface wan
option ifname "eth0.1"
option proto dhcp
I'm a newbie when it comes to this, so there might be downright stupid configurations from my part, so please ask if there is configuration that makes you raise an eyebrow (or both).
The sollution to this problem (thanks to Götz)
I had to append this the end of /etc/config/network :
config interface wireless
option ifname "wl0"
option proto static
option ipaddr 192.168.1.1
option netmask 255.255.255.0
(Last edited by SlimG on 19 Nov 2007, 15:40)