Home > Articles > Certification > Cisco Certification > CCNP

This chapter is from the book

Addressing

Whether you use DHCP or static IP addressing, understanding addressing is a very important skill. As a CCNP Support candidate, assumed skills include basic things such as addressing, subnetting, summarizing, and routing. In this section I take the time to review because too many problems occur because of lack of planning with IP addressing. Proper planning prevents poor performance in all circumstances. Besides, you will need these skills in the Trouble Tickets, but more importantly in the real world.

Chapter 1 covered the basics of IP addressing, discussing the 4.2 billion (232), 32-bit, dotted-decimal format. Table 3-9 reviews classes and masks.

Table 3-9 IP Address Classes and Masks

 

Class and Range

Decimal Mask

Bitwise Mask

0

A 1–1276

255.0.0.0

/8

10

B 128–191

255.255.0.0

/16

110

C 192–223

255.255.255.0

/24


Public addresses are registered through your ISP or at http://www.arin.net. ARIN is one of the three regional Internet registries (and is the authority in the United States). RIPE NCC is the authority for Europe, the Middle East, North Africa, and parts of Asia. APNIC is the Asia Pacific Network Information Centre (and is the authority for parts of Asia not under the authority of RIPE NCC). I registered my domain name information with VeriSign and my local ISP hosts the ShoreTraining.com website for me. Take a few minutes and go out to ARIN's website, use their whois tool to do a lookup of any public address you like. An example of a public address is 216.239.51.100, which happens to be one of my favorite search engines. This address falls within the network block of 216.239.32.0 to 216.239.63.255. However, I do not like to pick on public sites, so I will stay with private addresses for the practical studies. Private addresses should not be routed on the Internet, and they fall within the following ranges:

  • 10.0.0.0/8 (10.0.0.0 to 10.255.255.255)

  • 172.16.0.0/12 (172.16.0.0 to 172.31.255.255)

  • 192.168.0.0/16 (192.168.0.0 to 192.168.255.255)

Notice that no matter whether you are using a public or private address, you still need a subnet mask to divide the network and host portion. I am certain you have heard many analogies on this by now, but the most common is probably the street being the network and your house number being a host on the network. Alternatively, look at the address and use your "network tape measure" to measure off the network bits from left to right, or just think of a painter masking off what he does not want to paint.

Look back at Figure 3-1 to review your streets (networks) and houses (hosts). Quickly make a list or table of your networks and hosts as in Table 3-10, because you will soon be changing your IP addressing scheme. Notice how I also included the router interfaces, because they need an address to operate with IP (unless, of course, you are using something like IP unnumbered).

Table 3-10 Current IP Addressing

Network

Address

Interface

192.168.1.0/24

192.168.1.1/24
192.168.1.11/24
192.168.1.12/24

r1e0
hosta
>hostb

192.168.2.0/24

192.168.2.1/24
192.168.2.2/24

r1s1
r3s0/0

192.168.3.0/24

192.168.3.1/24
192.168.3.5/24

r3fa2/0
hostc

192.168.4.0/24

192.168.4.1/24
192.168.4.2/24

r1e1
r2e0

192.168.5.0/24

192.168.5.1/24
192.168.5.2/24

r2s1
r3s0/2

192.168.6.0/24

192.168.6.1/24
192.168.6.2/24

r2S0
r3s0/1

10.1.1.0/24

10.1.1.1/24
10.1.1.2/24

r1s0
r5s0

10.2.2.0/24

10.2.2.1/24
10.2.2.2/24

r3s0/3
r4s0/0


What a waste of address space, you should be thinking to yourself right about now, and if you were using public addresses, that would be more of a waste. Although the problem may not be apparent with a list of networks and hosts, many problems show up later. Keep your table handy; you will continue to examine this. First, however, I want to review subnetting in a little more detail.

Subnetting

From my back yard I can see the Chesapeake Bay Bridge and the eastbound and westbound cars. From Memorial Day to Labor Day is prime beach time. Every Friday night people head for the beach and return home on Sunday. Cars are almost at a standstill on the bridge at those times. Needless to say, this is one huge collision and broadcast domain. Sometimes the Mass Transit Authority (MTA) subnets, and I bet they don't even know it. They borrow temporarily less-congested lanes from the westbound side to send more people down the eastbound side. They also implemented EZPass to let the commuters have their own lanes (like queuing). That is all subnetting is. Now not as many cars (hosts) can travel the westbound side, because MTA borrowed them to make more lanes (subnets) for eastbound traffic. Subnetting is all about borrowing from the host bits to get more networks. Routers handle multiple subnets by partitioning collision and broadcast domains to avoid congestion.

Feel free to review the subnetting examples from Chapter 1, but you may as well put this to practice in your lab. Look at your routing tables to see how they display the networks you are using. Refer to Example 3-34 for mine.

Example 3-34 Chapter 3 Networks

r1#show ip route 
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
    D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area 
    N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
    E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
    i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, * - candidate default
    U - per-user static route, o - ODR
Gateway of last resort is not set
C  192.168.4.0/24 is directly connected, Ethernet1
R  192.168.5.0/24 [120/1] via 192.168.4.2, 00:00:23, Ethernet1
          [120/1] via 192.168.2.2, 00:00:18, Serial1
   10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R    10.0.0.0/8 [120/2] via 192.168.4.2, 00:00:24, Ethernet1
R    10.2.2.0/24 [120/1] via 192.168.2.2, 00:00:18, Serial1
C    10.1.1.0/24 is directly connected, Serial0
R  192.168.6.0/24 [120/1] via 192.168.4.2, 00:00:24, Ethernet1
          [120/1] via 192.168.2.2, 00:00:18, Serial1
C  192.168.1.0/24 is directly connected, Ethernet0
C  192.168.2.0/24 is directly connected, Serial1
R  192.168.3.0/24 [120/1] via 192.168.2.2, 00:00:18, Serial1
r2>show ip route
...
C  192.168.4.0/24 is directly connected, Ethernet0
C  192.168.5.0/24 is directly connected, Serial1
   10.0.0.0/24 is subnetted, 2 subnets
R    10.1.1.0 [120/1] via 192.168.4.1, 00:00:08, Ethernet0
R    10.2.2.0 [120/1] via 192.168.6.2, 00:00:23, Serial0
         [120/1] via 192.168.5.2, 00:00:23, Serial1
C  192.168.6.0/24 is directly connected, Serial0
R  192.168.1.0/24 [120/1] via 192.168.4.1, 00:00:08, Ethernet0
R  192.168.2.0/24 [120/1] via 192.168.4.1, 00:00:08, Ethernet0
          [120/1] via 192.168.6.2, 00:00:23, Serial0
          [120/1] via 192.168.5.2, 00:00:23, Serial1
R  192.168.3.0/24 [120/1] via 192.168.6.2, 00:00:23, Serial0
          [120/1] via 192.168.5.2, 00:00:23, Serial1
r3>show ip route
...
R  192.168.4.0/24 [120/1] via 192.168.2.1, 00:00:17, Serial0/0
          [120/1] via 192.168.6.1, 00:00:11, Serial0/1
          [120/1] via 192.168.5.1, 00:00:11, Serial0/2
C  192.168.5.0/24 is directly connected, Serial0/2
   10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R    10.1.1.0/24 [120/1] via 192.168.2.1, 00:00:17, Serial0/0
R    10.0.0.0/8 [120/2] via 192.168.6.1, 00:00:11, Serial0/1
          [120/2] via 192.168.5.1, 00:00:11, Serial0/2
C    10.2.2.0/24 is directly connected, Serial0/3
C  192.168.6.0/24 is directly connected, Serial0/1
R  192.168.1.0/24 [120/1] via 192.168.2.1, 00:00:18, Serial0/0
C  192.168.2.0/24 is directly connected, Serial0/0
C  192.168.3.0/24 is directly connected, FastEthernet2/0
r4>show ip route
...
R  192.168.4.0/24 [120/2] via 10.2.2.1, 00:00:13, Serial0/0
R  192.168.5.0/24 [120/1] via 10.2.2.1, 00:00:14, Serial0/0
   10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R    10.1.1.0/24 [120/2] via 10.2.2.1, 00:00:14, Serial0/0
R    10.0.0.0/8 [120/3] via 10.2.2.1, 00:00:14, Serial0/0
C    10.2.2.0/24 is directly connected, Serial0/0
R  192.168.6.0/24 [120/1] via 10.2.2.1, 00:00:14, Serial0/0
R  192.168.1.0/24 [120/2] via 10.2.2.1, 00:00:14, Serial0/0
R  192.168.2.0/24 [120/1] via 10.2.2.1, 00:00:14, Serial0/0
R  192.168.3.0/24 [120/1] via 10.2.2.1, 00:00:14, Serial0/0
r5>show ip route
...
R  192.168.4.0/24 [120/1] via 10.1.1.1, 00:00:05, Serial0
R  192.168.5.0/24 [120/2] via 10.1.1.1, 00:00:06, Serial0
   10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks
R    10.2.2.0/24 [120/2] via 10.1.1.1, 00:00:06, Serial0
R    10.0.0.0/8 [120/3] via 10.1.1.1, 00:00:06, Serial0
C    10.1.1.0/24 is directly connected, Serial0
R  192.168.6.0/24 [120/2] via 10.1.1.1, 00:00:06, Serial0
R  192.168.1.0/24 [120/1] via 10.1.1.1, 00:00:06, Serial0
R  192.168.2.0/24 [120/1] via 10.1.1.1, 00:00:06, Serial0
R  192.168.3.0/24 [120/2] via 10.1.1.1, 00:00:06, Serial0
r5>

You can apply the shaded output in the preceding example to the other routers, but on r1 I am illustrating that there are multiple paths to subnet 192.168.5.0 and 192.168.6.0. Note how the routing table output shows 10.0.0.0/8, which is the classful mask, with the subnets 10.1.1.0/24 and 10.2.2.0/24 beneath it.

To prepare for the chapter Trouble Tickets, I want you to plan your new addressing scheme using 192.168.5.0/24 as a starting point. You know how many networks and hosts you have, but plan on adding a few more for growth. Do not assume that you can use subnet 0 (the first subnet), the last subnet, or VLSM for now. Write out your calculations as I do in Figure 3-27, but save the actual configuration for the chapter Trouble Tickets. Feel free to expand the binary to truly help you master the subnetting concepts.

Figure 27Figure 3-27 Subnetting

NOTE

For more practice, go to http://www.learntosubnet.com or return to Chapter 1. When you have mastered these concepts, you can check your work against the subnet calculator at Cisco.com.

You certainly should plan your addresses carefully, and this is more than just compiling an Excel spreadsheet and checking off what you have handed out to everyone. However, what could you do if I told you that I want to take one of the subnets and subdivide it to maximize the number of subnets I can possibly get from it? I tend to reserve subnet 0 for this purpose, so take 192.168.5.0/28 and further subnet it according to the information provided. Figure 3-28 shows my VLSM calculations.

Figure 28Figure 3-28 VLSM

NOTE

Subnetting and VLSM are all about moving the network mask bit boundary to the right. For every host bit borrowed, the available subnets double and similarly the hosts exponentially decrease, too. When I make a cake for desert and plan on 8 people eating, for example, I would probably cut it into 10 or 12 pieces to make sure I have enough cake (subnets) for all. If I cut the cake into exactly eight pieces, however, and each guest brings a friend, I guess I could perform VLSM on the pieces of cake.

I took the VLSM example from a different approach in that I knew I never needed more than two hosts. So I used the 2x – 2 formula to calculate hosts and placed the 0s in the chart first. Tables are helpful to organize such data, as I demonstrate in Table 3-11.

Table 3-11 Subnets, Broadcast Addresses, Hosts, and VLSM Subnets

Subnets

0

16

32

48

64

80

96

...

224

Broadcast

15

31

47

63

79

95

111

...

239

Hosts

1– 14

17–33

33–46

49–62

65–78

81–94

97–110

...

225–238

VLSM subnets
(hosts)

0 (1–2)
4 (5–6)
8 (9–10)
12 (13–14)

 

 

 

 

 

 

 

 


Some general suggestions I can recommend for VLSM include the following:

Step 1

Start with your host requirements.

Step 2

Next calculate for the LAN segments.

Step 3

Then subnet a LAN to get your WANs.

Step 4

More than three levels can get a little too confusing.


NOTE

Real-world solutions include topics such as proxy servers and Network Address Translation (NAT), which are covered in a little more detail in the Practical Studies Remote Access Guide. A proxy server, for example, has one NIC to the outside world and one to inside network. Requests made by the inside hosts are made to the proxy server to relay the requests and responses. NAT doesn't use a proxy service. Instead, a router running NAT can replace the inside addresses with outside addresses. Finally, both of these techniques can be combined.

Ultimately, besides being neat about things and saving addresses, you want to plan your address scheme so that it is not so stressful on your routing tables. It would be a perfect world if everyone really understood the importance of this. After all, there is more to life than just sharing your cake; you must eat it too. Figure 3-29 offers a hierarchical view of the subnetting and VLSM math you did previously, which will in turn make summarizing a breeze.

Figure 29Figure 3-29 Summarization

Summarization

Summarization is the real reason you want to pay attention to your addressing scheme. Besides only having a finite number of addresses, routing table growth has just exploded over the years. There are more than 100,000 Internet routes to date. See for yourself in Figures 3-30 and 3-31 or go to a similar site for a more current report. Summarizing enables you to have a single IP address range represent a collection of smaller ranges when deployed hierarchically. Collapsing the routing table is an obvious advantage to summarization, but think about the impact on my network if my routing tables are affected every time a link goes down on your network.

NOTE

Summarization increases stability in that if one of your links flap up and down, my routing tables are not flapping reachable and unreachable. If I have network 192.168.5.0/24 and you have 192.168.7.0/24, for example, I really don't have the need to know about your 192.168.7.4/30. All I care about is to get to 192.168.7. anything I send to you.

Summarization limits the number of routers that need to recalculate routing tables. To determine a summary route, a router determines the high-order (1) bits that match for all addresses. Sometimes this is done on the classful boundary automatically and other times you and I may need to include the appropriate summary statement, depending on the routing protocol.

Figure 30Figure 3-30 Route Server

Figure 31Figure 3-31 Classless Interdomain Routing (CIDR) Report


Subnetting, VLSM, summarization, aggregation, supernetting, and CIDR are all about matching bits. Subnetting and VLSM move the network bit boundary to the right, whereas summarization, aggregation, supernetting, and CIDR move the network bit boundary to the left. In Figure 3-32, HQ starts with 192.168.5.0/24 and breaks it down into subnet 192.168.5.32/27 for the Northern Region, 192.168.5.64/27 for the Western Region, 192.168.5.96/27 for the Southern Region, and 192.168.5.128/27 for the Eastern Region. In turn, each of the regions uses VLSM to subnet their Ethernets to a /28 and their serials to a /30. Yet each region can summarize the /27 back to HQ Core.

Figure 32Figure 3-32 Network Bit Boundaries


The practical addressing examples certainly bring out the mathematics involved, but decreasing the impact on networks attached to the routers and ultimately the hosts connected to various switches is the goal. I address that topic a bit more in Part III, "Supporting Ethernet, Switches, and VLANs." Now I want to quickly review routing protocols so that you can shoot their troubles throughout the book.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020