Saturday, March 21, 2020

Complex IPv6 subnetting

I am currently doing a Cisco curriculum. I am trying to subnet a hypothetical IPv6 network across 3 countries, states, cities, offices.  

Let's say I have 3 countries, 40 states, 43 cities with 2 offices per city?

 

I would have a /50 for countries. [ 3 countries = 22 - Leaves us with 14 bits. (64 (subnet bits) - 48 (fixed bits from ISP) + 2 (new bits)) ]

I would have a /56 for states. [ 40 states = 26 - Leaves us with 8 bits. (64 - 50 + 6) ]

I would have a /62 for cities. [ 43 states = 26 - Leaves us with 2 bits. (64 - 56 + 6) ]

I would have /63 for offices. [ 2 officers per city = 21 - Leaves us with 1 bit. (64 - 62 + 1) ]

 

For countries, the address would go up per 4000.

For states, the address would go up per 100.

For cities, the address would go up per 4.

And for offices, the address would go up per 2?  

For my example below assume:

  1. Canada - 2001:db8:cad:0000::/50

  2. America - 2001:db8:cad:4000::/50

  3. UK - 2001:db8:cad:8000::/50

 

Would that be:

 

2001:db8:cad:4000::/50 - America

 

----2001:db8:cad:4100::/56 - CA

 

--------2001:db8:cad:4104::/62 - San Francisco

------------2001:db8:cad:4104::/63 - Office A

------------2001:db8:cad:4106::/63 - Office B

 

--------2001:db8:cad:4108::/62 - San Jose

------------2001:db8:cad:4108::/63 - Office A

------------2001:db8:cad:410A::/63 - Office B

 

--------2001:db8:cad:410C::/62 - Sacramento

------------2001:db8:cad:410C::/63 - Office A

------------2001:db8:cad:410E::/63 - Office B

 

Is that correct?



No comments:

Post a Comment