Chapter 10
Serial Server
RUGGEDCOM ROX II
CLI User Guide
346
Example: Serial Interfaces Configured as a Source and Sink
for Multicast Streams
Configure ser-1-1 and ser-1-2
1. Configure IP addresses for the interfaces (switch.0010 and switch.0020). For more information, refer to
Section7.1.3.2, “Adding an IPv4 Address”.
2. Create a raw socket connection for ser-1-1:
interface serial lm1 1 protocols rawsocket
For more information, refer to Section10.2.3, “Adding a Serial Port Protocol”.
3. Set the raw socket of the local port to 10001:
setrawsocket local-port 10001
For more information, refer to Section10.2.6, “Configuring the Raw Socket Protocol”.
4. Set the transport method to UDP:
setrawsocket transport udp
For more information, refer to Section10.2.6, “Configuring the Raw Socket Protocol”.
5. Set the multicast group for the remote host to 232.1.1.1 and the UDP destination port to 5001:
setrawsocket remote-host 232.1.1.1 5001
For more information, refer to Section10.5.2, “Adding a Remote Host”.
6. Set switch.0010 and switch.0020 as the interfaces for the remote host:
interface switch.0010
interface switch.0020
For more information, refer to Section10.7.2, “Adding a Remote Host Interface”
7. Enable remote host loopback:
loopback true
For more information, refer to Section10.6.2, “Adding a Local Host”
8. Create a raw socket connection for ser-1-2:
interface serial lm1 2 protocols rawsocket
For more information, refer to Section10.2.3, “Adding a Serial Port Protocol”
9. Set the raw socket of the local port to 5001. This must be the same as the UDP destination port of the
multicast remote host configured for ser-1-1:
setrawsocket local-port 5001
For more information, refer to Section10.6.2, “Adding a Local Host”
10. Set the transport method to UDP:
setrawsocket transport udp
For more information, refer to Section10.2.6, “Configuring the Raw Socket Protocol”.
11. Set the multicast group for the local host to 232.1.1.1. This must be the same as the destination multicast
group configured for the multicast remote host configured for ser-1-1.
setrawsocket local-host 232.1.1.1
For more information, refer to Section10.6.2, “Adding a Local Host”
12. Enable local host loopback: