Wiki This Pls: OLSR Howto

Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions
Author Message
benryanau
DD-WRT Novice


Joined: 17 Dec 2008
Posts: 32
Location: AU

PostPosted: Tue Aug 21, 2012 4:25    Post subject: Wiki This Pls: OLSR Howto Reply with quote
See http://www.dd-wrt.com/phpBB2/viewtopic.php?p=689523#689523

Quote:
I tried to find a way to help update the wiki, but I can't seem to find a way to create an account. I can understand why someone unverified could not contribute.

Here is my guide to get OLSR working with v24-sp2.

Prerequisites:

Router that will support the larger firmware required to support OLSR
Firmware that supports OLSR


My Setup:

WRT54GL v3
WRT150N v1.1


Note: This guide does not cover how to install the correct firmware for your router that will support OLSR.

Concept for the setup:
The routers are all setup similar. The areas to setup are:

Wireless Adhoc
Advanced Routing



Router 1 setup (for this example, I am using the WRT54GL):
Wireless Security Notes: I could not get WPAPSK or WPA2PSK to work. I was either left with no encryption or WEP. I choose WEP to at least have some level of encryption.

Each router will need 2 unique IP addresses: the internal IP and the wireless/mesh IP. I could not get NAT to work for the wired ports going to the mesh. In the end, I found NAT on the wired ports would be undesirable for my purpose. If there is someone that is better with IPTables, this could be changed.

This router's IP address is 192.168.1.1/24

Wireless/Basic Settings:

Wireless Mode: Adhoc
Wireless Network Mode: Mixed
Wireless Network Name (SSID): meshtest
Wireless Channel: 1
Wireless SSID Broadcast: Enable
Sensitivity Range (ACK Timing): 2000
Network Configuration: Unbridged
Multicast forwarding: Disable
IP Address: 10.0.0.1
Subnet Mask: 255.0.0.0


Wireless Security wl0

Security Mode: WEP
Default Transmit Key: 1
Encryption: 128 bits
Key 1: <my 26 char key>


Setup/Advanced Routing:

Operating Mode: OLSR Router
Gateway Mode: Disable
Host Net Announce: <blank>
Poll Rate: 0.1
TC Redundancy: 2
MPR Coverage: 7
Link Quality Fish Eye: Enable
Link Quality Aging: 0.1
Smart Gateway: Disable
Link Quality Level: 2
Hysteresis: Disable



Using New Interface, add both the wireless and Internal network. I added eth1 and vlan1. All settings are left at the defaults:

Hello Interval: 5.0
Hello Validity Time: 90.0
TC Interval: 2.0
TC Validity Time: 270.0
MID Interval: 15.0
Mid Validity Time: 90.0
HNA Interval: 15.0
HNA Validity Time: 90.0




Dynamic Routing Interface: Disable




**************************************


Router 2 setup (for this example, I am using the WRT150N):

This router's IP address is 192.168.2.1/24

Wireless/Basic Settings:

Wireless Mode: Adhoc
Wireless Network Mode: BG-Mixed
Wireless Network Name (SSID): meshtest
Wireless Channel: 1
Wireless SSID Broadcast: Enable
Sensitivity Range (ACK Timing): 2000
Network Configuration: Unbridged
Multicast forwarding: Disable
IP Address: 10.0.0.2
Subnet Mask: 255.0.0.0


Wireless Security wl0

Security Mode: WEP
Default Transmit Key: 1
Encryption: 128 bits
Key 1: <my 26 char key>


Setup/Advanced Routing:

Operating Mode: OLSR Router
Gateway Mode: Disable
Host Net Announce: 192.168.2.0 255.255.255.0
Poll Rate: 0.1
TC Redundancy: 2
MPR Coverage: 7
Link Quality Fish Eye: Enable
Link Quality Aging: 0.1
Smart Gateway: Disable
Link Quality Level: 2
Hysteresis: Disable


Using New Interface, add both the wireless and Internal network. I added eth2 and br1. All settings are left at the defaults:

Hello Interval: 5.0
Hello Validity Time: 90.0
TC Interval: 2.0
TC Validity Time: 270.0
MID Interval: 15.0
Mid Validity Time: 90.0
HNA Interval: 15.0
HNA Validity Time: 90.0



Dynamic Routing Interface: Disable



**************************************

Testing:
Now, I can ping 10.0.0.1 and 192.168.1.1 from a wired port on router 2 (WRT150N). If you connect to a wired port on router 1 (WRT54GL), the pinging works for 10.0.0.2 and 192.168.2.1. When I get more routers, I can add them to the mesh network making sure the internal IP, wireless IP are unique. The wireless IP needs to be on the same network as the other routers -- that is why I used 10.0.0.0/8. Also make sure you set the correct Host Net Announcement.


**************************************

Adding Ineternet Access

I was able to allow Internet access to my mesh nodes as well. On router 1 (WRT54GL), I connected my internet connection to the WAN port. Once it was connected and working on router 1 (not covered in this), I only had to make a few more changes.

On router 1 (WRT54GL):
Administration/Commands/Firewall:

iptables -t nat -A POSTROUTING -o vlan1 -j MASQUERADE


On router 2 (WRT150N):
Setup/Basic Setup/Router IP:

Local DNS: <my correct DNS>


*****************************

Some items I am wishing for:

The settings to change between NAT on wired ports
The ablility to use WPA2PSK (or a reason why it doesn't work)


I hope you can get this to work like I did.

_________________
========================
<<CURRENTLY WORKING ON>>
-Netgear WNR3500Lv1 w/DD-WRT v24-sp2 (03/19/12) big - build 18777
-Buffalo WBR-G54 w/DD-WRT v24_pre_sp2 (08/07/10) std - build 14896
Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> General Questions All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum