pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Re: Re: qemu, bridge and wireless



On Mon, Sep 24, 2007 at 11:25:42PM +0200, Joel CARNAT wrote:
> On Sat, Sep 22 2007 - 18:43, Quentin Garnier wrote:
[...]
> > Sure.  You affect an IP address to one of the tap interface and you make
> > it the default route for the VMs.
> > 
> 
> Using PF, the VM now can go to the Internet.
> The thing is I'm not able to ping/TSE from the "real" workstation to the
> VM. Is this expected as I am using on a tap interface ?
> 
> Here's what I did :
> # ifconfig
> wpi0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
>         status: active
> tap0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
>       media: Ethernet autoselect
>       inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.25
> bridge0: flags=41<UP,RUNNING> mtu 1500
> tap2: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> mtu 1500
>       media: Ethernet autoselect

If you fiddle with the output of the commands, you're sure to leave
important stuff aside.  I mean, who gives a shit about the specific
address on your wpi interface?  It's probably in the mail headers
anyway.

> # brconfig
> bridge0: flags=41<UP,RUNNING>
>       Configuration:
>               priority 32768 hellotime 2 fwddelay 15 maxage 20
>               ipfilter disabled flags 0x0
>       Interfaces:
>               tap2 flags=2<DISCOVER>
>                       port 7 priority 128
>               tap0 flags=2<DISCOVER>
>                       port 5 priority 128
>       Address cache (max cache: 100, timeout: 1200):
> # qemu command (running Windows XP, NIC configured as 192.168.0.20)
> qemu -m 512 -boot c -net tap,fd=3,ifname=tap2 -net 
> nic,macaddr=de:ad:be:ef:00:02 win.img

What does tcpdump say?  Note that you only need one tap interface per
VM, and to affect an address on one of them, anyway.

-- 
Quentin Garnier - cube%cubidou.net@localhost - cube%NetBSD.org@localhost
"See the look on my face from staying too long in one place
[...] every time the morning breaks I know I'm closer to falling"
KT Tunstall, Saving My Face, Drastic Fantastic, 2007.

Attachment: pgpy_Zk5w5WfB.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index