[Commotion-admin] [commotiond] Mesh over ethernet (#121)

Josh King notifications at github.com
Wed Oct 1 11:25:08 EDT 2014


This pull request, in combination with opentechinstitute/luci-commotion#430, addresses opentechinstitute/commotion-router#128 and opentechinstitute/commotion-router#143 by changing the way that the bridge is handled for wired interfaces in different DHCP modes.

To test meshing over ethernet:
* flash a node and run through setup wizard
* In "Additional Network Interfaces," set the node to mesh over ethernet, with address 172.16.1.1 and netmask 255.255.0.0
* Save changes and then login to the node over ssh. Check /etc/config/olsrd and /var/etc/olsrd.conf to see if they have an 'Interface' stanza for the ethernet interface, make sure the ethernet interface has the configured address, and that /etc/config/firewall has the 'wan' interface in the 'mesh' zone.
* Perform the steps above for a second node, but set the address to 172.16.1.2
* Connect the two nodes together via ethernet, and connect to the wireless AP of one node.
* Check the status page to make sure that they are receiving routes via their ethernet interface. If they are meshing over wireless and you can't tell for certain which routes are for the ethernet interface, considering changing the wireless settings for the mesh interface on one node so that they no longer mesh wirelessly.

To test DHCP:
* flash a node and run through setup wizard
* In "Additional Network Interfaces," set the node to always give out DHCP leases.
* Connect to the node's ethernet interface and make sure that you get a DHCP lease in the 10.0.0.0/8 range.
* Connect to the node over SSH and use 'brctl show' to make sure the ethernet interface is part of bridge 'br-lan'.
* In "Additional Network Interfaces," set the node to only ever request a DHCP lease.
* Connect the node's ethernet port to an internet gateway.
* Connect to the node's wireless AP and see if you have access to the internet.
* Connect to the node over SSH and use 'brctl show' to make sure the ethernet interface is not part of bridge 'br-lan'.
You can merge this Pull Request by running:

  git pull https://github.com/opentechinstitute/commotiond mesh-over-ethernet

Or you can view, comment on it, or merge it online at:

  https://github.com/opentechinstitute/commotiond/pull/121

-- Commit Summary --

  * Change bridge teardown process for better handling of DHCP state changes and mesh over ethernet.
  * Fix tabbing.

-- File Changes --

    M openwrt/lib/netifd/proto/commotion.sh (11)

-- Patch Links --

https://github.com/opentechinstitute/commotiond/pull/121.patch
https://github.com/opentechinstitute/commotiond/pull/121.diff

---
Reply to this email directly or view it on GitHub:
https://github.com/opentechinstitute/commotiond/pull/121
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.chambana.net/pipermail/commotion-admin/attachments/20141001/9216d2f3/attachment.html>


More information about the Commotion-admin mailing list