CentOS7搭建Nat64服务器实现IPv6网段访问IPv4地址

使用CentOS7搭建Nat64服务器实现IPv6网段访问IPv4地址

将iso镜像挂载到/media/cdrom目录下,ISO是指什么镜像?

yum clean all
yum repolist all
yum groupinstall -y "Development Tools"
yum install -y pkgconfig
yum install -y iptables-devel
yum install kernel-devel
yum install kernel-headers

yum clean all
yum repolist al
这两个命令后,后面都是报错

[root@localhost kernels]# dkms install Jool/
Sign command: /lib/modules/3.10.0-1160.el7.x86_64/build/scripts/sign-file
Signing key: /var/lib/dkms/mok.key
Public certificate (MOK): /var/lib/dkms/mok.pub
Error! Arguments <module> and <module-version> are not specified.
Usage: add <module>/<module-version> or
       add -m <module>/<module-version> or
       add -m <module> -v <module-version>


报错

[root@localhost Jool]# ./autogen.sh
configure.ac:8: error: Libtool version 2.4.6 or higher is required
/usr/share/aclocal/libtool.m4:48: LT_PREREQ is expanded from...
configure.ac:8: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
aclocal: error: echo failed with exit status: 63
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:8: error: Libtool version 2.4.6 or higher is required
/usr/share/aclocal/libtool.m4:48: LT_PREREQ is expanded from...
configure.ac:8: the top level
autom4te: /usr/bin/m4 failed with exit status: 63
aclocal: error: echo failed with exit status: 63
autoreconf: aclocal failed with exit status: 63


报错

[root@localhost ~]# git clone https://github.com/NICMx/Jool.git
Cloning into 'Jool'...
fatal: unable to access 'https://github.com/NICMx/Jool.git/': Failed connect to github.com:443; Connection refused


报错

[root@localhost yum.repos.d]# git clone https://github.com/NICMx/Jool.git
Cloning into 'Jool'...
error: RPC failed; result=35, HTTP code = 0
fatal: The remote end hung up unexpectedly
[root@localhost yum.repos.d]# git clone git://github.com/NICMx/Jool.git
Cloning into 'Jool'...
fatal: unable to connect to github.com:
github.com[0: 20.205.243.166]: errno=Connection refused

[root@localhost yum.repos.d]# git config --global http.postBuffer 5242880000
[root@localhost yum.repos.d]# git clone https://github.com/NICMx/Jool.git
Cloning into 'Jool'...
fatal: unable to access 'https://github.com/NICMx/Jool.git/': Failed connect to github.com:443; Connection refused
[root@localhost yum.repos.d]# dkms install Jool/
Error! Your kernel headers for kernel 3.10.0-1160.el7.x86_64 cannot be found at /lib/modules/3.10.0-1160.el7.x86_64/build or /lib/modules/3.10.0-1160.el7.x86_64/source.
Please install the linux-headers-3.10.0-1160.el7.x86_64 package or use the --kernelsourcedir option to tell DKMS where it's located.
[root@localhost yum.repos.d]# cd /root
[root@localhost ~]# dkms install Jool/
Error! Your kernel headers for kernel 3.10.0-1160.el7.x86_64 cannot be found at /lib/modules/3.10.0-1160.el7.x86_64/build or /lib/modules/3.10.0-1160.el7.x86_64/source.
Please install the linux-headers-3.10.0-1160.el7.x86_64 package or use the --kernelsourcedir option to tell DKMS where it's located.


服务器连上网络了吗?

【以下回答由 GPT 生成】

问题解答:

  1. 如何将ISO镜像挂载到/media/cdrom目录下?我不太清楚ISO镜像指的是什么。

ISO镜像是一个光盘或DVD完整内容的二进制映像。在CentOS 7上将ISO镜像挂载到/media/cdrom目录下,可以按照以下步骤进行操作:

  • 首先,创建一个目录,用于挂载ISO镜像。例如,可以执行以下命令创建/media/cdrom目录:

sudo mkdir /media/cdrom

  • 然后,使用mount命令将ISO镜像挂载到刚创建的目录。假设ISO镜像文件名为example.iso,可以执行以下命令挂载ISO镜像:

sudo mount -o loop example.iso /media/cdrom

上述命令将会把example.iso镜像挂载到/media/cdrom目录。

现在,你可以通过浏览/media/cdrom目录来访问ISO镜像的内容。

  1. 我在执行以上两个命令时遇到了错误。报错信息如下:

[root@localhost kernels]# dkms install Jool/ Sign command: /lib/modules/3.10.0-1160.el7.x86_64/build/scripts/sign-file Signing key: /var/lib/dkms/mok.key Public certificate (MOK): /var/lib/dkms/mok.pub Error! Arguments <module> and <module-version> are not specified. Usage: add <module>/<module-version> or add -m <module>/<module-version> or add -m <module> -v <module-version>

这个错误是由于在执行dkms install命令时未指定正确的模块和模块版本引起的。dkms install命令需要指定需要安装的模块和相应的版本号。根据报错信息,你需要提供正确的模块名和版本号。

  1. 我在执行./autogen.sh命令时也遇到了错误。报错信息如下:

[root@localhost Jool]# ./autogen.sh configure.ac:8: error: Libtool version 2.4.6 or higher is required /usr/share/aclocal/libtool.m4:48: LT_PREREQ is expanded from... configure.ac:8: the top level autom4te: /usr/bin/m4 failed with exit status: 63 aclocal: error: echo failed with exit status: 63 aclocal: warning: couldn't open directory 'm4': No such file or directory configure.ac:8: error: Libtool version 2.4.6 or higher is required /usr/share/aclocal/libtool.m4:48: LT_PREREQ is expanded from... configure.ac:8: the top level autom4te: /usr/bin/m4 failed with exit status: 63

这个错误是由于在执行./autogen.sh脚本时,该脚本需要Libtool版本在2.4.6或更高。你可以按照以下步骤解决该问题:

  • 首先,确保你的系统已经安装了最新版本的Libtool。可以使用如下命令来安装/更新Libtool:

    sudo yum install libtool

  • 完成安装后,重新执行./autogen.sh脚本,应该就可以成功运行了。

如果你需要进一步的帮助,请提供更多的详细信息,这样我才能够更好地帮助你解决问题。


如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 写成博客, 将相关链接放在评论区, 以帮助更多的人 ^-^