Showing posts with label Ping. Show all posts
Showing posts with label Ping. Show all posts

August 14, 2014

Finding IP address to MAC and vice versa on same network (subnet) or different subnet which is reachable by ping

Hi all,

After long time I got a chance to write the blog.

 

This time it is related to networking.

 

Finding out which all the system up on the network

Syntax

cmd> nmap –sP < regex IP >

Example

cmd> nmap –sP 192.168.1.*

 

Finding MAC address of a device which is connected in same network

Syntax

cmd> ping <broadcast address>

cmd> arp –a [ <IP address> ]

 

Example

cmd> ping 192.168.1.255

cmd> arp –a –> Gives all the IP address and MAC address in the same subnet network

cmd> arp –a 192.168.1.25 –> Give the MAC of the specified IP address

 

arp –a : Lists all the IP addresses which are recently got into network with its MAC addresses

 

Finding MAC address of a device which is connected in same network but different subnet

Syntax

nbtstat –A <IP address>

Example

nbtstat –A 192.168.2.45

 

Please send your comments and feedback to psrdotcom@gmail.com

May 07, 2013

Create a command shortcut icon in windows to run a command like pinging Google website

Hi,

One of my friend asked me about how we can check whether ping/network is active or not?

He suggested that, if we have a shortcut command icon on desktop to create ping command then it would be easy for any naïve user to check whether ping/network is active or not?

 

Objective:

Creating Ping command shortcut with google.com

 

Procedure:

  1. Right click on the desktop
  2. Select “New” from the pop-up menu
  3. Choose “Shortcut” option
  4. Enter “cmd.exe /K ping google.com” as type of location of the item
  5. Click on “Next” button
  6. Enter “Ping Google” as name for the shortcut
  7. Click on “Finish” button
  8. Now you will be able to view a shortcut icon on desktop with name “Ping Google “ name
  9. When you run (Double click/Select and Enter) the “Ping Google”, you will be able to see that the command prompt displaying the content of running a ping to google.com

 

Send your feedback and comments to psrdotcom@gmail.com

Featured Post

Java Introdcution

Please send your review and feedback to psrdotcom@gmail.com