Networking · Virtualization & Overlays › Server Virtualization
Virtual Machine Networking
Cheat sheet · https://pcornel.dk/topic.php?topic=692
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 learnedshow 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
| Layer | VM network state |
|---|---|
| Guest IP stack | Address/route/firewall |
| vNIC | Virtual attachment |
| vSwitch/port | VLAN/policy |
| pNIC/upstream | Physical path |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=692