I tried trace and i saw this: root@akabra:/home/ubuntu# ovs-appctl ofproto/trace OFSWITCH dl_type=0x800,nw_dst=10.0.0.1 Bridge: OFSWITCH Flow: ip,metadata=0,in_port=ANY,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=00:00:00:00:00:00,nw_src=0.0.0.0,nw_dst=10.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=0 Rule: table=0 cookie=0 priority=501,ip,nw_dst=10.0.0.0/24 OpenFlow actions=output:3,mod_dl_dst:de:ad:ba:be:ba:be
Final flow: ip,metadata=0,in_port=ANY,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=de:ad:ba:be:ba:be,nw_src=0.0.0.0,nw_dst=10.0.0.1,nw_tos=0,nw_ecn=0,nw_ttl=0 Megaflow: skb_priority=0,ip,in_port=ANY,dl_dst=00:00:00:00:00:00,nw_dst= 10.0.0.0/24,nw_ecn=0,nw_frag=no Datapath actions: set(tunnel(tun_id=0x0,src=0.0.0.0,dst=152.27.111.15,tos=0x0,ttl=64,flags(df))),4 root@akabra:/home/ubuntu# I am sending out a packet with destination IP 10.0.0.1 Any ideas here? Thanks, Abhishek On Tue, Jul 14, 2015 at 8:26 PM, Abhishek Verma <abhishekv.ve...@gmail.com> wrote: > Hi, > > I have added a flow rule as follows: > > ovs-ofctl add-flow OFSWITCH priority=501,dl_type=0x800,nw_dst= > 10.0.0.0/24,actions=output:3,mod_dl_dst:de:ad:ba:be:ba:be > > I see that packets entering my bridge with dest_IP 10.0.0.1 hit this flow > rule and go out on the specified port. I however, dont see the the > destination MAC address being updated as expected. > > root@akabra:/home/ubuntu# ovs-ofctl dump-flows OFSWITCH > NXST_FLOW reply (xid=0x4): > cookie=0x0, duration=3522.895s, table=0, n_packets=3736, n_bytes=429792, > idle_age=0, priority=0 actions=NORMAL > cookie=0x0, duration=59.564s, table=0, n_packets=31, n_bytes=3038, > idle_age=24, priority=501,ip,nw_dst=10.0.0.0/24 > actions=output:3,mod_dl_dst:de:ad:ba:be:ba:be > root@akabra:/home/ubuntu# > > More Information: > > root@akabra:/home/ubuntu# ovs-ofctl show OFSWITCH > OFPT_FEATURES_REPLY (xid=0x2): dpid:00000ab2d52dcd55 > n_tables:254, n_buffers:256 > capabilities: FLOW_STATS TABLE_STATS PORT_STATS QUEUE_STATS ARP_MATCH_IP > actions: OUTPUT SET_VLAN_VID SET_VLAN_PCP STRIP_VLAN SET_DL_SRC SET_DL_DST > SET_NW_SRC SET_NW_DST SET_NW_TOS SET_TP_SRC SET_TP_DST ENQUEUE > 1(eth0): addr:0a:b2:d5:2d:cd:55 > config: 0 > state: 0 > speed: 0 Mbps now, 0 Mbps max > 2(veth1): addr:8e:f8:0f:1b:ad:4d > config: 0 > state: 0 > current: 10GB-FD COPPER > speed: 10000 Mbps now, 0 Mbps max > 3(gre0): addr:d6:75:ec:16:1f:86 > config: 0 > state: 0 > speed: 0 Mbps now, 0 Mbps max > LOCAL(OFSWITCH): addr:0a:b2:d5:2d:cd:55 > config: 0 > state: 0 > speed: 0 Mbps now, 0 Mbps max > OFPT_GET_CONFIG_REPLY (xid=0x4): frags=normal miss_send_len=0 > root@akabra:/home/ubuntu# > > OF port 3 is a GRE tunnel end-point. I expect to see the dest MAC of the > inner payload to get replaced with the MAC that i specify in the flow-rule. > > Is there something that i am missing? > > Thanks, Abhishek > > >
_______________________________________________ discuss mailing list discuss@openvswitch.org http://openvswitch.org/mailman/listinfo/discuss