dhclient enp1s0
edit /etc/sysconfig/network-scripts/ifcfg-enp1s0

cd /etc/yum.repos.d/
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*

dnf distro-sync

dnf install git -y

yum install -y gcc 
yum install -y numactl-devel.x86_64
dnf --enablerepo=powertools install meson
yum install -y kernel-devel

pip3 install pyelftools

yum install -y libgcc*i686 libstdc++*i686 glibc*i686

tar -xvf dpdk-stable-21.11.2.tar
cd dpdk-stable-21.11,2

PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig meson build-64
ninja -C build-64

PKG_CONFIG_LIBDIR=/usr/lib/pkgconfig meson -Dc_args='-m32' -Dc_link_args='-m32' build-32
ninja -C build-32

sudo mkdir /dev/hugepages2M
sudo mount -t hugetlbfs -o pagesize=2M none /dev/hugepages2M
echo 512 | sudo tee /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages

# Manually build dpdk-mods

sudo ./usertools/dpdk-devbind.py -u 0000:07:00.0 --force
sudo ./usertools/dpdk-devbind.py -u 0000:08:00.0 --force
sudo modprobe uio
sudo insmod /home/dpdk/dpdk-kmods/linux/igb_uio/igb_uio.ko
sudo ./usertools/dpdk-devbind.py -b igb_uio 0000:07:00.0 
sudo ./usertools/dpdk-devbind.py -b igb_uio 0000:08:00.0