vollero / openCAPWAP

openCAPWAP
113 stars 83 forks source link

Cant Connect Station to Access point #25

Open Rajiv-Chaudhary opened 8 years ago

Rajiv-Chaudhary commented 8 years ago

Hi , I am trying to run AC and WTP on two separate machines in Local MAC mode. I have succeeded in creating a WLAN network using wum which in turn creates an AP WTPWLan00 . I assign a static IP to it and try to connect UE to it. UE is assigned dynamic IP by dhcp server listening on WTPWLan00 interface . But still WTP or AC logs give no information regarding UE(base station) association.

WTP halts at Waiting for data->station(Mac address) and echo response AC halts at Parse configuration response ... Result code = 0

What am I missing?

Note : No bridges created on WTP or AC .... First step, trying to obtain successful UE association at WTP

e-ago commented 8 years ago

Hi. You should use the master branch (that is the most updated one). According to INSTALL notes, the DHCP server must reside on the AC side. Please refer to the INSTALL file for further details. If you have any question, add a comment here. Thank you

Rajiv-Chaudhary commented 8 years ago

Thanks for the prompt response . Will download from master branch now and work on that . Actually we want to connect to external pdn with this capwap setup(WTP as AP and AC) . Is it possible with this capwap setup ?

Regards

Rajiv-Chaudhary commented 8 years ago

Hi, I have downloaded code from master branch and am able to build WTP and AC .But when I run the setup on separate machines , face following error: ############################WTP enters Run State######################## Create thread

THREAD Manager Data Channel Start Error : Error receiving (ocurred at line 139 in file CWNetworks.c , catched at line 243 in file WTPRunState.c) CWErrorGetLastErrorCode(): 11 THREAD Receiver Data Channel exit Heartbeat timer expired

What can be the possible reasons for it ?

The configuration for setup is as follows: Mode: Local Mac

At WTP eth0 : 172.26.195.88/22 WTPWLan00 : 172.26.195.62/22 No bridge setup AC address :172.26.194.1/22

At AC eth0: 172.26.194.2/22 AC_tap : no ip bridgeAC introduced between AC_tap and eth0 : 172.26.194.1/22

Rajiv-Chaudhary commented 8 years ago

Hi All, I have downloaded opencapwap code from master branch . I am also able to build WTP and AC in local MAC mode. A bridge is created to connect AC_tap and eth0 on AC and a similar bridge on WTP side to connect WTPWLan00 and eth0. A wlan network is setup between AC and WTP with keep alive and echo packets being forwarded between them . Client gets IP address from dhcp server setup on AC machine . But still Client is not able to send any data on capwap data channel . On checking the packets on Wireshark , I observed that a malformed Association request has been sent from WTP to Client ..... Shouldn't it be Association response ? Any information on this matter will be appreciated.

For reference ... attached Wireshark Logs of Capwap Data channel , AC logs , WTP logs

12226 ac.log.txt wtp1.txt

Rohan-Kadam commented 6 years ago

Hi, I have downloaded code from master branch and am able to build WTP and AC .But when I run the setup on separate machines , face following error: ############################WTP enters Run State######################## Create thread

THREAD Manager Data Channel Start Error : Error receiving (ocurred at line 139 in file CWNetworks.c , catched at line 243 in file WTPRunState.c) CWErrorGetLastErrorCode(): 11 THREAD Receiver Data Channel exit Heartbeat timer expired

What can be the possible reasons for it ?

The configuration for setup is as follows: Mode: Local Mac

At WTP eth0 : 172.26.195.88/22 WTPWLan00 : 172.26.195.62/22 No bridge setup AC address :172.26.194.1/22

At AC eth0: 172.26.194.2/22 AC_tap : no ip bridgeAC introduced between AC_tap and eth0 : 172.26.194.1/22

Hey Rajiv, How did you resolve the issue you mentioned here? We are also facing the same problem. Unable to establish connection when running AC and WTP on separate machine. It will very much helpful. Thank you.