F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.82k stars 895 forks source link

How to Realize Communication with External Network by f-stack #395

Open lyuan5399 opened 5 years ago

lyuan5399 commented 5 years ago

Hello ! My. / traffic is as follows:

[root@cu02 sbin]# ./traffic EAL: WARNING: Address Space Layout Randomization (ASLR) is enabled in the kernel . EAL: This may cause issues with mapping memory into secondary processes EAL: Invalid NUMA socket, default to 0 EAL: Invalid NUMA socket, default to 0 -------------------- -------------------- -------------------- ---------------- ---- rx packets rx bytes tx packets tx b ytes
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0
0 0 0 0

我想要f-stack与外网实现通信。应该如何操作?

jfb8856606 commented 5 years ago

Config the [port0] section's IP/NETMASK/BRAODCAST/GATEWAY of your NIC in the config.ini.

lyuan5399 commented 5 years ago

ok,I will try

lyuan5399 commented 5 years ago

Config the [port0] section's IP/NETMASK/BRAODCAST/GATEWAY of your NIC in the config.ini.

Thank you very much.The problem has been solved.

-------------------- -------------------- -------------------- -------------------- rx packets rx bytes tx packets tx bytes
158 16625 0 0
91 14620 0 0
147 14825 0 0
72 9548 0 0
155 15784 0 0
67 10204 0 0
152 19445 0 0
69 8794 0 0
142 14520 0 0

[root@cu02 sbin]# curl 202.4.157.30 <!DOCTYPE html>

Welcome to F-Stack!

Welcome to F-Stack!

For online documentation and support please refer to F-Stack.org.

Thank you for using F-Stack.

[root@cu02 sbin]#