IP Addressing Subnetting_Supernetting
IP Addressing Subnetting_Supernetting
(80)10 = (1010000)2
(103)10= ()2
(200)10 = ()2
(320)10 = ()2
(100101)2= ()10
(111001)2= ()10
OCTET=8bits
Byte=8bits
2*2*2*2*2*2*2*2=256
IP Classes:
Network
st 1st No of
Class 1 Octet ID/Host CIDR Subnet Mask No of Hosts
Octet Networks
ID
A 1-126 0 N.H.H.H /8 255.0.0.0 126(27-2) 16,777,214(224-2)
B 128-191 10 N.N.H.H /16 255.255.0.0 16,384(214) 65,534(216-2)
C 192-223 110 N.N.N.H /24 255.255.255.0 2,097,152(221) 254(28-2)
D 224-239 1110 Multicasting
E 240-254 1111 Research
127.0.0.1-127.255.255.254 reserved for loop back (NIC)
CIDR: Classless Inter-Domain Routing 192.168.50.8/27
Private IP Addresses: (IANA)
Subnetting:
Used for:
1. Reduced network traffic (Reduced Broadcast).
2. Optimized network performance (Increase Seucrity).
3. Simplified management.
Borrowing bits form Host ID and give it to NID.
No SM
of Binary Decimal CIDR
bits
0 00000000 0 /24 255.255.255.0 Classfull
1 10000000 128 /25 255.255.255.128 Classless(VLSM)
2 11000000 192 /26 255.255.255.192 Classless(VLSM)
3 11100000 224 /27 255.255.255.224 Classless(VLSM)
4 11110000 240 /28 255.255.255.240 Classless(VLSM)
5 11111000 248 /29 255.255.255.248 Classless(VLSM)
6 11111100 252 /30 255.255.255.252 Classless(VLSM)
7 11111110 254 /31 255.255.255.254 Classless(VLSM)
8 11111111 255 /32 255.255.255.255
VLSM: Variable Length Subnet Mask
IP address (Host ID)=Network ID + Host ID
192.168.10.50 /24
255.255.255.0
Class: C Network ID: 192.168.10.0
Host ID: 192.168.10.50
ANDing Logic:
A B AND
0 0 0
0 1 0
1 0 0
1 1 1
11000000.10101000.00001010.00110010
11111111.11111111.11111111.00000000
11000000.10101000.00001010.00000000 192.168.10.0 (NID)
150.10.20.54 /16
255.255.0.0
NID: 150.10.0.0
HID: 20.54
119.80.66.73 /8
255.0.0.0
NID: 119.0.0.0
HID: 80.66.73
192.168.10.50/25
NID: 192.168.10.0
SM: 255.255.255.128
No of subnet bits: 1
No of Host bits: 7
No of Subnets: 21=2
No of Hosts: 27-2=126
Block Size=256-128=128
First subnet=0
Second Subnet=128
NID: 192.168.1.0
SM: 255.255.255.?
No of Host bits: ?
No of Hosts: 2Hb-2 ≥ 60 IP >> 2Hb-2 +2 ≥ 60+2
2Hb≥ 62 >>> Hb = 6 bits
>>> SM :255.255.255.192
>>> HID:192.168.1.0/26
Ex2: Two Hosts, A) what is the SM, HID 201.2.10.3?
1 2
Network VLSM
D 192.16.10.8/29
A 192.16.10.16/28
B 192.16.10.32/27
C 192.16.10.64/27
E 192.16.10.96/30
F 192.16.10.100/30
G 192.16.10.104/30
H 192.16.10.108/30
Ex 4: You've just been hired to work in Network Support for one of Netflix's regional divisions. One
of your first projects is to setup 7 new publicly addressable subnets for new server clusters scattered
around the region. To accomplish this task, you've been given the IP range:
203.52.32.1 - 203.52.32.254
Complete the questions below, show your work (it’s worth a point).
5. Determine how many usable host addresses you have in each subnet.
25-2=30
Subnet 1: 203.52.32.0
Subnet 2: 203.52.32.32
Subnet 3: 203.52.32.64
………
Subnet 8: 203.52.32.224
10.0.0.0/8
Exit Network
10.0.0.0/16
10.1.0.0/16
10.2.0.0./16
10.255.0.0/16
28 .27 26 25 24 23 22 21 20
256 .128 64 32 16 8 4 2 1
.0 0 0 0 0 0 0 0
.0 0 0 0 0 0 0 1
.0 0 0 0 0 0 1 0
.1 1 1 1 1 1 1 1
Ex:
.27 26 25 24 23 22 21 20
.128 64 32 16 8 4 2 1
.139 .1 0 0 0 1 0 1 1
.140 .1 0 0 0 1 1 0 0
.173 .1 0 1 0 1 1 0 1
.208 .1 1 0 1 0 0 0 0
192.168.4.0/22 200.10.8.0/21
200.10.128.0/17