Skip to main content

Module 15 – BONUS: Network Cards in VMware (detailed guide)

+==============================================================================+
| MODULE 15 (BONUS): VMWARE NETWORK CARDS – DETAILED GUIDE |
| Estimated duration: 1-2 hours | Level: Beginner to Intermediate |
+==============================================================================+

Table of Contents​

  1. Introduction: VMware vs VirtualBox – what changes
  2. The VMware interface: where to configure network cards
  3. The 5 network connection modes in VMware
  4. The VMnets: the heart of VMware networking
  5. The Virtual Network Editor
  6. LAN Segments: 100% isolated networks
  7. Real-world examples: configuring 1, 2, or 3 cards
  8. Summary table: VMware vs VirtualBox
  9. VMware network troubleshooting
  10. FAQ

Introduction: VMware vs VirtualBox – what changes​

If you are coming from VirtualBox, VMware works differently for networking. Here are the main differences:

AspectVirtualBoxVMware
Central conceptConnection modes (NAT, Bridged, Internal...)VMnets (numbered virtual networks)
Internal networksFreely named (intnet, lan...)Numbered: VMnet0 to VMnet19 (20 max)
Isolated network between VMsInternal NetworkLAN Segment or Custom VMnet
NAT: can the host see the VM?❌ No✅ Yes (via VMnet8)
Max cards per VM4 (GUI) / 8 (CLI)10
Network editorLimitedVirtual Network Editor (very comprehensive)
Interface in FrenchYesYes (VMware Workstation)
VMware Philosophy

In VirtualBox, you choose a mode (NAT, Bridged...).
In VMware, you choose a VMnet (virtual network). Each VMnet has a configured mode (NAT, Host-Only, Bridged, or none).

It's like the difference between choosing a type of road (VirtualBox) and choosing which specific road to take (VMware).

Back to the table of contents


The VMware interface: where to configure network cards​

Accessing a VM's network settings​

  1. Select your VM from the list
  2. Click on Edit virtual machine settings
  3. In the left column, you see the Network Adapters:
┌─────────────────────────────────────────────────────────────────┐
│ Hardware Options │
│ │
│ Device Summary │
│ ───────────── ───────── │
│ Memory 4 GB │
│ Processors 2 │
│ Hard Disk (SCSI) 40 GB │
│ CD/DVD (SATA) Using file D:\ubuntu... │
│ ┌──────────────────────────────────────────────────────────┐ │
│ │ Network Adapter NAT │◄── Adapter 1
│ │ Network Adapter 2 Bridged (Automatic) │◄── Adapter 2
│ │ Network Adapter 3 Host-Only │◄── Adapter 3
│ └──────────────────────────────────────────────────────────┘ │
│ USB Controller Present │
│ Sound Card Auto-detect │
│ Display Auto-detect │
└─────────────────────────────────────────────────────────────────┘

Network connection options​

When you select a network card, you see the right panel with:

┌─────────────────────────────────────────────────────────────────┐
│ Device Status │
│ ☑ Connected │
│ ☑ Connect at power on │
│ │
│ Network Connection │
│ ────────────── │
│ ○ Bridged: connected directly to the physical network │
│ ○ NAT: used to share the host's IP address │
│ ○ Host-Only: private network shared with the host │
│ ○ Custom: specific virtual network │
│ [ VMnet0 ▼ ] │
│ ○ LAN Segment: │
│ [ ] [ LAN Segments... ] [ Advanced... ]│
└─────────────────────────────────────────────────────────────────┘
The 5 available choices

Each network card can be configured in one of these 5 modes:

  1. Bridged
  2. NAT
  3. Host-Only
  4. Custom (Custom VMnet)
  5. LAN Segment

Back to the table of contents


The 5 network connection modes in VMware​

Mode 1: Bridged – "Connected directly to the physical network"​

┌───────────────────────────────────────────────────────────────────┐
│ REAL PHYSICAL NETWORK │
│ │
│ ┌──────────┐ ┌──────────┐ ┌──────────┐ │
│ │ VM │ │ Host PC │ │ Other │ │
│ │192.168.1.│ │192.168.1.│ │ PCs on │ │
│ │ 50 │ │ 10 │ │ network │ │
│ └────┬─────┘ └────┬─────┘ └────┬─────┘ │
│ │ │ │ │
│ └────────────────┼────────────────┘ │
│ │ │
│ ┌────────▼────────┐ │
│ │ Switch/Router │ │
│ │ Wi-Fi / LAN │ │
│ └─────────────────┘ │
└───────────────────────────────────────────────────────────────────┘
FeatureDetail
VMnet usedVMnet0 (default)
Internet access✅ Yes
VM visible on the physical network✅ Yes (like a real PC)
Host → VM✅ Yes
VM ↔ VM✅ Yes
IP assignedBy the real router's DHCP (e.g., 192.168.1.50)
Additional option☑ Replicate physical network connection state
When to use it?
  • ✅ When your VM needs to be visible to other machines on the network (colleagues, printers, servers)
  • ❌ Do not use on a public Wi-Fi (the VM would be exposed)
  • ❌ May not work on some corporate/school networks (MAC filtering)

Option "Replicate physical network connection state": If your PC switches from Wi-Fi to cable (or disconnects), the VM follows automatically. Useful for laptops.


Mode 2: NAT – "Used to share the host's IP address"​

┌──────────┐                  ┌──────────────┐         ┌──────────┐
│ VM │ │ Host PC │ │ Internet │
│ │───── VMnet8 ────▶│ (does the │────────▶│ │
│ │ │ NAT) │ │ │
└──────────┘ └──────────────┘ └──────────┘

The VM uses the host PC's IP to access the Internet.
From the outside, only the host PC is visible.
FeatureDetail
VMnet usedVMnet8 (default)
Internet access✅ Yes
VM visible on the physical network❌ No
Host → VM✅ Yes! (via the VMnet8 network)
VM ↔ VM✅ Yes (if all on VMnet8)
IP assignedBy VMware's DHCP (e.g., 192.168.128.130)
Big difference with VirtualBox!

In VirtualBox, the NAT mode isolates the VM: the host cannot access the VM (except with port forwarding).

In VMware, the NAT mode (VMnet8) creates a real network between the host and the VM. The host can access the VM directly via its VMnet8 IP.

VirtualBox NAT:  Host ──✘──▶ VM    (blocked, needs port forwarding)
VMware NAT: Host ──✔──▶ VM (direct, via VMnet8)

This is the default mode when you create a VM in VMware. Ideal for:

  • Browsing the Internet from the VM
  • Downloading packages (apt update)
  • Accessing the VM from the host (SSH, HTTP...)

Mode 3: Host-Only – "Private network shared with the host"​

┌──────────┐     ┌──────────────┐
│ VM │ │ Host PC │
│192.168. │ │192.168. │ ❌ No Internet
│ xxx.128 │ │ xxx.1 │
└────┬─────┘ └──────┬───────┘
│ │
└────────┬─────────┘
│
┌─────────▼─────────┐
│ VMnet1 │
│ (Host-Only) │
└───────────────────┘
FeatureDetail
VMnet usedVMnet1 (default)
Internet access❌ No
Host → VM✅ Yes
VM ↔ VM✅ Yes (if all on VMnet1)
IP assignedBy VMware's DHCP (configurable range)

Use cases:

  • SSH into the VM from the host, without giving the VM Internet access
  • Create an isolated test network accessible from the host
Practical tip

Many administrators use Host-Only + NAT together (2 cards):

  • Card 1: NAT (VMnet8) → for Internet
  • Card 2: Host-Only (VMnet1) → for SSH from the host with a stable IP

Mode 4: Custom – "Specific virtual network"​

This is VMware's unique strength: you choose exactly which VMnet to use.

By clicking on Custom, a dropdown menu appears with all available VMnets:

┌─────────────────────────────────┐
│ Custom: │
│ ┌───────────────────────────┐ │
│ │ VMnet0 ▼ │ │
│ ├───────────────────────────┤ │
│ │ VMnet0 │ │ ◄── Bridged
│ │ VMnet1 (Host-Only) │ │ ◄── Host-Only
│ │ VMnet2 │ │ ◄── Custom (free)
│ │ VMnet3 │ │ ◄── Custom (free)
│ │ VMnet4 │ │ ◄── Custom (free)
│ │ VMnet5 │ │ ◄── Custom (free)
│ │ VMnet6 │ │ ◄── Custom (free)
│ │ VMnet7 │ │ ◄── Custom (free)
│ │ VMnet8 (NAT) │ │ ◄── NAT
│ │ VMnet9 │ │ ◄── Custom (free)
│ │ VMnet10 │ │ ◄── Custom (free)
│ │ VMnet11 │ │ ◄── Custom (free)
│ │ VMnet12 │ │ ◄── Custom (free)
│ │ VMnet13 │ │ ◄── Custom (free)
│ │ VMnet14 │ │ ◄── Custom (free)
│ │ VMnet15 │ │ ◄── Custom (free)
│ │ VMnet16 │ │ ◄── Custom (free)
│ │ VMnet17 │ │ ◄── Custom (free)
│ │ VMnet18 │ │ ◄── Custom (free)
│ │ VMnet19 │ │ ◄── Custom (free)
│ └───────────────────────────┘ │
└─────────────────────────────────┘
VMnetDefault modeConfigurable?
VMnet0BridgedYes (Virtual Network Editor)
VMnet1Host-OnlyYes
VMnet2 to VMnet7None (free)Yes
VMnet8NATYes
VMnet9 to VMnet19None (free)Yes
Free VMnets (VMnet2-7, VMnet9-19)

These VMnets are not configured by default. You can use them to create your own private networks between VMs.

By default, when you put 2 VMs on the same custom VMnet (e.g., VMnet2), they can communicate with each other, but:

  • No Internet access (unless you configure NAT in the Virtual Network Editor)
  • The host may or may not access it (depending on the config)
  • No DHCP (unless you enable it)

This is the VMware equivalent of VirtualBox's Internal Network, but much more configurable.

FeatureVirtualBox (Internal Network)VMware (Custom VMnet)
Number of networksUnlimited (by name)20 max (VMnet0-19)
NamingFree (intnet, lan...)Numbered (VMnet2, VMnet3...)
DHCP❌ Never✅ Configurable per VMnet
NAT❌ Never✅ Configurable per VMnet
Host access❌ Never✅ Configurable

Mode 5: LAN Segment – The 100% isolated network​

The LAN Segment is VMware's most isolated mode. It's a network that exists only between the VMs connected to it.

┌──────────┐     ┌──────────┐
│ VM A │ │ VM B │
│10.11.12.1│ │10.11.12.2│
└────┬─────┘ └────┬─────┘
│ │
└───────┬────────┘
│
┌────────▼────────┐
│ LAN Segment 1 │ ❌ No Internet
│ │ ❌ No host access
│ │ ❌ No DHCP
└─────────────────┘ ❌ No VMnet
FeatureDetail
Internet access❌ No
Host → VM❌ No
VM ↔ VM✅ Yes (if same LAN Segment)
DHCP❌ No (manual IP required)
Visible in Virtual Network Editor❌ No (managed separately)

How to create a LAN Segment​

  1. In the network card settings, select LAN Segment
  2. Click on the LAN Segments... button
  3. The "Global LAN Segments" window opens:
┌─────────────────────────────────┐
│ Global LAN Segments │
│ │
│ Global LAN Segments: │
│ ┌───────────────────────────┐ │
│ │ LAN Segment 1 │ │
│ │ │ │
│ │ │ │
│ └───────────────────────────┘ │
│ │
│ [ Add ] [ Rename ] [ Remove ] │
│ [ OK ] [ Cancel ] │
└─────────────────────────────────┘
  1. Click Add to create a new segment
  2. Rename it for clarity (e.g., server-lan, lab-network, clientnet)
  3. Click OK
  4. Select the segment in the text field next to "LAN Segment"
LAN Segment = the exact equivalent of VirtualBox's Internal Network
VirtualBox Internal NetworkVMware LAN Segment
Internet❌❌
Host access❌❌
DHCP❌❌
NamingFreeFree
NumberUnlimitedUnlimited
ConfigurationName in the field"LAN Segments..." button

It's the ideal choice for simulating isolated networks in labs (like VirtualBox's Internal Networks).

Back to the table of contents


The VMnets: the heart of VMware networking​

Concept: what is a VMnet?​

A VMnet is a virtual switch created by VMware. Each VMnet is an independent network with its own settings.

┌─────────────────────────────────────────────────────────────┐
│ VMware Workstation │
│ │
│ ┌─────────┐ ┌─────────┐ ┌─────────┐ ┌─────────┐ │
│ │ VMnet0 │ │ VMnet1 │ │ VMnet2 │ │ VMnet8 │ │
│ │ Bridged │ │HostOnly │ │ Custom │ │ NAT │ │
│ │ │ │ │ │ (free) │ │ │ │
│ └────┬────┘ └────┬────┘ └────┬────┘ └────┬────┘ │
│ │ │ │ │ │
│ ┌───▼───┐ ┌───▼───┐ ┌───▼───┐ ┌───▼───┐ │
│ │Network│ │ Host │ │ VMs │ │ VMs │ │
│ │physical│ │+ VMs │ │ only │ │+ Host │ │
│ │+ Host │ │ │ │ │ │+Inet │ │
│ └───────┘ └───────┘ └───────┘ └───────┘ │
└─────────────────────────────────────────────────────────────┘

The 3 preconfigured VMnets​

VMnetName in the interfaceRoleConfigurable
VMnet0BridgedConnects the VM to the physical networkYes (choice of physical card)
VMnet1Host-OnlyPrivate network between VM and hostYes (subnet, DHCP)
VMnet8NATInternet via host + network with hostYes (subnet, DHCP, port forwarding)

The free VMnets (VMnet2-7, VMnet9-19)​

The remaining 17 VMnets are free. You can configure them as you wish in the Virtual Network Editor.

Example usage for a lab TP5:

VMnetUsageSubnet
VMnet8NAT (Internet)192.168.128.0/24 (auto)
VMnet2Server LAN network10.11.12.0/24
VMnet3Client Network20.21.22.0/30

Back to the table of contents


The Virtual Network Editor​

The Virtual Network Editor is VMware's central tool for managing networks. It's a tool that doesn't exist in VirtualBox and provides total control.

How to access it​

  • Menu Edit → Virtual Network Editor
  • ⚠️ Click on Change Settings to get admin rights

Editor interface​

┌─────────────────────────────────────────────────────────────────────┐
│ Virtual Network Editor │
│ │
│ [ Change Settings ] (admin rights required) │
│ │
│ Name Type External Subnet DHCP Host │
│ ──── ──── ──────── ────────── ──── ──── │
│ VMnet0 Bridged Auto — — — │
│ VMnet1 Host-Only — 192.168.xxx.0 Yes Yes │
│ VMnet8 NAT — 192.168.128.0 Yes Yes │
│ │
│ [ Add Network... ] [ Remove Network ] │
│ │
│ ─── Selected VMnet Information ─── │
│ │
│ ○ Bridged (connect VMs directly to the external network) │
│ Bridged to: [Automatic ▼] │
│ ○ NAT (share host's IP with VMs) │
│ ○ Host-Only (connect VMs in a private network) │
│ │
│ Subnet: [ 192.168.128.0 ] Mask: [ 255.255.255.0 ] │
│ │
│ ☑ Connect a host network adapter to this network │
│ ☑ Use local DHCP service to distribute IP addresses │
│ │
│ [ DHCP Settings... ] [ NAT Settings... ] │
│ │
│ [ Restore Default ] [ Apply ] [ OK ] │
└─────────────────────────────────────────────────────────────────────┘

Add a custom network (e.g., VMnet2 for a lab)​

  1. Click on Change Settings (admin rights)
  2. Click on Add Network...
  3. Select VMnet2 → OK
  4. Configure:
    • Type: Host-Only (or NAT if needed)
    • Subnet: 10.11.12.0
    • Mask: 255.255.255.0
    • ☐ Connect a host network adapter → uncheck for an isolated network
    • ☐ Use local DHCP service → uncheck if you want manual IPs
  5. Click Apply → OK

Configure a VMnet as an isolated network (equivalent to Internal Network)​

To make VMnet2 a completely isolated network (like a VirtualBox Internal Network):

VMnet2:
Type: Host-Only
☐ Connect a host network adapter ← UNCHECKED
☐ Use local DHCP service ← UNCHECKED
Subnet: 10.11.12.0
Mask: 255.255.255.0

Result:

  • ❌ No Internet access
  • ❌ No host access
  • ❌ No DHCP (manual IPs)
  • ✅ VMs on VMnet2 can see each other
Attention

Even if you choose "Host-Only" as the type, it's the "Connect a host network adapter" checkbox that determines if the host has access or not. If you uncheck it, the host is excluded from the network.

DHCP Settings​

By clicking on DHCP Settings..., you can configure:

  • Start range: first IP distributed (e.g., 10.11.12.128)
  • End range: last IP distributed (e.g., 10.11.12.254)
  • Lease duration: how long the IP is reserved

NAT Settings (for VMnet8)​

By clicking on NAT Settings..., you can configure:

  • Gateway IP address: NAT gateway IP (e.g., 192.168.128.2)
  • Port forwarding: redirect host ports to the VM

Back to the table of contents


LAN Segments: 100% isolated networks​

What is a LAN Segment?​

A LAN Segment is a VMware virtual network that is completely independent of VMnets. It does not appear in the Virtual Network Editor.

When to use a LAN Segment instead of a custom VMnet?​

CriterionCustom VMnetLAN Segment
Visible in Virtual Network Editor✅ Yes❌ No
Configurable DHCP✅ Yes❌ No
Possible host access✅ Configurable❌ Never
Possible NAT✅ Configurable❌ Never
Max number20 (VMnet0-19)❌ Unlimited
NamingNumbered (VMnet2, VMnet3...)Free ("server-lan", "lab-network"...)
SimplicityConfiguration via Virtual Network EditorJust a name, nothing else to configure
When to choose what?
  • Custom VMnet: when you need DHCP, host access, or NAT on the network
  • LAN Segment: when you want a simple and isolated network between VMs (like VirtualBox's Internal Network)

How to create and manage LAN Segments​

Step 1: Open the network card settings​

Select a network card of your VM, then choose LAN Segment.

Step 2: Click on "LAN Segments..."​

The LAN Segments... button opens the management window:

┌──────────────────────────────────────┐
│ Global LAN Segments │
│ │
│ Global LAN Segments: │
│ ┌────────────────────────────────┐ │
│ │ LAN Segment 1 │ │
│ │ │ │
│ └────────────────────────────────┘ │
│ │
│ [ Add ] [ Rename ] [ Remove ] │
│ │
│ [ OK ] [ Cancel ] │
└──────────────────────────────────────┘

Step 3: Add and name your segments​

  • Click Add → a new segment appears
  • Click Rename → give it a descriptive name

Example for TP5:

Global LAN Segments:
┌────────────────────────────────┐
│ server-lan │ ← server network (10.11.12.0/24)
│ client-network │ ← client network (20.21.22.0/30)
└────────────────────────────────┘

Step 4: Assign the segment to the network card​

After creating the segment, select it in the field next to "LAN Segment":

○ LAN Segment: [ server-lan          ▼ ]

Summary: LAN Segment in 3 points​

  1. Create → "LAN Segments..." button → Add
  2. Name → Give a descriptive name (e.g., server-lan)
  3. Assign → Put the VMs that need to communicate on the same segment

Back to the table of contents


Real-world examples: configuring 1, 2, or 3 cards​

Example 1: Simple VM with Internet (1 card)​

Need: A VM that just needs Internet and to be accessible from the host.

┌────────────────────┐
│ VM │
│ │
│ Network Adapter 1:│
│ NAT (VMnet8) │───────▶ Internet + host access
│ │
└────────────────────┘

VMware Configuration:

CardModeDetail
Network Adapter 1NATVMnet8 (default)

VirtualBox Equivalent: NAT (but without host access) or NAT + Host-Only (for host access)


Example 2: Lab with 2 isolated VMs (1-2 cards)​

Need: 2 VMs that communicate with each other on a private network, with Internet for installing packages.

┌────────────────────┐          ┌────────────────────┐
│ SSH-SRV │ │ SSH-CLI │
│ │ │ │
│ Card 1: NAT │ │ Card 1: NAT │
│ (VMnet8) │ │ (VMnet8) │
│ │ │ │
│ Card 2: │ │ Card 2: │
│ LAN Segment │◄────────▶│ LAN Segment │
│ "lab-network" │ │ "lab-network" │
│ 10.11.12.1/24 │ │ 10.11.12.2/24 │
└────────────────────┘ └────────────────────┘

VMware Configuration:

VMCard 1Card 2
SSH-SRVNAT (VMnet8)LAN Segment → lab-network (IP: 10.11.12.1/24)
SSH-CLINAT (VMnet8)LAN Segment → lab-network (IP: 10.11.12.2/24)

VirtualBox Equivalent:

VMAdapter 1Adapter 2
SSH-SRVNATInternal Network → intnet
SSH-CLINATInternal Network → intnet

Example 3: Complete lab with gateway (3 cards)​

Need: Simulate TP5 – a gateway with 3 networks: Internet, server LAN, client network.

                         ┌──────────────────────────────────┐
│ srvGateway │
│ │
│ Card 1: NAT (VMnet8) │──▶ Internet
│ Card 2: LAN Segment "lan" │──▶ Servers
│ 10.11.12.1/24 │
│ Card 3: LAN Segment "clientnet" │──▶ Client
│ 20.21.22.1/30 │
└───┬──────────┬──────────┬────────┘
│ │ │
Internet│ LAN │ Client │
│ │ │
▼ ▼ ▼
┌──────────┐ ┌──────────┐
│ srvSSH │ │ Client │
│ srvWEB │ │20.21.22.2│
│10.11.12.x│ └──────────┘
└──────────┘

VMware Configuration:

VMCard 1Card 2Card 3
srvGatewayNAT (VMnet8)LAN Segment → lanLAN Segment → clientnet
srvSSHLAN Segment → lan——
srvWEBLAN Segment → lan——
ClientLAN Segment → clientnet——

VirtualBox Equivalent:

VMAdapter 1Adapter 2Adapter 3
srvGatewayNATInternal Network → lanInternal Network → clientnet
srvSSHInternal Network → lan——
srvWEBInternal Network → lan——
ClientInternal Network → clientnet——
Alternative with custom VMnets

Instead of LAN Segments, you can use custom VMnets:

VMCard 1Card 2Card 3
srvGatewayNAT (VMnet8)Custom → VMnet2Custom → VMnet3
srvSSHCustom → VMnet2——
srvWEBCustom → VMnet2——
ClientCustom → VMnet3——

VMnet Advantage: you can enable DHCP and host access if needed.
LAN Segment Advantage: simpler, free naming, truly isolated.

Adding a network card to an existing VM​

If your VM only has one card and you need to add more:

  1. Power off the VM (mandatory)
  2. Edit the VM settings
  3. Click on Add... (bottom left)
  4. Select Network Adapter → Next
  5. Choose the connection type → Finish
  6. The new card appears in the list
Maximum 10 cards

VMware supports up to 10 network cards per VM (compared to 4 in GUI for VirtualBox).

Back to the table of contents


Summary table: VMware vs VirtualBox​

Mode correspondence​

NeedVirtualBoxVMware (option 1)VMware (option 2)
Simple InternetNATNAT (VMnet8)—
Internet + VMs see each otherNAT NetworkNAT (VMnet8)—
VM on the physical networkBridged AdapterBridged (VMnet0)—
Host access without InternetHost-Only AdapterHost-Only (VMnet1)—
Isolated network between VMsInternal Network (named)LAN Segment (named)Custom VMnet (uncheck host)
Configurable custom network❌ Doesn't existCustom VMnet (VMnet2-19)—

What VMware does better​

FeatureVirtualBoxVMware
NAT with direct host access❌✅
DHCP in internal networks❌✅ (custom VMnet)
Advanced graphical network editor❌✅ (Virtual Network Editor)
Easy port forwarding⚠️ Limited✅ (NAT Settings)
Number of cards per VM4 (GUI)10
Number of isolated networksUnlimited20 VMnets + unlimited LAN Segments

What VirtualBox does differently​

FeatureVirtualBoxVMware
Free network naming✅ (intnet, lan...)⚠️ Numbered VMnets, named LAN Segments
Simplicity✅ Simpler for beginners⚠️ More options = more complex
Free✅ Always⚠️ Player free, Workstation Pro paid

Back to the table of contents


VMware network troubleshooting​

Problem: VMs do not see each other​

Checks:

  1. Same network? VMs must be on the same VMnet or the same LAN Segment
  2. Configured IPs? Check with ip a in each VM
  3. Same subnet? E.g., 10.11.12.1/24 and 10.11.12.2/24 (OK) vs 10.11.12.1/24 and 10.11.13.2/24 (NO)
  4. Card connected? Check that "Connected" is checked in the settings
  5. Firewall? Test by temporarily disabling: sudo ufw disable
# Check interfaces in the VM
ip a

# Test connectivity
ping 10.11.12.2

# Check that the interface is UP
ip link show

Problem: No Internet in NAT mode​

  1. VMnet8 active? Open the Virtual Network Editor and check that VMnet8 exists
  2. VMware NAT service started? Check in Windows services:
    • VMware NAT Service
    • VMware DHCP Service
  3. IP obtained? Check with ip a (should have an IP like 192.168.128.x or similar)
  4. DNS? Test with ping 8.8.8.8 (if it works) vs ping google.com (if it doesn't work → DNS problem)
# Renew DHCP lease
sudo dhclient -r ens33
sudo dhclient ens33

# Check gateway
ip route show

# Test DNS
nslookup google.com

Problem: Unable to SSH from host to VM​

  1. Which network mode?

    • NAT (VMnet8) → ✅ should work directly
    • Host-Only (VMnet1) → ✅ should work
    • LAN Segment → ❌ impossible (host has no access)
    • Internal (custom VMnet without host) → ❌ impossible
  2. VM's IP? Find it with ip a in the VM

  3. SSH installed? sudo apt install openssh-server

  4. Firewall? sudo ufw allow 22

Network interface names in VMware VMs​

ip a
CardTypical Ubuntu NameTypical CentOS/RHEL Name
Network Adapter 1ens33ens33 or ens160
Network Adapter 2ens34 or ens38ens34 or ens192
Network Adapter 3ens35 or ens39ens35 or ens224
Why do the names change?

The names depend on the type of controller (E1000, VMXNET3) and the PCI position of the card. Always use ip a to check the actual names.

Back to the table of contents


FAQ​

Q: What is the difference between a custom VMnet and a LAN Segment?​

Custom VMnetLAN Segment
ManagementVirtual Network Editor"LAN Segments..." window
DHCP✅ Configurable❌ No
Host access✅ Configurable❌ No
NAT✅ Configurable❌ No
Max number20 (VMnet0-19)Unlimited
NamingNumbered (VMnet2...)Free
When to useNeed DHCP/host/NATSimple isolated network

Q: I'm coming from VirtualBox, which VMware mode corresponds to Internal Network?​

2 options:

  1. LAN Segment (closest): same behavior, free naming, isolated, no DHCP
  2. Custom VMnet with host and DHCP disabled: more configurable

Q: Why is VMnet8 (NAT) in VMware better than VirtualBox's NAT?​

Because in VMware, NAT creates a real network (VMnet8):

  • The host has an IP on VMnet8 and can access the VM directly
  • Multiple VMs on VMnet8 can communicate with each other
  • No need for port forwarding to access the VM

In VirtualBox, each NAT VM is in its own isolated bubble.

Q: How many network cards maximum in VMware?​

10 cards per VM. In VirtualBox, it's 4 in GUI (8 in CLI).

Q: Can I have 2 NAT cards in the same VM?​

✅ Yes, but it doesn't have much benefit. Both cards would be on VMnet8 and have different IPs, but they access the same Internet.

Q: How to add a 3rd network card?​

  1. Power off the VM
  2. Edit settings → Add... → Network Adapter
  3. Configure the mode (NAT, Bridged, LAN Segment...)
  4. Start the VM
  5. Configure the IP in the VM with ip a and netplan/nmcli

Q: Does VMware Player (free) have all these features?​

⚠️ VMware Player does not have the Virtual Network Editor. You can use the basic modes (NAT, Bridged, Host-Only) and LAN Segments, but not create custom VMnets.

For custom VMnets and the Virtual Network Editor, you need VMware Workstation Pro.


Bonus TP created on: February 2026