What’s the other device? I am guessing that there’d be very little “integration” between that device and the G120? If there is a high level of integration, then can you simply expose the functions through one of the devices not both?
Ultimately, yes you will need an actual switch in there - you expose the “uplink” connection to the outside world, and you have the two devices internally connected. I’d look at the device that Architect found.
This makes the need for this type of integration more apparent, but as mentioned before, with the hardware and since you readily admit this is a new area of research for you, integrating your own switch would not be feasible. @ Architect gave a great switch that would work if you, as was also said, buy a larger enclosure, and only expose the WAN or LAN port to the world for external communications, and connect them internally with short Ethernet cables.