this post was submitted on 23 Nov 2023
1 points (100.0% liked)

Homelab

371 readers
9 users here now

Rules

founded 11 months ago
MODERATORS
 

I have 3 servers with dual nic 10gb card. can i connect them directly with cross cable without the need of switch and they will be able to ping each other in same network?

I want to create a vmotion virtual switch in ESXi and put both port, will ESXi find how to get each of the servers by the right interface?

Server A (10.0.0.1)

port1 -> Server B

port2 -> Server C

Server B (10.0.0.2)

port1-> Server A

port 2-> Server C

Server C (10.0.0.3)

port1-> Server A

port2-> Server B

top 6 comments
sorted by: hot top controversial new old
[–] [email protected] 1 points 10 months ago (1 children)

I'd be wary of loops with your setup to be honest. Wouldn't it be possible to have server A go to B, B to C, and switch both interfaces of B in the same vswitch? Ngl I'm not that knowledgeable about esxi.

[–] [email protected] 1 points 10 months ago

I've done this before without any loop issues.

[–] [email protected] 1 points 10 months ago

I tried something similar one time but not on ESXi. Two ports can’t have the same IP address so I created an /etc/hosts file so each host knew about the other based on hostname and not ip address.

[–] [email protected] 1 points 10 months ago

Make the 10.0.0._ addresses loopback addresses, and do point-to-point connections from each box to every other box. No idea how to do this in ESXi, but it’s straightforward in *nix/BSD.

[–] [email protected] 1 points 10 months ago

You wouldn't need a crossover cable. 10G ports, as with most/all others these days, are auto-MDIX. They know when they should be in crossover mode and switch automatically.

[–] [email protected] 1 points 9 months ago

I prefer using separate subnets for different network adapters. In any case, create vswitch and vmkernel for each network port and configure IPs.