Hi Abdalla,
You're definitely on the right path!
For your five data paths, you are currently using five Gateways in what I would call the "mesh" configuration, i.e. one Gateway for each data path. To simplify the setup, you could shrink the solution down to a "star", where each of the networks is served by exactly one Gateway. For such a "star", you have two options: all Gateways point outwards (i.e. each network "sees" exactly one Gateway which is serving data from all other networks) or all Gateways point inwards (i.e. each networks sees one Gateway per other network). The preferred option depends on how often the configuration is changed and how much Gateway restarts are affecting your users.
SIP and CIP are the central configuration options.
SIP = Server IP defines where the Gateway serves data to, i.e. where its clients are.
CIP = Client IP defines where the Gateway is getting data from, i.e. where its IOCs are.
SIP addresses may be multiple, but always have to be specific addresses.
CIP addresses may include broadcast addresses to reach many IOCs at a time.
Example:
Given three networks A B C (with broadcast address .255) and a Gateway host that is connected to all of them using addresses A.a B.b and C.c
Star outwards:
GatewayA: SIP=A.a CIP=B.255 C.255
GatewayB: SIP=B.b CIP=A.255 C.255
GatewayC: SIP=C.c CIP=A.255 B.255
Star inwards:
GatewayA: SIP=B.b C.c CIP=A.255
GatewayB: SIP=A.a C.c CIP=B.255
GatewayC: SIP=A.a B.b CIP=C.255
If you mix the two concepts, you will get into trouble (PVs available on multiple routes).
Cheers,
~Ralph