Environment to build (the package can go to get GitHub):
First, install JAVA
apt -y install openjdk-8- * # 8 version you want to install more java environment.
Second, the installation karaf
tar xf *** karaf
CD ** carafe
vim bin/setenv
export JAVA_HOME = "/ usr / lib / jvm / java-8-openjdk-amd64" # add an environment variable
./bin/karaf # execution
Go after.
Installation-related components:
feature:install odl-restconf
feature:install odl-l2switch-switch-ui
feature:install odl-mdsal-apidocs
feature:install odl-dluxapps-applications
Third, the installation mininet-master
cd mininet
./util/install.sh -a # fully installed. This is a bit long, it can be replaced -nfv
About time mininet source compiler error occurs, the prompt return during compile time openflow this directory already exists. You should go to the home directory to delete this directory. During recompilation. An error occurred. I suspect that is installed when things appeared locked. Caused. Rm need to lock out directory
After installation restart the machine ......
Build SDN network:
Start opendaylight and install the components:
Use mnninet build topo:
sudo mn --controller=remote,ip=127.0.0.1 --topo linear,n,m
sudo mn --controller=remote,ip=127.0.0.1 --topo single,n
sudo mn --controller=remote,ip=127.0.0.1 --topo tree,n,m
Single, n: a switch, n a host
linear, n, m: linear topology, n-switches, a host switch with m, a total of n * m th host
tree, n, m a depth of the first parameter, the second fan-out bit coefficient. Can be written --tree, depth = 2, fanout = 8
The following are try single, linear, use the tree.
sudo mn --topo single, 3 --mac --controller remote, ip = 127.0.0.1, port = 6633 is as follows:
Enter the following address into the ODL take a look of the graphical topo mininet
http://127.0.0.1:8181/index.html#/login
Account: admin
Password: admin
sudo mn --topo linear, 2 --controller remote, ip = 127.0.0.1, port = 6633 #topo 如下 图
sudo mn --topo tree,2,3 --controller remote,ip=127.0.0.1,port=6633
mininet Common Command Summary
help ????? default command lists all the documents, plus behind the name of this command, use the command
print node information dump ????
gterm ???? opening on a given node gnome-terminal. Note: It may lead to the collapse mn
xterm ???? on a given node open xterm
intfs ???? lists all the network interfaces
Simple iperf iperf ???? between two nodes? TCP test
Iperfudp ????? test between two nodes with the bandwidth to develop udp
net ???? shows the network link case
noecho ???? run an interactive window, close respond (echoing)
pingpair ???? front cross between two hosts ping test
source ???? read command from an external file
dpctl ???? performed on all switches with dptcl related commands, local as tcp 127.0.0.1:? 6634
link ???? disable or enable a link between two nodes
List all nodes ???? node information
Ping each host node among all pingall ????
py执行python表达式
sh运行外部shell命令
quit/exit退出