Wi5 / odin-wi5-agent

Click-based odin agent that runs on access points
2 stars 7 forks source link

Problems about the start_odin script #18

Closed oda356 closed 8 years ago

oda356 commented 8 years ago

Hi! @josemariasaldana , Your scripts to setup odin is great, I have learn many things from it, but I still have something that I cannot understand.

I have a router maintaining a subnet 192.168.0.*, and the ip of the router is 192.168.0.1, the odin-master(192.168.0.121) and the odin-agent (192.168.0.155) works in this subnet, and I want to realize the lvap function by odin.

In the start_odin.sh scipt,

route add -net 155.210.158.0 netmask 255.255.255.0 gw 155.210.157.254 eth0
route add -net 155.210.156.0 netmask 255.255.255.0 gw 155.210.157.254 eth0

these two commands added new routes to cover the elder routes in the two subnets, if I have a router already working as a gateway, is it correct to delete these two commands?

And in these two commands, why should the default gateway of agent be changed to a device in another subnet of 192.168.1.*? What is 192.168.1.129?

route del default gw 155.210.157.254 route add default gw 192.168.1.129

Thank you.

josemariasaldana commented 8 years ago

Hi,

Sorry, these lines are not general. They are only applicable to our network. 155.210.158.0 and 155.210.156.0 are some of our university subnets, so you can remove them for sure.

And 192.168.1.129 was the router we used. So you should use your default router instead.

Hope it helps.

PS: If you want to join the Wi-5 repository as an external collaborator, just ask me.

oda356 commented 8 years ago

Hi! @josemariasaldana I tried your method of run openvswitch manually, after the click started running, we turned up the ap interface, and added the ap interface to the bridge, but the wlan0 of setted essid cannot be scanned from a station either of linux, windows or a cellphone, could you help me about that? Thank you.

josemariasaldana commented 8 years ago

Hi,

You have to follow the order in this script: https://github.com/Wi5/odin-wi5-agent/blob/master/scripts_start_ap_odin/start_odin.sh

  1. Initiate the interfaces, including mon0
  2. Initiate openvswitch
  3. Initiate Click

You should also have a look to the "sanity check" list here: https://github.com/Wi5/odin-wi5/wiki/Sanity-check

aroramahak commented 8 years ago

Hi josemariasaldana,

We have been trying your script(build.sh) for automatically generating .bin file for a couple of days but are getting the same error as mentioned by you. Does that script includes the ath9k patch and click modular router. Do you have a generated .bin file with all these things for TP link WR1043 that you can share with us?

josemariasaldana commented 8 years ago

Here are you are: https://www.dropbox.com/sh/4wsda2gojqdvi0w/AABKB2EL62w3ENW-pVDOEUL2a?dl=0

Click is not included in the .bin file. It has been compiled apart.

aroramahak commented 8 years ago

We are using TPLINK WR1043ND V3 as V2 is not available in the market. We have changed a bit in the .bin file using hex editor. Hope that is not causing any issue as everything else is working fine.

aroramahak commented 8 years ago

We are able to associate the stations with the controller. We have not used DHCP, is it necessary to use 2 hubs as described in the scenario_working_odin pdf file or is it ok to use a single switch for internet connection and controller to physical AP connections.

aroramahak commented 8 years ago

According to me it should work even if we remove hub1 and connect a cable from hub2 to yellow port of physical AP....Please correct me if I am wrong.

josemariasaldana commented 8 years ago

I think it should work. Our setup separates the two kinds of traffic, but it is optional.

oda356 commented 8 years ago

Hi! @josemariasaldana , We have bought TP-Link 1750 router and checked the file you gave above on dropbox, but we can't find out which is the ipk file of openwrt in the click folder, or we should compile click ourselves, could you help us about this problem? Thankyou.

aroramahak commented 8 years ago

Just copy the click folder given in this dropbox link and try running the scripts. You may have to fiddle around a little with names as they are different in the documentation.

oda356 commented 8 years ago

We runned the scripts on the router and managed to make it run, but clients cannot finish the connection with the wifi provided by the agent. The console on the agent showed [Odinagent.cc] add_vap (F8:A9:D0:09:DD:81, 0.0.0.0, 00-1B-B3-09-DD-81, odinopenwrt) [Odinagent.cc] add_lvap (F8:A9:D0:09:DD:81, 0.0.0.0, 00-1B-B3-09-DD-81, odinopenwrt) [Odinagent.cc] addLVAP: result of the fh_arpr call write: 0 [Odinagent.cc] addLVAP: result of the arp_resp call write: 0 [Odinagent.cc] bssid mask: 5B:CF:FC:29:37:E0 Could you help us about that?

josemariasaldana commented 8 years ago

After the addLVAP you should obtain a setLVAP with the IP address. So it seems that the DHCP server is not working.