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.
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. •...
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.
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...
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.
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...
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.
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: •...
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>...
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.
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.
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 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.
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 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>...
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.
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.
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 —...
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.
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>...
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...
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.
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...
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...
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...
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.
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.
Need help?
Do you have a question about the OpenFlow S12500 AF Series and is the answer not in the manual?
Questions and answers