欢迎来到 DPDK交流社区 ,有什么问题可以尽管在这里提问,您将会收到社区其他成员的回答;也可以将您的总结写在这里,为社区其他成员提供帮助。 QQ交流2群:635461501

使用L2fwd 绑定网卡后,网卡不能联网接受互联网的数据,请受累帮忙看下

+2 投票
下面这些是我在DPDK 的maillist提问的内容,但是长时间也没有回答
Dear, everyone
               i am trying to run dpdk-app l2fwd , my test environment : 4core and my network status  as below informations

               Network devices using DPDK-compatible driver
               ============================================
               0000:02:05.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=
               0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=

               Network devices using kernel driver
               ===================================
               0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eno16777736 drv=e1000 unused=igb_uio *Active*

 The test result was :

              Port statistics ====================================
              Statistics for port 0 ------------------------------
              Packets sent:                        0
              Packets received:                    0
              Packets dropped:                     0
              Statistics for port 1 ------------------------------
              Packets sent:                        0
              Packets received:                    0
             Packets dropped:                     0
              Aggregate statistics ===============================
             Total packets sent:                  0
             Total packets received:              0
             Total packets dropped:               0
              ====================================================
 I can connect the network ,but there's nothing data was forwarded such as from eth 0 to eth 1 , then i tried to change the nic 0000:02:01.0 to "igb_uio"

 e.g.
Network devices using DPDK-compatible driver
============================================
0000:02:01.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=
0000:02:05.0 '82545EM Gigabit Ethernet Controller (Copper)' drv=igb_uio unused=

Network devices using kernel driver
===================================
0000:02:06.0 '82545EM Gigabit Ethernet Controller (Copper)' if=eno50332208 drv=e1000 unused=igb_uio *Active*

In this situation,Data was  forwarded ,but  i cannot connect Network.So it's not my expected
I want to my NIC(e.g.eth0) can be received data from network ,then forward to another NIC(e,g.eth1)
Please tell me what should i do ,if you know that ...
Expect you reply
Best Regards .
最新提问 9月 11, 2016 分类:DPDK初学入门 | 用户: AlexLuo (140 分)

3 个回答

0 投票
你是在虚拟机下面测试的吗?

确认一下虚拟机的配置是不是启用混杂模式了?
最新回答 9月 12, 2016 用户: sysight (12,820 分)
恩 我实在虚拟机下面进行测试的, 没有启用混杂模式,网络适配器分别显示的是NAT和仅主机模式
ethernet0.present = "TRUE"
ethernet0.connectionType = "nat"
ethernet0.virtualDev = "e1000"
ethernet0.wakeOnPcktRcv = "FALSE"
ethernet0.addressType = "generated"

ethernet1.present = "TRUE"
ethernet1.connectionType = "hostonly"
ethernet1.wakeOnPcktRcv = "FALSE"
ethernet1.addressType = "generated"
ethernet1.virtualDev = "e1000"

ethernet2.present = "TRUE"
ethernet2.connectionType = "hostonly"
ethernet2.wakeOnPcktRcv = "FALSE"
ethernet2.addressType = "generated"
ethernet2.virtualDev = "e1000"
还有我在DPDK MailList上又提出了一个新的问题,我觉得两个问题其实属于一个,您也可以受累看看
Dear, everyone

                        I am trying to ping my destination address base on l2fwd app .The test case as below description .

PC -> Send ping command  (ping 192.168.7.200)  

Server1  : eth0(192.168.7.162) connect to 'Switch'  . Bind eth1,eth2 and change them to 'ibg_uio'

the eth1 connected 'Switch' by the network cable and  --------eth2 connected----------- destination server (eth0)(192.168.7.200)

Now I want to ping 192.168.7.200 in my PC , the destination server can be receviced ARP boardcast from my PC (192.168.1.171) but No response


such as :in the "destination server "to use tcpdump:
->>>>>>>>>>>>>>>>tcpdump -i eth0  -X -n host 192.168.1.171
->>Result: ARP,Request who has 192.168.1.200 tell 192.168.1.171 ,length 46
->>0x0000 .....0x0000............................
.......................................................
.......................................................
Of course , the ping result was failed ......So.....
If I  want to ping successfully ,what should I do ?

Best Regards
0 投票
你现在的测试拓扑是什么样的?可以把拓扑图发一下。文字描述不太直观!
最新回答 9月 13, 2016 用户: oops (2,210 分)
+1 投票
http://www.programgo.com/article/97692728131/

今天刚好看了这个帖子. 首先, 确定下port link status 是up还是down. 然后, 根据帖子中第二条做相应调整. 希望能帮到你.
最新回答 9月 22, 2016 用户: Terry.Wei (810 分)
...