Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => AM3352 => Topic started by: rifo on September 07, 2015, 02:12:36 pm

Title: using AM3352-SOM-EVB as an ethernet switch
Post by: rifo on September 07, 2015, 02:12:36 pm
Hello,

Can you please tell me whether the below scenario is possible to implement with AM3352-SOM-EVB

I have a PC and a measurement device that need to connect to each other via ethernet.
The system also requires an embedded controller AM3352-SOM-EVB
that also need to speak to the PC via ethernet.

(http://i57.tinypic.com/162a5wz.png)

I can use an industrial switch to connect everything together but in order
to decrease the component level lower, I would like to use the dual ethernet
jacks of AM3352-SOM-EVB

(http://i57.tinypic.com/2z8q2kx.png)

Which settings should I change so that both eth interfaces have an address in
the same domain and the PC can ping and connect to both the AM3352-SOM-EVB and the measurement
device.

As far as I see, currently eth interfaces are seperate and I guess I need IP forwarding
to have the PC and measurement device to talk to each other.

Thanks a lot for your help
rifo
Title: Re: using AM3352-SOM-EVB as an ethernet switch
Post by: MBR on September 10, 2015, 06:55:40 pm
You can use bridge them together using the command brctl. The ethernet bridge in Linux works as a switch, you can add any number of separate ethernet interface and use them as one device (eg. br0). See http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge (http://www.linuxfoundation.org/collaborate/workgroups/networking/bridge) or https://wiki.debian.org/BridgeNetworkConnections (https://wiki.debian.org/BridgeNetworkConnections) .