Thola i-IP yawo wonke amadivayisi axhunywe kunethiwekhi yethu yasendaweni

Umyalo wePing

Kungenzeka ukuthi kwesinye isikhathi uke wafuna ukwazi i- IP yedivayisi ixhunywe kunethiwekhi, noma mhlawumbe thola nje uhlu lwazo zonke iziteshi ezixhunyiwe ukubona isibonelo uma kukhona abangenayo. Kunezindlela eziningi zokukwenza, njengokubheka i-router, kepha ngaphandle kokungabaza okushesha kakhulu ukwenza umyalo ku-OS X Terminal.

Imiyalo ethuthukile

Siyabonga ku UNIX amandla futhi kusukela ekusetshenzisweni kwekheli lokusakaza le-subnet yethu, singathola umyalo lapho sizothola khona uhlu lweziteshi ezixhunyiwe cishe ngaso leso sikhathi. Umyalo wenza isicelo kuwo wonke amadivayisi wenethiwekhi ukuthi aphendule ngokushaya, ukuze kuhlungwe imininingwane kamuva (grep) futhi ayikhombise ngokucacile nangokulula, njengoba ubona kusikrini-skrini.

Umyalo okukhulunywa ngawo ulandelayo:

ping -c 3 192.168.1.255 | grep 'byte from' | awk '{phrinta $ 4}' | hlunga | uniq

Njalo ucabanga ukuthi inethiwekhi yakho iyi- 192.168.1.X. Uma inethiwekhi yakho ingu-192.168.0.X noma okunye ukuguqulwa, kuzofanela ushintshe umyalo ukuze uyenze isebenze, njengoba kunengqondo.

Akuyona into ozoyisebenzisa nsuku zonke noma into esindisa impilo yakho, kepha mhlawumbe kwesinye isikhathi uyayidinga (ikakhulukazi uma usebenzisa i-DHCP) bese izokuba yinhle.

Imininingwane engaphezulu - Okufanele ukwenze uma iMac yakho ingasebenzisi ijubane eliphezulu le-WiFi


Shiya umbono wakho

Ikheli lakho le ngeke ishicilelwe. Ezidingekayo ibhalwe nge *

*

*

  1. Ubhekele imininingwane: Miguel Ángel Gatón
  2. Inhloso yedatha: Lawula Ugaxekile, ukuphathwa kwamazwana.
  3. Ukusemthethweni: Imvume yakho
  4. Ukuxhumana kwemininingwane: Imininingwane ngeke idluliselwe kubantu besithathu ngaphandle kwesibopho esisemthethweni.
  5. Isitoreji sedatha: Idatabase ebanjwe yi-Occentus Networks (EU)
  6. Amalungelo: Nganoma yisiphi isikhathi ungakhawulela, uthole futhi ususe imininingwane yakho.

      URafael Izquierdo Lopez kusho

    Akusebenzi, kunginikeza iphutha "grep: from ': Alikho lelo fayela noma umkhombandlela"
    Yini engiyenzayo engalungile?

      U-Antonio Martin Lopez kusho

    Awenzanga lutho olungalungile, umyalo nje njengoba kubhaliwe ungasebenzi.

      i-asdf kusho

    Shintsha izingcaphuno zibe izingcaphuno ezizodwa

      UJoseph Higuera kusho

    Sawubona, uma umyalo ungikhonze, ngiyabonga kakhulu!

    ping -c 3 10.0.1.255 | grep 'byte from' | awk '{phrinta $ 4}' | hlunga | uniq

      Ubuso kusho

    Umyalo:

    i-arp -a

    Yenza okufanayo.
    Ukubingelela