[FFP] Olsr + VPN

Thomas Mellenthin thomas at home.mellenthin.de
So Okt 2 21:43:31 CEST 2011


Hi,

sorry for the delayed response, I'm pretty busy at the moment… 

On 06.09.2011, at 01:02, Gilson wrote:
> So, if I create two subnets, the configuration is equal below:
> 
> ROUTER 1 
> DHCP-OLSR: 192.160.1.0/25,255.255.255.0
> HNA4: 192.160.1.0/25
> IP WIRELESS: 192.160.1.1
> MSK: 255.255.255.0
> 
> ROUTER 2 
> DHCP-OLSR: 192.160.1.128/25,255.255.255.0
> HNA4: 192.160.1.128/25
> IP WIRELESS: 192.160.1.129
> MSK: 255.255.255.0
HNA4 should be "0.0.0.0/0" if the router provides an uplink. Leave empty else. OLSR will announce the existing nodes automatically, there is no need to announce this via HNA4 explicitly.

Please try first to setup the mesh without OLSR-DHCP. If this works, add olsr-dhcp. 

You should choose a smaller network for the dhcp-range. Recommendation: 192.160.1.32/27 + 192.160.1.64/27 which gives you 30 clients per node.

$ ipcalc 192.160.1.32/27
Address:   192.160.1.32         11000000.10100000.00000001.001 00000
Netmask:   255.255.255.224 = 27 11111111.11111111.11111111.111 00000
Wildcard:  0.0.0.31             00000000.00000000.00000000.000 11111
=>
Network:   192.160.1.32/27      11000000.10100000.00000001.001 00000
HostMin:   192.160.1.33         11000000.10100000.00000001.001 00001
HostMax:   192.160.1.62         11000000.10100000.00000001.001 11110
Broadcast: 192.160.1.63         11000000.10100000.00000001.001 11111
Hosts/Net: 30                    Class C


IP WIRELESS: 192.160.1.32
DHCP-OLSR: 192.160.1.32/27,255.255.255.0
HNA4: 
MSK: 255.255.255.0

IP WIRELESS: 192.160.1.64
DHCP-OLSR: 192.160.1.64/27,255.255.255.0
HNA4: 
MSK: 255.255.255.0


> The clients will receive IP's 192.160.1.2 - 192.160.1.127 if is connected
> Router 1,
> and 192.160.1.130 - 192.160.1.254 if is connected Router 2.
Well there's a problem in your net masks:

$ ipcalc 192.160.1.0/25
Address:   192.160.1.0          11000000.10100000.00000001.0 0000000
Netmask:   255.255.255.128 = 25 11111111.11111111.11111111.1 0000000
Wildcard:  0.0.0.127            00000000.00000000.00000000.0 1111111
=>
Network:   192.160.1.0/25       11000000.10100000.00000001.0 0000000
HostMin:   192.160.1.1          11000000.10100000.00000001.0 0000001
HostMax:   192.160.1.126        11000000.10100000.00000001.0 1111110
Broadcast: 192.160.1.127        11000000.10100000.00000001.0 1111111
Hosts/Net: 126                   Class C

If you assign 1.1 to the router the IP overalaps with the dhcp-range. A "solution" would be to assign 1.0 to router 1, but this is forbidden (1.0 is the network-IP).

Try my suggested IPs/Netmasks first. 



On 27.09.2011, at 19:30, Gilson wrote:
> How I do that one router see the other? Since they are on different
> networks?
They're on the same network: 192.160.1.0/24. Only the dhcp-range is a subset of the OLSR-network range. 



viele Grüße,

// melle

-- 
xmpp: melle at jabber.ccc.de passion: http://mellenthin.de
F489 2C4F E8C2 9A15 DBCB mission: http://freifunk-potsdam.de
127C 81B6 FDC3 7C1A FF85 pubkey: http://mellenthin.de/key.txt



Mehr Informationen über die Mailingliste Users