Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I was looking at the IP of our backup server just now, and realized it didn't conform to the numbering scheme used for the other servers. If was about to ifconfig it to match the scheme. I was going to check the DHCP list to see which IP #s are still available, and that got me wondering. Is there any command I can use to determine if an IP # is free?
for something as simple as checking your own network, a ping should do fine. In other cases, you might want something like a port scanner or Nessus, or even just hping set to different common ports, to make sure that something is not just dropping ICMP (ping) packets.
Yes, pinging comes to mind, but one problem I see with this if reliability. What if I'm checking if 192.10.134.3 is free? I ping it, and if it's free I get icmp_seq=1 Destination Host Unreachable, right? The problem is, I would get this exact same error message, in the event of this IP already having been assigned to a machine, and the machine happens to be unplugged for a given reason.
That's why I was hoping for something for definitive than ping.
Nmap done: 256 IP addresses (78 hosts up) scanned in 14.327 seconds
When dealing with Static IP addresses, it's up to the Network administrator to DOCUMENT the used IP addresses, and keep that documentation up to date. The documentation should be your definitive resource.
have you tried ping ip_address_here? Again you can also try using nmap as earlier advised. That way you get a response then the ip is not free and you can further use nmap to roughly try and pin-point which machine is using the ip.
If not then the machine is off at that moment or the ip is not in use at all.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.