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
Akusebenzi, kunginikeza iphutha "grep: from ': Alikho lelo fayela noma umkhombandlela"
Yini engiyenzayo engalungile?
Awenzanga lutho olungalungile, umyalo nje njengoba kubhaliwe ungasebenzi.
Shintsha izingcaphuno zibe izingcaphuno ezizodwa
Sawubona, uma umyalo ungikhonze, ngiyabonga kakhulu!
ping -c 3 10.0.1.255 | grep 'byte from' | awk '{phrinta $ 4}' | hlunga | uniq
Umyalo:
i-arp -a
Yenza okufanayo.
Ukubingelela