Home > Networking Tips > Network Engineering > Managing IP address allocation during network expansion
Networking Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

NETWORK ENGINEERING

Managing IP address allocation during network expansion


David Davis
04.17.2007
Rating: -3.15- (out of 5)


Routing and switching news, advice and technical information
Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


When you are designing or expanding your network, it is important to know how to manage IP address allocation properly, because this is crucial to the performance and expandability of your network. Here, we cover how to properly allocate IP addresses for a new network -- and what to do if your network runs out of IP addresses.

Allocating IP addresses

When you define which IP addresses will be on which network, you are not only setting a precedent that will be difficult to change, you are limiting the size of your network. This is because IP networks/subnets have limited sizes. For example, a Class C network (like 192.168.1.0 /24) can have up to 254 usable computers. That may be enough for your network today, but it may not be enough for your network next year.

Of course, the ideal time to properly size these IP networks is when you design the network. Your design is only as good as the information you have at hand. Let's say that you expect each network to have 125 computers and not grow beyond 254 computers. When you configure your routers and design an IP address scheme, you will assign a Class C IP address network to this network. If after six months the device count needs to go up to 400, however, you will have to make a change in your design. You will have a couple of choices.

Sizing your network

To properly size your network from the beginning, use the host's formula. This formula says that for the number of zeros in the subnet mask when converted to binary, take 2 to the power of that number, minus 2, and you will see the number of possible hosts when using that subnet mask. This can be done on a subnetting calculator, of course, or with the help of handy subnetting charts. (See IP addressing and subnetting: Calculate a subnet mask using the host's formula for more information.)

More IP addressing tips
Crash Course: IP addressing and subnetting fundamentals

Cisco IOS IP routing: Static routes


Dynamic routing

Optimize network space for IP addresses
If possible, it is important to know where your company is going with this location -- meaning, how many networked devices will be at this site? Don't forget to include laser printers, servers and other networked managed devices (UPS systems, for instance).

Once you know that, you need to try to find out what the expected growth is for this site. Will the number of devices eventually double? Often, this can be limited by the physical size of the office. If all you have is a small lot with a single building, and every office is already filled with a PC, there isn't physical space to add many more devices.

In having all this information, you will know how many IP addresses you may need in the future, so you can select the proper IP address space.

NAT and the Internet

With private networking (RFC1918), you have many IP addresses available for your internal use. To access the Internet from those IP addresses, you just have to perform network address translation (NAT).

Let's look at an example. Say your company has 70 locations with 50 devices each. One option would be to allocate 126 usable IP addresses with a /25 subnet mask (or 255.255.255.128), still allowing enough IPs for the network to double in size and using the IP address space as efficiently as possible. This would allow you enough growth to have some 130,000 networks of this size. I doubt that your company would grow beyond that number of sites.

On the other hand, you could allocate more IP addresses per site and have fewer networks. Say you allocated 65,000 hosts to this subnet with a /16 mask (or 255.255.0.0). That would leave you the ability to grow to 256 networks of this size, but this seems like a huge waste of IP addresses.

Finally, you could allocate many more IP addresses than you might need, break the network at the octet boundary, and still have the ability to add many networks. Let's say you allocated a /24 subnet mask (or 255.255.255.0). That would give you 254 usable hosts per network (you could grow 5x) and the ability to have 65,536 subnets (or locations). This seems like a more reasonable approach.

In my opinion, the worst thing you could do is to allocate a /26 subnet mask (or 255.255.255.192) and give yourself only 62 usable hosts on each network. The 50 hosts you have would almost certainly outgrow this at some site.

Options when you are out of IP addresses

Let's say that someone allocated too few IP addresses to a network. What are your options?

  • Option A: Re-address the network
    The first option to resolve a network that is out of IP addresses is to allocate a larger IP subnet (more addresses) and change the subnet mask on all devices. Although this costs nothing monetarily, it could cost quite a bit in time.
  • You don't want to let your LAN get too big, however. The more devices, the more broadcasts you will have. Eventually, over perhaps 300+ devices, your network will begin to have performance problems from the devices' having to process so many broadcasts that weren't meant for them.

  • Option B: Add a second network or VLAN
    Another option would be to add a second network. Say you have one network of 192.168.1.0/26 with 62 usable hosts. Suppose you have 60 hosts and need more. You could add network 192.168.1.64 and use hosts 192.168.1.65-192.168.1.126. To do this and allow the two networks to communicate, you would add a second LAN interface on your router and route between these two networks. Each network would have a different IP gateway, and you might have different DHCP servers on each network.
  • The problem with doing this is that the devices on each network must be physically cabled separately, come back to a single switch, and then be connected to their respective interfaces on the router. In a larger office, this can be very difficult.

    A great solution to this as the number of devices grows is to use VLANs. With VLANs, the devices in the different networks could be anywhere, still be on their network, and still communicate to the devices on the other VLANs.

    About the author:
    David Davis (CCIE #9369, CWNA, MCSE, CISSP, Linux+, CEH) has been in the IT industry for 15 years. Currently, he manages a group of systems/network administrators for a privately owned retail company and authors IT-related material in his spare time. He has written more than 100 articles, eight practice tests and four video courses, and he has co-authored one book. His Web site is HappyRouter.com.

    Rate this Tip
    To rate tips, you must be a member of SearchNetworking.com.
    Register now to start rating these tips. Log in if you are already a member.




    Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us    Add to Google


    RELATED CONTENT
    Network Engineering
    Limit network energy consumption with computer cooling technologies
    Understanding remote scripting -- Managing Windows networks using scripts, part 9
    Network mapping in Vista for Windows XP
    Recovering domain controllers after a server disk failure
    Recovering from a server disk failure: The shortcomings of NTBCKUP
    Enabling Windows Vista's Network Mapping feature on domain networks
    Prevent unauthorized USB devices with software restriction policies, third-party apps
    How to subnet: Subnetting calculations and shortcuts
    Using Windows Vista group policy to prevent unauthorized USB device use
    ISDN implementation: Part 3 -- Cisco router ISDN configuration

    IP Addressing
    Do multiple router interfaces affect the amount of IP addresses?
    How to locate the lost IP address of an Access Point (AP)
    IPv4 or IPv6 -- Myths and Realities
    What is a logical network? How do you improve one?
    Why are IPv6's IP addresses in hexadecimal formatting?
    Understanding VLAN implementation and IP address assignment
    Prevent IP address conflicts on your wireless network by managing DHCP scopes
    Get IPv6 skills now rather than later
    How can I check connectivity and ping between sites?
    Can I connect to my wireless network and wired LAN simultaneously?

    Network Architecture and Topology
    How can I implement VLANs across WLAN links?
    Extending Wi-Fi range indoors or outside with 802.11n and WDS
    Network evaluation and roadmap
    The essential guide for upgrading your network
    Affordable IPv6 upgrades are possible -- unless you wait
    How can I prevent collisions on my network?
    Compliance in a virtualized world: Server virtualization and NAC security
    What makes a WAN different from a LAN and MAN?
    How do I increase network signal strength over a large distance?
    Virtual machines present dynamic environment issues for network pros
    Network Architecture and Topology Research

    RELATED GLOSSARY TERMS
    Terms from Whatis.com − the technology online dictionary
    32-bit IP addressing  (SearchNetworking.com)
    fixed-length subnet mask  (SearchNetworking.com)
    GARP (Generic Attribute Registration Protocol)  (SearchNetworking.com)
    route aggregation  (SearchNetworking.com)
    route summarization  (SearchNetworking.com)
    routing table  (SearchNetworking.com)
    subnet  (SearchNetworking.com)
    subnet mask  (SearchNetworking.com)
    variable-length subnet mask  (SearchNetworking.com)
    wildcard mask  (SearchNetworking.com)

    RELATED RESOURCES
    2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
    Search Bitpipe.com for the latest white papers and business webcasts
    Whatis.com, the online computer dictionary

    DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



    Networking Solutions for Business
    IT Management Solutions and Services Directory.
    HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersNetworking Product Trials
    About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
    SEARCH 
    TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

    TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




    All Rights Reserved, Copyright 2000 - 2008, TechTarget | Read our Privacy Policy
      TechTarget - The IT Media ROI Experts