Networking - Subnetting
Networking - Subnetting
CLASSES.
CLASS A NETWORKS
• 1st octate starts with bit '0'
• 1st octate value range from 1 through 126
• Network mask is 8 bits. 255.0.0.0
• 1.0.0.0 - 126.0.0.0 are class A network
CLASS B NETWORKS.
• 1st octate start with binary pattern '10'
• 1st octate value ranges from 128 through 191
• Network mask is 16 bits. 255.255.0.0
• 128.0.0.0 - 191. 255.0.0
CLASS C NETWORKS.
• 1st octate start with binary pattern '110'
• 1st octate value ranges from 192 through 223
• Network mask is 24 bits. 255.255.255.0
• 192.0.0.0 - 223.255.255.0
SUBNETTING.
Subnetting is a technique used to overcome the problem of reduction in the no of networks address of 32 bit addressing
scheme.
Class 1st octet Decimal range 1st octet High order bit Network/Host ID Default subnet mask No of Networks Host per network
A 1 - 126 0 N.H.H.H 255.0.0.0 28 224 - 2
B 128 - 191 10 N.N.H.H 255.255.0.0 216 216 - 2
C 191 -223 110 N.N.N.H 255.255.255.0 224 28 - 2
SUBNET MASK
Determines which part of an IP address is the network address and which part is the host address.
CIDR NOTATION
Indicates the number of bits used for network address.
Eg: 172.13.0.0/15 - 11111111.11111110.00000000.00000000
Big 5
1. How many subnets does the chosen subnet mask produce? 𝟐𝒙
x - network bits used in last octate
Eg : 192.168.8.0 255.255.255.128
128 = 10000000 = 𝟐𝟏 = 𝟐
2. What are the valid subnets? 256 – subnet mask = block size
block size = 256 - 128 = 128
3. What’s the broadcast address of each subnet?
192.168.8.127
4. What are the valid hosts in each subnet?
192.168.8.0
Eg:
Subnet 0
1st host 1
Last host 126
broadcast address 127
Questions.
1. 192.168.10.0 255.255.255.192
No of subnets - 2 = 4
No of valid host - 2 - 2 = 64 - 2 = 62
Block size - 256 - 192 =64
Subnet 0 64 128 192
1st host 1 65 129 193
Last host 126 126 190 254
broadcast address 127 127 191 255
2. 192.168.10.33 255.255.255.240
No of subnets - 2 = 16
No of valid host - 2 - 2 = 16 - 2 = 14
Block size - 256 - 240 = 16
Subnet 0 16 32 48
1st host 1 17 33 49
Last host 14 32 46 62
broadcast address 15 33 47 63
3. 192.168.10.0 255.255.255.224
No of subnets - 2 = 8
No of valid host - 2 - 2 = 32 - 2 = 30
Block size - 256 - 224 = 32
Subnet 0 32 64 96
1st host 1 33 65 97
Last host 30 62 94 126
broadcast address 31 63 95 127
4. 192.168.10.17 255.255.255.252
No of subnets - 2 = 64
No of valid host - 2 - 2 = 4 - 2 = 2
Block size - 256 - 252 = 4
Subnet 0 4 8 12
1st host 1 5 9 13
Last host 2 6 10 14
broadcast address 3 7 11 15
5. 192.168.10.0 255.255.255.240
No of subnets - 2 = 16
No of valid host - 2 - 2 = 16 - 2 = 14
Block size - 256 - 240 = 16
Subnet 0 16 32 64
1st host 1 17 33 65
Last host 14 30 62 126
broadcast address 15 31 63 127