4. Cloud configuration¶
If you don’t have two PCs at your hand or if you are just not interested in inter-machine-communication, just skip this topic. It is not essential for the next tutorials to use cloud communication.
Of course, you can use a virtual machine (e.g. with VMWare or VirtualBox) as second PC. Just add a host-only adapter to your VM.
Quite often you want data to flow between eCAL nodes on different machines. eCAL can run in two modes, that differ from each other: local mode and cloud mode.
By default, eCAL already is configured in cloud mode, so you don’t have to change anything. You however have to configure your operating system, so it knows where to send that multicast traffic to. This is done by creating a multicast route.
4.1. Multicast configuration on Windows¶
Check the IPv4 address of the ethernet adapter you are using to connect your two PCs. You can do that by typing
ipconfigin a command prompt.
Open a command prompt with administrator privileges
Enter the following line and replace xx.xx.xx.xx with your IP address
route -p add 188.8.131.52 mask 255.255.255.0 xx.xx.xx.xx
If you made a mistake, you can delete your route/s with
route delete 184.108.40.206. Your eCAL communication may not work, if you leave faulty routes in place.
Check the result from a command prompt. It should show your route under IPv4 Route Table / Persistent Routes.
It is recommended to assign a static IP, so your multicast route will not become outdated at some point.
4.2. Multicast configuration on Ubuntu¶
Configure the loopback route (this will become active, if you disconnect from all networks)
sudo gedit /etc/network/interfaces
Add the following lines beneath the
iface lo inet loopbackline:
post-up ifconfig lo multicast post-up route add -net 220.127.116.11 netmask 255.255.255.0 dev lo metric 1000
The high metric will cause this loopback route to have lower priority than the route to the external interface that we will create in the next step.
Configure a route for the external interface:
Recommended way: If you have a graphical network manager installed (-> Desktop Ubuntu), you should use it to configure the route.
System Settings -> Network -> Your Adapter -> Options -> IPv4 Tab -> Routes
Create a route:
Not recommended (but works fine): If you do not have a graphical network manager (-> Server Ubuntu), again add the post-up lines to
/etc/network/interfaces(just as for loopback, but with metric 1):
# replace eth0 with your network adapter post-up ifconfig eth0 multicast post-up route add -net 18.104.22.168 netmask 255.255.255.0 dev eth0 metric 1
Restart your PC
Check the result from a terminal. It should show routes for local and external communication: