[ovs-discuss] How to select a vxlan send packet?

2013-03-21 Thread Guangvy
Hi, Can someone help me ? The following is configurations, and wan to make the packets from vnet0, send out with vxlan1000 not with vxlan2000, just use one vxlan. My result is both tunnels send out the packet, so how to configure? Thanks. Bridge br1 Port "patch1" Int

Re: [ovs-discuss] openvswitch on UML

2013-03-21 Thread ratheesh kannoth
On Thu, Mar 21, 2013 at 10:21 PM, Justin Pettit wrote: > I'd think you'd want to run that command with "--detach". You may want to > look at the INSTALL file that comes with OVS: > > > http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL > > --Justin It works.

Re: [ovs-discuss] Match the flow entry in OVS

2013-03-21 Thread Ben Pfaff
On Fri, Mar 22, 2013 at 12:35:40PM +0800, Hong Wayne wrote: > In my scenario, I have two machines and one OVS(1.9) connect to POX > Controller. > > Machine 1 (IP): 192.168.15.5 netmask:255.255.255.252 (Port 42) > Machine 2 (IP): 192.168.15.6 netmask:255.255.255.252 (Port:2) > > And I modify POX t

[ovs-discuss] Match the flow entry in OVS

2013-03-21 Thread Hong Wayne
Dear all: In my scenario, I have two machines and one OVS(1.9) connect to POX Controller. Machine 1 (IP): 192.168.15.5 netmask:255.255.255.252 (Port 42) Machine 2 (IP): 192.168.15.6 netmask:255.255.255.252 (Port:2) And I modify POX to set only one flow rule like below: cookie=0x0, duration=14.0

Re: [ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread Ben Pfaff
On Fri, Mar 22, 2013 at 08:37:47AM +0800, ? wrote: > > > ?? 2013-3-22??8:13??"Ben Pfaff" ?? > > > On Fri, Mar 22, 2013 at 08:09:51AM +0800, ? wrote: > >> For you suggestion, did you mean to connect the eth0 to a trunk port > >> of physical switch ? > > > > Presumably y

Re: [ovs-discuss] Log

2013-03-21 Thread Fang
Thank you.I will try. At 2013-03-22 02:22:58,"Ben Pfaff" wrote: >On Thu, Mar 21, 2013 at 03:31:42PM +0800, Fang wrote: >> Now I set >> ovs-ofctl -v --log-file add-flow br0 >> cookie=10,nw_src=192.168.0.171,ip,actions=drop >> I can't find the information of packets ofctl drops from ovs-

Re: [ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread 斯佩峰
在 2013-3-22,上午8:13,"Ben Pfaff" 写道: > On Fri, Mar 22, 2013 at 08:09:51AM +0800, ? wrote: >> For you suggestion, did you mean to connect the eth0 to a trunk port >> of physical switch ? > > Presumably you already did that, otherwise I don't know how you expected > to make connectivity w

Re: [ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread Ben Pfaff
On Fri, Mar 22, 2013 at 08:09:51AM +0800, ? wrote: > For you suggestion, did you mean to connect the eth0 to a trunk port > of physical switch ? Presumably you already did that, otherwise I don't know how you expected to make connectivity work from the VM to outside the hypervisor. > In

Re: [ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread 斯佩峰
Sorry for dropping the list, I will take care next time. For you suggestion, did you mean to connect the eth0 to a trunk port of physical switch ? In addition, I got below command from google but still have no chance to try it. Is it possible to solve my problem? # ebtables -t broute -A BROUTIN

Re: [ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread Ben Pfaff
Please don't drop the list. You could use a "native VLAN" trunk port. I suspect it won't do what you want though. On Fri, Mar 22, 2013 at 07:07:23AM +0800, ? wrote: > Thanks Ben! > > Then, is it possible to configure the openvswitch to remove the vlan tag when > the packets go to exter

Re: [ovs-discuss] Set metadata field

2013-03-21 Thread Ben Pfaff
On Thu, Mar 21, 2013 at 09:07:08AM +0200, Liran Schour wrote: > > I try to pass metadata to the controller through the following flow: >ovs-ofctl add-flow br-int "in_port=5 priority=2 actions=set_field:123-> >metadata,controller(reason=no_match)" > > I do see the following flow when I do

Re: [ovs-discuss] Real time queue stats from ovs-db

2013-03-21 Thread Ben Pfaff
On Wed, Mar 20, 2013 at 03:01:28PM -0700, Geetha S wrote: > I have some queues in my Queue table (ovs db). As and when packets flow > through the queue interface, I want an event to reach the controller by > giving information about the queue stats at that instance of time. I don't think we have a

Re: [ovs-discuss] Log

2013-03-21 Thread Ben Pfaff
On Thu, Mar 21, 2013 at 03:31:42PM +0800, Fang wrote: > Now I set > ovs-ofctl -v --log-file add-flow br0 > cookie=10,nw_src=192.168.0.171,ip,actions=drop > I can't find the information of packets ofctl drops from ovs-ofctl.log. ovs-ofctl just tells the switch to add a flow to the OpenFlow tabl

Re: [ovs-discuss] brcompat_mod and brcompat, different ?

2013-03-21 Thread Ben Pfaff
On Thu, Mar 21, 2013 at 11:46:32PM +0800, changliwe...@gmail.com wrote: > Is there the different between brcompat_mod with brcompat? We changed the name because _mod was redundant (the .ko suffix already means that it is a module). > I use "module-assistant auto-install openvswitch-datapath" m

Re: [ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread Ben Pfaff
On Thu, Mar 21, 2013 at 09:14:16PM +0800, 斯佩峰 wrote: > Hello all,My problem is that after configuring the VLAN in VM, it can't > connect to external network.Here is my test environment: . One physical > machine installed with ubuntu 12.04, which has one network device (eth0) and > is able to

Re: [ovs-discuss] openvswitch on UML

2013-03-21 Thread Justin Pettit
I'd think you'd want to run that command with "--detach". You may want to look at the INSTALL file that comes with OVS: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=blob_plain;f=INSTALL --Justin On Mar 21, 2013, at 7:13 AM, ratheesh kannoth wrote: > i compiled 2.6.34

[ovs-discuss] brcompat_mod and brcompat, different ?

2013-03-21 Thread
Is there the different between brcompat_mod with brcompat? root@node2:~# /etc/init.d/openvswitch-switch restart * ovs-brcompatd is not running * Killing ovs-vswitchd (13619) * Killing ovsdb-server (13610) * Starting ovsdb-server * Configuring Open vSwitch system IDs * Starting ovs-vswitchd

[ovs-discuss] openvswitch on UML

2013-03-21 Thread ratheesh kannoth
i compiled 2.6.34 uml kernel and tried to run openvswitch as specified in https://www.os3.nl/2009-2010/students/arthur_van_kleef/openflow But ./usr/local/sbin/ovsdb-server /usr/local/etc/ovs-vswitchd.conf.db --remote=punix:/usr/local/var/run/openvswitch/db.sock gets hang I dont see any error me

[ovs-discuss] VM with VLAN can't connect to external network

2013-03-21 Thread 斯佩峰
Hello all,My problem is that after configuring the VLAN in VM, it can't connect to external network.Here is my test environment: . One physical machine installed with ubuntu 12.04, which has one network device (eth0) and is able to access internet. . openvswitch 1.9.0. . Four VMs (V

Re: [ovs-discuss] Allow returning traffic in a filtered VM

2013-03-21 Thread Oriol Martí
Does anybody know? On 03/18/2013 04:47 PM, Oriol Martí wrote: Hi Ben, first of all, thank you for your reply, maybe I'm wrong but I think this is not correct, I want my VM can send traffic to everywhere, this is permitted with my last rules, but the problem is caused because all incoming traff

[ovs-discuss] Log

2013-03-21 Thread Fang
Hello, Now I set ovs-ofctl -v --log-file add-flow br0 cookie=10,nw_src=192.168.0.171,ip,actions=drop I can't find the information of packets ofctl drops from ovs-ofctl.log. How to get the information of packets processed by ofctl. Like iptables.log Mar 20 17:02:09 chenze kernel: [ 6053.078045

[ovs-discuss] Set metadata field

2013-03-21 Thread Liran Schour
I try to pass metadata to the controller through the following flow: ovs-ofctl add-flow br-int "in_port=5 priority=2 actions=set_field:123-> metadata,controller(reason=no_match)" I do see the following flow when I do dump-flows: cookie=0x0, duration=310.921s, table=0, n_packets=0, n_byte