Network = 1
Hosts = 0
The standerd code of the IP classes look like
Class A : 11111111 00000000 00000000 00000000
Class B : 11111111 11111111 00000000 00000000
Class C : 11111111 11111111 11111111 00000000
Take the following IP as Refrence
192.168.26.10
--> This is the Typical class C network
Thus it will be like
11111111 11111111 11111111 00000000
--> Take 192.168.26.10 If we have to expand the network bit we will change the binary
11111111 11111111 11111111 11|000000
It defines that we have taken 2 extra bits from the host
On the above example:
The subnetting has 4 diffrent parts :
Subnet notation : 192.168.26.10/26 {/26 : it defines the total number of network bits}
Subnet mask: 255.255.255.192 {.192 AS (2^7)+(2^6)}
|||| OR OPREATION ||||||
0*0=0
0*1=0
1*0=0
1*1=1
|||| |||| |||| |||| ||||
Network ID : 192.168.29.0
{
Step 1: Convert the IP to binary (192.168.29.10)
Binary Address: 11000000 10101000 00011101 00001010
Notation: 11111111 11111111 11111111 00000000 {OR METHOD APPLIED}
____________________________________________________________
11000000 10101000 00011101 00000000 --> 192.168.26.0 (Network ID)
}
Number of Subnets : which are added : 2^n {2^2=4}
Number of hosts : (Number of remaining hosts) 2^n-2{2^6-2=62}
Host Range (Derived): 192.168.26.0 .. 192.168.26.62
Broadcast IP : 192.168.26.63
---> Derived Subnets : π―
Host Range Subnet-1: 192.168.26.1 .. 192.168.26.62 BR : 192.168.26.63
Host range Subnet-2: 192.168.26.65 .. 192.168.26.126 BR : 192.168.26.127
Host range Subnet-3: 192.168.26.129 .. 192.168.26.190 BR : 192.168.26.191
Host Range Subnet-4: 192.168.26.193 .. 192.168.26.254 BR : 192.168.26.255