目录
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/
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.
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 updateCreate 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 mainInstall the mandatory packages by running the following commands:
# sudo apt-get update # sudo apt-get install vpp vpp-plugin-core vpp-plugin-dpdkInstall the optional packages by running the following command:
# sudo apt-get install vpp-api-python python3-vpp-api vpp-dbg vpp-devUninstall the packages by running the following command:
# sudo apt-get remove --purge vpp*下面介绍如何下载和构建VPP。有关使用VPP开发的更多信息,请单击页面底部的按钮。
根据您所使用的环境,可能需要设置代理。运行以下代理命令以指定代理服务器名称和相应的端口号:
$ export http_proxy=http://<proxy-server-name>.com:<port-number> $ export https_proxy=https://<proxy-server-name>.com:<port-number>要获取用于创建内部版本的VPP源,请运行以下命令:
$ git clone https://gerrit.fd.io/r/vpp $ cd vpp运行以下make命令以安装FD.io VPP的依赖项。
如果下载在任何时候都挂起,则可能需要:ref:set up proxies <setupproxies>才能使下载正常进行。
$ make install-dep在下面使用以下make命令生成VPP的发行版本。
$ make build-release构建VPP二进制文件后,您现在已构建了多个映像。按照以下步骤运行这些VPP
$ sudo bash # make run