Skip to content

VBox Networking

image.png

image.png

How it works:

  • VM gets a private IP, VirtualBox translates its traffic to the host’s IP for Internet access.
  • VM cannot be reached directly from the host or LAN by default.

Connectivity Table:

DirectionWorks?
VM → HostYes
VM ← HostNo (needs Port Forward)
VM → InternetYes
VM ← InternetNo (needs Port Forward)
VM ↔ VMNO

image.png

Key Points:

  • Default choice for “just want Internet on VM”
  • For SSH or HTTP to VM from host, configure Port Forwarding in VM settings.
  • Simple, safe, isolates VM from host/LAN

How it works:

  • VM connects directly to the host’s physical network. - can inspect HOST Packets
  • VM behaves like another computer on the same network.

image.png

Connectivity Table:

DirectionWorks?
VM ↔ HostYes
VM ↔ VM1Yes
VM ↔ InternetYes

Key Points:

  • VM gets IP from LAN DHCP
  • Good for network testing or services that must be reachable from LAN
  • Less isolation → less secure

How it works:

  • VM connects to a VirtualBox internal-only network.
  • Only VMs on the same internal network can talk to each other.
  • No host or internet access.

image.png

Connectivity Table:

DirectionWorks?
VM ↔ VM1Yes
VM ↔ HostNo
VM ↔ InternetNo

Key Points:

  • Good for isolated testing between multiple VMs
  • Each internal network is separate → can have multiple isolated labs

How it works:

  • Creates a private network between the host and VM(s) only
  • No internet access by default

Connectivity Table:

DirectionWorks?
VM ↔ HostYes
VM ↔ VM1Yes
VM ↔ InternetNo

Key Points:

  • Useful for testing servers/services accessible only from host
  • Can combine with NAT to get both internet + host-only access

How it works:

  • Uses a custom driver, like third-party or experimental network types
  • Usually for advanced networking setups

Key Points:

  • Rarely used for normal labs
  • Only use if you know the driver and setup

How it works:

  • Similar to NAT but allows multiple VMs to communicate on the same NAT network

  • Internet access included

  • Can configure Port Forwarding

    image.png

Connectivity Table:

DirectionWorks?
VM ↔ VM1Yes
VM ↔ HostYes (Port Forward)
VM ↔ InternetYes

Key Points:

  • Great for multiple VMs needing isolated network + Internet
  • Combines NAT isolation with inter-VM connectivity

How it works:

  • No network connection at all

Key Points:

  • VM is completely isolated
  • Useful for experiments or offline machines

ModeHost AccessVM↔VMInternetKey Notes
NATLimited (PF)NoYesDefault, isolated, Port Forward for host access
BridgedYesYesYesVM gets LAN IP, visible on network
InternalNoYesNoFully isolated VM network
Host-OnlyYesYesNoHost↔VM private network
NAT NetworkPFYesYesNAT + VM communication, more flexible
GenericDependsDependsDependsAdvanced, rare
Not AttachedNoNoNoOffline VM