$Id:$

1.Install required dependencies�G

   ��ҡGCentOS 7
     #sudo yum groupinstall 'Development Tools' && sudo yum install libnl3-devel libcap-devel


    libnl3
    library for dealing with netlink sockets
        reference:http://packages.ubuntu.com/zh-tw/trusty/libnl-3-dev

    libcap-dev
    Contains the necessary support for building applications that use capabilities.
        reference:http://packages.ubuntu.com/zh-tw/lucid/libcap-dev


2.Clone the IVS repository�G

    #git clone --recurse-submodules https://github.com/floodlight/ivs.git
        reference:http://git-scm.com/docs/git-clone
   
    �p�G�L�k�s���� git  �ϥ� #git config --global http.proxy %HTTP_PROXY%
        example�G
git clone git://github.com/floodlight/floodlight.git
Cloning into 'floodlight'...
fatal: unable to connect to github.com:
github.com:Temporary failure in name resolution
        reference:http://stackoverflow.com/questions/18099144/clone-from-github-com-temporary-failure-in-name-resolution-error
       

    #cd ivs && git submodule update --recursive --init
    �|���ͥH�U�T��Failed�A�ݭn�P�B�l�ҲջP��s�A��O�p�ϤU��C
error
    #git submodule sync
    #git submodule update --init
        reference:https://github.com/karelia/ConnectionKit/issues/40

3.Compile IVS�G

    #cd ivs

    # make
   
    ivs �M ivs-ctl ������ɦb�H�U�ؿ�G
   
    targets/ivs/build/gcc-local/bin/ivs
    targets/ivs-ctl/build/gcc-local/bin/ivs-ctl
   
    �ϥ�cp�N�L�̽ƻs��/usr/sbin ���ΨC������ؿ�U./���
    # sudo cp targets/ivs/build/gcc-local/bin/ivs targets/ivs-ctl/build/gcc-local/bin/ivs-ctl /usr/sbin
        reference:https://floodlight.atlassian.net/wiki/display/indigodocs/Getting+Started

4.Usege�G


Kernel Module

The openvswitch kernel module must be loaded:

error2

modprobe openvswitch

right

CLI Reference

Name

ivs - OpenFlow virtual switch daemon

Usage

ivs [OPTION] ...

Options

-v, --verbose                Verbose logging
 
-t, --trace                  Very verbose logging
 
-c, --controller=IP:PORT     Connect to a controller at startup
 
-min                         Set minimal veth configuration at startup (suitable for OFTest).
 
-L host:port                 Add a listening connection.
 
-i, --interface=INTERFACE    Attach a network interface at startup
    --dpid=DPID              Set datapath ID (default autogenerated)
    --syslog                 Log to syslog instead of stderr
 
-h, --help                   Display this help message and exit
    --version                Display version information and exit

Name

ivs-ctl - utility for configuring Indigo Virtual Switch

Usage

ivs-ctl COMMAND [ARG..]

DESCRIPTION

-h, --help                   Display this help message and exit
 
add-port INTERFACE           Add a port to the datapath
 
del-port INTERFACE           Remove a port from the datapath
 
                             Note: INTERFACE argument must be a Linux interface name
 
add-internal-port            creates a Linux interface connected to the given datapath
 
                             Note: This interface can have an IP address assigned to it and can generally
                             be used like a  normal net?dev, but traffic to and from it will flow
                             through the datapath.
 
show                         print information about each datapath

Examples

ivs-ctl help
ivs-ctl show
ivs-ctl add-port DATAPATH INTERFACE
ivs-ctl add-internal-port DATAPATH INTERFACE
ivs-ctl del-port DATAPATH INTERFACE

reference�G
GitHub
sdxcentral
Documentation
Documentation (ubuntu 12 + KVM)

Indigo���СG
�x��

IVS���СG
projectfloodlight

projectfloodlight����G
�x���


�ɥR�G
floodlight²���G
http://www.projectfloodlight.org/floodlight/

floodlight HowTo �G
http://www.projectfloodlight.org/getting-started/
https://floodlight.atlassian.net/wiki/display/floodlightcontroller/Installation+Guide

Link Layer Discovery Protocol
���N Local �]�ƪ��H����´��TLV�]Type/Length/Value �A����/ ���/ �ȡ^�ʸ˦bLLDPDU �]Link Layer Discovery Protocol Data Unit �^���o�e�����s���F�~�A�P�ɤ]��q�F�~������LLDPDU ��MIB �]Management Information Base �A�޲z�H���w�^�зǪ��Φ��O�s�_�ӡC�q�LLLDP �A�]�ƥi�H�O�s�M�޲z�ۤv�H�Ϊ��s�F�~�]�ƪ��H���A�Ѻ�޲z�t�άd�ߩM�P�_���q�H���p�C