Alex Samad wrote:
Sorry for the top post.
But the problem is you have 2 interfaces in the same non connected
network


if .3 is on tap1 then add
ip r a 172.20.0.3/32 dev tap1
ip r a 172.20.0.2/32 dev tap0


Your solution use vde to link the tap's or change the ip network so they
are not the same

Alex
Yep, you're completely right.  I was just in the process of writing:

Success! I didn't go the VDE route, I just fixed it so tap0 and tap1 have different IPs. It's so obvious I don't know why it didn't occur to me before.
I did this by simply skipping the default "qemu-ifup" script, which is:

[EMAIL PROTECTED]:/svn/staging$ cat /etc/qemu-ifup
#!/bin/sh
sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1
[EMAIL PROTECTED]:/svn/staging$

And instead creating separate image0-ifup and image1-ifup scripts as:

[EMAIL PROTECTED]:/svn/staging$ cat image0-ifup
#!/bin/sh
sudo -p "Password for $0:" /sbin/ifconfig $1 172.20.0.1
[EMAIL PROTECTED]:/svn/staging$ cat image1-ifup
#!/bin/sh
sudo -p "Password for $0:" /sbin/ifconfig $1 172.21.0.1
[EMAIL PROTECTED]:/svn/staging$

Then I start it with:

sudo qemu -kernel-kqemu -net nic,macad0:00:00:00 -net tap,script=image0-ifup image0.raw
sudo qemu -kernel-kqemu -net nic,macad0:00:00:11 -net 
tap,script=image1-ifup image1.raw
Now it works great, I can wget from the host to both guests.  Granted, 
the guests can't talk to each other, but that's actually a good thing as 
I'm explicitly trying to segment them apart.  Hooray for qemu, and 
thanks for all your help!
-david


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]


Reply via email to