Virtual NIC Networking
Cheat sheet · https://pcornel.dk/topic.php?topic=693
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 trunkon 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 fact | Meaning |
|---|---|
| Link state | Guest-visible virtual carrier |
| MAC | L2 endpoint identity |
| Port group | Virtual network placement |
| Uplink | External 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