Use it when VM traffic fails and you need to check the virtual switch, VLAN tagging and physical uplinks.
Virtual Machine Networking
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.
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.
VM vNIC → vSwitch/port group → uplink → physical switch
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
- 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.
- vSwitch/port group VLAN config — hypervisor
show mac address-table interface <uplink>— VM MACs learnedshow 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
| Part | Typically stored as |
|---|---|
| Configuration | vCPUs, memory, devices (a .vmx file, or libvirt domain XML) |
| Virtual disks | Files (VMDK, QCOW2, VHDX) or volumes |
| Firmware and NVRAM | BIOS or UEFI settings, virtual TPM |
| Snapshots | Saved 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)
| Item | NIST notes |
|---|---|
| Image | A file or directory encapsulating a guest OS, applications and virtual resources; often many gigabytes and easily copied |
| Snapshot | Records the state of a running guest (storage, memory, network connections); can contain RAM contents, so it may be more sensitive than an image |
| Protection | Both can contain sensitive data; protect them from unauthorised access, modification and replacement, and use checksums to detect changes |
| Sprawl | Minimise unneeded images and snapshots and manage them through a lifecycle process |
Operational practice
| Practice | Reason |
|---|---|
| Size vCPUs and memory to the workload | Oversized VMs waste capacity and can schedule worse |
| Use paravirtual devices (virtio, VMXNET3, PVSCSI) | Better performance than emulated hardware |
| Don't keep snapshots long | They grow and slow disk I/O; they aren't backups |
| Install guest tools or agents | Clean 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.
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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Quick lookup tables
Virtual Machine · operational reference
Compact state/design/evidence reference for fast lookup.
| Layer | VM network state |
|---|---|
| Guest IP stack | Address/route/firewall |
| vNIC | Virtual attachment |
| vSwitch/port | VLAN/policy |
| pNIC/upstream | Physical path |