["ip_dst_addr"] = "10.12.0.1",["ip_src_addr"] = "10.12.0.1/16", -- the 16 is the size of the mask value ["sport"] = 9, -- Standard port numbers ["dport"] = 10, -- Standard port numbers ["ethType"] = "ipv4", -- ipv4|ipv6|vlan ["ipProto"] = "udp", --...
["ip_src_addr"] = "10.12.0.1/16", -- the 16 is the size of the mask value ["sport"] = 9, -- Standard port numbers ["dport"] = 10, -- Standard port numbers ["ethType"] = "ipv4", -- ipv4|ipv6|vlan ["ipProto"] = "udp", -- udp|tcp|icmp ["vlanid"] = 1, -- ...
["ip_src_addr"] = "10.12.0.1/16", -- the 16 is the size of the mask value ["sport"] = 9, -- Standard port numbers ["dport"] = 10, -- Standard port numbers ["ethType"] = "ipv4", -- ipv4|ipv6|vlan ["ipProto"] = "udp", -- udp|tcp|icmp ["vlanid"] = 1, -- ...
["ip_dst_addr"] ="1.1.1.1", ["ip_src_addr"] ="2.2.2.2", -- the16isthe size of the mask value ["sport"] =9999, --Standard port numbers ["dport"] =80, --Standard port numbers ["ethType"] ="ipv4", -- ipv4|ipv6|vlan ["ipProto"] ="tcp", -- udp|tcp|icmp ["vlanid...
这里只介绍最常用的命令,最常用的配置就是MAC,IPv4|IPv6|ARP,TCP|UDP|ICMP,SPORT|DPORT,PROTO,SEQ等 这些配置可以用 set命令来完成。除了set命令,常用的还有显示主页面,page 0 | page main 加载和保存 .lua脚本的配置信息 load | save <path-to-file> 启动/结束发包:...
["ethType"] = "ipv4", -- ipv4|ipv6 ["ipProto"] = "udp", -- udp|tcp|icmp ["vlanid"] = 1, -- 1 - 4095 ["pktSize"] = 128 -- 64 - 1518 }; -- seqTable( seq#, portlist, table ); pktgen.seqTable(0, "all", seq_table ); ...
IP src-IP sport dport ipv4|ipv6|vlan udp|tcp|icmp vid pktsize - Set the sequence packet information, make sure the src-IP has the netmask value eg 1.2.3.4/24 save <path-to-file> - Save a configuration file using the filename load <path-to-file> - Load a command/script file ...
tag的。所以需要用pktgen发送qinq包。 问题 qinq双层vlan tag,有些包大小超过了1518字节,pktgen不支持。 解决方案 修改 dpdk-2.1.0/x86_64-native-linuxapp-gcc/include/rte_ether.h: #define ETHER_MAX_LEN 1522 重新编译DPDK,Pktgen,重新加载DPDK驱动 资料 DPDK2.1.0: http://dpdk.org/bro ...
["ethType"] = "ipv4", -- ipv4|ipv6|vlan ["ipProto"] = "udp", -- udp|tcp|icmp ["vlanid"] = 1, -- 1 - 4095 ["pktSize"] = 128 -- 64 - 1518 }; -- seqTable( seq#, portlist, table ); pktgen.seqTable(0, "all", seq_table ); ...
这里只介绍最常用的命令,最常用的配置就是MAC,IPv4|IPv6|ARP,TCP|UDP|ICMP,SPORT|DPORT,PROTO,SEQ等 这些配置可以用 set命令来完成。 set命令图1 set命令图2 除了set命令,常用的还有显示主页面,page 0 | page main 加载和保存 .lua脚本的配置信息 load | save <path-to-file> ...