Rewrite PCAPs

From Observer GigaFlow Support | VIAVI Solutions Inc.
Jump to: navigation, search

The below will change the pcap.

Reading from the file Denver_10.238.12.30_10MinsNAT.pcap

Writing to the file Denver_10.238.12.30_10MinsNATTo15_1.pcap

Changing the destination mac (enet-dmac) to 00:e0:4c:71:78:d3 (this should be changed to the mac address of the server)

Changing the destination ip (dstipmap) to 172.21.1.1 (this should be changed to the ip address of the server)

tcprewrite --enet-dmac=00:e0:4c:71:78:d3 --dstipmap=0.0.0.0/0:172.21.1.1/32 --infile=Denver_10.238.12.30_10MinsNAT.pcap --outfile=Denver_10.238.12.30_10MinsNATTo15_1.pcap -C