Pcornel
Networking · Virtualization & Overlays › Server Virtualization

Virtual NIC Networking

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

Back to the Topic

Answer

A virtual NIC (vNIC) is the VM's network adapter, with its own MAC address; it connects to a virtual switch port or port group that decides the VLAN and uplink.

Remember

  • A virtual NIC connects a VM to a virtual switch.
  • Each vNIC has its own MAC address.
  • Paravirtual vNICs (virtio, VMXNET3) give the best performance.

First checks

  • Hypervisor console (vCenter, Hyper-V Manager, Proxmox) — VM state, vNIC, port group / virtual switch and VLAN.
  • Get-VMNetworkAdapter -VMName <vm> | fl / Get-VMNetworkAdapterVlan (Hyper-V) — vNIC, switch and VLAN.
  • qm config <vmid> / bridge vlan show (Proxmox/Linux) — VM NIC and bridge VLANs.
  • show interfaces trunk on the physical switch — host uplink carries the VM VLANs.
  • show mac address-table address <vm-mac> — the VM MAC learned on the host uplink.

Verify in this order

vNIC created with a unique MAC → connected to a port group/VLAN → paravirtual driver in the guest → link up in the guest → address and gateway

Where it usually breaks

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

Virtual NIC · operational reference

vNIC factMeaning
Link stateGuest-visible virtual carrier
MACL2 endpoint identity
Port groupVirtual network placement
UplinkExternal forwarding dependency

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

Confirmation

Confirm action

Continue?