[j-nsp] vlan setting in olive/qemu

Tomasz Klicki tomasz at klicki.pl
Tue Jun 2 16:48:03 EDT 2009


Bit Gossip pisze:
> So my conclusion is that this vlan setting has NO effect at all.
> Any idea?

Yes! ;-)

Qemu parameter '-net xxx,vlan=yyy' has nothing related to 802.1q
tagging. It only defines how to connect network interfaces inside qemu
virtual host. You must define tagging inside your guest machine. For
example, in Olive - simply put in configuration interface xxx, unit yyy,
vlan-id zzz.

Examples of using vlan parameter in kvm/qemu:

# 1 NIC in guest bridged with tap interface at host machine
# qemu -net nic,vlan=0 -net tap,vlan=0

# 2 NICs in guest bridged with two different tap interfaces at host
qemu -net nic,vlan=0 -net tap,vlan=0 -net nic,vlan=1 -net tap,vlan=1

Vlan number parameter defines **only** which interfaces should be
bridged together.

More info at: http://www.gnome.org/~markmc/qemu-networking.html

Beside that: you may be interested at very nice project called VDE
switch. It is more 'inteligent' than tap interfaces and acts as real
switch with 802.1q vlans. You can also use it with qemu:
-net nic,vlan=3 -net vde,sock=vde-switch1.ctl,vlan=3

More details on this:
http://vde.sourceforge.net/

If you need any help, ask me on jabber: t.klicki at gmail.com

-- 
 (o_   Best regards!
 //\   Tomasz Klicki
 V_/_


More information about the juniper-nsp mailing list