Hi, As I know,if you want to set distribute VNI for vm ,you should set flow for vm use ovs-ofctl。
For example: ovs-ofctl add-flow in_port=1(vm port id) ,actions=set_tunnel:5001,output:2(vxlan port id) ps:you can read the new openvswitch.conf.db . Hope this helpful >发件人: discuss-boun...@openvswitch.org [mailto:discuss-boun...@openvswitch.org] 代表 Deepika >发送时间: 2013年12月16日 12:52 >收件人: discuss@openvswitch.org >主题: Re: [ovs-discuss] About VXLAN VNI >Hi, >You should use the following command to set VNI . >ovs-vsctl add-port br2 vx1 �C set interface vx1 type=vxlan options:remote_ip=192.168.66.5 options:key=5001 options:local_ip-192.168.66. 4 > >where key is the VNI ID. >Hope this helps. >Thanks, >Deepika >On 12/16/2013 10:13 AM, ㄜ�@ ㄋㄣ�A ㄜ�@ ㄋㄣ�A wrote: >Hello, I have a request is that how could I set VNI for my virtual machine? > >In my topology , I have two virtual machine with each pythical machine > (Public IP) Host1<------VXLAN Tunnel---------->Host2 (Public IP) > [bridge 10] [bridge 11] > | | > | | > | | > | | > | | | | > | | | | > [tap1] [tap2] [tap3] [tap4] > VM1 VM2(Private IP) VM3 VM4(Private IP) > [VNI1] [VNI2] [VNI1] [VNI2] >I used below command to create Host1 and Host2 VXLAN Tunnel >$ sudo ovs-vsctl add-port br10 vx1 -- set interface vx1 type=vxlan options:remote_ip= Host2_IP >$ sudo ovs-vsctl add-port br11 vx1 -- set interface vx1 type=vxlan options:remote_ip= Host1_IP >Use above command that VM could ping each other in the same subnet >Now,I have the Problem about : > >how should I to identify Virtual Machine VNI ? >I can use options:key = [number] to identify VNI , but how should I use openvswitch to distribute VNI for VM? >I have already confuse a few day , I will appreciate your reply . >Very Thanks your help : ) _______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss