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O QK}QJ GQJ ~\ ~ O
E&|FOÔSxDFK,3
wÊDFK,3FKLDUDOS$%&'(+LQWL~GQJKWOS$%YJQ
KWOS & FÔQ OS' Y ( 7ê FKằF LQWHUQHW ~DQJ ~ GQK FKR PãF ~ÂFK NKF
NK{QJSKyQQzQFKảQJWDFKQJKLzQFằXOS~X
16
24
class a :
0
class b
10
class c
1
10
net id host id
net id
host id
net id
host id
1
32
8
octet 1
octet 4
octet 3octet 2
8
16
24
32
1 1 1 0
Class d
8
16
24
32
1 1 1 1 0
class e
4XDFXWU¶FFFO±S~£DFK,3FK¶QJWDF§QKQ[WVDX
%LWQKQGQJOQKºQJELW~XWLzQF´DO±S$OF´DO±S%OF´D
O±S&O
/S'FĐELW~XWLzQ~QKQGQJOFÔQOS(FĐEÂW~XWLzQ
~QKQGQJO
wÊDFKOS$wÊDFKPQJÂWY~ÊDFKP\FKWUzQWáQJPQJQKLX
wÊDFKOS%wÊDFKPQJYáDSKLY~ÊDFKP\FKWUzQWáQJPQJ
YáDSKL
wÊDFKOS&wÊDFKPQJQKLX~ÊDFKP\FKWUzQWáQJPQJÂW
iD FK 9QJ pD FK 6 PuQJ WL pD 6 Pt\ FK WL pD
OS Oô WKX\W VÔ GÂQJ WUlQ WÊQJ PuQJ
$ Wá~Q
% Wá~Q
&Wá~Q
'Wá~Q.K{QJSKyQ
(Wá~Q.K{QJSKyQ
iD FK 9QJ pD FK %LW QKQ GuQJ 6 ELW GQJ p
OS VÔ GÂQJ 3KkQ FKR PuQJ
$ Wá~Q
% Wá~Q
&Wá~Q
'
(
1K}Y\QXFKảQJWDWK\~ÊDFK,3FĐQKĐPVơFFKQKDXEQJGXFKP
QX WK\ QKĐP Vơ WKằ QKW QKƠ K|Q ELW ~ÊD FK Q\ OS $ QP WURQJ
NKRQJ~QELW~ÊDFKQ\OS%YWá~QELW~ÊDFKQ\
OS&
*KL QK iD FK WKĐF W NKmQJ SKkQ WURQJ WUoQJ KS W~W Fr FtF ELW WURQJ PW KD\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