一.安裝ubuntu虛擬機(jī)
軟件環(huán)境如下:
| 終端類別及用途|操作系統(tǒng) | 相關(guān)應(yīng)用軟件 |
|--------|--------|
| WEB服務(wù)器 | Ubuntu 14.04.5 LTS |Openvswitch 2.3.1 mininet
| 客戶端 | Windows 10 |PuTTY 遠(yuǎn)程登錄
硬件如下
| 終端類別及用途|機(jī)器配置 |IPv6地址|
|--------|--------|
| WEB服務(wù)器 | CPU: Intel(R) Xeon(R) CPU E5-2403 0 @ 1.80GHz 內(nèi)存:4GB 硬盤(pán):80GB|2001:da8:20d:21::131
| 客戶端 |intel(R)_Core(TM)i5-6200U_CPU@_2.30GHz 內(nèi)存:4GB 硬盤(pán):250GB|2001:250:2800:20c3:a57f:8518:154c:81d9
二.安裝java配置環(huán)境辐马,需要需要Java7.0以上版本辽聊。
三.安裝openvswitch 2.3.1
1.安裝好操作系統(tǒng)
lsb_release -a
2.安裝依賴包
apt-get install -y build-essential fakeroot debhelper \
autoconf automake bzip2 libssl-dev \
openssl graphviz python-all procps \
python-qt4 python-zopeinterface \
python-twisted-conch libtool
```
###3.下載openvswitch,并解壓進(jìn)入目錄
wget http://openvswitch.org/releases/openvswitch-2.3.1.tar.gz
tar –zxvf openvswitch-2.3.1.tar.gz
cd openvswitch-2.3.1/
### 4.可以用# dpkg-checkbuilddeps檢查下是否依賴包已經(jīng)安裝完畢
構(gòu)建安裝包
DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary
查看已經(jīng)構(gòu)建完成的包`ls`
### 5.安裝openvswitch 2.3.1
dpkg -i openvswitch-common_2.3.1-1_amd64.deb openvswitch-switch_2.3.1-1_amd64.deb
### 6.查看內(nèi)核模塊是 否加載
lsmod | grep openb
### 7.查看openvswitch版本
`ovs-vsctl -V`
### 8.查看OVS進(jìn)程是否啟動(dòng)
```ps -ef | grep ovs | grep -v grep```
###9.查看 OVS 支持的 OpenFlow 協(xié)議的版本
`ovs-ofctl –version`
###10.openvswitch 啟動(dòng)
`service openvswitch-switch start`
##四.安裝opendaylight
### 1.下載
`distribution-karaf-0.6.x-Carbon.zip`
###2.上傳至服務(wù)器上
###3.解壓
`unzip distribution-karaf-0.6.x-Carbon.zip`
###4.進(jìn)入ODL目錄
`cd bin`
`./karaf` #執(zhí)行./karaf
![](http://upload-images.jianshu.io/upload_images/6579644-cfb66e13c4c669fe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
### 5.出現(xiàn)上面界面表示啟動(dòng)完成
### 6.功能組件安裝
opendaylight-user@root>feature:install odl-restconf
opendaylight-user@root>feature:install odl-l2switch-switch-ui
opendaylight-user@root>feature:install odl-openflowplugin-flow-services-ui
opendaylight-user@root>feature:install odl-mdsal-apidocs
opendaylight-user@root>feature:install odl-dlux-core
opendaylight-user@root>feature:install odl-dlux-node
opendaylight-user@root>feature:install odl-dlux-yangui
###7.登陸管理WEB UI
http://202.205.7.131:8181/index.html
![](http://upload-images.jianshu.io/upload_images/6579644-ed5990ea8fb8a085.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
提示:用戶名和密碼都是admin