I am trying to set up a Lab for RHCSA and have 3 virtual machines running Centos 7. I can't get the machines to see each other on the network, I also can't ping anything from the VM as well as I can't reach any VM from the host running Ubuntu 16.04. How do I configure the network card? I have tried modifying my existing connection of my ethernet card on my local host to Share connection but it still does not work. How do I connect my VMs to internet? I have tried this:
nmcli device connect eth0
nmcli connection down eth0
nmcli connection up eth0
nmcli device status # connected
ip a s # 10.0.2.15
ping www.o2.pl
<no action>
All virtual machines get the same IP address of 10.0.2.15/24. What am I doing wrong?