Configuring a controller

Its IP address and connection port identifies a controller. Each OpenFlow instance can have up to three controllers. OpenFlow controllers can be added or deleted using this command.

Syntax


openflow controller-id <id> [ip < ip-address >] [port < tcp-port >] controller-interface {vlan < vlan-id > | oobm}

no openflow controller-id <id>
id

OpenFlow controller identification number.

If the controller is not in use by any OpenFlow instances, the no removes the identified controller.

Range: 1 - 128 (1 - 16 for 2920 and 2930F)

ip-address

OpenFlow controller IP address.

tcp-port

Optional: Specify the port through which to connect to a controller.

Default: 6633

Range: 1024 – 65534

controller-interface

The no form of the command with this parameter deletes the OpenFlow controller connection.

vlan-id

Connect to the OpenFlow controller through the identified VLAN.

NOTE:

A VLAN that is a member of an OpenFlow instance cannot be added as an OpenFlow controller interface.

oobm

Connect to the OpenFlow controller through the OOBM interface. Applicable only for switches that have a separate out-of-band management (OOBM) port.