目录
Install the Mandatory Packages
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