qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: liebrecht@grossmann-venter.com
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] networking
Date: Thu, 24 Jan 2019 10:16:18 +0000	[thread overview]
Message-ID: <20190124101618.GD4764@stefanha-x1.localdomain> (raw)
In-Reply-To: <720ebdfeb9506e0719481fc1913c9272@grossmann-venter.com>

[-- Attachment #1: Type: text/plain, Size: 1261 bytes --]

On Tue, Jan 22, 2019 at 10:02:09PM -0500, liebrecht@grossmann-venter.com 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.

> 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.

> 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
> 
> 

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2019-01-24 10:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-01-23  3:02 [Qemu-devel] networking liebrecht
2019-01-24 10:16 ` Stefan Hajnoczi [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-06-24 19:20 [Qemu-devel] Networking wrichter
2005-06-24 18:31 Wolfgang Richter
2005-06-24 18:51 ` Renzo Davoli
2005-06-24 18:52 ` Tom Sandholm
2005-06-25 22:25 ` Henrik Nordstrom
2005-06-25 22:58   ` Jim C. Brown
2004-05-21 23:10 [Qemu-devel] networking ich hier
2004-05-23 18:00 ` Jim C. Brown
2004-02-10 18:47 pietro capriata

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190124101618.GD4764@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=liebrecht@grossmann-venter.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).