Pcornel
Networking · Virtualization & Overlays › Server Virtualization

Virtual Machine Networking

Cheat sheet · https://pcornel.dk/topic.php?topic=692

Back to the Topic

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.

Remember

  • 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.

First checks

  • vSwitch/port group VLAN config — hypervisor
  • show mac address-table interface <uplink> — VM MACs learned
  • show interfaces trunk — VLANs to hosts

Verify in this order

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

Where it usually breaks

underlay IP/transport → control/session registration → route/endpoint distribution → policy/segment → encapsulation/tunnel state → decapsulation/egress → return path

Virtual Machine · operational reference

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=692

Confirmation

Confirm action

Continue?