Gano IP na duk na'urorin da aka haɗa zuwa cibiyar sadarwarmu ta gida

Umurnin Ping

Zai yiwu cewa a wani lokaci kana so ka san IP na na'ura an haɗa shi da hanyar sadarwar, ko kuma kawai a sami jerin duk tashoshin da aka haɗa don ganin misali idan akwai masu kutse. Akwai hanyoyi da yawa don yin shi, kamar kallon na'ura mai ba da hanya tsakanin hanyoyin sadarwa, amma ba tare da wata shakka ba mafi sauri shine ta aiwatar da umarni a cikin OS X Terminal.

Ingantattun umarni

Godiya ga UNIX iko kuma ta amfani da adreshin watsa shirye-shiryen subnet dinmu zamu iya samun umarnin da zamu samu jerin tashoshin da aka hada kusan nan take. Umurnin yayi nema ga dukkan na'urorin sadarwar don amsawa ta hanyar ping, don daga baya tace bayanin (grep) da nuna shi a fili da sauƙi, kamar yadda kake gani a cikin hoton.

Umurnin da ake tambaya shine mai zuwa:

ping -c 3 192.168.1.255 | shafa 'bytes daga' | awk '{buga $ 4}' | irin | uniq

Koyaushe ɗauka cewa hanyar sadarwarka ce 192.168.1.X. Idan hanyar sadarwar ku ta 192.168.0.X ko wani gyare-gyare, dole ne ku canza umarnin don yin aiki, kamar yadda ya dace.

Ba wani abu bane wanda zakuyi amfani dashi kowace rana ko wata hanyar amfani wacce zata ceci rayuwar ka, amma watakila wani lokaci kana bukatar ta (musamman idan kayi amfani da DHCP) sannan zai zama mai kyau.

Informationarin bayani - Abin da za a yi idan Mac ɗinku ba ya amfani da iyakar saurin WiFi


Abubuwan da ke cikin labarin suna bin ka'idodinmu na ka'idojin edita. Don yin rahoton kuskure danna a nan.

5 comments, bar naka

Bar tsokaci

Your email address ba za a buga. Bukata filayen suna alama da *

*

*

  1. Mai alhakin bayanan: Miguel Ángel Gatón
  2. Dalilin bayanan: Gudanar da SPAM, gudanar da sharhi.
  3. Halacci: Yarda da yarda
  4. Sadarwar bayanan: Ba za a sanar da wasu bayanan ga wasu kamfanoni ba sai ta hanyar wajibcin doka.
  5. Ajiye bayanai: Bayanin yanar gizo wanda Occentus Networks (EU) suka dauki nauyi
  6. Hakkoki: A kowane lokaci zaka iyakance, dawo da share bayanan ka.

  1.   Rafael Izquierdo Lopez m

    Ba ya aiki, ya ba ni kuskure "grep: daga ': Babu irin wannan fayil ɗin ko kundin adireshin"
    Me nake yi ba daidai ba?

  2.   Hoton Antonio Lopez m

    Ba ku yi wani laifi ba, umarnin kawai kamar yadda yake a rubuce ba ya aiki.

  3.   asdf m

    Canja ƙididdiga zuwa guda ɗaya

  4.   Jose Higuera m

    Barka dai, idan umarnin yayi min aiki, na gode sosai!

    ping -c 3 10.0.1.255 | shafa 'bytes daga' | awk '{buga $ 4}' | irin | uniq

  5.   facindo m

    Umurnin:

    arp -a

    Yana aikata wannan.
    Na gode.