Connect multiple Carambola2 devices together using Openwrt

I found a fun little network enabled device that runs Openwrt called Carambola2. The developer kit version has two ethernet ports and I wanted to try connecting them all on the same subnet by daisy chaining via the eth0 and eth1 across multiple devices. The requirement is to connect them in a way that any device can connect to any other device on the network but do not use a centralized switch to do so. The following configuration on the lan part of the network configuration shows how I connected eth0 and eth1. The configuration uses staticIP but I have not figured out if dhcp works via the main router yet.

config interface 'lan'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ipaddr '192.168.0.2'
option _orig_ifname 'eth0'
option _orig_bridge 'true'
option ifname 'eth0 eth1'
option gateway '192.168.0.1'
option dns '8.8.8.8 8.8.4.4'
option broadcast '192.168.0.255'

In this case, the device node is set to 192.168.0.2. Make sure each device has a unique IP within the subnet range.

Leave a Reply

Your email address will not be published.