How to Expand Your Subnet: A Step-by-Step Guide

Product Updates - Server Monitoring News - Updates

Blog

25.02.2025
980 79

If your network is growing and you need more IP addresses, it may be useful to expand your existing subnet. This can be done by adjusting the subnet mask or adding an additional network range. In this post, you will learn how to expand a subnet and the advantages and disadvantages of each method.

What Does Expanding a Subnet Mean?

A subnet is a logical IP address range defined by a subnet mask. Many home networks use a /24 subnet, meaning a mask of 255.255.255.0, which provides 256 addresses (0–255). If your network grows, you can extend the subnet to make more IP addresses available.

Methods for Expanding a Subnet

There are two main methods to expand a subnet:

1. Adjusting the Subnet Mask

If you are using the 192.168.178.0/24 network and need more addresses, you can change the subnet mask to /23 (255.255.254.0). This will give you 512 IP addresses, as your network will now cover the range 192.168.178.0 - 192.168.179.255.

Advantages:

  • You get more IP addresses in a single continuous network.
  • Communication between devices in the expanded network remains seamless.

Disadvantages:

  • If you are using an adjacent network (e.g., 192.168.179.0/24 as a guest network), it will be merged into the new, larger network.
  • Not all routers support changing the subnet mask.

How to Adjust the Subnet Mask:

  1. Log into your router or server administration interface.
  2. Change the subnet mask from 255.255.255.0 to 255.255.254.0.
  3. If necessary, adjust the DHCP range accordingly.
  4. Restart the router to apply the changes.

2. Adding an Additional Subnet

If your router or firewall supports VLANs, you can instead set up another subnet, such as 192.168.180.0/24, and integrate it into your network.

Advantages:

  • Existing networks remain unchanged (e.g., separate guest network).
  • No need to reconfigure the current IP addressing scheme.

Disadvantages:

  • Devices in different subnets require routing or NAT to communicate.
  • VLANs may require a managed switch.

How to Set Up an Additional Subnet:

  1. Open your router's network configuration.
  2. Create a new subnet (e.g., 192.168.180.0/24).
  3. Assign it to a separate interface or VLAN.
  4. Configure DHCP for the new subnet.
  5. If necessary, set up routing rules to control traffic between networks.

Conclusion

The choice between a larger subnet mask or an additional subnet depends on your needs. If you simply need more IP addresses and don't require separate networks, adjusting the subnet mask is a good solution. If you want to segment your network, adding a new subnet is the better choice.

Before making any changes, ensure that your router or firewall supports the desired configuration to avoid network outages.

Back to news index

Knowledge Base

Here we answer questions about server monitoring from Livewatch. If you have a question that we have not yet answered here, please contact us.

What is a subnet or subnet mask?

A subnetwork is a subset of a larger IP network that serves to divide the IP address space into logically isolated sections. Dividing a network into subnets provides several benefits, including more efficient address usage, better security, and improved network organization.

Here are the basic components of a subnet and how it works:

  1. IP Addresses: A subnet consists of a range of IP addresses. These addresses are selected from the network's entire IP address space. For example, a network might have the IP address range 192.168.1.0 to 192.168.1.255.

  2. Subnet mask: The subnet mask is a sequence of numbers that indicates which parts of the IP address represent the network portion and the host portion. For example, the subnet mask could be 255.255.255.0, meaning that the first three octets (192.168.1) represent the network portion and the last octet is reserved for the individual devices on the network.

  3. Logical Isolation: A subnet allows the IP address space to be logically isolated. Devices within the same subnet can communicate directly with each other as if they were on the same physical network. Devices on different subnets typically need to use a router to communicate with each other.

  4. Efficient Address Usage: Using subnets allows the available IP address space to be used more efficiently. Instead of using all IP addresses in one large range, smaller ranges can be reserved for specific parts of the network.

  5. Security: Subnets allow security policies to be applied at the subnet level. Traffic between subnets can be controlled through firewalls and other security mechanisms, improving the security of the network.

For example, a company might have one subnet for office equipment, another subnet for servers, and a third subnet for guest WiFi. This division helps organize network traffic, increase security, and optimize resource utilization.

What is a subnet?

A subnet is a way of dividing a larger network into smaller, logically isolated subnets. This is to manage network resources more efficiently, increase security and organize data traffic within the network.

A subnet consists of a group of IP addresses that are logically separated from each other. Within a subnet, devices can communicate with each other as if they were on the same physical network. Dividing a larger network into subnets has several advantages:

  1. Efficient address usage: By assigning subnets, IP addresses can be used more efficiently. Each subnet can have its own address range, which optimizes the allocation of IP addresses.

  2. Security: Subnets allow implementation of security policies at the subnet level. Traffic between subnets can be controlled through firewalls and other security measures.

  3. Network Traffic Organization: Subnets allow for better organization of network traffic. Limiting traffic to specific subnets can improve network performance.

  4. Scalability: Subnets facilitate network scalability. As a network grows, new subnets can be added without reconfiguring the entire network.

The IP addresses in a subnet usually share a common network prefix (subnet mask) that defines the range of IP addresses for that subnet. For example, a subnet could have the IP addresses in the range 192.168.1.1 to 192.168.1.255, and the subnet mask could be 255.255.255.0, meaning the first three octets (192.168.1) represent the network portion and the last octet the host share.

Calculate subnet - calculation method

The subnet mask is used to divide an IP network into smaller subnets. It consists of a series of 32 bits divided into four octets of 8 bits each. The subnet mask is usually represented in decimal form, with each octet separated by a period (for example, 255.255.255.0).

Here are the steps to calculate a subnet mask:

Decide how many subnets you need:

Consider how many networks or subnets you want to create from your overall network. The number of subnets determines the number of bits required for network division. Determine the number of bits for network sharing:

Count the number of bits needed to represent the number of subnets. These bits are later added to the subnet mask. Calculate the subnet mask in binary form:

Set the required bits in the subnet mask to 1 and pad the remaining bits with 0. Note that the subnet mask always starts with the left bits. For example, if you need 3 bits for network sharing, the binary form of the subnet mask is: 11100000 (for the first octet). Convert binary form to decimal form:

Convert each octet of binary form to the corresponding decimal number to represent the subnet mask in common decimal form. Here is an example: Suppose you want to divide a network into 8 subnets. You need 3 bits for network sharing.

Number of bits for network sharing: 3 bits Binary form of subnet mask: 11100000 (for the first octet) Decimal form of subnet mask: 224 (for the first octet) The full subnet mask for this example would then be 224.0.0.0.

It is important to note that the subnet mask always begins with a series of 1 bits followed by a series of 0 bits. The network and broadcast address bits are always set to 0 and 1, respectively.