[Olsr-users] DLEP Radio test: Can mac80211_hwsim help?
Vigneswaran R
(spam-protected)
Thu Dec 18 06:15:47 CET 2014
On 12/17/2014 04:01 PM, Vigneswaran R wrote:
> Hi,
>
> I am running DLEP radio on a linux host and DLEP router inside a
> virtual machine (VM) running on that host. The VM's host side tap
> interface is bridged with a (simulated) wifi device on the host.
>
> I am able to query DLEP radio for layer2info (as I mentioned earlier
> in this mail chain). However, how to verify whether the radio and
> router components are communicating and sharing data?
>
> Also, do we need to assign IP to any of the interfaces on the radio
> side (wlan, tap, bridge)? as of now, I haven't set IP address to any
> of them.
My test setup looks like this,
+----------------------------------------+
| Host |
| |
| +-------------+ +-------------+ |
| |VM1 | |VM2 | |
| | | | | |
| | | | | |
| |(dlep_router)| |(dlep_router)| |
| | | | | |
| | | | | |
| | eth0 | | eth0 | |
| +-----||------+ +------||-----+ |
| +--tap0 tap1--+ |
| | | |
|BR0| |BR1|
| | | |
| +-wlan0 [mac80211_hwsim] wlan1-+ |
| (wlan0.sta1) | |
| | | |
| \~~~~~~~~~~~~~~~~~~~~~~~~/ |
| (hostapd) (wpa_supplicant)|
| (dlep_radio) |
+----------------------------------------+
I am running OLSRv2 (with dlep_router plugin loaded) on VM1 and VM2. The
VMs are able to ping each other and OLSRv2 is able to establish routes.
For testing, I am running dlep_radio on the host, and configured to
collect information about wlan1 and send via tap1 ([dlep_radio=tap1]
source wlan1). I hope, this is equivalent to, having DLEP supported
radio device for VM2.
On the host/radio side, I am able to query the dlep_radio and getting
the following information.
# echo "/layer2info interface"|nc 127.0.0.1 2009
wlan1 25 02:00:00:00:01:00 2.412 GHz 0 Hz
20 MHz 0 Hz
On the VM2/router side, how to check whether the DLEP session is
established, radio is sharing the Layer2 details (or whatever details it
supposed to share) etc.? Thanks.
Vignesh
>
>
> Vignesh
>
> On 12/16/2014 02:37 PM, Vigneswaran R wrote:
>> On 12/16/2014 12:53 PM, Henning Rogge wrote:
>>> On Tue, Dec 16, 2014 at 6:27 AM, Vigneswaran R <(spam-protected)>
>>> wrote:
>>>> I could get some information using layer2info as shown below.
>>> Yes :)
>>>
>>> (I meant the layer2info plugin when I said "layer2 viewer")
>>
>> Ok :-)
>>
>>>> # echo "/layer2info interface"|nc 127.0.0.1 2009
>>>> wlan1 74 02:00:00:00:01:00 2.412 GHz 0
>>>> Hz 20
>>>> MHz 0 Hz
>>>>
>>>> I used the following configuration entries.
>>>>
>>>> dlep_radio.conf
>>>> ===============
>>>> [global]
>>>> plugin dlep_radio
>>>> plugin layer2info
>>>> plugin nl80211_listener
>>>>
>>>> [dlep_radio=tap0]
>>>> source wlan1
>>>>
>>>> [nl80211_listener]
>>>> if wlan1
>>>> interval 1.0
>>>>
>>>> [layer2_viewer]
>>> Remove this line or replace it with "[layer2info]".
>>
>> Ok. We have to update in
>> oonf/src-plugins/generic/dlep/README_DLEP_RADIO also. Thanks.
>>
>>
>> Vignesh
>>
>>
>
>
More information about the Olsr-users
mailing list