Welcome to the Community,
the issue is likely caused by the using 2 cross-over cables. Either remove one of them, or use a switch instead of direct connections, and things should work as expected.
By default a VM will be assigned one of the uplinks in a round-robin manner. Depending on which connection is used on both hosts, the chances to get a working connection are 50:50.