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 10/100/1000Mb/s Intel 82540em / PRO/1000
i82551 PCI 10/100Mb/s Intel 10/100 Mbps Fast Ethernet
i82557b PCI 10/100Mb/s Intel 10/100 Mbps Fast Ethernet
i82559er PCI 10/100Mb/s Intel 10/100 Mbps Fast Ethernet
ne2k_pci PCI 10Mb/s RTL8029 - NE2000 PCI
ne2k_isa ISA 10Mb/s NE2000 Compytible
pcnet PCI 10/100Mb/s AMD PCnet FAST III Ethernet
rtl8139 PCI 10/100Mb/s Realtek Fast Ethernet
virtio PCI 1Gb/s Virtual 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.

Others emulated architectures

You have to launch this command to list emulated network card