引流:
1.引流一台虚机到table101;表示源MAC匹配, 重新转发流表101
ovs-ofctl -O OpenFlow13 add-flow ljq_net 'table=0,priority=100,dl_src=0c:da:41:1d:a2:b2,actions=move:OXM_OF_VLAN_VID[0..11]-\>OXM_OF_VLAN_VID[],resubmit(,101)'
或者写成:
ovs-ofctl -O OpenFlow13 add-flow ljq_net 'table=0,priority=100,dl_src=0c:da:41:1d:a2:b2,actions=mod_vlan_vid:2252,resubmit(,101)'
2.dst正常处理转发table101
ovs-ofctl -O OpenFlow13 add-flow ljq_net 'table=0,priority=100,dl_dst=0c:da:41:1d:a2:b2,actions=resubmit(,101)'
表示目的MAC匹配, 重新匹配流表101
dst流表条件转发:收到vlan tag 0 情况下转换为某一Vlan resubmit出去。
ovs-ofctl -O OpenFlow13 add-flow ljq_net 'table=0,priority=1002,