IP Addresses and Subnetting
NET 150
Network Addressing
Remember- Most modern network have two types of addresses
IP Address
Computer sees:
10000001101010100001001011011100
We interpret as dotted decimal:
129.170.18.220
IP Place Values
Network Addressing: IP Address
Network Addressing: IP Address (3)
Binary IP Address:
10000001101010100001001011011100
Translated to dotted decimal:
129.170.18.220
Subnet mask is /24
Means first 24 bits are Network ID
So,
Network ID is 129.170.18
Host ID is 220
Subnet Mask
The subnet mask uses 1 and 0 bits to indicate that the corresponding bit of the IP address is either the:
Dotted Decimal | Binary Octets | ||||
Host | 172.16.4.35 | 10101100 | 00010000 | 00000100 | 00100011 |
Mask | 255.255.255.0 | 11111111 | 11111111 | 11111111 | 00000000 |
IP Address: 172.16.4.35 / 24
Subnet Mask
| | | |
11111111.11111111.11111111.00000000 | /24 | 255.255.255.0 | 24 bits for Net ID, 8 Bits for Host ID |
11111111.11111111.11111100.00000000 | /22 | 255.255.252.0 | 22 bits for Net ID, 10 Bits for Host ID |
11111111.11111111.11111111.11000000 | /26 | 255.255.255.192 | 26 bits for Net ID, 6 Bits for Host ID |
Subnet Mask
Subnet Mask Values Within an Octet | |||
Mask (Decimal) | Mask (Binary) | Network Bits | Host Bits |
0 | 00000000 | 0 | 8 |
128 | 10000000 | 1 | 7 |
192 | 11000000 | 2 | 6 |
224 | 11100000 | 3 | 5 |
240 | 11110000 | 4 | 4 |
248 | 11111000 | 5 | 3 |
252 | 11111100 | 6 | 2 |
254 | 11111110 | 7 | 1 |
255 | 11111111 | 8 | 0 |
Network Prefixes
192.168.10.2/24��Means that the first 24 bits are the network portion.�The last 8 bits are the host portion.
Subnet Mask
IP Address: 10.24.36.2 / 8 Subnet Mask?
IP Address: 10.24.36.2 / 12 Subnet Mask?
IP Address: 10.24.36.2 / 16 Subnet Mask?
IP Address: 10.24.36.2 / 23 Subnet Mask?
IP Address: 10.24.36.2 255.255.224.0 Prefix Mask?
IP Address: 10.24.36.2 255.255.255.192 Prefix Mask?
IP Address: 10.24.36.2 255.255.255.252 Prefix Mask?
IP Address: 10.24.36.2 255.254.0.0 Prefix Mask?
IP Address: 10.24.36.2 255.255.240.0 Prefix Mask?
Subnetting
Organizations are “assigned” a network address to use on the Internet
Champlain Network Assignment
| | | | |
Decimal | 216 | 93 | 144 | 0 |
Binary | 1101 1000 | 0101 1101 | 1001 0000 | 0000 0000 |
Subnet Mask | 1111 1111 | 1111 1111 | 1111 0000 | 0000 0000 |
Subnetting
Champlain Network Assignment
| | | | | |
Decimal | 216 | 93 | 144 | 0 | |
Binary | 1101 1000 | 0101 1101 | 1001 0000 | 0000 0000 | |
Subnet Mask | 1111 1111 | 1111 1111 | 1111 1111 | 0000 0000 | /24 |
Champlain Network Assignment
Rules about IP Addresses
Subnet Table: �How many Host IPs can be assigned
MASK | CIDR/ Net Bits | Host Bits | # 0f IP’s | Total IPs | IPs usable for Hosts |
255.255.240.0 | /20 | 12 | 212 | 4096 | 4094 |
255.255.248.0 | /21 | 11 | 211 | 2048 | 2046 |
255.255.252.0 | /22 | 10 | 210 | 1024 | 1022 |
255.255.254.0 | /23 | 9 | 29 | 512 | 510 |
255.255.255.0 | /24 | 8 | 28 | 256 | 254 |
255.255.255.128 | /25 | 7 | 27 | 128 | 126 |
255.255.255.192 | /26 | 6 | 26 | 64 | 62 |
255.255.255.224 | /27 | 5 | 25 | 32 | 30 |
255.255.255.240 | /28 | 4 | 24 | 16 | 14 |
255.255.255.248 | /29 | 3 | 23 | 8 | 6 |
255.255.255.252 | /30 | 2 | 22 | 4 | 2 |
Private and Reserved IP Ranges
Private Ranges not routable on Internet
Reserved Ranges
Subnetting Example
Review Subnet Table
MASK | Net Bits | Host Bits | # 0f IP’s | Total IPs | IPs usable for Hosts |
255.255.240.0 | /20 | 12 | 212 | 4096 | 4094 |
255.255.248.0 | /21 | 11 | 211 | 2048 | 2046 |
255.255.252.0 | /22 | 10 | 210 | 1024 | 1022 |
255.255.254.0 | /23 | 9 | 29 | 512 | 510 |
255.255.255.0 | /24 | 8 | 28 | 256 | 254 |
Four Networks:
So, Four Networks:
Example Subnet Assignments
| 1st Octet | 2nd Octet | 3rd Octet | 4th Octet | |
Assigned Net | 153 | 104 | 0 | 0 | |
Binary | 1101 1000 | 0101 1101 | 0000 0000 | 0000 0000 | |
Subnet Mask | 1111 1111 | 1111 1111 | 0000 0000 | 0000 0000 | /16 |
Wireless Net | 153 | 104 | 8 | 0 | |
Binary | 1101 1000 | 0101 1101 | 0000 1000 | 0000 0000 | |
Subnet Mask | 1111 1111 | 1111 1111 | 1111 1000 | 0000 0000 | /21 |
Central Campus | 153 | 104 | 28 | 0 | |
Binary | 1101 1000 | 0101 1101 | 0001 1100 | 0000 0000 | |
Subnet Mask | 1111 1111 | 1111 1111 | 1111 1100 | 0000 0000 | /22 |
West Campus | 153 | 104 | 58 | 0 | |
Binary | 1101 1000 | 0101 1101 | 0011 1010 | 0000 0000 | |
Subnet Mask | 1111 1111 | 1111 1111 | 1111 1110 | 0000 0000 | /23 |
East Campus | 153 | 104 | 60 | 0 | |
Binary | 1101 1000 | 0101 1101 | 0011 1100 | 0000 0000 | |
Subnet Mask | 1111 1111 | 1111 1111 | 1111 1110 | 0000 0000 | /23 |
Green: Net Bits
Purple: Subnet Bits
Red: Host bits
Subnet Example