7
•
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.
Associate the OpenFlow
instance with VLANs.
classification vlan
vlan-id
[
mask
vlan-mask
] [
loosen
]
By default, an OpenFlow instance
is not associated with any VLAN.
Configuring flow table IDs
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 flow table type
and the flow table ID.
flow-table
{
extensibility
table-id
|
mac-ip
table-id
}*
By default, an OpenFlow instance
contains one extensibility flow
table with an ID of 0.
An OpenFlow instance supports
only one MAC-IP flow table and
one extensibility flow table. If you
execute the command multiple
times, the most recent
configuration takes effect.
The ID of the MAC-IP flow table
must be smaller than that of the
extensibility flow table.
Setting the controller mode for an OpenFlow instance
An OpenFlow instance can connect to one or more controllers, depending on the controller mode the
OpenFlow instance uses:
•
Single
—The OpenFlow instance connects to only one controller at a time. When communication
with the current controller fails, the OpenFlow instance uses another controller.
•
Multiple
—The OpenFlow instance can simultaneously connect to multiple controllers. When
communication with any controller fails, the OpenFlow instance attempts to reconnect to the
controller after a reconnection interval.
To set the controller mode for an OpenFlow instance:
Step Command
Remarks
1.
Enter system view.
system-view
N/A