H3C S6890 Series Openflow Command Reference
H3C S6890 Series Openflow Command Reference

H3C S6890 Series Openflow Command Reference

Hide thumbs Also See for S6890 Series:

Advertisement

Quick Links

H3C S6890 Switch Series
OpenFlow Command Reference
New H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 3606
Document version: 6W100-20201225

Advertisement

Table of Contents
loading

Summary of Contents for H3C S6890 Series

  • Page 1 H3C S6890 Switch Series OpenFlow Command Reference New H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 3606 Document version: 6W100-20201225...
  • Page 2 The information in this document is subject to change without notice. All contents in this document, including statements, information, and recommendations, are believed to be accurate, but they are presented without warranty of any kind, express or implied. H3C shall not be liable for technical or editorial errors or omissions contained herein.
  • Page 3 Preface This command reference describes the OpenFlow configuration commands. This preface includes the following topics about the documentation: • Audience. • Conventions. • Documentation feedback. Audience This documentation is intended for: • Network planners. • Field technical support and servicing engineers. •...
  • Page 4 Symbols Convention Description An alert that calls attention to important information that if not understood or followed WARNING! can result in personal injury. An alert that calls attention to important information that if not understood or followed CAUTION: can result in data loss, data corruption, or damage to hardware or software. An alert that calls attention to essential information.
  • Page 5 Documentation feedback You can e-mail your comments about product documentation to info@h3c.com. We appreciate your comments.
  • Page 6: Table Of Contents

    Contents OpenFlow commands ···················································································· 1 active instance ··········································································································································· 1 classification ··············································································································································· 1 controller address ······································································································································· 2 controller auxiliary ······································································································································ 3 controller connect interval ·························································································································· 4 controller echo-request interval ·················································································································· 5 controller mode ·········································································································································· 5 datapath-id ················································································································································· 6 default table-miss permit ···························································································································· 7 description ··················································································································································...
  • Page 7: Openflow Commands

    OpenFlow commands active instance to activate an OpenFlow instance. active instance to deactivate an OpenFlow instance. undo active instance Syntax active instance undo active instance Default An OpenFlow instance is not activated. Views OpenFlow instance view Predefined user roles network-admin Usage guidelines After an OpenFlow instance is created or modified, use this command to activate or reactivate the instance to make the instance take effect.
  • Page 8: Controller Address

    Parameters : Specifies the global mode. global : Specifies the VLAN mode. vlan : Specifies a VLAN ID in the range of 1 to 4094. vlan-id : Specifies a VLAN mask in the range of 0 to 4095. The default value is 4095. vlan-mask : Specifies the loosen mode.
  • Page 9: Controller Auxiliary

    Predefined user roles network-admin Parameters : Specifies a controller by its ID in the range of 0 to 63. controller-id : Specifies the IPv4 address of the controller. ip ipv4-address : Specifies the IPv6 address of the controller. ipv6 ipv6-address : Sets the port number used by the controller to establish TCP connections to port port-number the OpenFlow switch.
  • Page 10: Controller Connect Interval

    Syntax controller controller-id auxiliary auxiliary-id transport { tcp | udp | ssl ssl-policy-name } [ address { ip ipv4-address | ipv6 ipv6-address } ] [ port port-number ] undo controller id auxiliary auxiliary-id Default An OpenFlow instance does not have auxiliary connections to a controller. Views OpenFlow instance view Predefined user roles...
  • Page 11: Controller Echo-Request Interval

    Syntax controller connect interval interval undo controller connect interval Default The reconnection interval is 60 seconds. Views OpenFlow instance view Predefined user roles network-admin Parameters : Specifies the reconnection interval in the range of 10 to 120 seconds. interval Examples # Set the reconnection interval to 10 seconds.
  • Page 12: Datapath-Id

    to restore the default. undo controller mode Syntax controller mode { multiple | single } undo controller mode Default The controller connection mode is multiple. Views OpenFlow instance view Predefined user roles network-admin Parameters : Specifies the multiple mode. In multiple mode, the OpenFlow instance simultaneously multiple connects to all controllers specified for the OpenFlow instance.
  • Page 13: Default Table-Miss Permit

    Usage guidelines The datapath ID uniquely identifies an OpenFlow instance. Examples # Set the datapath ID to 123456 for OpenFlow instance 1. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] datapath-id 123456 default table-miss permit to configure the default action of table-miss flow entries to default table-miss permit forward packets to the normal pipeline.
  • Page 14: Display Openflow

    Parameters : Specifies a description, a case-sensitive string of 1 to 255 characters. text Examples # Configure the description as test-desc for OpenFlow instance 1. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] description test-desc display openflow to display controller information for an OpenFlow instance. display openflow Syntax display openflow instance instance-id { controller [ controller-id...
  • Page 15: Display Openflow Auxiliary

    Table 1 Command output Field Description Reconnection interval (in seconds) for an OpenFlow instance to reconnect to Reconnect interval all controllers. Connection detection interval (in seconds) at which an OpenFlow instance Echo interval sends an echo request message to all controllers. Controller IP address IP address of the controller.
  • Page 16 Parameters : Specifies an OpenFlow instance by its ID in the range of 1 to 4094. instance-id : Specifies a controller by its ID in the range of 0 to 63. controller-id : Specifies an auxiliary connection by its ID in the range of 1 to 255. auxiliary auxiliary-id Examples # Display auxiliary connection information for OpenFlow instance 100.
  • Page 17: Display Openflow Flow-Table

    display openflow flow-table to display flow table information for an OpenFlow display openflow flow-table instance. Syntax display openflow instance instance-id flow-table [ table-id Views Any view Predefined user roles network-admin network-operator Parameters : Specifies an OpenFlow instance by its ID in the range of 1 to 4094. instance-id : Specifies a flow table by its ID in the range of 0 to 254.
  • Page 18 Table 1 information: Table type: Extensibility, flow entry count: 2, total flow entry count: 2 MissRule (default) Flow entry information: cookie: 0x0, priority: 0, hard time: 0, idle time: 0, flags: none, byte count: --, packet count: 60 Match information: any Instruction information: Write actions: Drop...
  • Page 19 Field Description • no_pkt_counts—Does not count packets. • no_byte_counts—Does not count bytes. If the flow entry does not include any flags, this field displays none. byte count Number of bytes that have matched the flow entry. packet count Number of packets that have matched the flow entry. Match information Contents of the match field of the flow entry (see Table...
  • Page 20 Field Mask field Description UDP source port Mask UDP source port and mask. UDP destination port Mask UDP destination port and mask. Stream Control Transmission Protocol (SCTP) SCTP source port Mask source port and mask. SCTP destination port Mask SCTP destination port and mask. ICMPv4 type ICMPv4 type.
  • Page 21 Field Mask field Description example, DHCP. • Tag—Tag of a route. Table 5 Actions Field Description Drops the matched packet. This action is not defined in the OpenFlow Drop specifications. Sends the packet through a specific port. For more information about ports, see Output interface Table Specifies the max length of bytes to be taken from the packet and sent to the...
  • Page 22: Display Openflow Group

    display openflow group to display group information for an OpenFlow instance. display openflow group Syntax display openflow instance instance-id group [ group-id Views Any view Predefined user roles network-admin network-operator Parameters : Specifies an OpenFlow instance by its ID in the range of 1 to 4094. instance-id : Specifies a group by its ID in the range of 0 to 4294967040.
  • Page 23: Display Openflow Instance

    Table 7 Command output Field Description Group count Total number of group entries included in the OpenFlow instance. Type of the group entry: • All—Executes all buckets in the group. This group is used for multicast or broadcast forwarding. Type •...
  • Page 24 Configuration information: Description : test-desc Active status : Active Inactive configuration: None Active configuration: Classification: VLAN, loosen mode, total VLANs(1) In-band management VLAN, total VLANs(0) Empty VLAN Connect mode: Multiple MAC address learning: Disabled TCP DSCP value: 10 Flow table: Table ID(type): 0(MAC-IP), count: 0 Flow-entry max-limit: 65535 Datapath ID: 0x0000001234567891...
  • Page 25: Display Openflow Meter

    Field Description MAC address learning Whether MAC address learning is disabled: Enabled or Disabled. TCP DSCP value DSCP value for OpenFlow packets. Flow table Flow table information for the OpenFlow instance. Table ID(type) Type of the flow table: MAC-IP or Extensibility. count Total number of flow entries included in the current flow table.
  • Page 26 Parameters : Specifies an OpenFlow instance by its ID in the range of 1 to 4094. instance-id : Specifies a meter by its ID in the range of 1 to 4294901760. If you do not specify a meter meter-id ID, this command displays information about all meter entries for an OpenFlow instance. Examples # Display meter information for OpenFlow instance 100.
  • Page 27: Display Openflow Summary

    Field Description Burst size Length of the packet or byte burst to consider for applying the meter. Number of bytes processed by a band. Byte count If the statistics cannot be collected, this field displays two hyphens (--). Number of packets processed by a band. packet count If the statistics cannot be collected, this field displays two hyphens (--).
  • Page 28: Fail-Open Mode

    Field Description and the OpenFlow instance is in secure mode. • Failed(Sa)—The OpenFlow channel is disconnected from the controller, and the OpenFlow instance is in standalone mode. If the OpenFlow instance is not activated, this field displays a hyphen (-). Number of flow tables that the OpenFlow instance has.
  • Page 29: Flow-Table

    Syntax flow-entry max-limit limit-value undo flow-entry max-limit Default An OpenFlow instance supports a maximum of 65535 entries for an extensibility flow table. Views OpenFlow instance view Predefined user roles network-admin Parameters : Specifies the maximum number of flow entries. The value range for this argument is limit-value 1 to 65535.
  • Page 30: Forbidden Port

    Examples # Configure a MAC-IP flow table with ID 0 and an extensibility flow table with ID 1 for OpenFlow instance 1. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] flow-table mac-ip 0 extensibility 1 forbidden port to forbid an OpenFlow instance from reporting ports of the specified types to forbidden port controllers.
  • Page 31: Mac-Ip Dynamic-Mac Aware

    Default An OpenFlow instance is not configured to act as an SSL server to listen to controllers. Views OpenFlow instance view Predefined user roles network-admin Parameters port-number : Specifies the SSL server port number in the range of 1 to 65535. : Specifies the SSL server policy name, a case-insensitive string of 1 to 31 ssl ssl-policy-name characters.
  • Page 32: Mac-Learning Forbidden

    Examples # Configure OpenFlow instance 1 to support matching the dynamic MAC addresses in the flow entry query and deletion instructions sent from controllers. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] mac-ip dynamic-mac aware mac-learning forbidden to configure OpenFlow to forbid MAC address learning in mac-learning forbidden VLANs associated with an OpenFlow instance.
  • Page 33: Permit-Port-Type Member-Port

    Parameters : Specifies an OpenFlow instance by its ID in the range of 1 to 4094. instance-id Examples # Create OpenFlow instance 1 and enter OpenFlow instance view. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] permit-port-type member-port to allow the deployed flow tables to include link permit-port-type member-port aggregation member ports.
  • Page 34: Protocol-Packet Filter Slow

    Predefined user roles network-admin Usage guidelines Only MAC-IP flow tables support this feature. Examples # Configure OpenFlow instance 1 to allow dynamic ARP entries to overwrite OpenFlow ARP entries. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] precedence dynamic arp protocol-packet filter slow to configure an OpenFlow instance to drop slow protocol protocol-packet filter slow packets.
  • Page 35: Reset Openflow Instance Statistics

    Examples # Refresh Layer 3 flow entries in the MAC-IP flow tables for OpenFlow instance 1. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] refresh ip-flow reset openflow instance statistics to clear statistics on packets that a controller reset openflow instance statistics sends and receives for an OpenFlow instance.
  • Page 36 Examples # Set the DSCP value to 63 for OpenFlow packets. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] tcp dscp 63...

Table of Contents