没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
FDIO Quick Start Guide
Installing and Using FDIO
Overview 2
Conguraon Ulity 2
Installing FDIO 2
Installing with APT (Latest Released Version) 3
Installing with YUM (Latest Released Version) 3
Start and quickly verify VPP installa$on 4
Se&ng the Interface IP Addresses 4
CLI 5
vppctl 5
Some useful commands 6
Show interface, clear interfaces 6
Show error, Clear error 7
Show hardware, clear hardware 7
Trace packets 8
Show Fib 9
Conguraon 9
Startup (startup.conf) 9
Devices 10
Miscellaneous 10
My Changes 11
Hugepages (80-vpp.conf) 11
Exec command, scripts and startup.conf 12
Using the exec command. 12
Exec command and startup.conf 13
Downloading and Building FDIO 14
Building binaries and packages 14
Directories 15
src/vpp/conf 15
build-root/build-vpp_debug-na$ve/dpdk/dpdk-17.02/usertools/ 16
build-root/install-vpp_debug-na$ve/vpp/bin/ 16
dpdk-devbind.py 16
src/scripts/vnet/ 16
src/vnet/ 16
src/vnet/devices/ 17
Installing packages with dpkg 17
Install Summary 19
Uninstalling FDIO, giving the ports back 20
1.Overview
This document will describe downloading, installing and running FDIO. We will talk
about the installing FDIO, the build tree, configuration files and scripts. This isn’t
meant to be a detailed description, but more a way to quickly ramp up and understand
the basics of FDIO. VPP is a core technology in FDIO and thus referenced as VPP in
many places in this document.. In this doc commands that start with “# “ should be
root and “$ “ are not.
2. Configuration Utility
The VPP configuration can be used to safely and easily configure a system for use
with VPP. Information on how to use this utility can be found at the following:
https://wiki.fd.io/view/VPP/Configuration_Tool
3.Installing FDIO
Later in this document we describe how to build FDIO and its packages. This section
will describe how VPP can be installed and run without building the packages
The following link describes how to install FDIO from the packages. I will summarize
it here.
https://wiki.fd.io/view/VPP/Installing_VPP_binaries_from_packages
1. Installing with APT (Latest Released Version)
Create the file /etc/apt/sources.list.d/99fd.io.list with the contents shown below:
# cat /etc/apt/sources.list.d/99fd.io.list
deb [trusted=yes]
https://nexus.fd.io/content/repositories/fd.io.ubuntu.xenial.main/ ./
Install the packages with the following:
# apt-get update
…..
Reading package lists...
# apt-get install vpp-lib
Reading package lists... Done
Building dependency tree
….. !!!!!!
# apt-get install vpp
Reading package lists... Done
Building dependency tree
…. !!!!
# apt-get install vpp-plugins
Reading package lists... Done
Building dependency tree
…. !!!!!
2. Installing with YUM (Latest Released Version)
Create a file /etc/yum.repos.d/fdio-release.repo with contents shown below:
[fdio-stable-1801]
name=fd.io stable/1801 branch latest merge
baseurl=https://nexus.fd.io/content/repositories/fd.io.centos7/
enabled=1
gpgcheck=0
Install VPP:
# yum install vpp
3. Start and quickly verify VPP installation
When VPP is started it will take all the available interfaces. VPP should be started
after the install. VPP can also be started or restarted after installation with the service
command.
Start VPP:
# service vpp start
Verify VPP is started using the ps command.
# ps -eaf | grep vpp
root !!!!23781 1 99 14:00 ? !!!!!!!00:00:02 /usr/bin/vpp -c /etc/vpp/startup.conf
root !!!!23904 11029 !0 14:00 pts/1 !!!00:00:00 grep --color=auto vpp
Verify that vpp is using some interfaces using the vppctl command. The vppctl
command is used to run the vpp cli.
# vppctl show int
!!!!!!!!!!!!!Name !!!!Idx State !!!!!Counter Count !
TenGigabitEthernet2/0/0 !!!!!!!!!!1 down
TenGigabitEthernet2/0/1 !!!!!!!!!!2 down
TenGigabitEthernet86/0/0 !!!!!!!!!3 down
TenGigabitEthernet86/0/1 !!!!!!!!!4 down
local0 !!!!!!!!!!!!!!!!!!!!!!!!!!!0 down
4. Setting the Interface IP Addresses
We can then add IP addresses to the interfaces. Once this is done we can then ping
these addresses from a live network.
# vppctl set int ip address TenGigabitEthernet86/0/0 30.0.0.2/8
# vppctl set int state TenGigabitEthernet86/0/0 up
# vppctl set int ip address TenGigabitEthernet86/0/1 40.0.0.2/8
# vppctl set int state TenGigabitEthernet86/0/1 up
Verify the addresses are set “show interface address”
# vppctl show interface address
TenGigabitEthernet86/0/0 (up):
!30.0.0.2/8
TenGigabitEthernet86/0/1 (up):
!40.0.0.2/8
local0 (dn):
The interfaces TenGigabitEthernet86/0/0 and TenGigabitEthernet86/0/1 now have IP
addresses. You can now ping those IP addresses from another system.
$ ping 30.0.0.2
PING 30.0.0.2 (30.0.0.2) 56(84) bytes of data.
64 bytes from 30.0.0.2: icmp_seq=1 ttl=255 time=0.729 ms
64 bytes from 30.0.0.2: icmp_seq=2 ttl=255 time=0.540 ms
VPP is now installed and operational!!
4.CLI
FDIO comes with a rudimentary command line interface. The FDIO CLI is a work in
progress. It is expected to be an ongoing work and to be updated regularly. It does
have command line recall and a rudimentary help.
Although not a complete description of the CLI, a decent description can be found at
the following link.
剩余26页未读,继续阅读
资源评论
Illina
- 粉丝: 80
- 资源: 14
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 杨辉三角(Pascal's Triangle)是一个在数学中非常著名的数列,它以一种特定的模式排列数字,内容以5种代码实例实现
- yolov5数据集:CT图像肾脏、结石检测(2类别,包含训练集、验证集)
- 电力102规约请求报文实录
- RTL8723 linux+安卓驱动 2020版本
- ISO 26262 道路车辆-功能安全-系统级产品开发
- 数据挖掘期末题 选择填空简答
- EKF在CTRV模型上的建模推导
- 用于:https://laoshifu.blog.csdn.net/article/details/138191428 多层创建
- 电力102规约(电能累计量的传输规约)培训
- 「常用」E9外部流程接口
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功