Nrhiav tus IP ntawm txhua cov khoom siv txuas nrog peb lub network

Ping hais kom ua

Nws yog qhov tau hais tias nyob rau qee lub sijhawm koj tau xav paub qhov IP ntawm ib lub cuab yeej txuas nrog lub network, lossis kab tias tsuas yog tau txais cov npe ntawm txhua qhov chaw nres tsheb sib txuas kom pom piv txwv yog tias muaj ib tus nkag kis. Muaj ob peb txoj hauv kev los ua nws, xws li saib ntawm lub router, tab sis tsis muaj ib qho tsis ntseeg tias qhov nrawm tshaj plaws yog los ntawm kev coj ua cov lus txib hauv OS X Terminal.

Advanced cov lus txib

Tsaug rau UNIX zog thiab los ntawm cov nqi hluav taws xob ntawm qhov chaw tshaj tawm ntawm peb lub subnet, peb tuaj yeem tau txais cov lus txib uas peb yuav tau txais cov npe ntawm cov chaw txuas nrog yuav luag tam sim ntawd. Qhov kev hais kom ua ib qho kev thov rau txhua lub network sib txuas lus teb los ntawm pinging, tom qab lim cov ntaub ntawv (grep) thiab muab tso tawm kom pom meej thiab yooj yim dua, raws li koj tuaj yeem pom hauv lub screenshot.

Cov lus nug hauv nqe lus nug yog cov hauv qab no:

ping -c 3 192.168.1.255 | grep 'bytes los ntawm' | awk '{luam $ 4}' | tsi | uniq

Ib txwm xav tias koj lub network yog 192.168.1.X. Yog tias koj lub network yog 192.168.0.X lossis lwm qhov kev hloov kho, koj yuav tsum hloov txoj kev hais kom ua haujlwm, kom tsim nyog.

Nws tsis yog tej yam uas koj yuav siv todos los días lossis cov nqi hluav taws xob uas txuag koj lub neej, tab sis qee zaum qee zaus koj xav tau (tshwj xeeb yog koj siv DHCP) thiab tom qab ntawv nws yuav zoo dua.

Cov Lus Qhia Ntxiv - Yuav ua li cas yog tias koj Mac tsis siv qhov siab tshaj plaws ntawm WiFi ceev


Cov ntsiab lus ntawm tsab xov xwm ua raws li peb cov ntsiab cai ntawm kev tswj hwm kev ncaj nceesCov. Tshaj tawm ib qho yuam kev nyem no.

5 lus, tawm koj li

Tso koj saib

Koj email chaw nyob yuav tsis tsum luam tawm. Yuav tsum tau teb cov cim nrog *

*

*

  1. Lub luag haujlwm rau cov ntaub ntawv: Miguel Ángel Gatón
  2. Lub hom phiaj ntawm cov ntaub ntawv: Tswj SPAM, kev tswj xyuas tawm tswv yim.
  3. Sau raws cai: Koj kev tso cai
  4. Kev sib txuas lus ntawm cov ntaub ntawv: Cov ntaub ntawv yuav tsis raug xa mus rau lwm tus neeg thib peb tsuas yog los ntawm kev txiav txim siab raug cai.
  5. Cov ntaub ntawv khaws cia: Cov Ntaub Ntawv khaws tseg los ntawm Occentus Networks (EU)
  6. Txoj Cai: Txhua lub sijhawm koj tuaj yeem txwv, rov qab thiab tshem tawm koj cov ntaub ntawv.

  1.   Rafael Izquierdo Lopez said

    Nws tsis ua haujlwm, nws muab qhov yuam kev rau kuv "grep: ntawm ': Tsis muaj cov ntaub ntawv lossis phau ntawv qhia"
    Kuv ua dab tsi tsis ncaj ncees lawm?

  2.   Antonio Martin Lopez: koj puas xav tau ntau tus thwjtim? said

    Koj tsis tau ua txhua yam tsis yog, tsuas yog lo lus txib raws li nws sau xwb tsis ua haujlwm.

  3.   asdf said

    Hloov cov nqi lus tib leej

  4.   Jose Higuera: koj puas xav tau ntau tus thwjtim? said

    Nyob zoo, yog tias qhov lus txib ua haujlwm rau kuv, ua tsaug ntau ntau!

    ping -c 3 10.0.1.255 | grep 'bytes los ntawm' | awk '{luam $ 4}' | tsi | uniq

  5.   Facundo said

    Cov lus txib:

    arp - ib

    Nws los zoo ib yam.
    Txais tos.