centos7安装sdn
时间: 2023-10-23 15:14:01 浏览: 150
要在CentOS 7上安装SDN,可以使用Open vSwitch(OVS)和Mininet进行搭建。
具体步骤如下:
1.安装Open vSwitch:
```sudo yum install wget openssl-devel gcc make python-devel openssl-devel kernel-devel graphviz kernel-debug-devel autoconf automake rpm-build redhat-rpm-config libtool```
```wget http://openvswitch.org/releases/openvswitch-2.5.0.tar.gz```
```tar zxvf openvswitch-2.5.0.tar.gz```
```cd openvswitch-2.5.0```
```./configure --prefix=/usr --with-linux=/lib/modules/`uname -r`/build```
```make```
```sudo make install```
2.启动Open vSwitch:
```sudo /usr/share/openvswitch/scripts/ovs-ctl start```
```sudo ovs-vsctl show```
3.安装Mininet:
```sudo yum install git```
```git clone git://github.com/mininet/mininet```
```cd mininet/util```
```sudo ./install.sh -fnv```
4.运行Mininet:
```sudo mn --test pingall```
然后就可以开始使用SDN了。
阅读全文