Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

Virtual Machine Networking

Direct answer

A virtual machine runs its own OS and IP stack and sees one or more vNICs; how it reaches the network depends on the virtual switch, port group or VLAN its vNIC is attached to.

When to use this

Use it when VM traffic fails and you need to check the virtual switch, VLAN tagging and physical uplinks.

First 30 seconds

1. VMs connect through virtual switches to physical uplinks.

2. VLAN tagging on port groups or trunks.

3. MAC moves during vMotion/live migration.

4. Teaming and switch config must match.

5. Check both virtual and physical sides.

Operational verification

VM vNIC → vSwitch/port group → uplink → physical switch

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Cisco IOS / IOS XE
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformCisco IOS / IOS XE
Scope / prerequisiteUse it when VM traffic fails and you need to check the virtual switch, VLAN tagging and physical uplinks.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Verification and output interpretation Verify boundary

Verify guest interface/address/route/neighbor state, vNIC connection, virtual switch/port state and physical uplink path. After migration, re-check network placement rather than assuming identity alone preserves it. Correlate MAC/IP identities across layers.

Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points
  • A virtual machine is a software computer with its own OS, virtual CPU, memory, disk and NICs.
  • Many VMs share one host.
  • VMs can move between hosts with live migration.
Key checks
  • vSwitch/port group VLAN config — hypervisor
  • show mac address-table interface <uplink> — VM MACs learned
  • show interfaces trunk — VLANs to hosts
ReferenceImportant terms & boundaries4 sections · depth on demand

In depth

The virtual machine: a guest OS on virtual hardware

NIST SP 800-125 describes a VM as the simulated environment that virtualization creates, and full virtualization as running each OS instance in its own VM as a guest OS. The hypervisor presents virtual CPUs, memory, disks and network adapters, and keeps guests isolated from each other.

What a VM consists of

PartTypically stored as
ConfigurationvCPUs, memory, devices (a .vmx file, or libvirt domain XML)
Virtual disksFiles (VMDK, QCOW2, VHDX) or volumes
Firmware and NVRAMBIOS or UEFI settings, virtual TPM
SnapshotsSaved disk and optionally memory state
host$ virsh dumpxml web01 | grep -E "<vcpu|<memory|<interface|<source network|<model"
  <memory unit='KiB'>8388608</memory>
  <vcpu placement='static'>4</vcpu>
    <interface type='network'>
      <source network='default'/>
      <model type='virtio'/>
host$ virsh snapshot-list web01
 Name              Creation Time               State
---------------------------------------------------------
 before-upgrade    2026-11-20 09:14:22 +0100   running

Images and snapshots (NIST SP 800-125)

ItemNIST notes
ImageA file or directory encapsulating a guest OS, applications and virtual resources; often many gigabytes and easily copied
SnapshotRecords the state of a running guest (storage, memory, network connections); can contain RAM contents, so it may be more sensitive than an image
ProtectionBoth can contain sensitive data; protect them from unauthorised access, modification and replacement, and use checksums to detect changes
SprawlMinimise unneeded images and snapshots and manage them through a lifecycle process

Operational practice

PracticeReason
Size vCPUs and memory to the workloadOversized VMs waste capacity and can schedule worse
Use paravirtual devices (virtio, VMXNET3, PVSCSI)Better performance than emulated hardware
Don't keep snapshots longThey grow and slow disk I/O; they aren't backups
Install guest tools or agentsClean shutdown, time sync, accurate monitoring

VMs and networking

Each VM has one or more virtual NICs connected to a virtual switch or virtual network. From the network's point of view, a VM is just another host with its own MAC address on a switch port, but that port is often a trunk to the hypervisor rather than an access port.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

A virtual machine behaves like a complete computer — its own operating system, memory, disks and network cards — but all of it is provided by the hypervisor. Network appliances such as routers, firewalls and wireless controllers are increasingly delivered as VMs, which makes the virtual switch configuration part of the network design. Security settings on that switch decide whether features like virtual gateway MAC addresses work at all.

A virtual machine is a full guest OS with virtual hardware (vCPU, RAM, disks, vNICs) isolated by the hypervisor. Network devices exist as VMs too: Catalyst 8000V, CSR/ISRv, ASAv, FTDv, Nexus 9000v, vWLC/9800-CL, virtual SD-WAN edges.

Network checks for a VM: correct port group/VLAN on the vNIC, MAC visible on the upstream switch, and the vSwitch security policy (promiscuous mode, MAC changes, forged transmits) allowing what the guest needs — virtual routers and firewalls with VRRP/HSRP virtual MACs usually need forged transmits/MAC changes allowed.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Architecture/protocol mechanics and state model

A VM sees one or more virtual NICs and treats them like network interfaces, while the hypervisor maps those vNICs into virtual switches and physical uplinks. Guest routing and firewall state remain independent from hypervisor networking.

Limits and common misconceptions

VM power-on does not show network attachment; vNIC connected does not show guest IP config; and successful host management does not show VM service reachability.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration intent

Document vNIC count/type, port group/VLAN, guest IP/gateway/DNS, host placement/mobility and any security policy tied to the virtual port or VM identity.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docCisco IOS / IOS XE Current documentation reviewed 2026-09-14

Authoritative/upstream documentation reviewed for bounded claims in Virtualization & Overlays → Server Virtualization → Virtual Machine. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.cisco.com/c/en/us/support/ios-nx-os-software/ios-xe-17/series.html · confidence 94%
Embedded reference data

Quick lookup tables

Virtual Machine · operational reference

Compact state/design/evidence reference for fast lookup.

LayerVM network state
Guest IP stackAddress/route/firewall
vNICVirtual attachment
vSwitch/portVLAN/policy
pNIC/upstreamPhysical path
Confirmation

Confirm action

Continue?