#host
insmod /root/ngbe-1.0.6/src/ngbe.ko
#server
ip addr flush dev ens1f0
ip addr add 192.168.100.84/24 dev ens1f0
ip addr add 192.168.101.84/24 dev ens1f0
ip addr add 192.168.102.84/24 dev ens1f0
ip addr add 192.168.103.84/24 dev ens1f0
ip addr add 192.168.104.84/24 dev ens1f0
ip addr add 192.168.105.84/24 dev ens1f0
ip addr add 192.168.106.84/24 dev ens1f0
ip addr add 192.168.107.84/24 dev ens1f0
ip addr add 192.168.108.84/24 dev ens1f0
ip addr add 192.168.109.84/24 dev ens1f0
ip a
ip addr flush dev enp83s0f0
ip addr flush dev enp83s0f1
ip addr flush dev enp85s0f0
ip addr flush dev enp85s0f1
ip addr flush dev enp87s0f0
ip addr flush dev enp87s0f1
ip addr flush dev enp89s0f0
ip addr flush dev enp89s0f1
ip addr flush dev enp91s0f0
ip addr flush dev enp91s0f1
ip a
ip addr add 192.168.100.14/24 dev enp83s0f0
ip addr add 192.168.101.14/24 dev enp83s0f1
ip addr add 192.168.102.14/24 dev enp85s0f0
ip addr add 192.168.103.14/24 dev enp85s0f1
ip addr add 192.168.104.14/24 dev enp87s0f0
ip addr add 192.168.105.14/24 dev enp87s0f1
ip addr add 192.168.106.14/24 dev enp89s0f0
ip addr add 192.168.107.14/24 dev enp89s0f1
ip addr add 192.168.108.14/24 dev enp91s0f0
ip addr add 192.168.109.14/24 dev enp91s0f1
#server
systemctl status firewalld.service
systemctl disable firewalld.service
systemctl stop firewalld.service
#host
systemctl status firewalld.service
systemctl disable firewalld.service
systemctl stop firewalld.service
#server
killall iperf3
iperf3 -s -p 9910 -D
iperf3 -s -p 9911 -D
iperf3 -s -p 9912 -D
iperf3 -s -p 9913 -D
iperf3 -s -p 9914 -D
iperf3 -s -p 9915 -D
iperf3 -s -p 9916 -D
iperf3 -s -p 9917 -D
iperf3 -s -p 9918 -D
iperf3 -s -p 9919 -D
ps -ef|grep iperf
#host
iperf3 -c 192.168.100.84 -p 9910 -t 86400
iperf3 -c 192.168.101.84 -p 9911 -t 86400 -R
iperf3 -c 192.168.102.84 -p 9912 -t 86400
iperf3 -c 192.168.103.84 -p 9913 -t 86400 -R
iperf3 -c 192.168.104.84 -p 9914 -t 86400
iperf3 -c 192.168.105.84 -p 9915 -t 86400 -R
iperf3 -c 192.168.106.84 -p 9916 -t 86400
iperf3 -c 192.168.107.84 -p 9917 -t 86400 -R
iperf3 -c 192.168.108.84 -p 9918 -t 86400
iperf3 -c 192.168.109.84 -p 9919 -t 86400 -R
注意:局域网内部不需要配置网关也能通信,但是跨局域网需要配置网关,网关的配置命令如下:
route add default gw 172.17.197.254
配置172.17.197.85的网关为172.17.197.254