12
Task Command
Display controller information for an OpenFlow
instance.
display openflow
instance
instance-id
controller
Display group table information for an OpenFlow
instance.
display openflow
instance
instance-id
group
[
group-id
]
Display meter information for an OpenFlow instance.
display openflow instance
instance-id
meter
[
meter-id
]
Display summary OpenFlow instance information.
display openflow summary
OpenFlow configuration example
Network requirements
As shown in
, perform the following tasks on the switch to enable OpenFlow communication with
the controller in specific VLANs:
•
Create OpenFlow instance 1, associate VLANs 4092 and 4094 with the OpenFlow instance, and
activate the OpenFlow instance.
•
Configure the controller's IP address to have the controller manage the OpenFlow switch.
Figure 7
Network diagram
Configuration procedure
# Create VLANs 4092 and 4094.
<Switch> system-view
[Switch] vlan 4092
[Switch-vlan4092] quit
[Switch] vlan 4094
[Switch-vlan4092] quit
# Create OpenFlow instance 1 and associate VLANs with it.
[Switch] openflow instance 1
[Switch-of-inst-1] classification vlan 4092 mask 4093
# Specify a controller for the OpenFlow instance and activate the instance.
[Switch-of-inst-1] controller 1 address ip 192.168.49.49
[Switch-of-inst-1] active instance