Method for an EPC instance to obtain the source IP address

Last updated:2021-05-26 16:59:41

CentOS

Step 1. View the system kernel version.

In the following example, the system kernel version is 3.10.0-957.1.3.el7.x86_64:

# uname -r #
# 3.10.0-957.1.3.el7.x86_64

Step 2. Download the RPM package based on the kernel version.

Download the CentOS RPM package, and find the RPM package of the corresponding kernel version.

If you fail to find the package, obtain it from the CentOS website:
https://wiki.centos.org/HowTos/I_need_the_Kernel_Source

# rpm -ivh kernel-devel-3.10.0-327.el7.x86_64.rpm

Step 3. Install dependencies.

# sudo yum install rpm-build redhat-rpm-config asciidoc hmaccalc perl-ExtUtils-Embed pesign xmlto
$ sudo yum install audit-libs-devel binutils-devel elfutils-devel elfutils-libelf-devel gcc
$ sudo yum install ncurses-devel newt-devel numactl-devel pciutils-devel python-devel zlib-devel

Step 4. Compile and install the TTM module.

Download TTM source code

# tar -xvf kgwttm.tar.bz2
# cd kgwttm
# ./build.sh
# rpm -ivh *.rpm
# sh /usr/local/bin/kgwttm-insmod.sh
# lsmod |grep kgwttm

Did you find the above information helpful?

Unhelpful
Mostly Unhelpful
A little helpful
Helpful
Very helpful

What might be the problems?

Insufficient
Outdated
Unclear or awkward
Redundant or clumsy
Lack of context for the complex system or functionality

More suggestions

0/200

Please give us your feedback.

Submitted

Thank you for your feedback.

问题反馈