Yuav Siv Tus IP Qhov Chaw Los Nrhiav Ib Lub Chaw MAC

TCP / IP lub computer sib txuas siv ob qhov chaw tus IP thiab MAC chaw nyob ntawm cov neeg siv kev sib txuas. Thaum tus IP chaw hloov lub sijhawm, MAC chaw nyob ntawm lub network adapter yeej qis ib yam nkaus.

Muaj ntau ntau yam koj yuav xav paub MAC qhov chaw nyob ntawm lub computer nyob rau tej thaj chaw deb, thiab nws yooj yim heev los ntawm kev siv lub hwjchim hais kom ua haujlwm , xws li Kev Hais Kom Cuam Tshuam ntawm qhov rais.

Ib qho cuab yeej nkaus xwb muaj peev xwm muaj ntau lub network interfaces thiab MAC chaw nyob. Ib lub computer laptop nrog Ethernet , WI-nkaus , thiab Bluetooth txuas, piv txwv, muaj ob los sis qee zaum peb MAC chaw nyob nrog nws, ib qho rau txhua lub network.

Vim licas thiaj li tawm qhov MAC Chaw Nyob?

Muaj ntau qhov laj thawj los mus teev cia MAC chaw nyob ntawm lub cuab yeej network:

Cov kev txwv ntawm MAC Address Lookups

Hmoov tsis, nws tsis yog feem ntau tuaj yeem nrhiav MAC chaw nyob rau cov khoom siv sab nraum tus neeg lub cev. Feem ntau nws tsis muaj peev xwm txiav txim tau qhov MAC chaw nyob ntawm lub computer los ntawm nws tus IP chaw nyob vim tias ob qhov chaw nyob los ntawm ntau qhov chaw.

Lub tshuab computer tus kheej hardware configuration txiav txim tias nws qhov chaw nyob MAC thaum lub teeb tsa ntawm lub network nws yog txuas nrog txiav txim nws tus IP address.

Txawm li cas los xij, yog tias cov computers txuas mus rau tib lub TCP / IP network, koj tuaj yeem txiav txim siab MAC chaw nyob los ntawm cov cuab yeej hu ua ARP (Chaw Nyob Siv Tshuaj Tiv Thaiv) , uas muaj nyob nrog TCP / IP.

Siv ARP, txhua lub network interface hauv nruab nrab ntawm qhov chaw tus IP thiab MAC chaw nyob rau txhua lub tshuab nws twb nyuam qhuav sib tham nrog. Feem ntau cov computers cia koj pom daim ntawv teev cov chaw nyob uas ARP tau khaws.

Yuav Siv Li Cas Yuav Tshawb Qhov Chaw MAC

Hauv Windows, Linux, thiab lwm cov kev khiav hauj lwm nruab , qhov kev pabcuam ua haujlwm "arp" qhia txog MAC chaw nyob hauv cov lus qhia hauv ARP cache. Txawm li cas los xij, nws tsuas ua haujlwm nyob rau hauv pawg tsawg ntawm cov computers hauv cheeb tsam network (LAN) , tsis nyob hauv internet.

Lus cim: Muaj ib txoj kev sib txawv uas siv los nrhiav MAC chaw nyob ntawm lub tshuab koj tab tom siv , uas siv cov ipconfig / tag nrho cov lus txib (hauv qhov rais).

ARP yog tsim los siv los ntawm cov neeg khiav dej num cov thawj coj thiab tsis yog ib qho tseem ceeb tshaj plaws los mus saib xyuas cov computers thiab cov neeg hauv internet.

Txawm li cas los xij, hauv qab no yog ib qho piv txwv ntawm yuav nrhiav tus MAC chaw nyob ntawm IP chaw nyob. Ua ntej, pib los ntawm pinging lub cuab yeej koj xav kom MAC rau chaw nyob rau:

ping 192.168.86.45

Ping command yog tsim kom muaj kev sib txuas nrog rau lwm yam cuab yeej ntawm lub network thiab yuav tsum tau tshwm sim xws li qhov no:

Pinging 192.168.86.45 nrog 32 bytes ntawm cov ntaub ntawv: Teb ntawm 192.168.86.45: bytes = 32 lub sij hawm = 290ms TTL = 128 Teb ntawm 192.168.86.45: bytes = 32 lub sij hawm = 3ms TTL = 128 Teb ntawm 192.168.86.45: bytes = 32 lub sij hawm = 176ms TTL = 128 Teb ntawm 192.168.86.45: bytes = 32 lub sij hawm = 3ms TTL = 128

Siv cov lus txib hauv qab no kom tau txais ib daim ntawv teev qhia tias MAC chaw nyob ntawm qhov uas koj tau pinged:

arp - ib

Cov kev sib tw yuav pom tej yam zoo li no, tiam sis tej zaum muaj ntau yam kev sau npe:

Interface: 192.168.86.38 --- 0x3 Chaw nyob Chaw Nyob Lub Cev Chaw Nyob 192.168.86.1 70-3a-cb-14-11-7a dynamic 192.168.86.45 98-90-96-B9-9D-61 dynamic 192.168.86.255 ff- ff-ff-ff-ff-ff static 224.0.0.22 01-00-5e-00-00-16 static 224.0.0.251 01-00-5e-00-00-fb static

Nrhiav tus ntaus ntawv tus IP nyob hauv daim ntawv; MAC chaw nyob yog muaj txoj kab ntawm nws. Hauv qhov ua piv txwv no, IP chaw yog 192.168.86.45 thiab nws qhov chaw nyob hauv MAC yog 98-90-96-B9-9D-61 (lawv nyob hauv daim ntawv no).