3
port port-number: Sets the port number used by the controller to establish TCP connections to the
OpenFlow switch. The value range for th e port number is 1 to 65535. The default val ue i s 6633.
local address: Specifies the source IP addr ess used to establish TCP connections to the controller.
When multiple routes are available between a controller and a switch, you can use this keyword to
configure a source IP address for the switch. When the switch restarts or an active/standby
switchover occurs, the switch can use the original route to reconnect to the controller without
selecting a new route.
ip local-ipv4-address: Specifies the source IPv4 address.
ipv6 local-ipv6-address: Specifies the source IPv6 address.
port local-port-number: Specifies the source port number in the range of 1 to 65535. If you do not
specify this option, the system automatically assigns a source port numbe r for establishing t he main
connection to the controller.
ssl ssl-policy-name: Specifies the SSL client policy that the controller uses to authenticate the
OpenFlow switch. The ssl-policy-name argument is a case-insensitive string of 1 to 31 characters.
You must configure a separate SSL client policy for the main connection to each controller.
vrf vrf-name: Specifies an MPLS L3VPN instance by its name, a case-sensitive string of 1 to 31
characters. If you do not specify a VRF name, the controller is in the public network.
Usage guidelines
You can specify multiple controllers for an OpenFlow switch. The OpenFlow channel between the
OpenFlow switch and each controller can have only one main connection.
The OpenFlow swit ch us es the main connection to a controller to exchange control messages with
the controller to perform the following operations:
• Receive flow table entries or data from the controller.
• Report information to the controller.
As a best practice, configure a unicast IP address for a controller. An OpenFlow switch might fail to
establish a connection with the controller t hat does not use a unicast IP address.
As a best practice, confi gure a unicast source IP addre ss that is the IP addres s of a port belonging to
the OpenFlow instance. If the source IP address is not a unicast address of a port belonging to the
OpenFlow instance, the OpenFlow switch might fail to establish a connection with the controller.
Examples
# Specify controller 1 for OpenFlow instance 1. The controller's IP address is 1.1.1.1 and the port
number is 6666.
<Sysname> system-view
[Sysname] openflow instance 1
[Sysname-of-inst-1] controller 1 address ip 1.1.1.1 port 6666
controller auxiliary
Use controller auxiliary to specify a controller for an OpenFlow switch and configure an auxiliary
connection to the controller.
Use undo controller auxiliary to delete t he specified auxiliary connection t o the specified controller .
Syntax
controller controller-id auxiliary auxiliary-id transport { tcp | udp | ssl ssl-policy-name } [ address
{ ip ipv4-address | ipv6 ipv6-address } ] [ port port-number ]
undo controller id auxiliary auxiliary-id