<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Happy Router.com &#187; Subnetting</title>
	<atom:link href="http://happyrouter.com/category/subnetting/feed" rel="self" type="application/rss+xml" />
	<link>http://happyrouter.com</link>
	<description>Your Source for Cisco Networking How-To Articles &#38; Videos</description>
	<lastBuildDate>Sat, 21 Apr 2012 02:56:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.4</generator>
		<item>
		<title>Network summarization &#8212; Supernetting and wildcard masks</title>
		<link>http://happyrouter.com/network-summarization-supernetting-and-wildcard-masks</link>
		<comments>http://happyrouter.com/network-summarization-supernetting-and-wildcard-masks#comments</comments>
		<pubDate>Tue, 21 Aug 2007 06:00:00 +0000</pubDate>
		<dc:creator>David Davis</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Subnetting]]></category>

		<guid isPermaLink="false">http://67.225.190.39/network-summarization-supernetting-and-wildcard-masks</guid>
		<description><![CDATA[Supernetting was created as a way to solve the problem of routing tables growing beyond our current ability to manage the exhaustion of Class B network address space. Much like one area code represents an aggregation of telephone numbers in an area, supernetting allows one routing table entry to represent an aggregation of networks. If [...]]]></description>
			<content:encoded><![CDATA[<p><font face="Verdana">Supernetting was created as a way to solve the  		problem of routing tables growing beyond our current ability to manage  		the exhaustion of Class B network address space. Much like one area code  		represents an aggregation of telephone numbers in an area, supernetting  		allows one routing table entry to represent an aggregation of networks.</font>  	<font face="Verdana">If you need to enter a static route to several  		subnetted networks, you can use network summarization to reference them  		all in one route. Just the same, you need to understand how to read  		routes received from other providers. You must also know how to create  		an access list that references these multiple networks in a single  		summarized statement. </font><font face="Verdana">In this tip, you&#8217;ll learn more about the IP  		addressing-related topics of network summarization, supernetting and  		wildcard masks. </font><br />
<span id="more-60"></span><br />
<font face="Verdana" size="2">Note: this article  		originally appeared at www.searchnetworking.com</font></p>
<h3><font face="Verdana"><strong>Introduction to network summarization  		terminology</strong></font></h3>
<p><font face="Verdana">The term &#8220;route aggregation&#8221; is just another way  		of saying &#8220;network summarization.&#8221; Supernetting, on the other hand, is  		the process of taking multiple networks and making a single larger  		network (very similar to summarization and aggregation). But what,  		specifically, are summarization and aggregation? </font></p>
<p><font face="Verdana"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank"> For video training on subnetting and supernetting, checkout my favorite Cisco  CCNA / CCDA video training!</a></font></p>
<p><font face="Verdana">Network summarization is the act of taking two  		or more IP networks and using a single IP network to represent them all.  		This is possible because of classless inter-domain routing (CIDR). CIDR  		eliminates the need for a fixed-length subnet mask (FLSM) associated  		with our IP networks. This goes back to the old standard of having to  		have a certain subnet mask for classes of IP networks. Because everyone  		uses CIDR today, we can use variable-length subnet masks (VLSMs). This  		means we have the luxury of adding or subtracting bits from our subnet  		mask to allow us to either subnet our network further (by adding bits)  		or supernet our network (by taking bits away). Let&#8217;s find out more. 		</font></p>
<h3><font face="Verdana"><strong>What is network summarization (aka route  		aggregation)?</strong> </font></h3>
<p><font face="Verdana">Say that I have IP networks 1.1.1.0 /24, 1.1.2.0  		/24 and 1.1.3.0 /24. All of these networks have the subnet mask of  		255.255.255.0 (hence, the /24). (See 		<a href="http://happyrouter.com/binary-to-decimal-conversion"> 		Binary-to-decimal conversion</a> for more information on how this is  		calculated.) This means that if I take away bits from the subnet mask, I  		can encompass both of these networks with a single IP network and subnet  		mask. For example, I could say that these networks are represented by  		the IP address 1.1.0.0 with the subnet mask 255.255.0.0. With that  		statement, I have summarized or aggregated the three networks and am now  		representing them with a single IP address and subnet. </font></p>
<p><font face="Verdana">However, this is just an example; I did this  		very inefficiently. I actually summarized many other networks besides  		the three in question. I summarized all networks that fit into this  		range 1.1.{0-255}.{0-255}. To summarize only my three networks as  		efficiently as possible, I would use IP network 1.1.0.0 with subnet mask  		255.255.252.0. This encompasses all three IP networks: 1.1.1.0, 1.1.2.0  		and 1.1.3.0. </font></p>
<p><font face="Verdana">This can, of course, be done on a network  		calculator, but it is not hard to do by hand either. Here is an example: 		</font></p>
<h3><font face="Verdana"><strong>Third octet of each IP and subnet mask</strong> 		</font></h3>
<p><font face="Verdana">000000 01 = 1<br />
000000 10 = 2<br />
000000 11 = 3<br />
111111 00 = 252</font></p>
<h3><font face="Verdana"><strong>Using network summarization on a router</strong> 		</font></h3>
<p><font face="Verdana">No matter the name that you give it, you need to  		know how to use network summarization/aggregation on a router. To do  		this, you will represent the IP networks with a single IP address and  		either a subnet mask or a wildcard mask. </font></p>
<p><font face="Verdana"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank"> For video training on subnetting and supernetting, checkout my favorite Cisco  CCNA / CCDA video training!</a></font></p>
<p><font face="Verdana">Here is an example of using a subnet mask to  		summarize the same three networks in OSPF: </font></p>
<p><em><font face="Verdana" size="2">Router(config)# <strong>router ospf 1</strong><br />
Router(config-router)# <strong>area 1 range 1.1.0.0 255.255.252.0</strong></font></em></p>
<p><font face="Verdana">As you can see, I just made an entry to  		summarize all three networks using the &#8220;range&#8221; command. The range  		command is used to summarize other OSPF networks. The same example can  		be applied to summarizing networks received from a different router  		protocol like Routing Information Protocol (RIP). Here&#8217;s an example with  		the &#8220;summary-address&#8221; command: </font></p>
<p><em><font face="Verdana" size="2">Router(config-router)# <strong> 		summary-address 1.1.0.0 255.255.252.0 </strong></font></em></p>
<p><font face="Verdana">In both these cases, we have summarized or  		aggregated the network. </font></p>
<h3><font face="Verdana"><strong>What are wildcard masks?</strong> </font></h3>
<p><font face="Verdana">Wildcard masks are just another way to represent  		a subnet mask. Don&#8217;t let how they look scare you off. You can easily  		convert a subnet mask into a wildcard mask. A wildcard mask is simply  		all the 1s in a subnet mask (when in binary form) turned into 0s, and  		all the 0s turned into 1s. </font></p>
<p><font face="Verdana">Here&#8217;s an example: </font></p>
<p><font face="Verdana">Say that I have the same subnet mask as above,  		255.255.252.0. This subnet mask in binary is: </font></p>
<p><font face="Verdana">11111111 11111111 11111100 00000000 </font></p>
<p><font face="Verdana">To convert this to a wildcard mask, I simply  		turn all 1s into 0s and all 0s into 1s, then convert back to decimal. 		</font></p>
<p><font face="Verdana"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank"> For video training on subnetting and supernetting, checkout my favorite Cisco  CCNA / CCDA video training!</a></font></p>
<p><font face="Verdana">Here&#8217;s the conversion to a wildcard in binary: 		</font></p>
<p><font face="Verdana">00000000 00000000 00000011 11111111 </font></p>
<p><font face="Verdana">Then, here&#8217;s the conversion of that same  		wildcard in binary to decimal: </font></p>
<p><font face="Verdana">0.0.3.255 </font></p>
<p><font face="Verdana">Wildcard masks are used in access lists. So, say  		that I wanted to permit the same three networks we listed above and deny  		all others. Here is an example of an 		<a href="http://happyrouter.com/happyrouter/free-videos/free-video-harden-your-cisco-router-with-ios-acls">access control  		list</a> (ACL) that would do that, using a wildcard mask: </font></p>
<pre><font face="Verdana"><em>Router(config)# <strong>access-list 1 permit 1.1.0.0 ?</strong>
  A.B.C.D  Wildcard bits
  log      Log matches against this entry
  <cr>

Router(config)# <strong>access-list 1 permit 1.1.0.0 0.0.3.255</strong>
Router(config)# <strong>access-list 1 deny any</strong></cr></em>
</font></pre>
<p><font face="Verdana">With this ACL, all three of our networks (1.1.1.0,  		1.1.2.0 and 1.1.3.0) are permitted and all other networks are denied. 		</font><font face="Verdana"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank"> For video training on subnetting and supernetting, checkout my favorite Cisco  CCNA / CCDA video training!</a></font></p>
<h3><font face="Verdana"><strong>Article summary</strong> </font></h3>
<p><font face="Verdana">Here is what we have learned:</font></p>
<ul>
<li><font face="Verdana">An introduction to network summarization  			terminology, including network summarization, route aggregation,  			supernetting, CIDR and VLSM.</font></li>
<li><font face="Verdana">How to use network summarization on a  			router with the OSPF routing protocol (in two different ways).</font></li>
<li><font face="Verdana">What wildcard masks are, and how to use  			them in a Cisco IOS access list.</font></li>
</ul>
<p><font face="Verdana"> 		<a href="http://happyrouter.com/happyrouter/free-videos/free-video-harden-your-cisco-router-with-ios-acls">For a FREE  		HappyRouter.com Video on how to configure and use Cisco IOS Access-lists  		(ACL), click here</a></font></p>
]]></content:encoded>
			<wfw:commentRss>http://happyrouter.com/network-summarization-supernetting-and-wildcard-masks/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Managing IP address allocation during network expansion</title>
		<link>http://happyrouter.com/managing-ip-address-allocation-during-network-expansion</link>
		<comments>http://happyrouter.com/managing-ip-address-allocation-during-network-expansion#comments</comments>
		<pubDate>Tue, 21 Aug 2007 06:00:00 +0000</pubDate>
		<dc:creator>David Davis</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Subnetting]]></category>

		<guid isPermaLink="false">http://67.225.190.39/managing-ip-address-allocation-during-network-expansion</guid>
		<description><![CDATA[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 &#8212; and what to do if your network runs out [...]]]></description>
			<content:encoded><![CDATA[<p>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 &#8212; and what to do if your network runs out of IP addresses. Learn that and more in this exciting article from David Davis, CCIE.<br />
<span id="more-58"></span><br />
<span class="a3"> <span style="color: black; font-family: Verdana"><font size="2">Note that this article was originally published at SearchNetworking.com.  </font></span></span></p>
<h3><font face="Verdana"><font face="Verdana" size="2"><strong>Allocating IP addresses</strong><br />
</font></font></h3>
<p><font face="Verdana"><font face="Verdana"><font face="Verdana" size="2">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.</font></font> </font><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">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&#8217;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. </font></font></font></p>
<p><font face="Verdana"><span class="a3"> <span style="color: black; font-family: Verdana"> <strong style="font-weight: normal"><u><span style="color: blue"> <font size="2"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank">Checkout this Video series covering the Cisco CCNA Certification!</a></font></span></u></strong><font size="2"> </font> </span></span></font></p>
<h3><font face="Verdana"><font face="Verdana"><font face="Verdana" size="2"><strong>Sizing your network</strong><br />
</font></font></font></h3>
<p><font face="Verdana"><font face="Verdana"><font face="Verdana" size="2">To properly size your network from the beginning, use the host&#8217;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&#8217;s formula for  more information.)<br />
</font><font face="Verdana"><font size="2"><br />
</font><strong><font size="2">Optimize network space for IP addresses</font></strong><font size="2"><br />
</font></font> </font></font></p>
<p><font face="Verdana"><font face="Verdana"><font face="Verdana" size="2">If possible, it is important to know where your company is going with this  location &#8212; meaning, how many networked devices will be at this site? Don&#8217;t  forget to include laser printers, servers and other networked managed devices  (UPS systems, for instance).</font></font></font><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">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&#8217;t physical space to add many  more devices.<br />
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.<br />
</font> </font><span class="a3"><span style="color: black; font-family: Verdana"> <strong style="font-weight: normal"><u><span style="color: blue"> <font size="2"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank">Checkout this Video series covering the Cisco CCNA Certification!</a></font></span></u></strong><font size="2"> </font> </span></span></font></p>
<h3><font face="Verdana"><font face="Verdana"><font face="Verdana" size="2"><strong>NAT and the Internet</strong></font></font></font></h3>
<p><font face="Verdana"><font face="Verdana"><font face="Verdana" size="2">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)</font> </font> </font><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">Let&#8217;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.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">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.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">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&#8217;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.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2">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.</font></font></p>
<h3><font face="Verdana"><font face="Verdana" size="2"><strong><font size="2">Options when you are out of IP addresses</font></strong></font></font></h3>
<p><font face="Verdana"><font face="Verdana" size="2">Let&#8217;s say that someone allocated too  few IP addresses to a network. What are your options?</font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"><strong>Option A: Re-address the network<br />
</strong>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. </font> </font><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">You don&#8217;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&#8217; having to process so many broadcasts  that weren&#8217;t meant for them.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2"><strong>Option B: Add a second network or VLAN<br />
</strong>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.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">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.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"><font face="Verdana" size="2">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.</font></font></font></p>
<p><font face="Verdana"><font face="Verdana" size="2"> </font><span class="a3"><span style="color: black; font-family: Verdana"> <strong style="font-weight: normal"><u><span style="color: blue"> <font size="2"> <a href="http://www.trainsignal.com/Cisco-CCNA-Training-P3.aspx" target="_blank">Checkout this Video series covering the Cisco CCNA Certification!</a></font></span></u></strong></span></span></font></p>
]]></content:encoded>
			<wfw:commentRss>http://happyrouter.com/managing-ip-address-allocation-during-network-expansion/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

