Configuring Support for OpenFlow on MX Series Routers
The following sections configure MX Series routers to support OpenFlow using interfaces that participate solely in OpenFlow. For information about configuring hybrid interfaces, which concurrently support OpenFlow logical interfaces and non-OpenFlow logical interfaces, see Configuring OpenFlow Hybrid Interfaces on MX Series Routers.
Before configuring support for OpenFlow, ensure that the router meets the following requirements:
MX Series router running Junos OS Release 13.3 or a later release
OpenFlow software package with a software package release that matches the Junos OS release of the device on which it is installed
TCP connection between the router and an OpenFlow controller
Connection between the management interface of the router and the management network, which is reachable from the controller IP address
Configuration tasks are described in detail in the following sections:
Configuring the OpenFlow Interfaces
You must configure interfaces participating in OpenFlow
as Layer 2 interfaces. On MX Series routers, you configure the interfaces
with encapsulation ethernet-bridge
and protocol family bridge
.
To configure the OpenFlow Interfaces:
Configure the physical link-layer encapsulation type and the logical interface and protocol family.
[edit interfaces interface-name] user@host# set encapsulation ethernet-bridge user@host# set unit unit family bridge
Configuring the OpenFlow Protocol
To configure support for OpenFlow, create a virtual switch instance, and specify a switch name, which must be 60 characters or less. For the virtual switch instance, configure the OpenFlow controller information and the participating logical interfaces. Optionally, configure the default action for packets that do not match a flow entry, the purge timer for invalid flows, and any OpenFlow traceoptions.
To configure the OpenFlow protocol:
Configuring the OpenFlow Routing Instance
To configure the virtual switch routing instance for OpenFlow traffic: