SDN/Openflow Controller 중 FloodLight 설치편

 

1. Ubuntu Desktop 을 설치하자.

2. 필수 요소들을 설치한다.

sudo apt-get install build-essential default-jdk ant python-dev eclipse git

3. git을 통해 floodlight를 설치한다.

git clone git://github.com/floodlight/floodlight.git

4. floodlight 설치한 폴더로 이동하여 ant를 실행한다.

cd floodlight

ant

5. floodlight 실행

java -jar target/floodlight.jar

6. floodlight가 제대로 접속 되는지 확인

http://localhost:8080/ui/index.html

7. Avior 설치

git clone git://github.com/Sovietaced/Avior.git

cd Avior

git checkout v1.2

8. Avior 실행

java -jar <avior_file>.jar

위에서 실행이 되지 않고

FAILED TO LOAD MAIN-CLASS MANIFEST ATTRIBUTE FROM 의 에러 메시지가 나온다면 Eclipse로 실행하여 해결하자

9. Eclipse로 Avior 실행 따라하기

Setting up Eclipse

 

  • Open eclipse and create a new workspace
  • File -> Import -> General -> Existing Projects into Workspace. Then click “Next”.
  • From “Select root directory” click “Browse”. Select the parent directory where you placed Avior earlier.
  • Check the box for “Avior”. No other Projects should be present and none should be selected.
  • Click Finish.
  • Project -> Properties -> Java Build Path -> Libraries
  • Make sure you have the appropriate SWT jar for your operating system. Jars are located in the Lib folder.
  • Click OK

 

Creating the launch target

 

  • Click Run->Run Configurations
  • Right Click Java Application->New
  • For Name use Avior
  • For Project use Avior
  • For Main use avior.Avior
  • Click Apply