Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

subnetting question

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 ?

please help

3 REPLIES
New Member

Re: subnetting question

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

network address = 192.168.10.0

subnet mask = 255.255.255.248 (/29)

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.

Bronze

Re: subnetting question

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:

I would add 10.1.2.0/24

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

Hall of Fame Super Gold

Re: subnetting question

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.

133
Views
0
Helpful
3
Replies
CreatePlease login to create content