I am setting up several Linux virtual machines in VirtualBox to practice for the RHCSA exam. I want them to communicate with each other for testing networking commands such as ping, ssh, and file transfers.
Right now, I am not sure which VirtualBox network mode allows full connectivity between VMs without exposing them to my home network.
My goals are:
Each VM can reach the others (for example, by IP address).
I can keep the setup local and isolated for security.
I can still connect from my host machine if needed.
Which VirtualBox network configuration (NAT, host-only, internal, or bridged) would best meet these requirements, and how can I verify that the network is working correctly once configured?