[Olsr-users] Help in mesh configuration
John Tobias
(spam-protected)
Tue Aug 16 22:07:15 CEST 2011
Hi Michel,
I used your default config on my two devices DevA and DevB. I just added the
"olsrd_txtinfo.so.0.1" section and in interface section, I only put "wlan0".
LoadPlugin "olsrd_txtinfo.so.0.1"
{
PlParam "Accept" "127.0.0.1"
}
Before running the oslr, I bring up the wlan0 on both devices (see the
command below), ping it, both devices responded to each other.
iwconfig wlan0 essid mesh0 mode ad-hoc channel 1
ifconfig wlan0 192.168.13.3 netmask 255.255.255.0 (devA)
ifconfig wlan0 192.168.13.4 netmask 255.255.255.0 (devB)
Again, DevB is capable of reaching outside world because of eth0 - it has an
IP 192.168.1.168 and default gateway 192.168.1.1
Here is the routing table of DevB:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.3.3 * 255.255.255.255 UH 2 0 0
wlan0
192.168.3.0 * 255.255.255.0 U 0 0 0
wlan0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
While DevA is not capable of reaching outside world.
Here is the routing table of DevA:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.3.4 * 255.255.255.255 UH 2 0 0
wlan0
192.168.3.0 * 255.255.255.0 U 0 0 0
wlan0
*DevB status:*
Table: Links
Local IP Remote IP Hyst. LQ NLQ Cost
192.168.3.4 192.168.3.3 0.00 1.000 1.000 1.000
Table: Neighbors
IP address SYM MPR MPRS Will. 2 Hop Neighbors
192.168.3.3 YES NO NO 4 0
Table: Topology
Dest. IP Last hop IP LQ NLQ Cost
192.168.3.4 192.168.3.3 1.000 1.000 1.000
192.168.3.3 192.168.3.4 1.000 1.000 1.000
Table: HNA
Destination Gateway
1.234.56.0/27 192.168.3.4
123.45.67.0/24 192.168.3.4
Table: MID
IP address Aliases
Table: Routes
Destination Gateway IP Metric ETX Interface
192.168.3.3/32 192.168.3.3 1 1.000 wlan0
*DevA status:*
Table: Links
Local IP Remote IP Hyst. LQ NLQ Cost
192.168.3.3 192.168.3.4 0.00 1.000 1.000 1.000
Table: Neighbors
IP address SYM MPR MPRS Will. 2 Hop Neighbors
192.168.3.4 YES NO NO 4 0
Table: Topology
Dest. IP Last hop IP LQ NLQ Cost
192.168.3.4 192.168.3.3 1.000 1.000 1.000
192.168.3.3 192.168.3.4 1.000 1.000 1.000
Table: HNA
Destination Gateway
1.234.56.0/27 192.168.3.3
123.45.67.0/24 192.168.3.3
Table: MID
IP address Aliases
Table: Routes
Destination Gateway IP Metric ETX Interface
192.168.3.4/32 192.168.3.4 1 1.000 wlan0
I have a follow up questions:
1. In my step-by-step procedures, did I miss something?. If I have a
mistake, could you correct it?
2. With regards to the kernel, are there any required modules?.
Regards,
john
On Mon, Aug 15, 2011 at 8:05 PM, Michel Blais <(spam-protected)>wrote:
> This is the link with the default config i used at first. You should add
> security plugin if you run public network.
>
> http://staros.tog.net/wiki/OLSR
> Le 2011-08-15 22:24, "John Tobias" <(spam-protected)> a écrit :
> > Hi Guys,
> >
> > I was trying to configure my two devices to enable the mesh network
> support.
> > I will call them DevA and DevB, the two devices seems they can see to
> each
> > other (I can ping them vice-versa). DevB has a capability to go outside
> > world (WAN), but DevA need to use the mesh network in order to go outside
> > world. When, I issue a command 'ping google.com' on DevA, it doesn't
> work.
> > Any idea what am I missing (Please see DevA and DevB configuration
> below)?
> >
> > NOTE: I do not have a router that support mesh networking and I am not
> sure
> > if I needed it.
> >
> > DevA:
> > wlan0 Link encap:Ethernet HWaddr 00:0E:8E:30:BC:07
> > inet addr:192.168.13.3 Bcast:192.168.13.255 Mask:255.255.255.0
> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > RX packets:28579 errors:105 dropped:0 overruns:0 frame:0
> > TX packets:3344 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:1000
> > RX bytes:3761333 (3.5 Mb) TX bytes:361494 (353.0 Kb)
> >
> > Table: Links
> > Local IP Remote IP Hyst. LQ NLQ Cost
> > 192.168.13.3 192.168.13.4 0.00 1.000 0.862 1.158
> >
> > Table: Neighbors
> > IP address SYM MPR MPRS Will. 2 Hop Neighbors
> > 192.168.13.4 YES NO NO 3 0
> >
> > Table: Topology
> > Dest. IP Last hop IP LQ NLQ Cost
> > 192.168.13.4 192.168.13.3 1.000 0.862 1.158
> > 192.168.13.3 192.168.13.4 0.862 1.000 1.158
> >
> > Table: HNA
> > Destination Gateway
> > 192.168.13.0/24 192.168.13.3
> >
> > Table: MID
> > IP address Aliases
> >
> > Table: Routes
> > Destination Gateway IP Metric ETX Interface
> > 192.168.13.4/32 192.168.13.4 1 1.158 wlan0
> >
> >
> > *DevB:*
> > eth0 Link encap:Ethernet HWaddr 00:25:19:BF:AF:F4
> > inet addr:192.168.1.168 Bcast:192.168.1.255 Mask:255.255.255.0
> > UP BROADCAST RUNNING MULTICAST MTU:1492 Metric:1
> > RX packets:9247 errors:0 dropped:0 overruns:0 frame:0
> > TX packets:3892 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:1000
> > RX bytes:651031 (635.7 Kb) TX bytes:1595657 (1.5 Mb)
> >
> > wlan0 Link encap:Ethernet HWaddr 00:0E:8E:30:BB:A2
> > inet addr:192.168.13.4 Bcast:192.168.13.255 Mask:255.255.255.0
> > UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
> > RX packets:194197 errors:480 dropped:0 overruns:0 frame:0
> > TX packets:15546 errors:0 dropped:0 overruns:0 carrier:0
> > collisions:0 txqueuelen:1000
> > RX bytes:25706893 (24.5 Mb) TX bytes:1726766 (1.6 Mb)
> >
> > Table: Links
> > Local IP Remote IP Hyst. LQ NLQ Cost
> > 192.168.13.4 192.168.13.3 0.00 0.862 1.000 1.158
> >
> > Table: Neighbors
> > IP address SYM MPR MPRS Will. 2 Hop Neighbors
> > 192.168.13.3 YES NO NO 5 0
> >
> > Table: Topology
> > Dest. IP Last hop IP LQ NLQ Cost
> > 192.168.13.4 192.168.13.3 1.000 0.862 1.158
> > 192.168.13.3 192.168.13.4 0.862 1.000 1.158
> >
> > Table: HNA
> > Destination Gateway
> > 192.168.13.0/24 192.168.13.4
> >
> > Table: MID
> > IP address Aliases
> >
> > Table: Routes
> > Destination Gateway IP Metric ETX Interface
> > 192.168.13.3/32 192.168.13.3 1 1.158 wlan0
> >
> >
> > Thanks,
> >
> > john
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.olsr.org/pipermail/olsr-users/attachments/20110816/c6172a8e/attachment.html>
More information about the Olsr-users
mailing list