Enabling OpenFlow on a specified interface

After you have enabled the OpenFlow feature on the device, you can enable OpenFlow on specific interfaces.

Note: You can enable OpenFlow on an interface only after you have enabled OpenFlow globally on the device. In addition, you must use individual CLI commands to enable OpenFlow on each interface. You cannot specify a range of ports when enabling OpenFlow on them.

To enable OpenFlow on specific interface, enter the following command:

device(config-if-e1000-1/1)# openflow enable layer2

Syntax: [no] openflow enable [layer2 | layer3 | layer23 [ hybrid-mode ] ]

You can specify Layer 2 or Layer 3 or both layers (as Layer23 matching mode) in OpenFlow hybrid port mode to be supported on the interface. By default, interfaces on these devices support Layer 2 matching mode. If you enable Layer 2 matching mode on the specified interface, only Layer 2 matching fields are supported on that interface.

To disable OpenFlow on the interface, use no form of the command.