Pcornel
Browse topics
Options
Recent
Favorites
Virtualization · Technical reference

NIC Passthrough

Direct answer

NIC passthrough gives a VM a physical network card or port for line-rate, low-latency networking, typically for firewalls or NFV. It bypasses the virtual switch and limits migration; SR-IOV virtual functions are often a better compromise.

When to use this

Use this when a VM such as a firewall needs a dedicated physical NIC.

First 30 seconds

1. NIC passthrough gives native network performance.

2. VM loses vSwitch features (VLAN, firewall).

3. No live migration.

4. Prefer SR-IOV for sharing.

5. Check link in guest.

Operational verification

physical NIC → vfio → guest driver

Context & applicabilityCommon mistakes · platform/version boundaries
Common mistakes
Common mistakes
  • Expecting live migration with SR-IOV VFs (not supported on most platforms).
  • VF VLAN and MAC settings not set on the host, allowing spoofing.
  • Firmware not supporting enough VFs.
Platform / version applicability
virtualization-hardware
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformvirtualization-hardware
Key commandip link show enp65s0f0
Scope / prerequisiteUse this when a VM such as a firewall needs a dedicated physical NIC.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

1 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 SR-IOV checks Verify boundary
lspci -nn | grep -i ethernet
cat /sys/class/net/enp65s0f0/device/sriov_totalvfs
echo 8 > /sys/class/net/enp65s0f0/device/sriov_numvfs
ip link show enp65s0f0          # lists VFs and their MACs/VLANs

VFs bypass the host's virtual switch, so host firewall rules and some monitoring do not apply to that traffic.

Evidence references

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.

observation · 1
Key points
  • Bypasses virtual switch and its features.
  • Blocks migration.
  • Consider SR-IOV instead.
Key checks
  • lspci -nnk | grep -A3 Ethernet — NIC bound to vfio
  • ethtool -i <if> — guest driver
  • ip -s link — guest counters
ReferenceWhy it matters1 section · depth on demand

Options for fast VM networking

OptionLive migrationNotes
Whole NIC passthroughNoFull line rate, exclusive
SR-IOV virtual functionsLimitedMany VMs share one NIC with near-native speed
Paravirtual (virtio/VMXNET3)YesGood enough for most workloads
DPDK / vhost-userYes (with care)NFV and high packet rates

SR-IOV: echo 8 > /sys/class/net/<if>/device/sriov_numvfs, then assign VFs to VMs.

ReferenceImportant terms & boundaries1 section · depth on demand

In depth

NIC passthrough gives a VM a physical NIC or port: near line-rate packet processing (firewalls, DPDK/NFV, packet capture) and hardware offloads. Costs: no live migration, no vSwitch features (VLAN policies, mirroring, firewall) and one port per VM.

SR-IOV is usually the better choice for many VMs on one NIC; full passthrough suits a dedicated firewall VM owning WAN ports. Remember to remove the port from host bonds/bridges before passing it through.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docvirtualization-hardware current

Authoritative/upstream documentation reviewed for bounded claims in PCI & Device Passthrough → NIC Passthrough. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://docs.kernel.org/driver-api/vfio.html · confidence 94%
Confirmation

Confirm action

Continue?