- Cài đặt môi trường openjdk (Open Java Development Kit)
sudo apt-get install openjdk-7-jdk
- Cài đặt Maven (Maven là công cụ quản lý và thiết lập tự động 1 dự án phần mềm.)
sudo mkdir -p /usr/local/apache-maven #Tạo folder apache-maven
wget http://ftp.wayne.edu/apache/maven/maven-3/3.3.3/binaries/apache-maven-3.3.3-bin.tar.gz #download file cài đặt
sudo mv apache-maven-3.3.3-bin.tar.gz /usr/local/apache-maven
sudo tar -xzvf /usr/local/apache-maven/apache-maven-3.3.3-bin.tar.gz -C /usr/local/apache-maven/ #Giải nén
sudo update-alternatives --install /usr/bin/mvn mvn /usr/local/apache-maven/apache-maven-3.3.3/bin/mvn 1
sudo update-alternatives --config mvn #Chọn phiên bản maven
gedit ~/.bashrc
- Thêm 3 dòng sau vào cuối file .bashrc để cài đặt biến môi trường cho java và Maven
export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.3
export MAVEN_OPTS="-Xms256m -Xmx512m"
export JAVA_HOME=/usr/lib/jvm/java-7-openjdk-amd64 # This matches sudo update-alternatives --config java
- Khởi động lại cửa sổ terminal
-
Vào trang web "https://www.opendaylight.org/downloads" down file cai dat OpenDaylight controller (Pre-Built Zip File) về rồi giải nén.
-
Chạy OpenDaylight trong cửa sổ terminal.
./distribution-karaf-0.2.4-Helium-SR4/bin/karaf #Đối với phiên bản là Helium-SR4
- Install các feature cần thiết trong Opendaylight controller:
opendaylight-user@root>feature:install odl-l2switch-switch-ui #Provides L2 (Ethernet) forwarding across connected OppenFlow switches and support for host tracking
opendaylight-user@root>feature:install odl-restconf #Enables REST API access to the MD-SAL including the data store
opendaylight-user@root>feature:install odl-dlux-all #Giao diện dlux
opendaylight-user@root>feature:install odl-adsal-all
opendaylight-user@root>feature:install odl-adsal-compatibility-all
opendaylight-user@root>feature:install odl-sfc-all
opendaylight-user@root>feature:install odl-nsf-all
- Trên trình duyệt web vào địa chỉ "http://127.0.0.1:8181/dlux/index.html" đối với bản Opendaylight ban Helium đăng nhập admin/admin
sudo apt-get install git
git clone git://github.com/mininet/mininet
cd mininet
git tag # list available versions
git checkout -b 2.2.1 2.2.1 # or whatever version you wish to install
./util/install.sh -a
Chú ý nên vào Settings trong Update Manager và chỉnh Download from Main Server trước khi install.
- Cài đặt Cassandra ( Hệ quản trị cơ sở dữ liệu theo kiểu NoSQL)
echo "deb http://debian.datastax.com/community stable main" | sudo tee -a /etc/apt/sources.list.d/cassandra.sources.list
sudo apt-get install curl
curl -L http://debian.datastax.com/debian/repo_key | sudo apt-key add -
sudo apt-get update
sudo apt-get install dsc20=2.0.11-1 cassandra=2.0.11
sudo service cassandra restart
sudo service cassandra status
- Cài đặt Defense4all
git clone https://github.com/opendaylight/defense4all.git
sudo apt-get install rpm
cd defense4all/dfapp/
mvn clean install
cd defense4all/dfapp.aggregate/target/
sudo dpkg -i defense4all_1.1.0.deb
sudo service defense4all restart
sudo service defense4all status
Vào địa chỉ này trên trình duyệt "http://127.0.0.1:8086/controlapps"
Ta cần reset lại hệ thống khi muốn thử test một Testbed mới.
-
Reset framework trong cửa sổ duyệt web của Defense4all
-
Trong cửa sổ terminal
sudo service defense4all stop
sudo service cassandra stop
sudo rm /var/log/defense4all/server.log #Xóa file lưu chữ các thông báo khi chạy Defense4all
sudo rm -rf /var/lib/cassandra/data/system/*
sudo shutdown -r now
- Khởi động lại cassandra và Defense4all.
sudo service cassandra restart
sudo service defense4all restart
https://www.youtube.com/watch?v=UkaEMaZJPSI
https://wiki.opendaylight.org/view/Install_On_Ubuntu_14.04
https://wiki.opendaylight.org/view/Defense4All:Installation_Guide