Try   HackMD

IPv4 - IPv4 Address

課程影片

第 7C 講 路由器運作原理以及網路互連技術 L07 3

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

三種等級

由 IANA 統一分配。

Image Not Showing Possible Reasons
  • The image file may be corrupted
  • The server hosting the image is unavailable
  • The image path is incorrect
  • The image format is not supported
Learn More →

Class A

首位元是 0,給定接下來 7 個位元。這個意思是「具有相同前 8 位元」的那些 IP 都分配給擁有這個 Class A IP 的單位。因為 IP 跟 32 位元的所有整數一樣多,所以每一個這樣的 Class A 網段會包含

224 個。

Class B

類似地,首二位元固定為 10,給定後面 14 位元。所以,每個這樣的網段,其實就是所有「前 16 位元都相同」的所有 IP 形成的集合。因此每個 Class B 的網段中,包含了

216 個 IP。

Class C

類似前者,前 3 個位元為 110,並且給定接下來的 21 位元。因此就是固定前 24 位元,只有最後 8 位元不同的所有 IP 行程的集合,所以每個 Class C 網段就會有

28 個 IP。

問題:更有彈性的分配方法?

比如說拿到一個大的網段之後,要怎麼把這所有的 IP 近一步細分?或是如果有很多小網段,要怎麼不讓這些小網段塞滿路由表,使得路由的複雜度變高?這就要各自使用 subnetclassless addressing 這兩個技術。