Hi.

On Wed, Mar 10, 2021 at 02:56:30PM -0800, pe...@easthope.ca wrote:
> qemu-system-i386 -nic user,ipv6=off,model=ne2k_pci ...

In this case QEMU uses built-in DHCP server to provide 10.0.2/24 network
to the guest OS. If you need another network it should be changed in
QEMU's commandline.


> How is a static IP address set?

For the quest OS it is like this:

auto eth0
iface eth0 static
        address 10.0.2.15
        netmask 24
        gateway 10.0.2.2

10.0.2.1 and 10.0.2.2 are "special" and are used by QEMU itself.
Anything else is to be used by the quest OS.


> Should a subnet be specified in /etc/network/interfaces?

Of course, as it's not a point-to-point connection. 

Reco

Reply via email to