Advertisement

Quick Links

H3C S12500X-AF & S12500-X & S9800
Switch Series
OpenFlow Command Reference
New H3C Technologies Co., Ltd.
http://www.h3c.com
Software version: Release 2719P02 and later
Document version: 6W106-20240916

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the OpenFlow S12500 AF Series and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C OpenFlow S12500 AF Series

  • Page 1 H3C S12500X-AF & S12500-X & S9800 Switch Series OpenFlow Command Reference New H3C Technologies Co., Ltd. http://www.h3c.com Software version: Release 2719P02 and later Document version: 6W106-20240916...
  • 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: Command Conventions

    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: Network Topology Icons

    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

    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 ······································································································································ 4 controller connect interval ·························································································································· 5 controller echo-request interval ·················································································································· 5 controller mode ·········································································································································· 6 data-plane enable ······································································································································ 6 datapath-id ················································································································································· 7 default table-miss permit ····························································································································...
  • 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 mdc-admin Usage guidelines After an OpenFlow instance is created or modified, use this command to activate or reactivate the...
  • Page 8: Controller Address

    mdc-admin 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 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 Auxiliary

    controller auxiliary to specify a controller for an OpenFlow switch and configure an controller auxiliary auxiliary connection to the controller. to delete the specified auxiliary connection to the specified undo controller auxiliary controller. NOTE: This command is supported only in R2719 and later. Syntax controller controller-id auxiliary auxiliary-id transport { tcp | udp | ssl ssl-policy-name } [ address { ip ipv4-address | ipv6 ipv6-address } ] [ port...
  • Page 11: Controller Connect Interval

    Examples # Specify controller 1 for OpenFlow instance 1 and configure auxiliary connection 1 to the controller. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-oTd [(ll4(n)1(s)-r)-14(e)1(1)-14(014(ta)au4(ta)x)1(n)-14(l)1(n)-14(ar)-14(y)-12(nf)-.
  • Page 12: Controller Mode

    Predefined user roles network-admin mdc-admin Parameters : Specifies the connection detection interval in the range of 1 to 10 seconds. interval Examples # Set the connection detection interval to 10 seconds for OpenFlow instance 1. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] controller echo-request interval 10 controller mode to set the controller connection mode for an OpenFlow instance.
  • Page 13: Datapath-Id

    NOTE: This command is supported only in R2719 and later. Syntax data-plane enable undo data-plane enable Default The OpenFlow data plane forwarding feature is disabled. Views OpenFlow instance view Predefined user roles network-admin mdc-admin Usage guidelines In a forwarding-control separated network, you must enable this feature to deliver the following mappings to the controller: •...
  • Page 14: Default Table-Miss Permit

    mdc-admin Parameters : Specifies the datapath ID for the OpenFlow instance, in the range of 1 to ffffffffffffffff in hexadecimal format. Usage guidelines The datapath ID uniquely identifies an OpenFlow instance. Examples # Set the datapath ID to 123456 for OpenFlow instance 1. <Sysname>...
  • Page 15: Display Openflow

    Views OpenFlow instance view Predefined user roles network-admin mdc-admin 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.
  • Page 16: Display Openflow Auxiliary

    Local port : 5566 Controller role : Equal Connect type : TCP Connect state : Established Packets sent Packets received SSL policy : -- VRF name : -- Table 1 Command output Field Description Reconnection interval (in seconds) for an OpenFlow instance to reconnect to Reconnect interval all controllers.
  • Page 17 Syntax display openflow instance instance-id auxiliary controller-id [ auxiliary auxiliary-id ] ] Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator 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.
  • Page 18: Display Openflow Flow-Table

    Field Description Type of the connection between the OpenFlow instance and the controller: Connect type TCP UDP, or SSL. State of the connection between the OpenFlow instance and the controller: Connect state Idle or Established. Packets sent Number of packets that have been sent to the controller. Packets received Number of packets that have been received from the controller.
  • Page 19 Flow entry rule 1 information: cookie: 0x0, priority: 1, hard time: 0, idle time: 0, flags: none, byte count: --, packet count: -- Match information: Ethernet destination MAC address: 0000-0000-0001 Ethernet destination MAC address mask: ffff-ffff-ffff VLAN ID: 100, mask: 0xfff Instruction information: Write actions: Output interface: FGE1/0/4...
  • Page 20 Field Description displays Not effective. cookie Cookie ID of the flow entry. priority Priority of the flow entry. The larger the value, the higher the priority. Hard timeout of the flow entry, in seconds. The flow entry is removed when the timer times out, whether or not the flow entry matches any data stream.
  • Page 21 Field Mask field Description IP protocol IPv4 or IPv6 protocol number. IPv4 source address Mask IPv4 source address and mask. IPv4 destination address Mask IPv4 destination address and mask. TCP source port Mask TCP source port and mask. TCP destination port Mask TCP destination port and mask.
  • Page 22: Display Openflow Group

    Port name Ingress port Output port Description Controller Supported. Supported. Sending the packet to the controller. Local Supported. Supported. Sending the packet to the local CPU. port name Supported. Supported. Valid physical or logical port on the switch. display openflow group to display group information for an OpenFlow instance.
  • Page 23: Display Openflow Instance

    Group entry 104: Type: All, byte count: 0, packet count: 0 Bucket 1 information: Action count 1, watch port: any, watch group: any Byte count --, packet count -- Output interface: Controller, send length: 128 bytes Referenced information: Count: 0 Table 7 Command output Field Description...
  • Page 24 Parameters : Specifies an OpenFlow instance by its ID in the range of 1 to 4094. If you do not instance-id specify an instance ID, this command displays detailed information about all OpenFlow instances. Examples # Display detailed information about OpenFlow instance 100. <Sysname>...
  • Page 25: Display Openflow Meter

    Field Description In-band management VLAN, Inband management VLANs and the total number of them. total VLANs Connection mode of the controller: • Single—The OpenFlow instance connects to only one controller at a Connect mode time. • Multiple—The OpenFlow instance can simultaneously connect to multiple controllers.
  • Page 26 Views Any view Predefined user roles network-admin network-operator mdc-admin mdc-operator 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.
  • Page 27: Display Openflow Summary

    Field Description packet or byte burst is determined by the burst size. • STATS—Meter statistics are collected. Band Bands contained in the meter. Type of the band: • drop—Discard the packet. Type • dscp_remark—Modify the drop precedence of the DSCP field in the IP header of the packet.
  • Page 28: Fail-Open Mode

    I f t h e O p e n F l o w i n s t a n c e i s n o t a c t i v a t e d , t h i s f i e l d d i s p l a y s a h y p h e n ( - ) . C h a n n e l m o d e . T a b l e 1 0 C o m m a n d o u t p u t I n a c t i v e —...
  • Page 29: Flow-Entry Max-Limit

    Parameters : Configures the OpenFlow switch to use flow tables for traffic forwarding after it is secure disconnected from all controllers. The OpenFlow switch does not remove unexpired flow entries. : Configures the OpenFlow switch to use flow tables for traffic forwarding after it is smart disconnected from all controllers.
  • Page 30: Flow-Log Disable

    flow-log disable to disable logging for successful flow table modifications. flow-log disable to restore the default. undo flow-log disable Syntax flow-log disable undo flow-log disable Default Logging for successful flow table modifications is enabled. Views OpenFlow instance view Predefined user roles network-admin mdc-admin Examples...
  • Page 31: Forbidden Packet-In Arp Controller

    Usage guidelines If you execute this command multiple times, the most recent configuration takes effect. The ID you enter for an extensibility flow table must be larger than the ID for an MAC-IP flow table. Examples # Create a MAC-IP flow table with ID 0 and an extensibility flow table with ID 1 for OpenFlow instance <Sysname>...
  • Page 32: In-Band Management Vlan

    Syntax forbidden port { l3-physical-interface | vlan-interface | vsi-interface } undo forbidden port Default No port types are prevented from being reported to the controllers. All ports that belong to an OpenFlow instance are reported to the controllers. Views OpenFlow instance view Predefined user roles network-admin mdc-admin...
  • Page 33: Listening Port

    mdc-admin Parameters : Specifies a VLAN ID in the range of 1 to 4094. vlan-id Usage guidelines Traffic in inband management VLANs is forwarded in the normal forwarding process for an OpenFlow instance to establish secure connections to controllers. Examples # Configure VLAN 10 as the inband management VLAN for OpenFlow instance 1.
  • Page 34: Loop-Protection Enable

    [Sysname-of-inst-1] listening port 20000 ssl ssl_name loop-protection enable to enable loop guard for an OpenFlow instance. loop-protection enable undo loop-protection enable to restore the default. Syntax loop-protection enable undo loop-protection enable Default Loop guard iu Tw 0.602 0 Td 7 9.96 100fd Tw 0.d for an OpenFl39(o)-12(w)-3( i)-9(ns)-8(t)-1(a(c)-8(e.)]TJ 0 Tc...
  • Page 35: Mac-Learning Forbidden

    mdc-admin Usage guidelines This command takes effect only on MAC-IP flow tables. Examples # Configure OpenFlow instance 1 to support matching the dynamic MAC addresses in the query and deletion flow entry 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...
  • Page 36: Openflow Shutdown

    Views System view Predefined user roles network admin mdc admin Parameters Specifies an OpenFlow instance by its ID in the range of 1 to 4094. instance Examples Create OpenFlow instance 1 and enter OpenFlow instance view. Sysname> system view [Sysname] openflow instance 1 [Sysname inst openflow shutdown...
  • Page 37: Permit-Port-Type Member-Port

    permit-port-type member-port to allow link aggregation member ports to be in the permit-port-type member-port deployed flow tables. to restore the default. undo permit-port-type Syntax permit-port-type member-port undo permit-port-type Default Link aggregation member ports cannot be in the deployed flow tables. Views OpenFlow instance view Predefined user roles...
  • Page 38: Protocol-Packet Filter Slow

    <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] precedence dynamic arp protocol-packet filter slow protocol-packet filter slow to configure an OpenFlow instance to drop slow protocol packet Tw - -ne(14(S)-14(y)1(Td 0 Td ( )Tj EMC /P <</MCID-0(et)-(l)771 )]TJ -0 0 9.96 100.56 651.48 Tm a1(fr25-1Fes25-1Fh iT.008 Tw 0.592 06.02(r sl)2(to)11)Tj -3(s)-8(e )]TJ T591-002 Tc rrotoce0.001 08 0...
  • Page 39: Reset Openflow Instance Statistics

    Examples # Refresh all 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 40: Tcp-Connection Backup

    Parameters : Specifies a DSCP value for OpenFlow packets, in the range of 0 to 63. dscp-value Examples # Set the DSCP value to 63 for OpenFlow packets. <Sysname> system-view [Sysname] openflow instance 1 [Sysname-of-inst-1] tcp dscp 63 tcp-connection backup to enable OpenFlow connection backup.

This manual is also suitable for:

Openflow s12500 seriesOpenflow s9800 series

Table of Contents