Ticker

10/recent/ticker-posts

Subnetting IP address

Subnetting IP Address

Class A:
Subnet Mask: 255.0.0.0

Class B:
Subnet: 255.255.0.0

Class C:
Subnet: 255.255.255.0

Classless IP:

190.33.45.0/24
Host IP:192.168.1.101  Bits: 10111110.00100001.00101101.00000000

Marketing
Engineering

So for security purposes we wanna make four separate networks:
And we have only 20 machines in a section and we have room to grow.

The answer is looking at the host bits of the subnet. So we are going to borrow some bits from there.
So in binary when we count four bits it becomes:

00
01

So what we can do is we will use the first 00s of the Host-IP bits and Subnet bits:

Host IP:192.168.1.101
Subnet: 255.255.255.0  Bits: 11111111.11111111.11111111.[00]000000

So on the mask this bits are going to be set as 11
So Subnet 255.255.255.0 here 0 will be 11

Now how does this work?
For the very first network the bit is going to be 00 and the rest will be local address

So the first address will be 190.33.45.00
Network Address:    190.33.45.00

Host IP:192.168.1.101 Bits: 10111110.00100001.00101101.[00]000000
Here [00] is used and all six 0s are 11111

Default Gateway:190.33.45.62 (Anything between 0-63 so we choose 62) or 255.255.255.192

Network #2:

Host IP:192.168.1.101

Subnet: 255.255.255.0

Network Address:
Here [01] is used and all six 0s are 111111

Network Address:
Here [10] is used and all six 0s are 111111

Network Address:
Here [11] is used and all six 0s are 111111

Subnet: 11111111.1111111.1111111.[00]000000
So we have use [00] so six 000000 i.e 6 bits

2 to the power 6 =2*2*2*2*2*2 =64 hosts
But one is reserved for Network and one for Broadcast

You are given the following IP address for your organization:
150.35.0.0/16
You plan to create several networks in your organization that could have up-to 300 devices/network.
Assign the IP addresses for the first two networks as efficiently as possible.

Answer:

If you noticed that /16 your mask will be 255.255.0.0
So 8 bits from .0 and 8 bits from .0

So:
150.35.000000[0.0000000]

So we are going to have 127 hosts because after 35. we have seven 0000000's 2 to the power 7 = 127
So we look at the bits we are borrowing and look at the very first bit

So it will be:
150.35.0000001

Network Address:
Broadcast Address: 150.35.1.255 one is the 8th 0 and all 11111111 that's 255

Network Address: 150.35.2.0
Broadcast Address: 150.35.3.255

#Happy Learning. Thank you!

Post a Comment

0 Comments