How to connect multiple master slaves on modbus gateway

I am thinking of using mgate mb 3180 modbus gateway to connect multilple modbus tcp slaves with multiple rtu masters. Different master will poll different slave. We have only one serial and one ethernet port on the Modbus gateway. How can we connect multiple slaves and rtu masters through same gateway?

Thank you!