eCAL to work with multiple NIC on same host? #1347
-
Hi eCAL team, I recently find out that it is not trivial to setup a machine that has two NIC, say eth0 and eth1 and configure to cloud mode and receive data from both interfaces. The reason being that, the standard instruction of setting 239.0.0.0/24 route will make the routing table only route to 1 NIC. There seems no good way in linux to make a route to send multicast to multiple NIC at the same multicast address. For now, a workaround we found is that, to start ecal node on host using 239.0.0.0 cloud mode. Then modify the ecal.ini, change the route to 239.0.1.0. Then start the second ecal node. On the other ends of the NICs, the ecal nodes are configured with 239.0.0.0 and 239.0.1.0 respectively. Is there a better way to do this? It would be great if eCAL ini can configure multicast address per NIC. So to receive from either NIC. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
A related question. Is it possible to let ecal node to use a custom eacl.ini, instead of the system path one? |
Beta Was this translation helpful? Give feedback.
-
eCAL is socket-based, not NIC-basedeCAL is socket-based, i.e. it uses the socket API provided by the operating system. eCAL has no idea about what the operating system does with the data after it was passed to the socket. So you will have to achieve your goal by means of the operating system. different ecal.ini filesYes, you can use individual ecal.ini files for individual applications by putting them in separate directories and starting your eCAL applications with differen But to summarize it: eCAL will load the Using a network bridgeTo me it sounds like you actually want to have a proper network with a central switch.
|
Beta Was this translation helpful? Give feedback.
eCAL is socket-based, not NIC-based
eCAL is socket-based, i.e. it uses the socket API provided by the operating system. eCAL has no idea about what the operating system does with the data after it was passed to the socket. So you will have to achieve your goal by means of the operating system.
different ecal.ini files
Yes, you can use individual ecal.ini files for individual applications by putting them in separate directories and starting your eCAL applications with differen
$ECAL_DATA
variables. You can read more about that in the documentation:https://eclipse-ecal.github.io/ecal/configuration/options.html
But to summarize it: eCAL will load the
$ECAL_DATA/ecal.ini
file, if the$ECAL_DATA