If you want to limit communication between the grippers and the robots and each other you can use a simple ethernet switch to accomplish that. You will need to use static IP addresses for the robots since there is no router this way for assigning IP addresses

Thank you all! It's working perfectly.
My company recently purchased 2 UR10 with one three-finger gripper each from Robotiq. We are using the Ethernet connection on each one of the robots to communicate with the grippers via TCP/IP. However, we would also like that the two robots communicate between each other. Can we use a simple 2-to-1 Ethernet connector to plug in the gripper in each one of the robots and the cable between the robots or it needs to be done any other way?
Thank you!