19.07.2013 Views

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

CCNA Complete Guide 2nd Edition.pdf - Cisco Learning Home

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

- The Boolean AND operation:<br />

1st Bit <strong>2nd</strong> Bit Operation Result<br />

0 0 AND 0<br />

0 1 AND 0<br />

1 0 AND 0<br />

1 1 AND 1<br />

- The bitwise Boolean AND operation between an IP address and its subnet mask is used to<br />

discover the subnet number for the IP address.<br />

- First address Add 1 to the 4th octet of the subnet number.<br />

Broadcast address Change the values of all host bits in the subnet number to binary 1s.<br />

Last address (or largest valid IP address) Broadcast address – 1.<br />

- Example 1: 10.0.0.1/16<br />

IP Address 10.0.0.1 00001010 00000000 00000000 00000001<br />

Subnet Mask 255.255.0.0 11111111 11111111 00000000 00000000<br />

Subnet Number 10.0.0.0 00001010 00000000 00000000 00000000<br />

First Address 10.0.0.1 00001010 00000000 00000000 00000001<br />

Broadcast Address 10.0.255.255 00001010 00000000 11111111 11111111<br />

Last Address 10.0.255.254 00001010 00000000 11111111 11111110<br />

- Example 2: 172.16.0.1/24<br />

IP Address 172.16.0.1 10101100 00010000 00000000 00000001<br />

Subnet Mask 255.255.255.0 11111111 11111111 11111111 00000000<br />

Subnet Number 172.16.0.0 10101100 00010000 00000000 00000000<br />

First Address 172.16.0.1 10101100 00010000 00000000 00000001<br />

Broadcast Address 172.16.0.255 10101100 00010000 00000000 11111111<br />

Last Address 172.16.0.254 10101100 00010000 00000000 11111110<br />

- Example 3: 192.168.100.100/28<br />

IP Address 192.168.100.100 11000000 10101000 01100100 01100100<br />

Subnet Mask 255.255.255.240 11111111 11111111 11111111 11110000<br />

Subnet Number 192.168.100.96 11000000 10101000 01100100 01100000<br />

First Address 192.168.100.97 11000000 10101000 01100100 01100001<br />

Broadcast Address 192.168.100.111 11000000 10101000 01100100 01101111<br />

Last Address 192.168.100.110 11000000 10101000 01100100 01101110<br />

- Total number of subnets 2 n – 2, where n is the number of subnet bits. [1]<br />

Total number of hosts 2 n – 2, where n is the number of host bits. [2]<br />

[1] minus the subnet zero and the broadcast subnet.<br />

[2] minus the network address (all-0s bit pattern) and the broadcast address (all-1s bit pattern).<br />

Subnet zero It has all binary 0s in the subnet portion. Also known as all-0s subnet.<br />

Broadcast subnet It has all binary 1s in the subnet portion. Also known as all-1s subnet.<br />

- Ex: In 172.16.0.0, 255.255.255.0, 8 bits are borrowed from the 16 host bits for subnet bits.<br />

With these 8 subnet bits, there are 2 8 – 2 = 254 subnets, and each subnet has 8 host bit, which are<br />

2 8 – 2 = 254 hosts are available on each subnet.<br />

63<br />

Copyright © 2008 Yap Chin Hoong<br />

yapchinhoong@hotmail.com

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!