Hello everyone,
I have a simple setup: one host with ESXi and with 2 NICs. One of the NICs is on the LAN, the other one is on the WAN. I have small blocks of public (WAN) IP addresses from the internet provider. Currently ran out of free IPs in the block where the ESXi host is, but I still have a few free IPs in another block.
The blocks (not the actual IPs, this is only an example):
First block:
6.6.1.1 - 6.6.1.10
- 6.6.1.1 is the network address, 6.6.1.10 is the broadcast
- the GW is 6.6.1.2
- the 6.6.1.3 IP is assigned to the ESXi host (to the WAN facing NIC)
- all the other IPs (4-9) are assigned to VMs
Second block:
6.6.4.1 - 6.6.4.10
- 6.6.4.1 is the network address, 6.6.4.10 is the broadcast
- the GW is 6.6.4.2
- free addresses: 6.6.4.3 - 6.6.4.9
My question is: can I use IPs from my second block with VMs running on the ESXi host (that's in the first block)? If yes, how do I configure the networking of the VMs? Which gateway should they use?
I already tried the whole thing, but it didn't work. I tried to use an address from the second block with the GW of the second block, but it didn't work. Also tried the same IP address but to route it via the GW of the first block, didn't work either.
I hope it makes sense what I'm trying to achieve.
Please help me.
Thanks in advance