yasukata / tinyhttpd-lwip-dpdk

A tiny HTTP server built on lwIP and DPDK
Apache License 2.0
32 stars 7 forks source link

Cannot connect 10.0.0.2 after starting application using physical network interface #8

Closed 98hq closed 2 weeks ago

98hq commented 2 weeks ago

Hello After I started the program with an additional physical network interface, the following error was displayed when I tested it with the following command:

wrk http://10.0.0.2:10000/ -d 10 -t 1 -c 1 -L
unable to connect to 10.0.0.2:10000 Connection refused

The status of the network card device after my setting is as follows: Network devices using DPDK-compatible driver

===============================================
0000:02:04.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' drv=vfio-pci unused=e1000

Network devices using kernel driver
=====================================
0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper) 100f' if=ens33 drv=e1000 unused=vfio-pci *Active*

Would you like me to set anything else when testing with a physical network interface?

98hq commented 2 weeks ago

I solved the problem, I needed to configure my own IP address to make the network card work