pkgsrc-Users archive

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

Qemu Networking - Connecting VLANs to TAP devices



Hi there!

Is it possible to connect multiple VLANs  together and connect 1 of
those VLANs to some TAP device, so "Qemu Guest 1" can access "Qemu Guest
2"? I'd probably to that this way:

        $ ifconfig tap0 create
        $ ifconfig tap1 create
        $ qemu -net nic,vlan=0,macaddr=52:54:00:12:34:56 -net 
tap,vlan=0,ifname=tap0 -cdrom [iso file]
        $ qemu -net nic,vlan=1,macaddr=52:54:00:12:34:57 -net 
tap,vlan=1,ifname=tap1 -cdrom [iso file]
        $ ifconfig bridge0 create
        $ brconfig bridge0 add tap0 add tap1



After setting up network on both guests, then I should be able accessing
"Guest 1" and "Guest 2". But how do I configure both guests in order to
allow connectivity between them ("Guest 1" <---> "Guest 2") ?! Do I have
to use TCP-Sockets?!

Is there any simple way to realize this scenario using TAP devices and
*no* sockets?!

Thanks.

-- 
Victor Dorneanu

Contact
- Web/Blog: http://dornea.nu
 
GnuPG information
- KeyID = 0xD20870F4 (pgp.mit.edu)
- Key fingerprint = DD6B 5E09 242F 7410 3F90 492A 4CBA FD13 D208 70F4





Home | Main Index | Thread Index | Old Index