3
ip
ip-address
: Specifies the IPv4 address of the controller.
ipv6
ipv6-address
: Specifies the IPv6 address of the controller.
port
port-number
: Sets the port number used to establish TCP connections to the controller. The
value range for the port number is 1 to 65535. The default value is 6633.
local address
: Specifies the source IP address 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 a master/subordinate
switchover occurs, the switch can use the original route to reconnect to the controller without
selecting a new route.
ip
local-ip-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 a source port number, the system automatically assigns a source port number during
connection establishment.
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.
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 this option, the controller belongs to 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 switch uses 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. Otherwise, an OpenFlow switch
might fail to establish a connection with the controller.
As a best practice, configure a unicast source IP address that is the IP address of a port belonging to
the OpenFlow instance. Otherwise, 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 connect interval
Use
controller connect interval
to set the reconnection interval for an OpenFlow instance.
Use
undo
controller connect interval
to restore the default.
Syntax
controller connect interval
interval-value
undo
controller connect interval