我正在尝试运行这个命令:
devlink dev eswitch set pci/0000:88:00.0 mode switchdev
然而这就是我得到的:
devlink: command not found
知道如何安装 devlink 吗?
笔记:
我已经尝试安装 iproute2
root@zeus-54:~# sudo apt install iproute2
Reading package lists... Done
Building dependency tree
Reading state information... Done
iproute2 is already the newest version (4.3.0-1ubuntu3.16.04.4).
0 to upgrade, 0 to newly install, 0 to remove and 202 not to upgrade.
root@zeus-54:~# devlink
devlink: command not found
root@zeus-54:~#
谢谢
答案1
显然 devlink 不在 ubuntu 16.04 中,但在 18.04 中。我将系统升级到 18.04 后,它就可以正常工作了。