[OLSR-users] OLSR Linux Network newbie questions

Benjamin Watson (spam-protected)
Thu Oct 26 06:00:49 CEST 2006


Thanks for your quick response Kim.

I'm not too familiar with the HNA routes in general, so here's what I did.

In MeshRouterA (ath0 IP = 10.128.1.1), I added a route to the routing table
"manually" to get to MeshRouterB as follows:

route add -net 10.128.2.0 netmask 255.255.255.0 gw 10.128.2.1 ath0

Similarly, in MeshRouterB (ath0 IP = 10.128.2.1), I added a route:

route add -net 10.128.1.0 netmask 255.255.255.0 gw 10.128.1.1 ath0


Viola!  The laptops can now ping one another!

I'm sure the same thing can be accomplished with HNA announcements as
you stated (and I'd prefer setting that up once rather than doing this
every boot).

But here's another interesting twist.

Let's say that Laptop 1 has a web server installed (Apache).  On
laptop 1, I browse to the local IP address and see the nice "It Works"
page.  Now, from laptop 2, I browse to laptop 1's IP address and the
connection (eventually after several minutes) times out.

I ran Ethereal on Laptop 1 to see what was happening and I can see the
SYN, SYN ACK, ACK handshake take place between the two laptops, but
after that, nothing.

Neither of the laptops nor the MeshRouters have firewalls up at this point.

Here, I'm basically testing use of services hosted within the Mesh
network, later to explore connecting the Mesh network to "the
Internet".  But I can't seem to get the simple case of visiting a web
page hosted by a client node to work even though I've "proven?"
connectivity between 2 clients on different WLANs.

Any ideas as to why the laptops can ping eachother, but can't view
web-pages hosted?

Thanks in advance,

Ben

On 10/25/06, Kim Hawtin <(spam-protected)> wrote:
> Benjamin Watson wrote:
> > Hello List,
> >
> > I'm a first time poster and, quite frankly, new to OLSR and Linux
> > networking, please forgive my long-winded post!!
> >
> > I'm working on a wireless mesh networking project and have run into
> > some road blocks.
> > I'm sure I'm "almost there" and overlooking something trivial, so I
> > thought I'd get some insight from the list.
> >
> > What I'm attempting to do is set up the following scenario:
> >
> > Laptop 1 <--link A--> MeshRouterA <--OLSR link B--> MeshRouterB
> > <--Link C--> Laptop 2
> >
> > The Mesh routers are Metrix Mark II kits with 2 wireless radios and an
> > ethernet port running Pyramid Linux with olsrd available.
> >
> > Link A is an 802.11b link where Laptop 1 is in client mode and one of
> > MeshRouterA's radios is an access point serving DHCP.
> > Link B is an 802.11a link where one radio on each MeshRouter has the
> > same channel, essid, and is set to ad-hoc mode.
> > Link C is similar to link A, only between MeshRouterB and Laptop 2.
> >
> > I've decided to use the 10.0.0.0/8 ip range for expandibility and
> > flexibility down the road for more nodes.
> >
> > I've assigned the LinkA radio on MeshRouterA (wlan0) the following:
> > IP: 10.128.1.2
> > Mask: 255.255.255.0
> > Broadcast: 10.128.1.255
> >
> > Laptop1 connects to MeshRouterA and is assigned:
> > IP: 10.128.1.79
> > Mask: 255.255.255.0
> > Gateway: 10.128.1.2
> >
> > Similarly, for the LinkC radio on MeshRouterB (wlan0) the following:
> > IP: 10.128.2.2
> > Mask: 255.255.255.0
> > Broadcast: 10.128.2.255
> >
> > Laptop2 conneect to MeshRouterB and is assigned:
> > IP: 10.128.2.175
> > Mask: 255.255.255.0
> > Gateway: 10.128.2.2
> >
> > This is all wonderful, the laptops can connect to the APs, can SSH
> > into them, etc.
> >
> > For Link B, the MeshRouterA radio (ath0) gets:
> > IP: 10.128.1.1
> > Mask: 255.255.0.0
> > Broadcast: 10.128.255.255
> >
> > And the MeshRouterB radio (ath0) gets:
> > IP: 10.128.2.1
> > Mask: 255.255.0.0
> > Broadcast: 10.128.255.255
> >
> > The MeshRouters are successfully exchanging OLSR messages and I can
> > see the nodes "linked" in a visualization graph.
> >
> > Furthermore, MeshRouterA can ping Laptop 1, and all of the interfaces
> > on MeshRouterB, but cannot reach Laptop 2.
> > Likewise, MeshRouterA can ping Laptop 2, and all of the interfaces on
> > MeshRouterA., but cannot reach Laptop 1.
> >
> > The Laptops can obviously ping the MeshRouters they're connected to,
> > but not the "other" MeshRouter or the "other" laptop.
> >
> > I enabled OLSR on all interfaces for both MeshRouters and let
> > MeshRouterA do an HNA announcement of 0.0.0.0 0.0.0.0 as it is
> > connected to "the Internet" on eth0.
> >
> > The routing table on MeshRouterA looks like:
> > Destination  Gateway     Mask                   Iface
> > 10.128.2.1       *            255.255.255.255   ath0
> > 10.128.2.2   10.128.2.1  255.255.255.255   ath0
> > 10.128.1.0       *            255.255.255.0       wlan0
> > 192.168.0.0     *            255.255.255.0       eth0
> > 10.128.0.0       *            255.255.0.0          ath0
> > default        192.168.0.1 0.0.0.0                 eth0
> >
> > The routing table on MeshRouterB is "similar".
> >
> > I know OLSR doesn't actually route packets, but aids in setting up the
> > routing tables and so long as port forwarding is enabled (and it is),
> > packets should be routed according to the table.
> >
> > However, I'm not getting the Laptop-to-Laptop communication I desire.
> >
> > Any suggestions?
> >
> > Thanks for tolerating my long post!!
>
> i have just done something very similar. you could explore adding HNA
> routes for the networks that are connected to the routers...
>
> cheers,
>
> Kim
> --
> Operating Systems, Services and Operations
> Information Technology Services, The University of Adelaide
> (spam-protected)
>
> _______________________________________________
> olsr-users mailing list
> (spam-protected)
> https://www.olsr.org/mailman/listinfo/olsr-users
>




More information about the Olsr-users mailing list