I have to add a secondary IP to an ESXi host running ESXi 6.5. My objective is to allow communication between some machines running on a different local network and the VMs present inside ESXi through a secondary interface. Here is a map depicting my intention:
As you can see, I have a primary router connected through the primary interface with 192.168.1.0/24
and I need to connect to the other network managed by another router with a different IP range (192.168.6.0/24
).
I tried to create a new port group connected to a new vSwitch that has a new VMKNIC and I created a new custom TCP/IP stack. The problem is that:
- I can set the gateway neither from the CLI nor from the interface in the new TCP/IP stack.
- The VMs connected to the new vSwitch do not reach the other machines, even if they are correctly configured.
Any suggestion is more than welcome!