In this guide, you will provision flowfilters to establish communication between h1 and h3.
-NOTE: You need to manually add flow entries to OpenFlow switches in the Mininet. The flow entries are needed to forward packets to controller when there is a table-miss. This configuration is required only in case of OpenFlow 1.3 or using OVS versions (>2.1.1).
-
-----
-sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER
-sudo ovs-ofctl add-flow s2 priority=0,actions=output:CONTROLLER
-sudo ovs-ofctl add-flow s3 priority=0,actions=output:CONTROLLER
-----
-
===== Configuration
To provision the virtual L2 network for the two hosts (h1 and h3), execute REST API provided by VTN Manager as follows. It uses curl command to call the REST API.
.Mininet Configuration
image::vtn/Mininet_Configuration.png["Mininet Configuration",width=500]
-====== Install flow entries
-
-* In mininet environment, install the following flow entries to send PACKET_IN to the controller.
-
-----
- $ sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER
- $ sudo ovs-ofctl add-flow s2 priority=0,actions=output:CONTROLLER
- $ sudo ovs-ofctl add-flow s3 priority=0,actions=output:CONTROLLER
- $ sudo ovs-ofctl add-flow s4 priority=0,actions=output:CONTROLLER
-----
-
====== Configure service nodes
* Please execute the following commands in the mininet console where mininet script is executed.
s4 lo: s4-eth1:s2-eth5 s4-eth2:s3-eth1 s4-eth3:srvc1-eth1 s4-eth4:srvc2-eth1
----
-NOTE:
-You need to manually add flow entries to OpenFlow switches in the Mininet. The flow entries are needed to forward packets to controller when there is a table-miss. This configuration is required only in case of OpenFlow 1.3 or using OVS versions (>2.1.1).
-
-----
-sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER
-sudo ovs-ofctl add-flow s2 priority=0,actions=output:CONTROLLER
-sudo ovs-ofctl add-flow s3 priority=0,actions=output:CONTROLLER
-sudo ovs-ofctl add-flow s4 priority=0,actions=output:CONTROLLER
-----
-
===== Configuration
To create Mac Map in VTN, execute REST API provided by VTN Manager as follows. It uses curl command to call REST API.
This page explains how to provision virtual L2 network using VTN Manager. This page targets Beryllium release, so the procedure described here does not work in other releases.
-.EXAMPLE DEMONSTRATING SINGLE CONTROLLER
-image::vtn/vtn-single-controller-topology-example.png[EXAMPLE DEMONSTRATING SINGLE CONTROLLER]
+.Virtual L2 network for host1 and host3
+image::vtn/How_to_provision_virtual_L2_network.png["Virtual L2 network for host1 and host3",width=500]
===== Requirements
* In this guide, you will provision the virtual L2 network to establish communication between h1 and h3.
-* You need to manually add flow entries to OpenFlow switches in the Mininet. The flow entries are needed to forward packets to controller when there is a table-miss. This configuration is required only in case of Openflow 1.3 or using OVS version(>2.1.1).
-
-----
- sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER
- sudo ovs-ofctl add-flow s2 priority=0,actions=output:CONTROLLER
- sudo ovs-ofctl add-flow s3 priority=0,actions=output:CONTROLLER
-----
-
===== Configuration
To provision the virtual L2 network for the two hosts (h1 and h3), execute REST API provided by VTN Manager as follows. It uses curl command to call the REST API.
c0
----
-NOTE: You need to manually add flow entries to OpenFlow switches in the Mininet. The flow entries are needed to forward packets to controller when there is a table-miss. This configuration is required only in case of OpenFlow 1.3 or using OVS versions (>2.1.1).
-
-----
- sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER
- sudo ovs-ofctl add-flow s2 priority=0,actions=output:CONTROLLER
- sudo ovs-ofctl add-flow s3 priority=0,actions=output:CONTROLLER
-----
-
* Generate traffic by pinging between host h1 and host h2 before creating the portmaps respectively.
----
c0
----
-NOTE:
-You need to manually add flow entries to OpenFlow switches in the Mininet. The flow entries are needed to forward packets to controller when there is a table-miss. This configuration is required only in case of OpenFlow 1.3 or using OVS versions (>2.1.1).
-
-----
- sudo ovs-ofctl add-flow s1 priority=0,actions=output:CONTROLLER
- sudo ovs-ofctl add-flow s2 priority=0,actions=output:CONTROLLER
- sudo ovs-ofctl add-flow s3 priority=0,actions=output:CONTROLLER
-----
-
===== Configuration
To test vlan-map, execute REST API provided by VTN Manager as follows.