Getting ready
This recipe requires an OpenFlow switch. If you don't have any, you can use a Mininet-VM with OvS installed.
You can download Mininet-VM from their website:
https://github.com/mininet/mininet/wiki/Mininet-VM-Images
OvS users:
You must use a version of OvS superior or equal to 2.1 so it can handle group tables. If you previously downloaded a Mininet-VM, you could create a new VM using its disk, and then update the OvS version within Mininet. Perform the update within mininet; you'll have to run the following commands:
$ cd /home/mininet/mininet/util
$ ./install.sh -V 2.3.1
This script will try updating your packages, but this operation can fail. If it does, run the command yourself then re-execute the script:
$ sudo apt-get update --fix-missing
Then rerun the install script. After a couple of minutes, the new version of OvS should be installed:
mininet@mininet-vm:~$ sudo ovs-vsctl show 1077578e-f495-46a1-a96b-441223e7cc22 ovs_version: "2.3.1"
You must use a version of OvS superior or equal to 2.1 so it can handle group tables. If you previously downloaded a Mininet-VM, you could create a new VM using its disk, and then update the OvS version within Mininet. Perform the update within mininet; you'll have to run the following commands:
$ cd /home/mininet/mininet/util
$ ./install.sh -V 2.3.1
This script will try updating your packages, but this operation can fail. If it does, run the command yourself then re-execute the script:
$ sudo apt-get update --fix-missing
Then rerun the install script. After a couple of minutes, the new version of OvS should be installed:
mininet@mininet-vm:~$ sudo ovs-vsctl show 1077578e-f495-46a1-a96b-441223e7cc22 ovs_version: "2.3.1"
This recipe will be presented using a Mininet-VM with OvS 2.3.1.
In order to use LACP, you have to ensure that legacy (non-OpenFlow) switches are configured with the LACP mode active with a long timeout to allow the LACP plugin to respond to its messages.
The sample code for this recipe is available at:
https://github.com/jgoodyear/OpenDaylightCookbook/tree/master/chapter1/chapter1-recipe5
推薦閱讀
- The Complete Rust Programming Reference Guide
- Drupal 8 Blueprints
- Oracle從新手到高手
- vSphere High Performance Cookbook
- Rust編程從入門到實戰(zhàn)
- C語言程序設(shè)計
- Learning Three.js:The JavaScript 3D Library for WebGL
- Java系統(tǒng)化項目開發(fā)教程
- Python計算機視覺和自然語言處理
- 零基礎(chǔ)學(xué)HTML+CSS
- 一覽眾山小:ASP.NET Web開發(fā)修行實錄
- VC++ 2008專題應(yīng)用程序開發(fā)實例精講
- Unity與C++網(wǎng)絡(luò)游戲開發(fā)實戰(zhàn):基于VR、AI與分布式架構(gòu)
- 計算機視覺實戰(zhàn):基于TensorFlow 2
- Java Web開發(fā)任務(wù)教程