Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Opendaylight (ODL) 0.5.2-Boron version installation

2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

Shulou(Shulou.com)06/01 Report--

These days in the study of SDN-related things, ready to build a simulation environment to do experiments. ODL (opendaylight) + mininet is selected.

(the theoretical knowledge of SDN will be added in a few days.)

Description of the lab environment:

Win7 built-in virtual machine (vmware workstations version 12.0)

Install ODL and mininet in the virtual machine

In fact, I use ESXI to install win7,win7 and then vmware, that is, multiple virtualized environments. This involves a setting that CPU supports virtualization, otherwise it will prompt intel VT for errors when importing ova files. This needs to be set up in VCenter. Baidu can be specific, and then make up the installation of VCenter (ah ~ ~ many holes haven't been filled yet)

Download address of mininet's official website:

Http://mininet.org/download/

Select the first Mininet VM Installation version directly, and then download an ova file that can be directly imported into VMware workstations. I am using vmware workstation version 12.0 here. After downloading, drag the ova file directly to vmware.

This mininet has a built-in openflow switch and controller that can generate a simple network topology with a sudo mn command. In addition, the kernel of this mininet is Ubuntu.

The resulting topology is probably (make do with it, the heart of the painting is so tired):

Although mininet is a good thing, it doesn't have a view, you can't see the topology, and it's hard to manipulate it. So we need to install another controler controller. That is, the ODL to be installed next.

Download address of ODL official website:

Https://www.opendaylight.org/downloads

This time I downloaded the latest 0.5.2-Boron version, which is a compressed package that needs to be installed in the Ubuntu system. I installed the Ubuntu14 version of the graphical interface on the virtual machine.

Different versions of ODL are installed in different ways, which is the reason why I have not installed successfully for a long time. Finally, I finally found this big god's blog (http://www.cnblogs.com/veniceslove/p/6293848.html) and installed it directly according to the big god's way.

What the ODL 0.5.2-Boron version needs is JAVA 8. Before, I installed Java7 in my system, but I couldn't install Java8 in the back. I looked up the solution on the Internet as follows:

Update the installation source

Sudo add-apt-repository ppa:openjdk-r/ppasudo apt-get update sudo apt-get install openjdk-8-jdk

Connect mininet and opendaylight

Once all installed, open mininet and enter the following command

Sudo mn-- topo linear,2-- mac-- controller=remote,ip= IP,port=6633 of your controller-- switch ovs,protocols=OpenFlow10

Type again, or you won't see the host.

Pingall

Then open opendaylight

Then open http:// the IP address of your controller: 8181

You can see the graphical interface of the topology.

In my environment, I also need to solve the problem that win7, mininet and ODL are set to the same network segment, that is, the virtual machine and physical machine are set to the same network segment. Open the network card connection mode of vmware workstations directly here and choose bridging. If you don't understand, please refer to (http://jingyan.baidu.com/article/7f766dafa6ecfc4100e1d068.html)

Then set an address for mininet and ODL on the same network segment as win7. I encountered a hole in this place and posted the solution. Due to not very familiar with the operation of Ubuntu, resulting in the pit.

Go back to the mininet interface and enter the following command

Sudo vim / etc/network/interfaces

Change the red box to your own preset IP address and gateway.

Restart the network card (this is the place where I have been using service networking restart at first, but it doesn't work. It's depressing that you can't see eth0 directly from the ifconfig command.

Sudo ifup eth0

Sudo ifdown eth0

Sudo ifup eth0

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Network Security

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report