Configure acl in openvswitch

Source: Internet
Author: User
Tags openvswitch


Openvswitch: configure the acl of Openswitch using the ofctl tool. The command is as follows: add rule add-flow Switch <rule file add-flows switch rule file modify rule www.2cto.com mod-flows switch rule mod-flows switch <rule file Delete rule del-flows switch rule del-flows switch <rule file Replace-flows switch rule file example ovs-ofctl add-flow br0 dl_src = 52: 54: 00: aa: bb: cc, tp_dst = 80, idle_timeout = 0, actions = normalovs-ofctl add-flow br0 dl_dst = 52: 54: 00: aa: bb: cc, tp_src = 80, idle_timeout = 0, actions = normalovs-ofctl add-flow br0 dl_src = 52: 54: 00: aa: bb: cc, tp_dst = 53, idle_timeout = 0, actions = normalovs-ofctl add-flow br0 dl_dst = 52: 54: 00: aa: bb: cc, tp_src = 53, idle_timeout = 0, actions = normalovs-ofctl add-flow br0 dl_src = 52: 54: 00: aa: bb: cc, tp_dst = 67, idle_timeout = 0, actions = normalovs-ofctl add-flow br0 dl_dst = 52: 54: 00: aa: bb: cc, tp_dst = 68, idle_timeout = 0, actions = normal syntax description In_port = port # port can be viewed through the show command dl_vlan = VLAN more detailed description can be viewed documentation, you can also use man to view the switch configuration information ovs-ofctl show br0OFPT_FEATURES_REPLY (xid = 0x1): ver: 0x1, dpid: 0000001b21890bdcn_tables: 1, n_buffers: 256 features: Cap: 0x87, actions: 0 xfff 3 (dummy0): addr: 26: ed: 1a: ad: 57: 68 config: 0 state: 0 10 (tap0): addr: 32: a9: 03: 61: 77: e8 config: 0 state: 0 current: 10MB-FD COPPER 15 (p1p2): addr: 00: 1b: 21: 89: 0b: dd config: 0 state: 0 current: Running COPPER AUTO_NEG advertised: Running 100MB-HD 100MB-FD running COPPER AUTO_NEG supported: Running 100MB-HD 100MB-FD running COPPER AUTO_NEG 16 (p1p1): addr: 00: 1b: 21: 89: 0b: dc config: 0 state: 0 current: 1GB-FD COPPER AUTO_NEG advertised: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG supported: 10MB-HD 10MB-FD 100MB-HD 100MB-FD 1GB-FD COPPER AUTO_NEG LOCAL (br0): addr: 00: 1b: 21: 89: 0b: dc config: PORT_DOWN state: Fill (xid = 0x3 ): frags = normal miss_send_len = 0 view configured acl information ovs-ofctl dump-flows br0NXST_FLOW reply (xid = 0x4): cookie = 0x0, duration = 554.927 s, table = 0, n_packets = 0, n_bytes = 0, dl_dst = 52: 54: 00: aa: bb: cc actions = NORMAL cookie = 0x0, duration = 186846.192 s, table = 0, n_packets = 2936225, n_bytes = 2819308581, priority = 0 actions = NORMAL cookie = 0x0, duration = 555.702 s, table = 0, n_packets = 0, n_bytes = 0, dl_src = 52: 54: 00: aa: bb: cc actions = NORMAL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.