Fa'ata'ita'iga fa'ata'ita'iga:
Faiga faiga: Ubuntu16.04
Tcpreplay faʻapipiʻi: apt-get install tcpreplay
(O lenei faʻamatalaga o le igoa NIC e le o taʻua o le eth0 ma le eth1, o suiga o loʻo i lalo)
eth0 e fetaui ma ens33 NIC: IP: 172.20.60.166 MAC: ec:a8:6b:82:32:c1
eth1 e fetaui ma le ens32 NIC: IP: 172.20.60.165 MAC: 00:13:3b:0f:6a:fb
Faʻataʻitaʻi le laasaga muamua: Muamua le Cache, o le poloaiga o le:
tcpprep -se tagata fa'atau -i rzxSJ.pcap -o rzx.cach
O lenei fa'atonuga e vaelua ai le faila PCAP i le tagata fa'atau ma le 'au'aunaga, fa'atasi ai ma le kalani e le mafai. A lafo, e lafo mai le pepa mai le kalani ma le server.
Laasaga suʻega 2: Toe tusi le tuatusi IP ma le tuatusi MAC, o le poloaiga o le:
Tcprewrite - e 172.20.60.166:172.20.60.165 -- enet - 10-channel dmac = 00:13:3 b: 0 f: 6 a: fb, ec, a8:6 b: 82-32: c1 - enet - smac = ec: a8:6 b: 82-32: c1, 00:13:3 b: 0 f: 6 a: fb - c RZX. Cach -i rzxSJ. Pcap - o 111. Pcap
O lenei poloaiga e suitulaga ai tuatusi IP ma MAC. E mafai ona e fa'aogaina se meafaigaluega e pei ole wireshark e tatala ai le 111.pcap ma siaki pe manuia le suiga.
Su'ega Laasaga 3: Toe ta'alo le pepa ma le fa'atonuga lea:
tcpreplay -i ens33 -I ens32 -l 100 -t -c rzx.cach 111.pcap
ens33 port e fetaui ma le eth0. ens32 port e fetaui ma le eth1
O loʻo i luga o le Shenzhen HDV Phoelectron Technology Ltd. aumai tagata faʻatau e uiga i le "tcpreplay current test method" folasaga tusiga, ma o la matou kamupani o se gaosiga faʻapitoa o gaosiga o fesoʻotaʻiga opitika, o oloa e aofia ai.ONUfaasologa (OLT ONU/ACONU/CATVONU/GPONONU/XPONONU), Fa'asologa o fa'asologa o mea mata'utia (mo'ega fiber optika / module fa'apipi'i eletise Ethernet / module fa'apipi'i SFP),OLTfaasologa (OLTmea faigaluega/OLT sui/ pusi mataOLT), ma isi, o loʻo i ai faʻamatalaga eseese o oloa fesoʻotaʻiga mo manaʻoga o faʻaaliga eseese mo fesoʻotaʻiga lagolago, faʻafeiloaʻi e feutagai.