1. 程式人生 > >OpenvSwitch幫助文件-中文版

OpenvSwitch幫助文件-中文版

因本人在學習IAAS的時候遇到一些網橋的管理,而我英語太渣,所以特地找了分中文幫助,非原創,本文轉自:這裡

Open vSwitch 命令

init                        如果尚未初始化,則初始化資料庫

show                      顯示資料庫的概述內容

emer-reset                  重置狀態

 

Bridge 命令

add-br BRIDGE                                                   建立一個名為BRIDGE的網橋

add-br BRIDGE PARENT VLAN                        通過VLAN在PARENT上建立一個偽橋

del-br BRIDGE                                                    刪除BRIDGE和其上所有的埠

list-br                                                                    顯示所有bridge的名字

br-exists BRIDGE                                                        exit2 if BRIDGE does not exist

br-to-vlan BRIDGE                                             顯示存在於VLAN上的BRIDGE

br-to-parent BRIDGE                                        顯示BRIDGE的父橋

br-set-external-id BRIDGE KEY VALUE                  setKEY on BRIDGE to VALUE

br-set-external-id BRIDGE KEY                      unsetKEY on BRIDGE

br-get-external-id BRIDGE KEY                      printvalue of KEY on BRIDGE

br-get-external-id BRIDGE                              listkey-value pairs on BRIDGE

 

Port 命令

一個結合被認為是一個port

list-ports BRIDGE                                              顯示在BRIDGE上的所有的port的名稱

add-port BRIDGE PORT                          在BRIDGE上新增網路裝置的PORT

add-bond BRIDGE PORT IFACE...                   從IFACE上新增在BRIDGE上的結合埠PORT

del-port [BRIDGE] PORT                         從BRIDGE上刪除PORT (有可能被結合的) 

port-to-br PORT                                        顯示包含PORT的網橋的名稱

 

介面命令

一個bond是多介面的

list-ifaces BRIDGE          顯示所有在BRIDGE上介面的名稱

iface-to-br IFACE           顯示所有包含IFACE的橋的名稱

 

控制器命令

get-controller BRIDGE                                     顯示BRIDGE的控制器名稱

del-controller BRIDGE                             刪除BRIDGE的控制器

set-controller BRIDGE TARGET...                  給BRIDGE設定控制器

get-fail-mode BRIDGE                             顯示失敗模式的BRIDGE

del-fail-mode BRIDGE                             刪除失敗模式的BRIDGE

set-fail-mode BRIDGE MODE                設定失敗模式的BRIDGE為MODE

 

管理命令

get-manager                                             顯示管理者

del-manager                                              刪除管理者

set-manager TARGET...                          設定管理者列表為TARGET...

 

SSL 命令

get-ssl                                                         顯示SSL的配置

del-ssl                                                          刪除SSL的配置

set-ssl PRIV-KEY CERT CA-CERT           設定SSL的配置

 

開關命令

emer-reset                                                 復位開關到好的狀態

 

資料庫命令

list TBL [REC]                                                                列出TBL中的記錄(或者所有記錄)

find TBL CONDITION...                                                       列出TBL中滿足CONDITION條件的記錄

  getTBL REC COL[:KEY]                                                       printvalues of COLumns in RECord in TBL

  setTBL REC COL[:KEY]=VALUE                                setCOLumn values in RECord in TBL

  addTBL REC COL [KEY=]VALUE                               add(KEY=)VALUE to COLumn in RECord in TBL

remove TBL REC COL [KEY=]VALUE                        remove(KEY=)VALUE from COLumn

  clearTBL REC COL                                                      clearvalues from COLumn in RECord in TBL

create TBL COL[:KEY]=VALUE                                  createand initialize new record

destroy TBL REC                                                          deleteRECord from TBL

wait-until TBL REC [COL[:KEY]=VALUE]                 waituntil condition is true

Potentially unsafe database commandsrequire --force option.

 

選項

 --db=DATABASE                                         連線資料庫DATABASE

                                                                         (預設為:unix:/var/run/openvswitch/db.sock)

 --no-wait                                                     不要等待ovs-vswitched重置

  -t,--timeout=SECS                                    等待ovs-vswitchd最多SECS秒

 --dry-run                                                      不對資料庫提交修改

 --oneline                                                      準確的輸出一行命令

 

日誌記錄選項

  -v,--verbose=[SPEC]                                 設定日誌記錄的等級

  -v,--verbose                                                        設定最大冗長等級

 --log-file[=FILE]                                          啟用日誌記錄到指定的檔案FILE

                                                                        (預設:/var/log/openvswitch/ovs-vsctl.log)

 --no-syslog                                                  相當於--verbose=vsctl:syslog:warn

 

主動的資料庫連線方法

  tcp:IP:PORT                                      PORT在遠端的IP

ssl:IP:PORT                                       SSLPORT在遠端IP

unix:FILE                                            Unix域套接字命名的檔案

被動的資料庫連線方法:

ptcp:PORT[:IP]                                 在IP上監聽TCP的PORT

pssl:PORT[:IP]                                  在IP上監聽SSL的PORT

punix:FILE                                          監聽在Unix域套接字檔案

PKI設定

要求使用SSL

  -p,--private-key=FILE                     私鑰的檔案FILE

  -c,--certificate=FILE                       證書的私鑰的檔案FILE

  -C,--ca-cert=FILE                                      CA證書的檔案FILE

 

其他選項

  -h,--help                                            顯示幫助檔案

  -V, --version                                      顯示版本資訊