The Vector Packet Processor (VPP)的安裝

目錄

How to Install VPP

Update the OS

Point to the Repository

Get the key:

Install the Mandatory Packages

Install the Optional Packages

Uninstall the Packages

如何下載和構建VPP

設置代理

獲取VPP來源

建立VPP依賴關係

生成VPP(發行版)

運行VPP


https://fd.io/vppproject/vppinstalling/

How to Install VPP

The following describes how to install VPP on Ubuntu 18.04. For a complete set of instructions click on the button at the bottom of the page.

Update the OS

It is a good idea to first update and upgrade the OS before starting; run the following command to update the OS:

$ sudo bash
# apt-get update

Point to the Repository

Create a file /etc/apt/sources.list.d/99fd.io.list with contents that point to the version needed. In this example we point to the latest release.

deb [trusted=yes] https://packagecloud.io/fdio/release/ubuntu bionic main

Get the key:

# curl -L https://packagecloud.io/fdio/release/gpgkey | sudo apt-key add -

Install the Mandatory Packages

Install the mandatory packages by running the following commands:

# sudo apt-get update
# sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdk

Install the Optional Packages

Install the optional packages by running the following command:

# sudo apt-get install vpp-api-python python3-vpp-api vpp-dbg vpp-dev

Uninstall the Packages

Uninstall the packages by running the following command:

# sudo apt-get remove --purge vpp*

如何下載和構建VPP

下面介紹如何下載和構建VPP。有關使用VPP開發的更多信息,請單擊頁面底部的按鈕。

設置代理

根據您所使用的環境,可能需要設置代理。運行以下代理命令以指定代理服務器名稱和相應的端口號

$ export http_proxy=http://<proxy-server-name>.com:<port-number>
$ export https_proxy=https://<proxy-server-name>.com:<port-number>

獲取VPP來源

要獲取用於創建內部版本的VPP源,請運行以下命令:

$ git clone https://gerrit.fd.io/r/vpp
$ cd vpp

建立VPP依賴關係

運行以下make命令以安裝FD.io VPP的依賴項。

如果下載在任何時候都掛起,則可能需要:ref:set up proxies <setupproxies>才能使下載正常進行。

$ make install-dep

生成VPP(發行版)

在下面使用以下make命令生成VPP的發行版本。

$ make build-release

運行VPP

構建VPP二進制文件後,您現在已構建了多個映像。按照以下步驟運行這些VPP

$ sudo bash
# make run

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章