The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
0 votes
I have doubt that how to merge the ip addresses into single one using Aggregation. Please discuss the approach

Like I have ip addresses,,

It's merged into single one ip

How, I am little confused with the approach help me out here :)
asked in Computer Networks by Active (4.5k points) | 26 views
I've not come across a straight forward method to do so.

What I do is, write the addresses in the binary form.

Now start matching the addresses from left upto the point where all the given addresses agree to be equal.

Count the nber of bits of the matching, which will be the new mask.

In their case,

(I'm expanding just the last two octets, as 192.24 is common to all)





We can clearly see that they are matching upto .000

After counting, 8+8(of 192.24) + 3= 19.

Which would be new mask. And address would be

Explained Clearly



Perfect One, You should post it as answer as well.

Please log in or register to answer this question.

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true

38,053 questions
45,545 answers
48,885 users