< QEMU < Devices

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
e1000PCI1Gb/sIntel Gigabit Ethernet
i82551???
i82557b???
i82559er?100Mb/s?
ne2k_pciPCI10Mb/sNE2000
ne2k_isaISA10Mb/sNE2000
pcnetPCI10Mb/sAMD Ethernet Card
rtl8139PCI10/100Mb/sRealtek Fast Ethernet
virtioPCI1Gb/sVirtual 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=?
This article is issued from Wikibooks. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.