All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paolo Pedaletti <paolo.pedaletti@gmail.com>
To: David Mair <dmair@mair-family.org>
Cc: kvm@vger.kernel.org
Subject: Re: networking setup problem
Date: Mon, 21 Jul 2008 01:52:50 +0200	[thread overview]
Message-ID: <4883CFD2.2030203@gmail.com> (raw)
In-Reply-To: <487E8C16.4070900@mair-family.org>

Ciao David,
thank you for the answer, but...

> AFAIK, -net user does not need an ifname or script argument -
> there's no host interface for the user mode stack. Try these:
>
> kvm -name PROXY
> -net nic,vlan=0,macaddr=00:18:BE:EF:17:2A,model=rtl8139
>     -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh
> -net nic,vlan=1,macaddr=00:18:BE:EF:17:2B,model=rtl8139
>     -net user,vlan=1
> -drive
> index=0,media=disk,if=scsi,file=./ubuntu-server.PROXY.root,boot=on
> -drive index=1,media=disk,if=scsi,file=./ubuntu-server.PROXY.home
> -drive index=2,media=disk,if=scsi,file=./ubuntu-server.PROXY.swap
>
> kvm -name WEBAPP
> -net nic,vlan=0,macaddr=00:18:BE:EF:17:1A,model=rtl8139
>     -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh
> -net nic,vlan=1,macaddr=00:18:BE:EF:17:1B,model=rtl8139
>     -net user,vlan=1
> -drive
> index=0,media=disk,if=scsi,file=./ubuntu-server.WEB.root,boot=on
> -drive index=1,media=disk,if=scsi,file=./ubuntu-server.WEB.home
> -drive index=2,media=disk,if=scsi,file=./ubuntu-server.WEB.swap
>
> kvm -name DB
> -net nic,vlan=0,macaddr=00:18:BE:EF:17:0A,model=rtl8139
>     -net tap,vlan=0,ifname=tap0,script=./qemu-ifup.sh
> -net nic,vlan=1,macaddr=00:18:BE:EF:17:0B,model=rtl8139
>     -net user,vlan=1
> -drive index=0,media=disk,if=scsi,file=./ubuntu-server.DB.root,boot=on
> -drive index=1,media=disk,if=scsi,file=./ubuntu-server.DB.home
> -drive index=2,media=disk,if=scsi,file=./ubuntu-server.DB.swap

nothing.
if I ping one ip from the other, I get:
Destination host unreachable
and tcpdump show nothing

(I can ping each other via "external" ip, the "public" ip on eth0)

by the way... if I get the IP via dhcp from eth1 interface (of the 2 VM)
I obtain always the same IP even if the macaddress are different (always
10.0.2.15)

Other ideas?

thank you.

-- 
/* Paolo Pedaletti,
 * paolo@pedaletti.it www.pedaletti.it */

      reply	other threads:[~2008-07-20 23:52 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-16  9:09 networking setup problem paolo pedaletti
2008-07-16 14:00 ` Uri Lublin
2008-07-20 23:56   ` Paolo Pedaletti
2008-07-21  5:07     ` David Mair
2008-07-21  5:22       ` Lynn Kerby
2008-07-21 16:23         ` David Mair
2008-07-21  5:14     ` Lynn Kerby
2008-07-21  6:43       ` paolo pedaletti
2008-07-17  0:02 ` David Mair
2008-07-20 23:52   ` Paolo Pedaletti [this message]

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=4883CFD2.2030203@gmail.com \
    --to=paolo.pedaletti@gmail.com \
    --cc=dmair@mair-family.org \
    --cc=kvm@vger.kernel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.