Addressing II - Subnetting IPv6
Addressing II - Subnetting IPv6
Malaka Pathirana
MSc – Cyber Security (Reading), BSc in IT | Cisco Certified CCNA Instructor
Subnetting
Reasons for Segmenting Networks
• Subnetting reduces overall network traffic and improves network
performance.
• It can be used to implement security policies between subnets.
• Subnetting reduces the number of devices affected by abnormal broadcast
traffic.
• Subnets are used for a variety of reasons, including by:
• Notice that using longer prefix lengths decreases the number of hosts per
subnet.
# of hosts
Prefix
Subnet Mask Subnet Mask in Binary (n = network, h = host) 2h – 2
Length
(h = # of host bits)
nnnnnnnn.hhhhhhhh.hhhhhhhh.hhhhhhhh
/8 255.0.0.0 16,777,214
11111111.00000000.00000000.00000000
nnnnnnnn.nnnnnnnn.hhhhhhhh.hhhhhhhh
/16 255.255.0.0 65,534
11111111.11111111.00000000.00000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.hhhhhhhh
/24 255.255.255.0 254
11111111.11111111.11111111.00000000
Subnet within an Octet Boundary
• Refer to the table to see six ways to subnet a /24 network.
# of hosts
Subnet Mask in Binary # of subnets 2h – 2
Prefix Length Subnet Mask
(n = network, h = host) 2n (h = # of host
bits)
nnnnnnnn.nnnnnnnn.nnnnnnnn.nhhhhhhh
/25 255.255.255.128 2 126
11111111.11111111.11111111.10000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnhhhhhh
/26 255.255.255.192 4 62
11111111.11111111.11111111.11000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnhhhhh
/27 255.255.255.224 8 30
11111111.11111111.11111111.11100000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnnhhhh
/28 255.255.255.240 16 14
11111111.11111111.11111111.11110000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnnnhhh
/29 255.255.255.248 32 6
11111111.11111111.11111111.11111000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnnnnhh
/30 255.255.255.252 64 2
11111111.11111111.11111111.11111100
Create Subnets with a Slash 16 prefix
Prefix Length Subnet Mask Network Address (n = network, h = host) # of subnets # of hosts
nnnnnnnn.nnnnnnnn.nhhhhhhh.hhhhhhhh
/17 255.255.128.0 2 32766
11111111.11111111.10000000.00000000
nnnnnnnn.nnnnnnnn.nnhhhhhh.hhhhhhhh
/18 255.255.192.0 4 16382
11111111.11111111.11000000.00000000
nnnnnnnn.nnnnnnnn.nnnhhhhh.hhhhhhhh
/19 255.255.224.0 8 8190
11111111.11111111.11100000.00000000
nnnnnnnn.nnnnnnnn.nnnnhhhh.hhhhhhhh
/20 255.255.240.0 16 4094
11111111.11111111.11110000.00000000
nnnnnnnn.nnnnnnnn.nnnnnhhh.hhhhhhhh
/21 255.255.248.0 32 2046
11111111.11111111.11111000.00000000
nnnnnnnn.nnnnnnnn.nnnnnnhh.hhhhhhhh
/22 255.255.252.0 64 1022
11111111.11111111.11111100.00000000
nnnnnnnn.nnnnnnnn.nnnnnnnh.hhhhhhhh
/23 255.255.254.0 128 510
11111111.11111111.11111110.00000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.hhhhhhhh
/24 255.255.255.0 256 254
11111111.11111111.11111111.00000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nhhhhhhh
/25 255.255.255.128 512 126
11111111.11111111.11111111.10000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnhhhhhh
/26 255.255.255.192 1024 62
11111111.11111111.11111111.11000000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnhhhhh
/27 255.255.255.224 2048 30
11111111.11111111.11111111.11100000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnnhhhh
/28 255.255.255.240 4096 14
11111111.11111111.11111111.11110000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnnnhhh
/29 255.255.255.248 8192 6
11111111.11111111.11111111.11111000
nnnnnnnn.nnnnnnnn.nnnnnnnn.nnnnnnhh
/30 255.255.255.252 16384 2
11111111.11111111.11111111.11111100
Subnetting Process
When calculating subnets, the following process should be used. Each step of the process will
be described in detail.
• In this example, n = 5 (25 = 32). This means that to create at least 18 subnets, 5
host bits must be borrowed
Subnet a Slash 16 and a Slash 8 Prefix
Create 100 Subnets with a Slash 16 prefix
Consider a large enterprise that requires at least
100 subnets and has chosen the private address
172.16.0.0/16 as its internal network address.
• The number of Internet users for each branch is mentioned below. Take the IP block as
172.16.0.0/24 and cater the IP address requirement.
• Branch 1: 6000
• Branch 2: 4000 I. Network address
• Branch 3: 300 II. Subnet mask
• Branch 4: 2000 III. Usable IP range
• Branch 5: 1000 IV. Broadcast address
• Branch 6: 3000
VLSM
IPv4 Address Conservation
Given the topology, 7 subnets are required (i.e, four LANs and three WAN links) and
the largest number of host is in Building D with 28 hosts.
Subnet A: 60 hosts
Subnet B: 30 hosts
Subnet C: 12 hosts
Provide the following details for each subnet:
I. Network address
II. Subnet mask
III. Usable IP range
IV. Broadcast address
Subnet A:
Subnet B:
Explanation:
2001:0DB8:0000:1111:0000:0000:0000:0200
FE80:0000:0000:0000:0123:4567:89AB:CDEF
▪ Double colon (::) can only be used once within an address otherwise
the address will be ambiguous.
Example #2
IPv6 Prefix Length
▪ IPv6 does not use the dotted-decimal subnet mask notation
▪ Prefix length indicates the network portion of an IPv6 address
using the following format:
▪ IPv6 address/prefix length
▪ Prefix length can range from 0 to 128
▪ Typical prefix length is /64
Static Configuration of a Global Unicast
Address
Static Configuration of an IPv6 Global Unicast Address
(cont.)
Windows
IPv6
Setup
Dynamic Configuration of a Global Unicast Address using
SLAAC
IPv6 routers
▪ Forwards IPv6 packets between networks
▪ Can be configured with static routes or a dynamic IPv6 routing protocol
▪ Sends ICMPv6 RA messages
Dynamic Configuration of a Global Unicast Address using
SLAAC (cont.)