I'm pretty new in the field of virtualization. I'm using esxi to manage my virtual machines. I have 2 networks, one is the local network with the gateway 192.168.0.1
and the other is the main network of my system. I have three vms that two of them are assigned static ip addresses and they also have access to the local network.
The third vm has no static ips, but I want it to access the local network.
I have added both networks to all vms in esxi and changed the network script files as below:
vm1- File: ifcfg-ens224 :
TYPE=Ethernet
BOOTPROTO=none
NAME=ens224
DEVICE=ens224
ONBOOT=yes
IPADDR=192.168.0.101
PREFIX=29
GATEWAY=192.168.0.1
Vm2: File: ifcfg-ens224 :
TYPE=Ethernet
BOOTPROTO=none
NAME=ens224
DEVICE=ens224
ONBOOT=yes
IPADDR=192.168.0.102
PREFIX=29
GATEWAY=192.168.0.1
Vm3: File: ifcfg-ens224
TYPE=Ethernet
BOOTPROTO=none
NAME=ens224
DEVICE=ens224
ONBOOT=yes
IPADDR=192.168.0.103
PREFIX=29
GATEWAY=192.168.0.1
I am able to ping 192.168.0.101
from vm2 and ping 192.168.0.102
from vm1. But I can't ping 192.168.0.103
from them. And also I'm able to ping the gateway (192.168.0.1
) from vm3, But when I try pinging others (i.e: 192.168.0.101
) it results in Destination host unreachable error. I will be grateful for any ideas that mention what I'm doing wrong here or what is missing.