Sir,
Your router should have two network cards. One connecting to each server. It can be a direct connection (using a cross-cable) from each server to the router or using a network switch at each end (in this case no cross-cable). The servers will then connect to the switches.
If you are simply testing a solution. Perhaps you could use VMWare ESXi (It is free) and you can do some advance switch configuration.
If you are referring to Windows domains, you can connect them using the same network switch (simply configure two IP Addresses for each server so that they can see each other).
Another solution would be to use an additional network card at each server and connect them with a cross-cable.
A bit more challenging? configure one of your domains servers as a router (router and remote access services). You will need two network cards on the server acting as the router
Happy testing!