Experts predict that by 2025 nosotros'll have more 75 billion continued devices, a number well-nigh triple that recorded in 2019. With networks becoming far more dynamic and complex than ever before, the ability to find IP addresses on the network is essential.

As well, people are connecting to visitor networks with an ever-increasing number of devices, leading to increased risk not only in security only also in maintenance and management.

In that location'south also the matter of people connecting to company networks with personal devices. According to Bitglass' 2020 Bring Your Ain Device Report, near 85% of companies allow their employees to use personal devices on their networks. Security isn't keeping up either, with 63% of respondents maxim they were worried nearly information leakage, 53% concerned about unauthorized access to data, and 52% concerned most malware infections.

Fifty-fifty in this environment, network administrators are still expected to ensure the health and security of their network. While it's certainly challenging, it's not an impossible task. It starts with being able to observe IP addresses on the network finer.

What is an IP address?

An Internet Protocol (IP) accost is a 32-bit number used to identify a device or a network (IPv4 is 32-bit while IPv6 is 128 bits, simply allow's focus on IPv4 for now). In its simplest, when you lot connect to a network, the IP address associated with your device allows you to send and receive information with other devices on that network or across the internet.

Let'southward say you want to access a specific website. The first thing you'd do is enter a URL into your browser, which queries your domain name server (DNS) to find the IP address associated with that website. This enables your device to discover and connect to the relevant website by its IP address.

IP addresses are in Layer 3 (the network layer) of the Open Systems Interconnect (OSI) model. This layer takes intendance of data routing and transmission from one network to another. It selects the shortest possible path from one host to another on different networks. It also identifies whether the parcel is destined for the local host, a different host on the local network, or a different network altogether, and in this case information technology does the necessary routing to the address contained in the frame.

While IP addresses need to be unique in a network, they are not always tied to a specific device. IP addresses tin be set manually (called a static IP), or can be set dynamically using a protocol such as DHCP.

The importance of IP addressing in networking

IP addresses let united states build complex networks that don't require devices to exist direct continued. That'south because IP addresses are broken into two components, the network address and the host address, enabling network engineers to design networks without needing to worry about the specific addresses of every host.

When a network is designed, a network engineer has to ascertain the subnet mask, which decides how many of the bachelor 32-bits will represent the network address, and how many of the $.25 will represent the host address.

Information technology's similar to sending a piece of post. The mail office commencement sorts the post based on a cypher code (the network), then as the mail gets closer to the destination, it further sorts the mail based on the street accost (the host). Sorting millions of pieces of mail by street address solitary wouldn't be scalable, as you'd have a mail service office in New York Metropolis sorting mail service destined for an accost in Los Angeles.

GIF of mail sorting

Source: Deverite

Every bit a device is making routing decisions, it volition leverage the subnet mask to determine whether an IP address is in the same network as the electric current device, or if information technology is in a different network.

Classful vs. classless addressing

The topic of network accost and host address tin be tricky, and warrants a flake more than discussion. To help, let'south start with the difference between classful and classless addressing.

Classful addressing

IPv4 addresses consist of two elements: the network address, or network ID, and the host address, or host ID. Classful addressing splits all bachelor IPv4 addresses into "classes", each grade containing a fixed number of accost blocks. Each address block contains a fixed number of available hosts.

The "class" determines how much of the IP address' 32-bits are allocated to the network ID: Form A uses 8-bits, Form B 16-bits, and Course C-24 bits.

So what does this mean? Why bother with different types of IP classes? Largely, it comes down to how many individual addresses your network needs. The fewer the bits an engineer allocates to a network prefix, the more private addresses would be available (only the fewer the blocks). While Class A may have merely 128 blocks available, each of those blocks has over sixteen.7 meg available IP addresses. In theory, this would take been great for big businesses or even entire countries, simply some practical limitations apply (see: circulate domain). On the other hand, there are more than 2 meg Class C blocks available, but only 256 addresses in each.

Example of an IP address table
The main trouble of the classful addressing approach was that it either leads to wasted addresses (far more than than you need), or blocks of addresses that are besides small. At merely 32-bits, IPv4 hitting a numerical limitation: there merely wasn't enough flexibility with the number and size of each address block to serve the hundreds of billions of devices looking to connect to the internet anymore.

Classless addressing

The limitations of this addressing system led to the development of the classless arroyo, or the Classless Inter-Domain Routing (CIDR) system. Classless addressing does away with the stock-still number and size of address blocks, and allows IPv4 addressing to scale thanks to dynamic network sizing.

Bits customarily allocated to the address's host portion can now also be used to extend the network component. In essence, classless makes it possible to size IP address blocks to the network'due south specific needs, making classful addressing obsolete.

This can audio complex, so let's utilise an example. A network admin needs to create a network with 300 addresses. Under a classful addressing organization, they would technically crave a Class B block, as a Class C cake with 8-bits for the host address would only provide 256 addresses – not enough. And while a Class B network with xvi-bits for the host address would enable them to have the 300 IP addresses they need, it would throw away 65,000+ addresses that would never be used.

With classless addressing, the network admin can instead prepare aside 9-bits for the host address, leaving 23 $.25 for the network accost, so that a total of 512 addresses would exist bachelor. While it is a little more than the 300 addresses they demand, it minimizes waste and maximizes the number of network addresses available.

How to assign IP adddresses

IP addresses tin be static or dynamic. A static IP address is one that is manually assigned to a device and typically never changes. A dynamic IP accost is automatically assigned to a device from a pool of available IP addresses as it connects to a network. Both static IP addresses and dynamic IP addresses have their place in a good network design.

If you lot're opting for static IP addresses, that means that yous'll assign each device a specific address that will vest but to information technology. It won't change with a server update, a router reboot, or anything else. The advantage here is you lot'll always know what device is associated with that specific IP address.

In some cases, static IP addresses can be helpful. If y'all want to brand sure that anybody tin access a printer, server, or other shared resources at all times from any device, a static IP address is a good option.

You'll also definitely want to ensure all of your network devices have static IPs.

Static addresses are also a good option if you'll be using devices that aren't compatible with DHCP, if you want to avoid issues a problematic DHCP server tin can crusade, or if you want ameliorate network security.

However, manually allocating static addresses to each device can exist a massive undertaking if you take a large network. You also have to consider invitee devices and how it would ho-hum everything down if y'all had to allocate an IP to each one manually. Compatibility issues are also probable to ascend, so relying solely on static addresses is not advisable.
To solve this scalability issue, a Dynamic Host Configuration Protocol, or DHCP, automatically allocates IP addresses to devices as they connect to the network. The advantage hither is an ambassador doesn't have to oversee the procedure. The DHCP server tin assign a unique IP address, a subnet mask, a gateway accost, and other information to every device. Information technology requires less authoritative intervention and can be easily scaled.

There are likewise potential disadvantages, too. Since a different IP address can exist allocated to the same device every fourth dimension information technology connects, connectivity bug that could exist resolved past e'er knowing the IP address volition take longer. You'll want to ensure y'all accept solid tracking of IP addresses in your network, or look to leverage a network discovery and documentation tool to automate this process.

The right reply for nigh networks is to use a hybrid system, where near addresses are dynamic, merely yous accept a few static ones for network devices, printers and other disquisitional devices. Equally you're setting upward your DHCP server, you'll want to ensure that your DHCP address pools do not overlap with any of your static IP addresses – or you'll run into duplicate IP addresses in your network, which tin can cause a bit of mayhem!

How to detect all IP addresses on a network

Effective IP address management (or IPAM) starts with knowing how to find them all on your network. Having admission to a complete list of IP addresses and the devices they're allocated to can be beneficial when attempting to resolve connectivity issues.

If you're looking for a specific IP address, the simplest fashion to observe that device is to use the ICMP ping control. Typing in "ping " with the address you are looking for volition permit y'all know whether the device is on the network and responding to pings.

At present, you can leverage the ARP command, "arp -a" to make up one's mind the MAC address associated with that IP address.

Simply what if you want to detect all the devices on your network?

First, yous tin leverage the ping command to send out a ping request to a broadcast address. For example, if yous wanted to discover all the IPs connected to the 192.168.1.0/24 network, you tin blazon:

> ping 192.168.i.255

And so, leveraging the ARP tabular array ("arp -a"), you can see all the devices that responded to that ping request. In that location are some limitations to this approach, though, as non all devices respond to pings on the broadcast IP address.

Another tactic is to merely script pings to a specific subnet. For *nix and Mac OSX machines, y'all tin can blazon (replacing 192.168.1 with your network):

> for ip in $(seq 1 254); practice ping -c ane -W ane 192.168.1.$ip | grep "ttl"; done

On a Windows device, it would be similar to:

> FOR /L %i IN (1,1,254) DO ping -northward one 192.168.1.%i | find /i "TTL"

In either case, you'll get replies from all devices in that subnet, and can then leverage the ARP tabular array (command "arp -a") to discover their MAC addresses. With this info, you can apply the forward table on your network switch or leverage your network discovery software to pinpoint the specific switch port that the device is connected to — a valuable flake of info to have.

Proceed in mind that this approach is best used for smaller networks or if you're in a existent bustle and demand to practice a one-time check for a particular device. If you're looking to discover IP addresses on networks of any substantial size, yous'll want to employ an automatic discovery tool, like a network scanner.

Why is a network scanner useful?

Attempting to manually rail down an IP address on a large network is a challenge. It'southward practically impossible in corporate networks that have countless dynamic IP addresses and random devices connecting to them constantly.

This is where a network scanner, or network discovery software, comes in. This type of IT network direction software helps detect all the active devices on a network, and associates them with their respective IP. A network scanner can automatically scan and notice connected devices across all subnets as well.

Network visibility tools like automated network scanners offer a wide range of advantages. Regularly scanning the network allows you to place the devices connected to your network at any time, and gather device information such equally available services, the operating systems in use, potential risks, and more.

If yous're considering adding a network scanner, look to see which ones offering network infrastructure mapping every bit well. The visual context that granular network topology maps provide tin can really accelerate your troubleshooting process.

Regardless of your network'south size, if y'all want to observe IP addresses on a network, the most efficient arroyo is to use a defended tool. The software will help reduce your workload and improve efficiency. Information technology will also free y'all up to focus on more important, high-level tasks, rather than spending your fourth dimension trying to figure out what IP address belongs to which device.

—-
Auvik provides deject-based network monitoring and management, automating the discovery of IP addresses on your network. Get started now and accept every IP address on your network documented in less than an hour.