Ping kroz mrežu

Dragan Eror's picture
network

Kako saznati koliko je mašina trenutno u mreži i koje su im IP adrese?
Tako što ćete u terminal ukucati sledeću komandu...

for ip in $(seq 1 254); do ping -c 1 192.168.1.$ip>/dev/null; \
[ $? -eq 0 ] && echo "192.168.1.$ip UP" || : ; done

Izvor: http://nultibitovi.net/node/91

Comments

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.