I'm attempting to provide static IP addresses to the network interfaces while bringing up the QEMU images via command line. The command is like below:

qemu-system-x86_64 -smp 2 -hda disk.img -net nic,model=i82557b,vlan=1,macaddr=00:06:04:00:0a:01 -net user,vlan=1,net= 

As per this, I'm assigning one network interface whose IP address should be

When the OS comes up, the mac address gets assigned properly. However, the IP address always defaults to

As per the documentation, the X.X.X.15 is probably because of DHCP - which I do not wish to configure.

How do I provide a specfic IP address to bind to the network interface?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.