Users Guide

Table Of Contents
The following lists the minimum configuration you need to establish a connection between the OpenFlow controller and a logical switch
instance:
1. Enter the OPENFLOW configuration mode.
OS10# configure terminal
OS10 (config)# openflow
OS10 (config-openflow)#
2. Enable the OpenFlow-only mode.
OS10 (config-openflow)# mode openflow-only
Reload the switch. Enter yes to enable OpenFlow-only mode.
NOTE: When the switch starts up in OpenFlow mode, it disables all Layer 2 (L2) and Layer 3 (L3) protocols. Many
CLI commands are not available in OpenFlow-only mode. For a list of available commands in OpenFlow-only mode,
see OpenFlow-only mode commands.
3. Configure a logical switch instance.
a. Option 1; for Out of Band (OOB) management:
1. Configure an IP address for the management port. Ensure that there is IP connectivity between the switch and the controller.
OS10# configure terminal
OS10 (config)# interface management 1/1/1
OS10 (conf-if-ma-1/1/1)# ip address 11.1.1.1/24
OS10 (conf-if-ma-1/1/1)# no shutdown
OS10 (conf-if-ma-1/1/1)# exit
2. Configure the logical switch instance, of-switch-1.
OS10# configure terminal
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
b. Option 2; for in-band management:
1. Configure one of the front-panel ports as the management port.
OS10# configure terminal
OS10 (config)# openflow
OS10 (config-openflow)# in-band-mgmt interface ethernet 1/1/1
OS10 (config-openflow)#
2. Configure an IPv4 address on the front-panel management port.
OS10# configure terminal
OS10 (config)# interface ethernet 1/1/1
OS10 (conf-if-eth1/1/1)# ip address 11.1.1.1/24
OS10 (conf-if-eth1/1/1)# no shutdown
3. Configure the logical switch instance, of-switch-1.
OS10# configure terminal
OS10 (config)# openflow
OS10 (config-openflow)# switch of-switch-1
4. Configure one or more OpenFlow controllers with either IPv4 or IPv6 addresses to establish a connection with the logical switch
instance. You can configure up to eight OpenFlow controllers.
OS10 (config-openflow-switch)# controller ipv4 ip-address port port-id
OS10 (config-openflow-switch)# controller ipv6 ipv6-address port port-id
OS10 (config-openflow-switch)# controller ipv4 10.1.1.1 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.1.8 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.1.12 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.2.17 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.23.12 port 6633
OS10 (config-openflow-switch)# controller ipv4 10.1.99.121 port 6633
OpenFlow
1005