[ovs-discuss] Host interface not connecting

Oleg V Popov admin at livelace.ru
Wed Sep 22 11:45:15 UTC 2010


1. Gentoo x86_64
2. Openvswitch 1.0.1
3. qemu-kvm - 0.12.5-r1
4. Creat
two
VM:

#--------------------------------------------------------------------------------

/usr/bin/qemu-system-x86_64
--enable-kvm -m 100 -drive
file=/vm/kvm/kvm-proxy.img,if=virtio,media=disk,boot=on -net
nic,model=virtio,macaddr=DE:AD:BE:EF:12:16 -net
tap,script=/etc/openvswitch/ovs-ifup,downscript=/etc/openvswitch/ovs-ifdown

#--------------------------------------------------------------------------------

/usr/bin/qemu-system-x86_64
--enable-kvm -m 100 -drive
file=/vm/kvm/kvm-dev.img,if=virtio,media=disk,boot=on -net
nic,model=virtio,macaddr=DE:AD:BE:EF:16:26 -net
tap,script=/etc/openvswitch/ovs-ifup,downscript=/etc/openvswitch/ovs-ifdown

#--------------------------------------------------------------------------------

xxx
~ # cat /etc/openvswitch/ovs-ifup
#!/bin/sh

switch='br0'
/sbin/ifconfig
0.0.0.0 up
ovs-vsctl add-port ${switch} 

xxx ~ # cat
/etc/openvswitch/ovs-ifdown
#!/bin/sh

switch='br0'
/sbin/ifconfig 0.0.0.0
down
ovs-vsctl del-port ${switch}


#--------------------------------------------------------------------------------

xxx
~ # ovs-vsctl list-br
br0

ovs-vsctl list-ports br0
tap1
tap2
tap3

tap1 -
host interface
tap2 - kvm-proxy
tap3 - kvm-dev

kvm-proxy can access to
kvm-dev (ping)
kvm-dev can access to kvm-proxy (ping)

kvm-proxy can't
access to tap1 (host interface)
kvm-dev can't access to tap1 (host
interface)

host can't access (ping) to kvm-proxy and kvm-dev
-- 
С
уважением, Попов О.В/Best regards, Popov O.V

xmpp:
livelace at jabber.ru
xmpp: livelace at jabber.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://openvswitch.org/pipermail/ovs-discuss/attachments/20100922/e8aa14f7/attachment-0001.html>


More information about the discuss mailing list