D-Link DES-3326SRM Product Manual - Page 200

Subnet Masking, Calculating the Number of Subnets and Nodes, Classless Inter-Domain Routing – CIDR

Page 200 highlights

D-Link DES-3326S Layer 3 Switch Subnet Masking A subnet mask can be applied to an IP address to identify the network and the node parts of the address. A bitwise logical AND operation between the IP address and the subnet mask results in the Network Address. For example: 00001010.00101010.01001001.11010010 10.42.73.210 Class A IP address 11111111.00000000.00000000.00000000 255.0.0.0 Class A Subnet Mask 00001010.00000000.00000000.00000000 10.0.0.0 Network Address The Default subnet masks are: • Class A - 11111111.00000000.00000000.00000000 255.0.0.0 • Class B - 11111111.11111111.00000000.00000000 255.255.0.0 • Class C - 1111111.11111111.11111111.00000000 255.255.255.0 Additional bits can be added to the default subnet mask for a given Class to further subnet a network. When a bitwise logical AND operation is performed between the subnet mask and the IP address, the result defines the Subnet Address. Some restrictions apply to subnet addresses. Addresses of all "0"s and all "1"s are reserved for the local network (when a host does not know it's network address) and for all hosts on the network (the broadcast address). This also applies to subnets. A subnet address cannot be all "0"s or all "1"s. A 1-bit subnet mask is also not allowed. Calculating the Number of Subnets and Nodes To calculate the number of subnets and nodes, use the formula (2n - 2) where n = the number of bits in either the subnet mask or the node portion of the IP address. Multiplying the number of subnets by the number of nodes available per subnet gives the total number of nodes for the entire network. For example: 00001010.00101010.01001001.11010010 10.42.73.210 Class A IP address 11111111.11100000.00000000.00000000 255.224.0.0 Subnet Mask 00001010.00100000.00000000.00000000 10.32.0.0 Network Address 00001010.00101010.11111111.11111111 10.32.255.255 Broadcast Address This example uses an 11-bit subnet mask. (There are 3 additional bits added to the default Class A subnet mask). So the number of subnets is: 23 - 2 = 8 - 2 = 6 Subnets of all "0"s and all "1"s are not allowed, so 2 subnets are subtracted from the total. The number of bits used in the node part of the address is 24 - 3 = 21 bits, so the total number of nodes is: 221 - 2 = 2,097,152 - 2 = 2,097,150 Multiplying the number of subnets times the number of nodes gives 12,582,900 possible nodes. Note that this is less than the 16,777,214 possible nodes that an unsubnetted class A network would have. Subnetting reduces the number of possible nodes for a given network, but increases the segmentation of the network. Classless Inter-Domain Routing - CIDR Under CIDR, the subnet mask notation is reduced to a simplified shorthand. Instead of specifying all of the bits of the subnet mask, it is simply listed as the number of contiguous "1"s (bits) in the network portion of the address. Look at the subnet mask of the above example in binary - 11111111.11100000.00000000.00000000 - and you can see that there are 11 "1"s or 11 bits used to mask the network address from the node address. Written in CIDR notation this becomes: 10.32.0.0/11 190

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242

D-Link DES-3326S Layer 3 Switch
Subnet Masking
A subnet mask can be applied to an IP address to identify the network and the node parts of the address.
A bitwise logical
AND operation between the IP address and the subnet mask results in the
Network Address.
For example:
00001010.00101010.01001001.11010010
10.42.73.210
Class A IP address
11111111.00000000.00000000.00000000
255.0.0.0
Class A Subnet Mask
00001010.00000000.00000000.00000000
10.0.0.0
Network Address
The Default subnet masks are:
Class A – 11111111.00000000.00000000.00000000
255.0.0.0
Class B – 11111111.11111111.00000000.00000000
255.255.0.0
Class C – 1111111.11111111.11111111.00000000
255.255.255.0
Additional bits can be added to the default subnet mask for a given Class to further subnet a network.
When a bitwise logical
AND operation is performed between the subnet mask and the IP address, the result defines the
Subnet Address
.
Some restrictions apply to subnet addresses.
Addresses of all “0”s and all “1”s are reserved for the local network (when a
host does not know it’s network address) and for all hosts on the network (the broadcast address).
This also applies to
subnets.
A subnet address cannot be all “0”s or all “1”s.
A 1-bit subnet mask is also not allowed.
Calculating the Number of Subnets and Nodes
To calculate the number of subnets and nodes, use the formula (2
n
– 2) where n = the number of bits in either the subnet
mask or the node portion of the IP address.
Multiplying the number of subnets by the number of nodes available per subnet
gives the total number of nodes for the entire network.
For example:
00001010.00101010.01001001.11010010
10.42.73.210
Class A IP address
11111111.11100000.00000000.00000000
255.224.0.0
Subnet Mask
00001010.00100000.00000000.00000000
10.32.0.0
Network Address
00001010.00101010.11111111.11111111
10.32.255.255 Broadcast Address
This example uses an 11-bit subnet mask.
(There are 3 additional bits added to the default Class A subnet mask).
So the
number of subnets is:
2
3
– 2 = 8 – 2 = 6
Subnets of all “0”s and all “1”s are not allowed, so 2 subnets are subtracted from the total.
The number of bits used in the node part of the address is 24 – 3 = 21 bits, so the total number of nodes is:
2
21
– 2 = 2,097,152 – 2 = 2,097,150
Multiplying the number of subnets times the number of nodes gives 12,582,900 possible nodes.
Note that this is less than the 16,777,214 possible nodes that an unsubnetted class A network would have.
Subnetting reduces the number of possible nodes for a given network, but increases the segmentation of the network.
Classless Inter-Domain Routing – CIDR
Under CIDR, the subnet mask notation is reduced to a simplified shorthand.
Instead of specifying all of the bits of the subnet
mask, it is simply listed as the number of contiguous “1”s (bits) in the network portion of the address.
Look at the subnet
mask of the above example in binary - 11111111.11100000.00000000.00000000 – and you can see that there are 11 “1”s or
11 bits used to mask the network address from the node address.
Written in CIDR notation this becomes:
10.32.0.0/11
190