Imagine I have two networks:
192.168.20.0
192.168.21.0
How can I find the common supernet to give to a router so any external router can access these two network by using only the supernet address?
Imagine I have two networks:
192.168.20.0
192.168.21.0
How can I find the common supernet to give to a router so any external router can access these two network by using only the supernet address?
Convert to binary:
1100 0000.1010 1000.0001 0100.0000 0000
1100 0000.1010 1000.0001 0101.0000 0000
look at how many bits they have in common:
XXXX XXXX.XXXX XXXX.XXXX XXX0.000000000
Count them up for CIDR notation; or convert to decimal for the subnet mask:
CIDR:192.168.20.0/23
Mask:255.255.254.0
#ipcalc 192.168.20.0 - 192.168.21.255
deaggregate 192.168.20.0 - 192.168.21.255
192.168.20.0/23
Work in binary, you will see the subnet which contains these two networks. Or use a mask calculator like mine http://dominique.fournier38.fr/?prog=CalculMasque&line=1 in french sorry)