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

Like I have ip addresses 192.24.0.0/21,192.24.16.0/20,192.24.8.0/22

It's merged into single one ip 192.24.0.0/19

How, I am little confused with the approach help me out here :)
asked in Computer Networks by Loyal (6.4k points) | 31 views
+2
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)

.00000000.00000000/21

.00010000.00000000/20

.00001000.00000000/22

 

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 192.24.0.0/19
+2

Explained Clearly

0

@aambazinga

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

40,903 questions
47,556 answers
146,276 comments
62,304 users