OLSR / OONF

OLSR.org Network Framework - olsrd v2 / DLEP
55 stars 35 forks source link

dlep-radio: usage with kmod_trelay? #34

Closed PolynomialDivision closed 3 years ago

PolynomialDivision commented 3 years ago

I have a core-router which is connected to a litebeam ac gen2 over lan. The AP bridges the traffic with kmod_trelay to the core-router. So it goes from wlan0 to eth0.12. The wlan0 interface needs the mac address of the eth0.12 interface of the core router. I have olsrv2 running as ipv6 only. The core-router (oonf-dlep-proxy) does not seem to connect with the dlep-radio. What am I doing wrong?

Setup: Core-Router (oonf-dlep-proxy) <- eth0.12 -> Litebeam ac gen2 <- wlan0 -> ...

The dlep-radio instance seems to work correctly

root@xxx:~# echo '/layer2info neighbor' | nc localhost 2009
wlan0   7   b8:ec:xx:xx:xx:xx   dc:9f:db:xx:xx:xx   0.654       -63dBm  300Mbit/s   120Mbit/s                               229.799k    74.657k                         nl80211 nl80211 nl80211

Litebeam AC Gen2 /etc/config/wireless

config wifi-iface 'wifinet2'
    option device 'radio0'
    option mode 'sta'
    option network 'wmesh'
    option macaddr 'b8:ec:xx:xx:xx:xx'
    ...

/etc/config/network

config interface 'mesh'
    option proto 'unmanaged'
    option ifname 'eth0.12'

config interface 'wmesh'
    option proto 'unmanaged'

/etc/config/trelay

config trelay
    option enabled  1
    option dev1 wlan0
    option dev2 eth0.12

/etc/config/dlep_radio

config dlep_radio
  list   'name'        'wlan0'
  option 'datapath_if' 'eth0.12'
  option 'not_proxied' 'false'
  option 'proxied'     'true'

config nl80211_listener
  option 'if'          'wlan0'
  option 'interval'    '1.0'

Core-Router /etc/config/dlep_proxy

config dlep-router
  list 'name' 'eth0.12'
  option 'datapath_if' 'eth0.12'
PolynomialDivision commented 3 years ago

If I change the radio I can connect via nc...

config dlep_radio
  list   'name'        'wlan0'
  option 'datapath_if' 'eth0.42'
  option 'not_proxied' 'true'
  option 'proxied'     'false'
  option 'session_bindto' '10.31.52.164/27'

But the agent does not connect. Even If I change it does not connect

config dlep-router
  list 'name' 'eth0.12'
  option 'datapath_if' 'eth0.42'
  option 'connect_to' '10.31.52.164'
PolynomialDivision commented 3 years ago

Just for clarification, you can compile the dlep_router into the olsrd2. ;) I did this and upgraded to v0.15.1 but still this does not solve my issues. I don't have any debug output of the dlep router plugin. You can activate it using

config log
    option 'syslog'     'true'
    option 'stderr'     'true'
    option 'debug'      'dlep_router'

The only output I can gather is

OLSRd2[3137]:  INFO(dlep_router) support unloading 436: Plugin dlep_router started