<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">You could try something like this:<div><br></div><div><div># wlan0: WLAN MANET interfacea, ath5k driver</div><div>auto wlan0</div><div>iface wlan0 inet static</div><div> wireless-mode ad-hoc</div><div> wireless-channel 11</div><div> address (yours)</div><div> netmask 255.255.0.0</div><div> broadcast 255.255.255.255</div><div> up iw dev wlan0 ibss join "(your ibss)" 2462 (your cell MAC address)</div><div> up echo 0 > /proc/sys/net/ipv6/conf/wlan0/disable_ipv6</div><div> up echo 14400 > /proc/sys/net/ipv4/neigh/wlan0/base_reachable_time</div><div># key d:0:(yours)</div><div><br></div><div>WPA doesn't work yet on ad hoc links with >2 nodes</div><div>WEP doesn't make sense a lot....</div><div><br></div><div>On the iw line: I use a mix of settings in the interfaces file and the iw up command.</div><div><br></div><div>I preferred the modified madwifi ahdemo static ad hoc mode (no scans). I switched to ath5k recently , following others. Ath5k ad hoc isn't perfect, but it works.</div><div><br></div><div>Teco</div><div><br></div><div><br></div><div><div>Op 1 feb. 2012, om 19:33 heeft <<a href="mailto:john@johneschultz.com">john@johneschultz.com</a>> <<a href="mailto:john@johneschultz.com">john@johneschultz.com</a>> het volgende geschreven:</div><br class="Apple-interchange-newline"><blockquote type="cite">Markus, thank you for the assist.<br><br>Im still REALLY new (call me a noob) with this linux networking stuff.<br><br>I thought just by declaring the card in the interfaces file was enough to make it active. What am I missing? I can ping the card so does that not mean its up and running?<br><br>Thanks again for your help.<br><br>And BTW, wlan1 is being used by hostapd. I am trying to use wlan0 as the backhaul.<br><br>Thanks again,<br>John<br><br><b>----- Original Message -----</b><br>
<b>From:</b> Markus Kittenberger [mailto:Markus.Kittenberger@gmx.at]<br>
<b>To:</b> <a href="mailto:teco@inf-net.nl">teco@inf-net.nl</a><br>
<b>Cc:</b> <a href="mailto:olsr-users@lists.olsr.org">olsr-users@lists.olsr.org</a><br>
<b>Sent:</b> Wed, 1 Feb 2012 12:04:03 +0100<br>
<b>Subject:</b> Re: [Olsr-users] problem running OLSRD<br><br>
<br><br><div class="gmail_quote">On Wed, Feb 1, 2012 at 8:10 AM, Teco Boot <span><<a href="mailto:teco@inf-net.nl" target="_blank">teco@inf-net.nl</a>></span> wrote:<br><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Your wlan0 is not RUNNING.<br></blockquote><div>which is definetely a problem (-;</div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It is also not configured in ad hoc mode.<br></blockquote><div>which is only a problem if john intends to use olsrd with an adhoc mesh network (-;</div><div><br>(oslrd itself does not care what wifi settings are used, ...) </div>
<div><br></div><div>Markus</div><blockquote style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Teco<br>
<br>
<br>
Op 1 feb. 2012, om 07:05 heeft <<a href="mailto:john@johneschultz.com" target="_blank">john@johneschultz.com</a>> <<a href="mailto:john@johneschultz.com" target="_blank">john@johneschultz.com</a>> het volgende geschreven:<br>
<div class="im HOEnZb"><br>
> First... I apologize for the length of this message, just trying to be thorough.<br>
><br>
> I have not been able to run OLSRD since I installed it from a debian package. I keep getting "No interfaces detected! This might be intentional, but it also might mean that your configuration is fubar."<br>
><br>
> S/W:<br>
> kernel: 3.0.0<br>
> O/S: Voyage Linux 0.8.0 (10/24/2011 build) (debian 0.6.2 based)<br>
><br>
><br>
> H/W<br>
</div><div class="im HOEnZb">> SBC: alix.3D3<br>
> Wlan0: Wistron dnma-92<br>
> Wlan1: Wistron dnma-92<br>
> cf: sandisk 4GB<br>
><br>
> output from "olsrd -f /etc/olsrd/olsrd.conf -d 0" command<br>
</div><div class="HOEnZb"><div class="h5">> *** <a href="http://olsr.org/" target="_blank">olsr.org</a> - 0.6.1-git_-hash_0b616759ced652dc083d7b0cba610180 - ***<br>
> Build date: 2011-05-07 11:15:38 on newk<br>
> <a href="http://www.olsr.org/" target="_blank">http://www.olsr.org</a><br>
><br>
> Parsing file: "/etc/olsrd/olsrd.conf"<br>
> Debug level: 2<br>
> IpVersion: 4<br>
> Noint set to 1<br>
> TOS: 16<br>
> Willingness: 7<br>
> OlsrPort: 698<br>
> RtTableDefault: 0<br>
> RtTable: 254<br>
> Hysteresis disabled<br>
> Hysteresis Scaling: 0.50<br>
> Hysteresis UpperThr: 0.80<br>
> Hysteresis LowerThr: 0.30<br>
> Pollrate 0.10<br>
> NIC Changes Pollrate 2.50<br>
> TC redundancy 2<br>
> MPR coverage 7<br>
> Link quality level 2<br>
> Link quality fish eye 1<br>
> Clear screen enabled<br>
> setting ifs_in_curr_cfg = 0<br>
> Autodetect changes: YES<br>
> IPv4 broadcast: 10.255.255.255<br>
> Mode: mesh<br>
> HELLO interval: 5.00<br>
> HELLO validity: 90.00<br>
> TC interval: 3.00<br>
> TC validity: 300.00<br>
> MID interval: 15.00<br>
> MID validity: 270.00<br>
> HNA interval: 15.00<br>
> HNA validity: 90.00<br>
> IPC host: 127.0.0.1<br>
> IPC net: <a href="http://10.0.0.0/255.0.0.0" target="_blank">10.0.0.0/255.0.0.0</a><br>
> HNA IPv4 entry: <a href="http://10.0.0.0/255.0.0.0" target="_blank">10.0.0.0/255.0.0.0</a><br>
> Plugin: olsrd_httpinfo.so.0.1<br>
> Plugin param key:"Port" val: "8080"<br>
> Plugin param key:"Host" val: "127.0.0.1"<br>
> Plugin param key:"Net" val: "10.0.0.0 255.0.0.0"<br>
> Plugin: olsrd_txtinfo.so.0.1<br>
> Plugin param key:"Accept" val: "127.0.0.1"<br>
> Plugin param key:"port" val: "8081"<br>
> Plugin: olsrd_dot_draw.so.0.3<br>
> Plugin param key:"accept" val: "10.0.1.1"<br>
> Plugin param key:"port" val: "2004"<br>
> IPv4 broadcast/multicast : 10.255.255.255<br>
> Mode : mesh (d)<br>
> IPv6 multicast : ::<br>
> HELLO emission/validity : 5.00 (d)/90.00 (d)<br>
> TC emission/validity : 3.00 (d)/300.00 (d)<br>
> MID emission/validity : 15.00 (d)/270.00 (d)<br>
> HNA emission/validity : 15.00 (d)/90.00 (d)<br>
> Autodetect changes : yes<br>
> No interfaces detected! This might be intentional, but it also might mean that your configuration is fubar.<br>
> I will continue after 5 seconds...<br>
> <a href="http://olsr.org/" target="_blank">olsr.org</a> - 0.6.1-git_-hash_0b616759ced652dc083d7b0cba610180 - detaching from the current process...<br>
><br>
> OLSRD.CONF file<br>
</div></div><div class="HOEnZb"><div class="h5">> DebugLevel 2<br>
> IpVersion 4<br>
> AllowNoInt yes<br>
> TosValue 16<br>
> Willingness 7<br>
> OlsrPort 698!<br>
> RtTableDefault 0<br>
> RtTable 254<br>
> UseHysteresis no<br>
> HystScaling 0.50<br>
> HystThrHigh 0.80<br>
> HystThrLow 0.30<br>
> Pollrate 0.1<br>
> NicChgsPollInt 2.5<br>
> TcRedundancy 2<br>
> MprCoverage 7<br>
> LinkQualityLevel 2<br>
> LinkQualityFishEye 1<br>
> ClearScreen yes<br>
> #LinkQualityWinSize 100<br>
> #LinkQualityDijkstraLimit 0 7.0<br>
><br>
> Interface "wlan0" {<br>
> AutoDetectChanges yes<br>
> Ip4Broadcast 10.255.255.255<br>
> Mode "mesh"<br>
> HelloInterval 5.0<br>
> HelloValidityTime 90.0<br>
> TcInterval 3.0<br>
> TcValidityTime 300.0<br>
> MidInterval 15.0<br>
> MidValidityTime 270.0<br>
> HnaInterval 15.0<br>
> HnaValidityTime 90.0<br>
> #LinkQualityMult 192.168.0.1 0.5<br>
> #LinkQualityMult default 0.8<br>
> }<br>
><br>
> IpcConnect {<br>
> MaxConnections 1<br>
> Host 127.0.0.1<br>
> Net 10.0.0.0 255.0.0.0<br>
> }<br>
><br>
> Hna4 {<br>
> option 'netaddr' '10.0.0.0'<br>
> option 'netmask' '255.0.0.0'<br>
> }<br>
><br>
> Hna6 {<br>
> #:: 0<br>
> #fec0:2200:106:: 48<br>
> }<br>
> LoadPlugin "olsrd_httpinfo.so.0.1" {<br>
> PlParam "Port" "8080"<br>
> PlParam "Host" "127.0.0.1"<br>
> PlParam "Net" "10.0.0.0 255.0.0.0"<br>
> # PlParam "Net" "0.0.0.0 0.0.0.0"<br>
> }<br>
> LoadPlugin "olsrd_txtinfo.so.0.1" {<br>
> PlParam "Accept" "127.0.0.1"<br>
> PlParam "port" "8081"<br>
> }<br>
> LoadPlugin "olsrd_dot_draw.so.0.3" {<br>
> PlParam "accept" "10.0.1.1"<br>
> PlParam "port" "2004"<br>
> }<br>
><br>
><br>
> /etc/network/interfaces file:<br>
</div></div><div class="HOEnZb"><div class="h5">> auto lo<br>
> iface lo inet loopback<br>
><br>
> auto eth0<br>
> allow-hotplug eth0<br>
> iface eth0 inet static<br>
> address 10.0.1.1<br>
> netmask 255.0.0.0<br>
> network 10.0.0.0<br>
> broadcast 10.255.255.255<br>
> gateway 10.0.0.1<br>
><br>
> auto wlan0<br>
> iface wlan0 inet static<br>
> address 10.0.1.2<br>
> netmask 255.0.0.0<br>
> network 10.0.0.0<br>
> broadcast 10.255.255.255<br>
> gateway 10.0.0.1<br>
><br>
> auto wlan1<br>
> iface wlan1 inet static<br>
> address 10.0.1.3<br>
> netmask 255.0.0.0<br>
> network 10.0.0.0<br>
> broadcast 10.255.255.255<br>
> gateway 10.0.0.1<br>
><br>
> #auto br0<br>
> #iface br0 inet static<br>
> # address 10.0.1.4<br>
> # netmask 255.0.0.0<br>
> # network 10.0.0.0<br>
> # broadcast 10.255.255.255<br>
> # bridge-ports wlan0 wlan1<br>
><br>
><br>
> ifconfig output:<br>
</div></div><div class="HOEnZb"><div class="h5">> eth0 Link encap:Ethernet HWaddr 00:0d:b9:24:96:b4<br>
> inet addr:10.0.1.1 Bcast:10.255.255.255 Mask:255.0.0.0<br>
> inet6 addr: fe80::20d:b9ff:fe24:96b4/64 Scope:Link<br>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
> RX packets:7167 errors:0 dropped:0 overruns:0 frame:0<br>
> TX packets:5845 errors:0 dropped:0 overruns:0 carrier:0<br>
> collisions:0 txqueuelen:1000<br>
> RX bytes:661449 (645.9 KiB) TX bytes:1023549 (999.5 KiB)<br>
> Interrupt:11 Base address:0x2000<br>
><br>
> lo Link encap:Local Loopback<br>
> inet addr:127.0.0.1 Mask:255.0.0.0<br>
> inet6 addr: ::1/128 Scope:Host<br>
> UP LOOPBACK RUNNING MTU:16436 Metric:1<br>
> RX packets:18 errors:0 dropped:0 overruns:0 frame:0<br>
> TX packets:18 errors:0 dropped:0 overruns:0 carrier:0<br>
> collisions:0 txqueuelen:0<br>
> RX bytes:1196 (1.1 KiB) TX bytes:1196 (1.1 KiB)<br>
><br>
> mon.wlan1 Link encap:UNSPEC HWaddr 00-1B-B1-5D-AE-08-6C-6F-00-00-00-00-00-00-00-00<br>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
> RX packets:173702 errors:0 dropped:0 overruns:0 frame:0<br>
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
> collisions:0 txqueuelen:1000<br>
> RX bytes:31430721 (29.9 MiB) TX bytes:0 (0.0 B)<br>
><br>
> wlan0 Link encap:Ethernet HWaddr 00:1b:b1:5d:ad:98<br>
> inet addr:10.0.1.2 Bcast:10.255.255.255 Mask:255.0.0.0<br>
> UP BROADCAST MULTICAST MTU:1500 Metric:1<br>
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
> TX packets:0 errors:0 dropped:0 overruns:0 carrier:0<br>
> collisions:0 txqueuelen:1000<br>
> RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)<br>
><br>
> wlan1 Link encap:Ethernet HWaddr 00:1b:b1:5d:ae:08<br>
> inet addr:10.0.1.3 Bcast:10.255.255.255 Mask:255.0.0.0<br>
> inet6 addr: fe80::21b:b1ff:fe5d:ae08/64 Scope:Link<br>
> UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br>
> RX packets:0 errors:0 dropped:0 overruns:0 frame:0<br>
> TX packets:6 errors:0 dropped:0 overruns:0 carrier:0<br>
> collisions:0 txqueuelen:1000<br>
> RX bytes:0 (0.0 B) TX bytes:576 (576.0 B)<br>
><br>
><br>
> finally iwconfig output:<br>
</div></div><div class="HOEnZb"><div class="h5">> lo no wireless extensions.<br>
><br>
> eth0 no wireless extensions.<br>
><br>
> wlan0 IEEE 802.11abgn ESSID:off/any<br>
> Mode:Managed Access Point: Not-Associated Tx-Power=27 dBm<br>
> Retry long limit:7 RTS thr:off Fragment thr:off<br>
> Encryption key:off<br>
> Power Management:on<br>
><br>
> wlan1 IEEE 802.11abgn Mode:Master Frequency:2.412 GHz Tx-Power=27 dBm<br>
> Retry long limit:7 RTS thr:off Fragment thr:off<br>
> Power Management:on<br>
><br>
> mon.wlan1 IEEE 802.11abgn Mode:Monitor Tx-Power=27 dBm<br>
> Retry long limit:7 RTS thr:off Fragment thr:off<br>
> Power Management:on<br>
><br>
</div></div><span class="HOEnZb"><font color="#888888">> --<br>
> Olsr-users mailing list<br>
> <a href="mailto:Olsr-users@lists.olsr.org" target="_blank">Olsr-users@lists.olsr.org</a><br>
> <a href="https://lists.olsr.org/mailman/listinfo/olsr-users" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
<br>
<br>
--<br>
Olsr-users mailing list<br>
<a href="mailto:Olsr-users@lists.olsr.org" target="_blank">Olsr-users@lists.olsr.org</a><br>
<a href="https://lists.olsr.org/mailman/listinfo/olsr-users" target="_blank">https://lists.olsr.org/mailman/listinfo/olsr-users</a><br>
</font></span></blockquote></div><br>
</blockquote></div><br></div></body></html>