beautypg.com

Configuring openflow instances, Creating an openflow instance, Configuring the openflow instance scope – H3C Technologies H3C S12500-X Series Switches User Manual

Page 12

background image

6

Configuring OpenFlow instances

To use LLDP together with OpenFlow, you must enable LLDP globally on OpenFlow switches. To prevent
LLDP from affecting topology discovery of OpenFlow controllers, H3C recommends that you disable LLDP

on ports of OpenFlow instances. For more information about LLDP, see Layer 2—LAN Switching

Configuration Guide.

Creating an OpenFlow instance

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create an OpenFlow instance
and enter OpenFlow instance

view.

openflow instance instance-id

By default, no OpenFlow instance
exists.

3.

(Optional.) Set a description
for the OpenFlow instance.

description text

By default, an OpenFlow instance
does not have a description.

Configuring the OpenFlow instance scope

By default, an OpenFlow instance is in VLAN mode. When an OpenFlow instance is associated with

VLANs, the flow entries take effect only on packets within those VLANs.
When the global mode is enabled for an OpenFlow instance, the flow entries take effect on packets

within the network. All interfaces on the device belong to the OpenFlow instance, including VLAN
interfaces, Layer 2 or Layer 3 Ethernet interfaces, and tunnel interfaces.
When you associate an OpenFlow instance with VLANs, follow these guidelines:

For VLAN traffic to be correctly processed, do not associate multiple OpenFlow instances with the
same VLAN.

To ensure correct traffic processing, assign an Ethernet interface to only one OpenFlow instance.

When you activate an OpenFlow instance that is associated with non-existent VLANs, the system
automatically creates the VLANs. Do not delete any of these VLANs after the OpenFlow instance is

activated.

To associate an OpenFlow instance with VLANs:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Enter OpenFlow instance

view.

openflow instance instance-id N/A

3.

Configure the OpenFlow

instance scope.

Enable the global mode for the

OpenFlow instance:
classification global

Associate the OpenFlow

instance with VLANs.
classification vlan vlan-id

[ mask vlan-mask ] [ loosen ]

Use either command.
By default, an OpenFlow instance
is not associated with any VLANs.
If you execute the classification

global and classification vlan
commands multiple times, the most

recent configuration takes effect.

This manual is related to the following products: