日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

计算机网络怎么寻址_计算机网络中的无类寻址

發(fā)布時間:2025/3/11 编程问答 19 豆豆
生活随笔 收集整理的這篇文章主要介紹了 计算机网络怎么寻址_计算机网络中的无类寻址 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

計算機(jī)網(wǎng)絡(luò)怎么尋址

To reduce the wastage of IP addresses in blocks we subnetting. But in Classless addressing wastage of IP addresses in a block is more reduced than Classful subnetting. In this variable length, blocks are used that belongs to no class.

為了減少塊中IP地址的浪費(fèi),我們進(jìn)行了子網(wǎng)劃分。 但是在無類別尋址中 ,與有類別子網(wǎng)劃分相比,減少了塊中IP地址的浪費(fèi)。 在此可變長度中,將使用不屬于任何類的塊。

Properties:

特性:

  • Addresses in a block must be in contiguous form

    塊中的地址必須為連續(xù)形式

  • The number of address in a block must be the power of 2 i.e. 2, 4, 8, 16,...

    塊中的地址數(shù)必須為2的冪,即2、4、8、16 ...

  • The first address must be evenly divisible by the number of addresses.

    第一個地址必須能被地址數(shù)平均整除。

  • Representation:

    表示:

    In Classless addressing a block, IP address is given like 192.168.10.1/28 (after "/" number of the mask bit is given).

    在無類尋址塊中 ,IP地址的給出類似于192.168.10.1/28 (在給出掩碼位的“ /”號之后)。

    We can find a mask for the whole block by putting the given after of bits out of 32 as 1 and rest of the bits as 0.

    通過將32位中給定的after位設(shè)為1并將其余位設(shè)為0,可以找到整個塊的掩碼。

    Here, we have 28 bits. So, we need to put 28 bits out of 32 bits as 1 and rest of bits as 0 will give us the mask for the Ip address block.

    在這里,我們有28位。 因此,我們需要將32位中的28位設(shè)為1 ,其余位設(shè)為0,這將為我們提供Ip地址塊的掩碼。

    11111111.11111111.11111111.11100000255. 255. 255. 240

    Mask is 255.255.255.240

    遮罩為255.255.255.240

    Note: The given address is not necessarily the first IP address of the block.

    注意:給定的地址不一定是該塊的第一個IP地址。

    Important points:

    要點(diǎn):

  • To get the first IP address of the block set the rightmost (32 - n) bits to 0s.

    要獲取該塊的第一個IP地址,請將最右邊的(32-n)位設(shè)置為0s。

  • Last IP address of the block can be found by setting the rightmost bits to 1s.

    通過將最右邊的位設(shè)置為1,可以找到塊的最后一個IP地址。

  • Number of IP addresses of the given block can be found by 232 - n.

    給定塊的IP地址數(shù)量可以通過2 32 -n找到。

  • Example:

    例:

    192.168.12.30/28Mask value :255.255.255.240

    In the above example, if we want to find the first address of the given block then have to put 0 to set a rightmost bit of the given IP.

    在上面的示例中,如果要查找給定塊的第一個地址,則必須將0設(shè)置為給定IP的最右邊一位。

    To make is easy to convert only the last octet into binary and then set 1 or 0 accordingly and rest will remain the same.

    制作很容易,只需將最后一個八位位組轉(zhuǎn)換為二進(jìn)制,然后相應(yīng)地設(shè)置1或0,其余的將保持不變。

    Binary of 30 = 11110

    30的二進(jìn)制數(shù)= 11110

    Hence, the first IP address of the block is 192.168.12.16 (Satisfying Property no. 3).

    因此,該塊的第一個IP地址是192.168.12.16 (滿足3號屬性)。

    Again, to get the last IP address of the block we have to replace all the rightmost bit to 1, 192.168.12.00011110

    同樣,要獲取塊的最后一個IP地址,我們必須將所有最右邊的位替換為1 192.168.12.00011110

    After replacing all the rightmost bits to 1 we obtain 192.168.12.00011111 i.e. 192.168.12.31

    將所有最右邊的位替換為1后,我們獲得192.168.12.00011111,即192.168.12.31

    Suggestion: To understand this topic please go through the previous topic i.e. FLSM and VLSM in Computer Networks

    建議:要了解此主題,請遍歷上一主題,即計算機(jī)網(wǎng)絡(luò)中的FLSM和VLSM

    翻譯自: https://www.includehelp.com/computer-networks/classless-addressing-in-computer-networks.aspx

    計算機(jī)網(wǎng)絡(luò)怎么尋址

    總結(jié)

    以上是生活随笔為你收集整理的计算机网络怎么寻址_计算机网络中的无类寻址的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。