Idanwo aworan atọka:
Ẹya eto: Ubuntu16.04
Fifi sori Tcpreplay: apt-gba fi tcpreplay sori ẹrọ
(Ẹya yii ti orukọ NIC ko pe eth0 ati eth1, awọn iyipada iṣeto ni atẹle)
eth0 ni ibamu si ens33 NIC: IP: 172.20.60.166 MAC: ec: a8: 6b: 82: 32: c1
eth1 ni ibamu si awọn ens32 NIC: IP: 172.20.60.165 MAC: 00: 13: 3b: 0f: 6a: fb
Idanwo igbesẹ akọkọ: Ṣaju kaṣe naa, aṣẹ ni:
tcpprep - onibara -i rzxSJ.pcap -o rzx.cach
Aṣẹ yii pin faili PCAP si alabara ati olupin, pẹlu alabara nipasẹ aiyipada. Nigbati o ba firanṣẹ, apo-iwe naa ni a firanṣẹ lati ọdọ alabara ati olupin.
Igbeyewo Igbeyewo 2: Tun adiresi IP ati adirẹsi MAC kọ, aṣẹ naa ni:
Tcprewrite - e 172.20.60.166:172.20.60.165 -- enet - 10-ikanni 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
Yi aṣẹ ìkọlélórí awọn IP ati Mac adirẹsi. O le lo ohun elo kan gẹgẹbi wireshark lati ṣii 111.pcap ati ṣayẹwo boya iyipada naa ṣaṣeyọri.
Igbeyewo Igbesẹ 3: Pakẹti tun ṣiṣẹ pẹlu aṣẹ atẹle:
tcpreplay -i ens33 -I ens32 -l 100 -t -c rzx.cach 111.pcap
ibudo ens33 ni ibamu si eth0. ibudo ens32 ni ibamu si eth1
Eyi ti o wa loke ni Shenzhen HDV Phoelectron Technology Ltd mu awọn alabara wa nipa nkan ifihan “ọna idanwo lọwọlọwọ tcpreplay”, ati pe ile-iṣẹ wa jẹ iṣelọpọ amọja ti awọn aṣelọpọ nẹtiwọọki opiti, awọn ọja ti o kan jẹONUjara (OLT ONU/ACONU/CATVONU/GPONONU/ XPONONU), jara opitika module (module okun opitika / Ethernet opitika module module / SFP opitika module),OLTjara (OLTohun elo /OLT yipada/ opitika ologboOLT), bbl