From: Ben Pfaff Date: Tue, 23 Apr 2013 04:15:25 +0000 (-0700) Subject: FAQ: Explain how to drop packets. X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=0f5edef014cc4ca701dab6006e9f59d24adad266;p=sliver-openvswitch.git FAQ: Explain how to drop packets. This question keeps coming up. Signed-off-by: Ben Pfaff --- diff --git a/FAQ b/FAQ index e7249cf00..186f3ac4a 100644 --- a/FAQ +++ b/FAQ @@ -838,8 +838,8 @@ A: Do you have a controller configured on br0 (as the commands above can refer to the answer there for more information. -Controllers ------------ +Using OpenFlow (Manually or Via Controller) +------------------------------------------- Q: What versions of OpenFlow does Open vSwitch support? @@ -1100,6 +1100,23 @@ A: To debug network behavior problems, trace the path of a packet, problem. If not, then follow the ARP reply back to the origin, in reverse. +Q: How do I make a flow drop packets? + +A: An empty set of actions causes a packet to be dropped. You can + specify an empty set of actions with "actions=" on the ovs-ofctl + command line. For example: + + ovs-ofctl add-flow br0 priority=65535,actions= + + would cause every packet entering switch br0 to be dropped. + + You can write "drop" explicitly if you like. The effect is the + same. Thus, the following command also causes every packet + entering switch br0 to be dropped: + + ovs-ofctl add-flow br0 priority=65535,actions=drop + + Contact -------