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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 15<br />

Variable-Length Subnet Masks and Route Summarization<br />

Variable-Length Subnet Masks<br />

- VLSM allows more than one subnet mask to be used within a single Class A, B, or C network.<br />

VLSM allows the creation of efficient network addressing plan by using different subnet masks<br />

for different networks – some subnets to be larger and some to be smaller, which is able to<br />

reduce the wasted IP addresses in each subnet, and hence allows the creation of more subnets.<br />

- A routing protocol that supports VLSM (eg: RIPv2, EIGRP, and OSPF) must be used for routers<br />

to learn VLSM routes in a network. A routing protocol that supports VLSM advertises not only<br />

the subnet number, but also the subnet mask along with its routing updates.<br />

- The most efficient subnet mask for point-to-point links is 255.255.255.252 (/30). It provides 1<br />

network address, 2 host addresses, and 1 broadcast address, which is sufficient for 2 end systems<br />

on a point-to-point link.<br />

- The following table shows the network addresses for the common subnet masks:<br />

Mask Subnet Bits Host Bits Block Size Network Addresses<br />

/24 0 8 256 addresses .0<br />

/25 1 7 128 addresses .0, or .128<br />

/26 2 6 64 addresses .0, .64, .128, or .192<br />

/27 3 5 32 addresses .0, .32, .64, .96, .128, .160, .192, or .224<br />

/28 4 4 16 addresses .0, .16, .32, … (multiplier of 16)<br />

/29 5 3 8 addresses .0, .8, .16, … (multiplier of 8)<br />

/30 6 2 4 addresses .0, .4, .8, … (multiplier of 4)<br />

- Caution: Watch out for the subnets overlap issue when implementing VLSM networks.<br />

10.2.1.0<br />

10.2.2.0<br />

10.2.3.0<br />

10.2.4.0<br />

Figure 15-1: Sample VLSM Network<br />

- Below shows the routing table on RT2 in the sample VLSM network with 2 separate masks (/24<br />

and /30) configured on interfaces, along with autosummarized EIGRP routes from other routers:<br />

RT2#sh ip route<br />

Gateway of last resort is not set<br />

RT1 10.1.2.0/30 RT2 10.1.3.0/30 RT3<br />

S0/0<br />

S0/0<br />

10.2.0.0/16<br />

S0/0<br />

10.1.1.0/24<br />

10.0.0.0/8 is variably subnetted, 5 subnets, 3 masks<br />

D 10.2.0.0/16 [90/2195456] via 10.1.2.1, 00:00:07, Serial0/0<br />

D 10.3.0.0/16 [90/2195456] via 10.1.3.2, 00:06:27, Serial0/1<br />

C 10.1.1.0/24 is directly connected, Ethernet1/0<br />

C 10.1.2.0/30 is directly connected, Serial0/0<br />

C 10.1.3.0/30 is directly connected, Serial0/1<br />

RT2#<br />

Note: EIGRP autosummarization is enabled in this scenario.<br />

111<br />

S0/1<br />

10.3.0.0/16<br />

10.3.4.0<br />

10.3.5.0<br />

10.3.6.0<br />

10.3.7.0<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!