ovs-ofctl

1. 查看网桥br0流表规则
ovs-ofctl dump-flows br0
2. 添加一条流表规则,丢弃从端口2上发送的所有数据
ovs-ofctl add-flow br0 idle_timeout=120,in_port=2,actions=drop
3. 查看br0上所有的流表端口
ovs-ofctl dump-ports br0
4. 删除丢弃从端口2上发送的流表规则
ovs-ofctl del-flow br0 in_port=2
posted @ 2018-07-26 21:45  无聊的子木君  阅读(182)  评论(0编辑  收藏  举报