আইপি অ্যাড্রেসিং এবং সাবনেটিং … Part-1

আইপি ঠিকানাগুলো বুঝতে

একটি IP নেটওয়ার্কের একটি ডিভাইস সনাক্ত করতে ব্যবহৃত একটি ঠিকানা। ঠিকানা 32 বাইনারি বিট, যা একটি নেটওয়ার্ক অংশ এবং সাবনেট মাস্ক সাহায্যে হোস্ট অংশের মধ্যে বিভাজ্য হতে পারে। 32 বাইনারি বিট চারটি অক্টেট (1 অক্টেট = 8 বিট) হয়। প্রতিটি অক্টেট দশমিক রূপান্তরিত এবং একটি নির্দিষ্ট সময়ের (DOT) দ্বারা বিভক্ত করা হয়। এই কারণে, একটি IP ঠিকানা ডটেড দশমিক ফর্ম্যাটে (Example: 172.16.81.100) প্রকাশ করা বলা হয়। 11111111 বাইনারি - প্রতিটি অক্টেট মান 0 থেকে 255 দশমিক বা 00000000 রেঞ্জ।

Here is how binary octets convert to decimal: The right most bit, or least significant bit, of an octet holds a value of 20. The bit just to the left of that holds a value of 21. This continues until the left-most bit, or most significant bit, which holds a value of 27. So if all binary bits are a one, the decimal equivalent would be 255 as shown here:

   1  1  1  1  1 1 1 1 
  128 64 32 16 8 4 2 1 (128 + 64 + 32 + 16 + 8 + 4 + 2 + 1 = 255)

এখানে একটি নমুনা অক্টেট রূপান্তর যখন বিট সব না 1 সেট করা হয়।

  0  1 0 0 0 0 0 1
  0 64 0 0 0 0 0 1 (0 + 64 + 0 + 0 + 0 + 0 + 0 + 1 = 65)

আর এই নমুনা উভয় বাইনারি এবং দশমিক মধ্যে প্রতিনিধিত্ব একটি IP ঠিকানা দেখায়।

        10. 1. 23. 19 (দশমিক)
  00001010.00000001.00010111.00010011 (বাইনারি)

এই অক্টেট একটি অ্যাড্রেসিং পরিকল্পনা যা বড় এবং ছোট নেটওয়ার্কে ধরানো যায় প্রদান ভেঙ্গে করছে। সেখানে নেটওয়ার্ক পাঁচটি পৃথক ক্লাস, একটি ই এই দস্তাবেজটি সি ক্লাস উপর দৃষ্টি নিবদ্ধ করে, যেহেতু ক্লাস ডি এবং ই সংরক্ষিত এবং তাদের আলোচনা  বাদ দেওয়া হল আছে।

Network Mask

একটি নেটওয়ার্ক মাস্ক আপনি জানেন যা ঠিকানার অংশ নেটওয়ার্কের চিহ্নিত করে এবং যা ঠিকানার অংশ নোড চিহ্নিত করতে সাহায্য করে। ক্লাস এ, বি, ও সি নেটওয়ার্ক এখানে দেখানো, ডিফল্ট Mask প্রাকৃতিক Mask হিসাবে পরিচিত আছে:

ক্লাস এ: 255.0.0.0 
ক্লাস বি: 255.255.0.0 
ক্লাস সি: 255.255.255.0

An IP address on a Class A network that has not been subnetted would have an address/mask pair similar to: 8.20.15.1 255.0.0.0. In order to see how the mask helps you identify the network and node parts of the address, convert the address and mask to binary numbers.

= 00001000.00010100.00001111.00000001 8.20.15.1 
255.0.0.0 = 11111111.00000000.00000000.00000000

Once you have the address and the mask represented in binary, then identification of the network and host ID is easier. Any address bits which have corresponding mask bits set to 1 represent the network ID. Any address bits that have corresponding mask bits set to 0 represent the node ID.

= 00001000.00010100.00001111.00000001 8.20.15.1 
255.0.0.0 = 11111111.00000000.00000000.00000000 
            ----------------------------------- 
           নেট আইডি।হোস্ট আইডি              

netid = 00001000 = 8 
hostid = 00010100.00001111.00000001 = 20.15.1

Understand Subnetting

Subnetting allows you to create multiple logical networks that exist within a single Class A, B, or C network. If you do not subnet, you are only able to use one network from your Class A, B, or C network, which is unrealistic.

Each data link on a network must have a unique network ID, with every node on that link being a member of the same network. If you break a major network (Class A, B, or C) into smaller subnetworks, it allows you to create a network of interconnecting subnetworks. Each data link on this network would then have a unique network/subnetwork ID. Any device, or gateway, that connects n networks/subnetworks has n distinct IP addresses, one for each network / subnetwork that it interconnects.

In order to subnet a network, extend the natural mask with some of the bits from the host ID portion of the address in order to create a subnetwork ID. For example, given a Class C network of 204.17.5.0 which has a natural mask of 255.255.255.0, you can create subnets in this manner:

204.17.5.0 - 11001100.00010001.00000101.00000000 
255.255.255.224 - 11111111.11111111.11111111.11100000 
                  -------------------------- | Sub | ----

By extending the mask to be 255.255.255.224, you have taken three bits (indicated by "sub") from the original host portion of the address and used them to make subnets. With these three bits, it is possible to create eight subnets. With the remaining five host ID bits, each subnet can have up to 32 host addresses, 30 of which can actually be assigned to a device since host ids of all zeros or all ones are not allowed (it is very important to remember this). So, with this in mind, these subnets have been created.

204.17.5.0 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 1 থেকে 30 
204.17.5.32 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 33 থেকে 62 
204.17.5.64 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 65 থেকে  94 
204.17.5.96 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 97 থেকে 126 
204.17.5.128 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 129 থেকে 158 
204.17.5.160 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 161 থেকে 190 
204.17.5.192 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 193 থেকে 222 
204.17.5.224 255.255.255.224 হোস্ট ঠিকানা রেঞ্জ 225 থেকে 254

Note: There are two ways to denote these masks. First, since you use three bits more than the "natural" Class C mask, you can denote these addresses as having a 3-bit subnet mask. Or, secondly, the mask of 255.255.255.224 can also be denoted as /27 as there are 27 bits that are set in the mask. This second method is used with CIDR. With this method, one of these networks can be described with the notation prefix/length. For example, 204.17.5.32/27 denotes the network 204.17.5.32 255.255.255.224. When appropriate, the prefix/length notation is used to denote the mask throughout the rest of this document.
চাইলে ফেইসবুকে আমার একটি ছোট ট্রোল গ্রুপে ঘুরে  আসতে পারেন
গ্রুপ লিংক এখানে

Level 2

আমি তানভীর খন্দকার। বিশ্বের সর্ববৃহৎ বিজ্ঞান ও প্রযুক্তির সৌশল নেটওয়ার্ক - টেকটিউনস এ আমি 8 বছর 6 মাস যাবৎ যুক্ত আছি। টেকটিউনস আমি এ পর্যন্ত 10 টি টিউন ও 18 টি টিউমেন্ট করেছি। টেকটিউনসে আমার 7 ফলোয়ার আছে এবং আমি টেকটিউনসে 9 টিউনারকে ফলো করি।

Ethical Hacker || Bug Hunter || Red Team Member at @SynackRedTeam|| Admin at CTF_Community_Bangladesh || Admin at Bug_Bounty_Community_Bangladesh


টিউনস


আরও টিউনস


টিউনারের আরও টিউনস


টিউমেন্টস