SDN基本網絡環境部署手冊

一.安裝ubuntu虛擬機

軟件環境如下:

| 終端類別及用途|操作系統 | 相關應用軟件 |
|--------|--------|
| WEB服務器 | Ubuntu 14.04.5 LTS |Openvswitch 2.3.1 mininet
| 客戶端 | Windows 10 |PuTTY 遠程登錄

硬件如下

| 終端類別及用途|機器配置 |IPv6地址|
|--------|--------|
| WEB服務器 | CPU: Intel(R) Xeon(R) CPU E5-2403 0 @ 1.80GHz 內存:4GB 硬盤:80GB|2001:da8:20d:21::131
| 客戶端 |intel(R)_Core(TM)i5-6200U_CPU@_2.30GHz 內存:4GB 硬盤:250GB|2001:250:2800:20c3:a57f:8518:154c:81d9

二.安裝java配置環境,需要需要Java7.0以上版本。

三.安裝openvswitch 2.3.1

1.安裝好操作系統

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,并解壓進入目錄

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檢查下是否依賴包已經安裝完畢
構建安裝包

DEB_BUILD_OPTIONS='parallel=8 nocheck' fakeroot debian/rules binary

查看已經構建完成的包`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.查看內核模塊是 否加載

lsmod | grep openb

### 7.查看openvswitch版本
`ovs-vsctl -V`
### 8.查看OVS進程是否啟動
```ps -ef | grep ovs | grep -v grep```
###9.查看 OVS 支持的 OpenFlow 協議的版本
`ovs-ofctl –version`
###10.openvswitch 啟動
`service openvswitch-switch start`
##四.安裝opendaylight
### 1.下載
`distribution-karaf-0.6.x-Carbon.zip`
###2.上傳至服務器上
###3.解壓
`unzip distribution-karaf-0.6.x-Carbon.zip`
###4.進入ODL目錄
`cd bin`
`./karaf` #執行./karaf

![](http://upload-images.jianshu.io/upload_images/6579644-cfb66e13c4c669fe.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
### 5.出現上面界面表示啟動完成
### 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
最后編輯于
?著作權歸作者所有,轉載或內容合作請聯系作者
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發布,文章內容僅代表作者本人觀點,簡書系信息發布平臺,僅提供信息存儲服務。

推薦閱讀更多精彩內容