beautypg.com

Openflow configuration example, Network requirements, Configuration procedure – H3C Technologies H3C S6800 Series Switches User Manual

Page 25: Verifying the configuration

background image

17

OpenFlow configuration example

Network requirements

As shown in

Figure 7

, 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 connected to OpenFlow instance 1 to have the controller manage the
OpenFlow switch.

Figure 7 Network diagram

Configuration procedure

# Create VLANs 4092 and 4094.

system-view

[Switch] vlan 4092

[Switch-vlan4092] port fortygige 1/0/1

[Switch-vlan4092] quit

[Switch] vlan 4094

[Switch-vlan4092] port fortygige 1/0/2

[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 loosen

# Specify the IP address for controller 1 as 192.168.49.49 and activate the OpenFlow instance.

[Switch-of-inst-1] controller 1 address ip 192.168.49.49

[Switch-of-inst-1] active instance

Verifying the configuration

# Display the detailed information for OpenFlow instance 1.

[Switch-of-inst-1] display openflow instance 1

Instance 1 information:

This manual is related to the following products: