# subnetting question

Jul 3rd, 2009

Hi all

when subnetting and summary addressing, if I wanted to summarize 4 networks, would I use /30, bit If I wanted 4 hosts, I wouuld need to use /29 ?

when summarizing, im a little unsure if I need to stop before i get to the number I need, for example, i mark down

128 64 32 16 8 4 2 1 , for 4 hosts would it be /29, but for summarizing it would be /30 ?

Overall Rating: 0 (0 ratings)

## Replies

jfisher000 Fri, 07/03/2009 - 08:07

I will try to assist you. I do not really understand what you are asking with "summarize 4 networks." However, if you wanted at least 4 hosts you could use /29.

For example, let us look at

Subnets? 248 in binary = 1111 1000. 2^5=32 possible subnets

hosts? 2^3-2 = 6 HOSTS you get that by taking the zeros at the end of the binary. 1111 1000. Keep in mind that you subtract 2 due to the broadcast and subnet ID (network ID)

Valid subnets? 256-248 = 0,8,16,24

So the valid hosts for network 0 would be 1-6 and the subnet ID would be 0 and the broadcast would be 7.

xcz504d1114 Fri, 07/03/2009 - 08:12
• Bronze, 100 points or more

Summarization is taking several networks and presenting it as 1 network.

For instance, if I had 2 networks, both networks had 250 users, so I would use a /24 (255.255.255.0) subnet mask for each network.

The networks would look like this:

10.1.0.0/24

10.1.1.0/24

If I had a routing protocol advertsing these networks a neighboring router would see both routes in his routing table.

To make efficient use of memory and CPU cycles we could summarize those.

We would summarize those 2 networks like this:

10.1.0.0/23

The /23 would encompass both networks, the 10.1.0.0 and the 10.1.1.0.

If I added a third network later, and i still wanted to summarize:

And change my summary to 10.1.0.0/22

The problem with this summary address is that it covers more than just the networks that I own.

10.1.0.0/24

10.1.1.0/24

10.1.2.0/24

10.1.3.0/24

So if there is another router that is using the 10.1.3.0 in my routing domain, I could potentially be recieving his data. As long as he is advertising a more specific route than my summary route (more specific means a longer subnet mask IE: /24 is longer than /22) then everything is ok. But if his network goes down, any traffic destined to him now gets forwarded to my router.

A summary address is a less specific route that you would use to advertise many smaller networks.

Another quick example:

10.1.128.0/24

10.1.129.0/24

Could be summarized with a 10.1.128.0/23.

In your example, since you are just using 1 network that has 4 hosts, there is no need to summarize. However if you had multiple networks containing 4 hosts, then you could summarize if they were consecutive networks.

10.1.0.0/29 will allow hosts 10.1.0.1 - 6 (6 hosts not 4).

You could then have a second network:

10.1.0.8/29 to allow hosts 10.1.0.9 - 14

You could then summarize those 2 networks with:

10.1.0.0/28 (network range of 10.1.0.0 - 10.1.0.15)

HTH,

Craig

Leo Laohoo Fri, 07/03/2009 - 19:19
• Super Gold, 25000 points or more
• Hall of Fame,

The Hall of Fame designation is a lifetime achievement award based on significant overall achievements in the community.

• Cisco Designated VIP,

2017 LAN, Wireless

Hiya Carl,

If you use /30, the IP Addresses are:

1 < - Subnet (you can't use this, of course)

2 < - Valid IP Address to use

3 < - Valid IP Address to use

4 < - Broadcast (you can't use this either)

If you need IP Addresses to use for 4 host you need the next one up, a /29. Here's the breakdown:

1 < - Subnet (Can't touch this!)

2 to 6 < - Valid IP Address to use up to 5 hosts

7 < - Broadcast (Can't touch this!)

Hope this helps.