DPDK Pktgen send pkts and test DPDK examples (l2fwd/l3fwd)
Needs 2 machines (both installed DPDK), this can not success in one machine.
Pktgen in the sender machine
L2fwd in the Forwarde machine.
1) Start l2fwd firstly (listen port 1).
sudo ./build/l2fwd -- -p 0x2
2) Start pktgen (send pkts from port 0 -> port 1)
sudo ./app/x86_64-native-linuxapp-gcc/pktgen -l 0-2 -n 2 --file-prefix pg -- -P -m "[1.0]"
set port 0 dst mac "port 1 mac address"
Pktgen:/> set 0 dst mac 3c:fd:fe:a9:ce:c9 Pktgen:/> start 0
3) l2fwd will recieve data
posted on 2018-10-04 06:05 Quinn-Yann 阅读(1486) 评论(0) 编辑 收藏 举报