Hello,
Tongue in cheek but why do You want to burn two expensive switch ports for this task instead of cheap inline coupler?
https://www.comms-express.com/products/rj45-to-rj45-utp-inline-coupler/
This small device will solve Your problems in an instant
HTH
Thx
Alex