Reputation: 1
I am trying to use the pktgen to generate the test pkt to fullfill a task
I am using the testing script from https://github.com/torvalds/linux/tree/master/samples/pktgen
using the command like this
bash pktgen_sample02_multiqueue.sh -i eth1 -d <ip> -s 64 -m <mac> -c 10 -p 40000-40003 -n 0 -t 2 -x
and it's working on centos7.9
But I want to set the pkt ttl to 255(max ttl) and I using the
echo "ttl 255 " > /proc/net/pktgen/eth1@0
and show's the error
-bash: echo: write error: Invalid argument
does anyone can show me if pktgen can support to set the ttl ?
Upvotes: 0
Views: 7