【正文】
C Class C Class B Class A 來自 Defining a Sub Mask Convert the Number of Segments to Binary Count the Number of Required Bits Convert the Required Number of Bits to Decimal (High Order) 1 2 3 Example of Class B Address Number of Subs Binary Value Convert to Decimal 6 0 0 0 0 0 1 1 0 = 6 (3 Bits) 4+2 255 . 255 . 224 . 0 11111111 11111111 11100000 00000000 Sub Mask 來自 Defining Sub IDs 255 255 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 00000000 = 0 00100000 = 32 01000000 = 64 01100000 = 96 10000000 = 128 10100000 = 160 11000000 = 192 11100000 = 224 1 2 3 224 Sub Mask 來自 Defining Host IDs Sub IDs Host ID Range Invalid – – – – – – Invalid 00000000 = 0 00100000 = 32 01000000 = 64 01100000 = 96 10000000 = 128 10100000 = 160 11000000 = 192 11100000 = 224 ? Each Sub ID Indicates the Beginning Value in a Range ? The Ending Value Is One Less Than the Beginning Value of the Next Sub ID 來自 Example Sub Ids Sub Mask Network ID Host Range 00000000 = 0 00100000 = 32 01000000 = 64 01100000 = 96 10000000 = 128 10100000 = 160 11000000 = 192 11100000 = 224 TOTAL 6 SUBNETS 8190 HOSTS PER SUBNET Netword ID FROM ISP No. of Network = 1 SUBNET MASK No. of Hosts = 65534 (2^162) We need 6 Subs 255 255 0 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 224 。 C Defining a Sub Mask Defining a Sub IDs Defining a Host Ids Example 來自 What is a Sub? (1) Sub 1 Sub 2 Main Network A sub is a subsection of an work, defined for administrative purpose or to cut down on broadcast traffic, as all messages on a work are “heard” by all hosts whether the message is for that host or not. Message sent from one host to another within the same sub do not need to be routed, but messages sent between hosts in different subs must be routed. Subs are connected by routers, or default gateways. 來自 What is a Sub? (2) Network ID Host ID 1 0 Example Network ID FROM ISP No. of Network = 1 SUBNET MASK No. of Hosts = 65534 (2^162) Network ID Host ID 1 0 We need more works Sub ID Borrow from Host ID 來自 What is a Sub? (3) After Sub Network ID bee Sub mask bee No. of Subs 254 Host for per Sub 254 (2^82) Network ID Host ID 1 0 Sub ID Use all 8 bit 11111111 for Sub 254 binations (2^82)* Only 8 bit for Host * However, according to RFC 1812, 255