From Wikibooks, open books for an open world
< QEMU‎ | Devices
Jump to navigation Jump to search

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[edit | edit source]

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


qemu -net nic,model=ne2k_pci ...

Network card models[edit | edit source]

For PC emulation

Model Bus Speed Description
e1000 PCI 1Gb/s Intel Gigabit Ethernet
i82551 ? ? ?
i82557b ? ? ?
i82559er ? 100Mb/s ?
ne2k_pci PCI 10Mb/s NE2000
ne2k_isa ISA 10Mb/s NE2000
pcnet PCI 10Mb/s AMD Ethernet Card
rtl8139 PCI 10/100Mb/s Realtek Fast Ethernet
virtio PCI 1Gb/s Virtual High Performance Ethernet card (see Virtio)

Others emulated architectures

You have to launch this command to list emulated network card

qemu-system-<arch> -net nic,model=?