192.168.0.255 class C: 11000000.10101000.00000000.11111111 |---------Net_ID--------- |-HOST_ID-|
ip分级
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
以二进制说明: Class A : 0xxxxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx ==>Net_ID开头为:0 |--net--|-----------host----------| Class B : 10xxxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx ==>Net_ID开头为:10 |-------net------|------host------| Class C : 110xxxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx ==>Net_ID开头为:110 |-----------net-----------|--host-| Class D : 1110xxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx ==>Net_ID开头为:1110 Class E : 1111xxxx.xxxxxxxx.xxxxxxxx.xxxxxxxx ==>Net_ID开头为:1111
以十进制表示: Class A : 0.xx.xx.xx ~ 127.xx.xx.xx Class B : 128.xx.xx.xx ~ 191.xx.xx.xx Class C : 192.xx.xx.xx ~ 223.xx.xx.xx Class D : 224.xx.xx.xx ~ 239.xx.xx.xx Class E : 240.xx.xx.xx ~ 255.xx.xx.xx
Class A : 11111111.00000000.00000000.00000000 ==> 255.0.0.0 Class B : 11111111.11111111.00000000.00000000 ==> 255.255.0.0 Class C : 11111111.11111111.11111111.00000000 ==> 255.255.255.0 子网划分 : 就是将Host_ID拿来当Net_ID用