It's very strange, in my virtual host, it is:
$ ip -V
ip utility, iproute2-5.11.0
but in my physical host:
$ ip -V
ip utility, iproute2-5.11.0, libbpf 0.5.0
I compiled iproute2 in the same way as I mentioned previously, and the
kernel versions are both 5.13 (in fact the same code) .
在 2021/7/19 8:38 PM, Toke Høiland-Jørgensen 写道:
"luwei (O)" <luwei32@xxxxxxxxxx> writes:
Andrii and Toke inspired me. You are right, the libbpf version should be included in -V output
, but not mine. I searched google and found this page: https://www.spinics.net/lists/netdev/msg700482.html
, according which I re-compiled iproute2 and it works.
Did the libbpf version appear in the output of 'ip -V' after you
recompiled and enabled it? It does in mine:
$ ./ip/ip -V
ip utility, iproute2-5.13.0, libbpf 0.4.0
-Toke
.
--
Best Regards,
Lu Wei