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

 

 

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值