目录
一、源码安装
Git 下载
sudo apt-get install git
pip3 安装
pip3 安装
sudo apt-get install python3-pip
将 pip 加入 PATH
gedit ~/.bashrc
在末尾添加:export PATH=/home/xxx/.local/bin/:$PATH
source ~/.bashrc
pip3 更新
python3 -m pip install --upgrade pip
安装 Mininet
git clone git://github.com/mininet/mininet.git
-
To install a Python 2
mn
command:PYTHON=python2 mininet/util/install.sh -nfv
python 2.7安装
sudo apt-get install python-is-python2
-
To install Python 3
mn
command:PYTHON=python3 mininet/util/install.sh -nfv
Python 3.8 安装 Ryu
sudo apt-get install python3-eventlet python3-routes python3-webob python3-paramiko
pip3 install eventlet
git clone https://github.com/faucetsdn/ryu.git
or
git clone git://github.com/osrg/ryu.git
cd ryu
pip3 install -r tools/optional-requires
sudo pip3 install .
- ERROR: Cannot uninstall ‘PyYAML’:
It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
pip install --upgrade nni --ignore-installed
二、简易安装
sudo apt-get update
sudo apt-get install python3-pip hping3 net-tools apache2-utils curl xterm iperf
sudo apt-get install mininet
sudo pip3 install ryu
sudo pip3 install mininet
sudo cp /usr/bin/python3 /usr/bin/python
ryu-manager --version
sudo mn --version
Note:python3 安装 mininet 建议源码安装
三、More
1、The basics
- RYU SDN Crash Course - Book
- Welcome to RYU the Network Operating System(NOS)
- WILDAN’S TECH BLOG : SDN
- RYU | SDNLAB