QEMU/Devices/Network

From Wikibooks, open books for an open world
< QEMU‎ | Devices
Jump to: navigation, 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]

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

For PC emulation

Model Bus Speed Description
e1000 PCI 1Gb/s Intel Gigabit Ethernet
i82551  ?  ?  ?
i82557b  ?  ?  ?
i82559er  ?  ?  ?
ne2k_pci PCI 10Mb/s NE2000
pcnet  ?  ?  ?
rtl8139  ? 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=?