要算的無非是三個class
1 and 126 it is a Class A address.
128 and 191 it is a Class B address
192 and 223 it is a Class C address
127 is reserved for local loopback
好, 那你的第一個例子來算,
10.10.0.0--10.10.127.255 這是class A的
在第三個octet上給了128個ip, 256-128=128
所以subnetmask是255.255.128.0
network address is 10.10.0.0
broadcast address is 10.10.127.255
gateway is set by admin, most set it as 10.10.0.1
however, it is not necessary.
至於, xxx.yyy.zzz.65-xxx.yyy.zzz.94
我假設這是class C 的, ip 的範圍是 64 - 95
所以有32個ip, 2^5 = 32, 所以11100000 = 224
Subnetmask is 255.255.255.224
network address is xxx.yyy.zzz.64
broadcast address is xxx.yyy.zzz.95
whatever
這麽算
本文內容已被 [ what5263 ] 在 2004-02-06 15:24:48 編輯過。如有問題,請報告版主或論壇管理刪除.