I use range <portlist> src|dst ip <SMMI> <ipaddr> as the pktgen doc, and start all to send out packets. But it doesn't work. Do I miss some steps?
DPDK PKTGEN does not dynamically create randaom packets, instead it can be programmed with range option for desired start, minimum, maximum and increment factor. To generate packets with DST-MAC address for a given range using the following commands in pktgen cli
enable all range
page range
range all dst mac start 00:00:00:00:00:01
range all dst mac min 00:00:00:00:00:01
range all dst mac max ff:ff:ff:ff:ff:ff
range all dst mac inc 00:00:00:00:00:01
As per pkgetn range options one can change MAC, IP, VLAN, MPLS and GRE with range option.

note: tested on pktgen-20.03.0
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With