2016-09-26 250 views
0

我使用的终端上运行以下命令产生d-ITG流量, 命令:d-ITG流量发送

ITGSend -a 10.1.1.129 -T TCP -sp 49000 -rp 49000 -C 100 -c 500 -t 2000 -l sender.log

然后,它示出了以下错误消息:

flowSender: Address family not supported by protocol 
Could not bind a new socket. Flow ID: 1 
Error - FlowSender interrupted by an error 
Finished sending packets of flow ID: 1 

所以请建议我提供更好的解决方案来设置D-ITG流量中的源端口。

回答

0

对于这一点,你应该参考以下链接:http://traffic.comics.unina.it/software/ITG/manual/ 对于设置在DITG的源和目的端口,下列选项可用。

-sp <src_port>   Set the source port (default: Set by O.S.). 
This option applies only to traffic flow. 

-rp <dest_port>   Set the destination port (default: 8999). 
This option applies only to traffic flows. 

根据他们列入DITG手册的示例,我们可以使用这些选项来设置源和目标端口。