Site A: 192.168.1.0/24
Site B: 192.168.10.0/24
openvpn tun: 10.0.10.0/24
we have an offsite esxi host at site B so is connected over openvpn (Pfsense) all the hosts on site A and B can ping each other no connection problems over the vpn. (ping time 2-3 ms)
When we add the host to vcenter 192.168.10.115 it finds the host and adds it to the Vcenter and we can see the 2 vms for about 30-60 sec then it goes over to (disconnected) and then it changes its ip address from 192.168.10.115 to 10.0.10.2 on the vcenter page after that we cant get ti to connect to vcenter with out remove it from inventory and readd it and it stays for 30-60 sec.
if i go to the connection menu on the host B on vcenter and press connect it shows the wrong ip 10.0.10.2 added the host with 192.168.10.115
if i check the vpxa.cfg file on site B it has the right ip
grep -i serverIp /etc/vmware/vpxa/vpxa.cfg
<serverIp>192.168.1.115</serverIp>
If i try go to the host B 192.168.10.115 from site A it works fine. and if i check the VMkernel adapter it has ip 192.168.10.115
How can i fix this issue ?
And for info so did we have the remote host at local location connected to vcenter and it worked fine, but after moving it to Site B and changed ip it gets disconnected after 30-60 sec