Skip to contentSkip to conversation

networking

Qemu-devel [email protected] 2 participants 2 messages Jan 23, 2019 – Jan 24, 2019

lore
Share & tools
lore
#0 lore raw

The windows 7 guest on linux host had networking out of the box. It now lost it for some reason.
The qemu string remained the same....

It now want to do DHCP and fails.
It has an intel nic as nic device in device manager.

What i cant understand is how to dop a static network config in this case. lets say my network is 192.168.1.x

Do i give it a static ip say 192.168.1.33 ?
The mask 255.255.255.0
What must the default gateway be ?
On my linux network this at 192.168.1.100

Should I give an external e.g. google dns or is there a specific internal DNS it needs to use ?

thanks

Why networking just broke I really cannot understand

#1 lore raw
Quoted 3 lines · On Tue, Jan 22, 2019 at 10:02:09PM -0500, [email protected] wrote:

The windows 7 guest on linux host had networking out of the box. It now lost it for some reason.
The qemu string remained the same....

Please post your QEMU command-line.

Quoted 10 lines

It now want to do DHCP and fails.
It has an intel nic as nic device in device manager.

What i cant understand is how to dop a static network config in this case. lets say my network is 192.168.1.x

Do i give it a static ip say 192.168.1.33 ?
The mask 255.255.255.0
What must the default gateway be ?
On my linux network this at 192.168.1.100

The details of QEMU's default networking configuration ("slirp" userspace networking) is as follows:

Subnet: 10.0.2.0/24
Gateway: 10.0.2.2

Therefore statically assigning a 192.168.1.0/24 address will not work, you need to pick a 10.0.2.0/24 address and use 10.0.2.2 as the gateway.

If you are using tap networking then this does not apply. Details of your host networking setup would be necessary in order to help you.

Quoted 8 lines

Should I give an external e.g. google dns or is there a specific internal DNS it needs to use ?

thanks

Why networking just broke I really cannot understand