Lab Networking
Isolated networks.
Lab Networking is a free Ethical Hacking Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Ethical Hacking Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why Network Isolation Matters
Your lab contains deliberately broken machines. If they can reach the internet or your home network, they become a danger.
Isolated networking keeps attack traffic and malware contained between your VMs only.
NAT Networking
NAT (Network Address Translation) gives a VM internet access through the host, but the VM is hidden behind the host IP.
- Good for updating Kali or downloading tools.
- Bad for connecting VMs to each other - they cannot see one another by default.
NAT Network
A NAT Network (distinct from plain NAT) lets multiple VMs share one NATed network and talk to each other, while still reaching the internet through the host.
Useful when your lab VMs need both internet and inter-VM communication.
Bridged Networking
Bridged mode puts the VM directly on your physical LAN with its own IP, as if it were a separate physical computer.
Avoid this for vulnerable VMs - it exposes them to your whole home network and beyond.
Host-Only Networking
Host-only creates a private network between the host and its VMs, with no internet access.
This is the safest option for attacking vulnerable VMs: Kali and the targets can see each other, but malware cannot escape.
Internal Networking
Internal networking connects VMs only to each other - not even the host can join. It is the most isolated option.
Use it for fully sealed scenarios such as detonating real malware samples.
A Common Lab Layout
A practical setup gives each VM two adapters:
- Adapter 1: NAT for internet (updates, tool downloads).
- Adapter 2: host-only for the isolated attack network.
You attack over the host-only side and update over the NAT side.
Finding Your Lab Subnet
VirtualBox host-only adapters typically use the 192.168.56.0/24 range. Check the interface on Kali to confirm the assigned address.
ip addr show
# look for the host-only adapter, e.g. eth1: 192.168.56.xDiscovering Hosts
Once on the isolated network, find the other VMs with a ping sweep. This lists live hosts without scanning ports yet.
nmap -sn 192.168.56.0/24Static IPs for Stability
DHCP can hand out different addresses each boot, breaking your notes. Assigning static IPs on the host-only network keeps target addresses predictable across sessions.
Configure these in the guest OS network settings or the hypervisor DHCP server.
Verifying Isolation
Before attacking, confirm the vulnerable VM truly cannot reach the internet. From the target, a ping to a public address should fail when only host-only is attached.
ping -c 2 8.8.8.8
# should fail for a properly isolated victim VMQuick Check
Choose the safest mode for a deliberately vulnerable target.
Recap
You learned to network a hacking lab safely:
- NAT for internet, host-only for isolated attacks, internal for total isolation.
- Avoid bridged for vulnerable VMs.
- A dual-adapter layout (NAT + host-only) is the practical sweet spot.
- Verify isolation by confirming the victim cannot ping the internet.
Frequently asked questions
Is the “Lab Networking” lesson free?
Yes — the full text of “Lab Networking” is free to read here on the web, and the Ethical Hacking Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Ethical Hacking Academy course, upgrade to CoddyKit PRO.
What will I learn in “Lab Networking”?
Isolated networks. You practise Ethical Hacking Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Ethical Hacking Academy?
No prior experience is required. Ethical Hacking Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Lab Networking” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Ethical Hacking Academy lesson?
Yes. Every Ethical Hacking Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Virtualization Basics
- Installing Kali Linux
- Vulnerable VMs
- Lab Networking