On Sun, 10 Jul 2005, Jim C. Brown wrote:
The best solution is to use a vde_switch with libpcap and libnet. This allows
intercepting packets meant for the guests (via libnet) and forwarding them thru
vde.
Interesting idea. Would make full qemu networking truly a no-brainer.
Should even be possible to write just the libpcap+libnet "driver",
avoiding the need of a full vde_switch in such case.
libpcap allows for packets in vde to be passed on to the lan. This also
allows for a sort of seamless bridging between host and guest lan. (Technically
a tap device is still required to be able to talk to the host, but my
understanding
is that libpcap handles this automatically.) Plus, the nic remains eth0.
No tap device is needed here. Just a plain raw socket..
I am not sure how libpcap and libnet would work with DHCP or ARP, but since
they work on the ethernet level I suppose a single dhcpd server on eth0 would
work in this case, but I am not 100% sure.
It should work just fine.
Regards
Henrik
_______________________________________________
Qemu-devel mailing list
Qemu-devel@nongnu.org
http://lists.nongnu.org/mailman/listinfo/qemu-devel