Whakamatau hoahoa hoahoanga:
Putanga Pūnaha: Ubuntu16.04
Tcpreplay tāutanga: apt-tiki tāuta tcpreplay
(Ko tenei putanga o te ingoa NIC kaore e kiia ko eth0 me eth1, ko nga huringa whirihoranga e whai ake nei)
eth0 e hāngai ana ki te ens33 NIC: IP: 172.20.60.166 MAC: ec:a8:6b:82:32:c1
eth1 e hāngai ana ki te ens32 NIC: IP: 172.20.60.165 MAC: 00:13:3b:0f:6a:fb
Whakamatauhia te taahiraa tuatahi: Whakatuwherahia te Keteroki, ko te whakahau:
tcpprep -he kiritaki -i rzxSJ.pcap -o rzx.cach
Ko tenei whakahau ka wehewehe i te konae PCAP ki te kiritaki me te tūmau, me te kiritaki ma te taunoa. Ina tukuna, ka tukuna mai te kete mai i te kiritaki me te tūmau.
Te taahiraa whakamatautau 2: Tuhia ano te wahitau IP me te wahitau MAC, ko te whakahau:
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. Keteroki -i rzxSJ. Pcap - o 111. Pcap
Ko tenei whakahau ka tuhirua i nga wahitau IP me MAC. Ka taea e koe te whakamahi i tetahi taputapu penei i te wireshark ki te whakatuwhera i te 111.pcap ka tirohia mena kua angitu te whakarereketanga.
Te taahiraa whakamatautau 3: Whakatangihia ano te paatete me te whakahau e whai ake nei:
tcpreplay -i ens33 -I ens32 -l 100 -t -c rzx.cach 111.pcap
Ko te tauranga ens33 he rite ki te eth0. Ko te tauranga ens32 he rite ki te eth1
Ko te mea kei runga ake ko Shenzhen HDV Phoelectron Technology Ltd. kawe mai i nga kaihoko mo te tuhinga whakataki "tcpreplay o naianei whakamatautau", a ko ta matou kamupene he hanga motuhake o nga kaihanga whatunga whatu, ko nga hua kei roto koONUraupapa (OLT ONU/ACONU/CATVONU/GPONONU/XPONONU), raupapa kōwae whatu (kōwae muka whatu / kōwae muka whatu Ethernet / kōwae whatu SFP),OLTraupapa (OLTtaputapu /OLT whakawhiti/ ngeru whatuOLT), me etahi atu, he maha nga korero mo nga hua korero mo nga hiahia o nga ahuatanga rereke mo te tautoko whatunga, nau mai ki te korero.