我需要在OCI的OEL6镜像中使用ip l2tp。我无法获得更新版本的iproute2,因为我的那个没有ip l2tp:
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
ip [ -force ] -batch filename
where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |
tunnel | maddr | mroute | mrule | monitor | xfrm | token
}
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
-h[uman-readable] | -iec |
-f[amily] { inet | inet6 | ipx | dnet | link } |
-o[neline] | -t[imestamp] | -b[atch] [filename] |
-rc[vbuf] [size]}我有以下版本:
rpm -qi iproute
Name : iproute Relocations: (not relocatable)
Version : 2.6.32 Vendor: Oracle America
Release : 57.0.1.el6 Build Date: Tue 01 May 2018 07:11:37 PM GMT
Install Date: Fri 22 Feb 2019 12:50:48 AM GMT Build Host: x86-ol6-builder-04.us.oracle.com
Group : Applications/System Source RPM: iproute-2.6.32-57.0.1.el6.src.rpm
Size : 964229 License: GPLv2+ and Public Domain
Signature : RSA/8, Tue 01 May 2018 07:11:56 PM GMT, Key ID 72f97b74ec551f03
URL : http://www.linuxfoundation.org/collaborate/workgroups/networking/iproute2
Summary : Advanced IP routing and network device configuration tools
Description :
The iproute package contains networking utilities (ip and rtmon, for
example) which are designed to use the advanced networking
capabilities of the Linux 2.4.x and 2.6.x kernel.我升级了所有的包:
yum update
Loaded plugins: security, ulninfo
Setting up Update Process
No Packages marked for Update我下载了最新版本的iproute2: wget https://mirrors.edge.kernel.org/pub/linux/utils/net/iproute2/iproute2-5.0.0.tar.gz
我试着编译它:
make
lib
CC libgenl.o
In file included from ../include/uapi/linux/kernel.h:5,
from ../include/uapi/linux/netlink.h:5,
from ../include/uapi/linux/genetlink.h:6,
from libgenl.c:10:
../include/uapi/linux/sysinfo.h:9: error: expected specifier-qualifier-list before ‘__kernel_long_t’
make[1]: *** [libgenl.o] Error 1
make: *** [all] Error 2在查找错误时,我偶然发现了以下内容:https://patchwork.ozlabs.org/patch/843454/
有什么办法可以获取iproute2吗?
谢谢你C。
发布于 2019-03-26 05:59:36
这里有一个快速升级的方法。
$ ip -V
ip utility, iproute2-ss091226$ cat /etc/yum.repos.d/oracle-openstack-ol6.repo
[ol6_openstack10]
name=Oracle Linux $releasever OpenStack 1.0 ($basearch)
baseurl=http://yum$ociregion.oracle.com/repo/OracleLinux/OL6/openstack10/$basearch/
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
gpgcheck=1
enabled=1sudo yum update (您应该会在已更改版本的更新版本列表中看到iproute it:$ ip -V
ip utility, iproute2-ss130221$ ip
Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
ip [ -force ] -batch filename
where OBJECT := { link | addr | addrlabel | route | rule | neigh | ntable |
tunnel | tuntap | maddr | mroute | mrule | monitor | xfrm |
netns | l2tp | tcp_metrics }
OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] |
-f[amily] { inet | inet6 | ipx | dnet | bridge | link } |
-l[oops] { maximum-addr-flush-attempts } |
-o[neline] | -t[imestamp] | -b[atch] [filename] |
-rc[vbuf] [size]}https://stackoverflow.com/questions/55307583
复制相似问题