QEMU/Devices/Network

Network devices are somewhat special, since besides being able to add them the standard way, there's a much easier one to configure them through the -net nic parameter.

Also, please note that -device doesn't suppress the default configuration, so it might not do what you intend.

Adding a card

Simply specifying -net nic on the command line adds an interface. You can select the hardware being emulated using the model modifier.

Example:

qemu -net nic,model=ne2k_pci ...

Network card models

For PC emulation

ModelBusSpeedDescription
e1000PCI10/100/1000Mb/sIntel 82540em / PRO/1000
i82551PCI10/100Mb/sIntel 10/100 Mbps Fast Ethernet
i82557bPCI10/100Mb/sIntel 10/100 Mbps Fast Ethernet
i82559erPCI10/100Mb/sIntel 10/100 Mbps Fast Ethernet
ne2k_pciPCI10Mb/sRTL8029 - NE2000 PCI
ne2k_isaISA10Mb/sNE2000 Compatible
pcnetPCI10/100Mb/sAMD PCnet FAST III Ethernet
rtl8139PCI10/100Mb/sRealtek Fast Ethernet
virtioPCI1Gb/sVirtual High Performance Ethernet card (see Virtio)
qemu-system-<arch> -net nic,model=<model>

In this command, <arch> and <model> should be replaced with the appropriate architecture and model you intend to use.

Category:Book:QEMU#Devices/Network%20

Others emulated architectures

You have to launch this command to list emulated network card

Category:Book:QEMU