------------------------------------------------------------------ Here the setup without Vlan tag +-------------+ | | | | | FAUCET | | | +------+------+ | | +------------+ +------+------+ +-------------+ | | | | | | | | | | | | | | | | | | | Host1 +----------+ LAGOPUS +----------+ Host2 | | | | | | | | 1.1.1.1 | | | | 1.1.1.2 | | | | | | | +------------+ +-------------+ +-------------+---- FAUCET config : -------------------------------------------------- version: 2 vlans: 100: name: "marc vlan" dps: marc: ofchannel_log: /root/ofchannel.log dp_id: 0x1 hardware: "Lagopus" interfaces: 1: native_vlan: 100 name: "port1" description: "host1" 2: native_vlan: 100 name: "port2" description: "host2" -------------------------------------------------- Log FAUCET : -------------------------------------------------- Mar 16 09:58:14 faucet.valve DEBUG Packet_in DPID 1 (0x1) src:90:e2:ba:5a:72:19 in_port:2 vid:100 Mar 16 09:58:14 faucet.valve INFO learned 2 hosts on vlan 100 Mar 16 09:58:14 faucet.valve DEBUG Packet_in DPID 1 (0x1) src:00:8c:fa:12:05:42 in_port:1 vid:100 Mar 16 09:58:14 faucet.valve INFO learned 2 hosts on vlan 100 Mar 16 09:58:15 faucet.valve DEBUG Packet_in DPID 1 (0x1) src:90:e2:ba:5a:72:19 in_port:2 vid:100 Mar 16 09:58:15 faucet.valve DEBUG Packet_in DPID 1 (0x1) src:00:8c:fa:12:05:42 in_port:1 vid:100 Mar 16 09:58:16 faucet.valve DEBUG Packet_in DPID 1 (0x1) src:90:e2:ba:5a:72:19 in_port:2 vid:100 -------------------------------------------------- Config file lagopus -------------------------------------------------- channel channel01 create -dst-addr 172.16.0.53 -protocol tcp controller controller01 create -channel channel01 -role equal -connection-type main interface interface01 create -type ethernet-dpdk-phy -port-number 0 interface interface02 create -type ethernet-dpdk-phy -port-number 1 port port01 create -interface interface01 port port02 create -interface interface02 bridge bridge01 create -controller controller01 -port port01 1 -port port02 2 -dpid 0x1 bridge bridge01 enable -------------------------------------------------- Lagopus show flow -------------------------------------------------- Lagosh> show flow [ { "name": "bridge01", "tables": [ { "table": 0, "flows": [ { "priority": 9099, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "actions": [ { "goto_table": 1 } ], "stats": { "packet_count": 1421, "byte_count": 85260 } }, { "priority": 9099, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "actions": [ { "goto_table": 1 } ], "stats": { "packet_count": 1439, "byte_count": 86340 } }, { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 1, "flows": [ { "priority": 9099, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "dl_src": "ff:ff:ff:ff:ff:ff", "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9099, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "dl_dst": "01:80:c2:00:00:00", "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9099, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "dl_dst": "01:00:0c:cc:cc:cd", "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9099, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "dl_type": 35020, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9001, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "dl_src": "0e:00:00:00:00:01", "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9000, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "vlan_vid": "0", "actions": [ { "apply_actions": [ { "push_vlan": 33024 }, { "vlan_vid": 4196 } ] }, { "goto_table": 3 } ], "stats": { "packet_count": 1421, "byte_count": 85260 } }, { "priority": 9000, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "vlan_vid": "0", "actions": [ { "apply_actions": [ { "push_vlan": 33024 }, { "vlan_vid": 4196 } ] }, { "goto_table": 3 } ], "stats": { "packet_count": 1439, "byte_count": 86340 } }, { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 2, "flows": [ { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 3, "flows": [ { "priority": 9098, "idle_timeout": 0, "hard_timeout": 300, "cookie": 1524372928, "in_port": 1, "dl_src": "00:8c:fa:12:05:42", "vlan_vid": "4196", "actions": [ { "goto_table": 6 } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9098, "idle_timeout": 0, "hard_timeout": 300, "cookie": 1524372928, "in_port": 2, "dl_src": "90:e2:ba:5a:72:19", "vlan_vid": "4196", "actions": [ { "goto_table": 6 } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9000, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [ { "apply_actions": [ { "output": "controller" } ] }, { "goto_table": 6 } ], "stats": { "packet_count": 2860, "byte_count": 183040 } }, { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 4, "flows": [ { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 5, "flows": [ { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 6, "flows": [ { "priority": 9099, "idle_timeout": 300, "hard_timeout": 0, "cookie": 1524372928, "dl_dst": "00:8c:fa:12:05:42", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 1 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9099, "idle_timeout": 300, "hard_timeout": 0, "cookie": 1524372928, "dl_dst": "90:e2:ba:5a:72:19", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 2 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9000, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [ { "goto_table": 7 } ], "stats": { "packet_count": 2860, "byte_count": 183040 } }, { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 0, "byte_count": 0 } } ] }, { "table": 7, "flows": [ { "priority": 9008, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "dl_dst": "ff:ff:ff:ff:ff:ff", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 2 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9008, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "dl_dst": "ff:ff:ff:ff:ff:ff", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 1 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9006, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "dl_dst": "33:33:00:00:00:00/ff:ff:00:00:00:00", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 2 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9006, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "dl_dst": "33:33:00:00:00:00/ff:ff:00:00:00:00", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 1 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9004, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "dl_dst": "01:00:5e:00:00:00/ff:ff:ff:00:00:00", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 2 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9004, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "dl_dst": "01:00:5e:00:00:00/ff:ff:ff:00:00:00", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 1 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9002, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "dl_dst": "01:80:c2:00:00:00/ff:ff:ff:00:00:00", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 2 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9002, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "dl_dst": "01:80:c2:00:00:00/ff:ff:ff:00:00:00", "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 1 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9000, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 1, "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 2 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 9000, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "in_port": 2, "vlan_vid": "4196", "actions": [ { "apply_actions": [ { "strip_vlan": null }, { "output": 1 } ] } ], "stats": { "packet_count": 0, "byte_count": 0 } }, { "priority": 0, "idle_timeout": 0, "hard_timeout": 0, "cookie": 1524372928, "actions": [], "stats": { "packet_count": 2860, "byte_count": 183040 } } ] } ], "is-enabled": true } ] Lagosh>