CCNA Routing and Switching Portable Command Guide 3rd Edition by Scott Empson 1587204304 978-1587204302instant download
CCNA Routing and Switching Portable Command Guide 3rd Edition by Scott Empson 1587204304 978-1587204302instant download
https://ebookball.com/product/ccna-routing-and-switching-
portable-command-guide-3rd-edition-by-scott-
empson-1587204304-978-1587204302-17140/
CCNA 200 301 Portable Command Guide 5th Edition by Scott Empson
0135937825 9780135937822
https://ebookball.com/product/ccna-200-301-portable-command-
guide-5th-edition-by-scott-empson-0135937825-9780135937822-18694/
Cisco CCNA Routing and Switching 200 125 Official Cert Guide Library
1st Edition by Wendell Odom 1587205815 9781587205811
https://ebookball.com/product/cisco-ccna-routing-and-
switching-200-125-official-cert-guide-library-1st-edition-by-
wendell-odom-1587205815-9781587205811-17136/
CCNA Cisco Certified Network Associate Study Guide 7th Edition by Todd
Lammle 0470901071 978-0470901076
https://ebookball.com/product/ccna-cisco-certified-network-
associate-study-guide-7th-edition-by-todd-
lammle-0470901071-978-0470901076-17142/
CCNA 200 301 Official Cert Guide Library 1st Edition by Wendell Odom
1587147149 9781587147142
https://ebookball.com/product/ccna-200-301-official-cert-guide-
library-1st-edition-by-wendell-
odom-1587147149-9781587147142-17144/
CCNA 200 301 Official Cert Guide Volume 1 1st Edition by Wendell Odom
0135792738 9780135792735
https://ebookball.com/product/ccna-200-301-official-cert-guide-
volume-1-1st-edition-by-wendell-
odom-0135792738-9780135792735-18692/
CCNA 200 301 Official Cert Guide Volume 2 1st Edition by Wendell Odom
1587147130 9781587147135
https://ebookball.com/product/ccna-200-301-official-cert-guide-
volume-2-1st-edition-by-wendell-
odom-1587147130-9781587147135-18688/
https://ebookball.com/product/data-networks-routing-security-and-
performance-optimization-1st-edition-by-tony-kenyon-
isbn-0080503667-9780080503660-12338/
https://ebookball.com/product/java-threads-understanding-and-
mastering-concurrent-programming-3rd-edition-by-scott-oaks-henry-
wong-isbn-0596007825-9780448446257-12382/
https://ebookball.com/product/hacknotes-windows-security-
portable-reference-1st-edition-by-michael-o-dea-
isbn-0072227850-9780072227857-16858/
Steps to Configuring a Router
Scott Empson
Cisco Press
800 East 96th Street
Indianapolis, IN 46240
ii
Trademark Acknowledgments
All terms mentioned in this book that are known to be trademarks or service marks have been appropri-
ately capitalized. Cisco Press or Cisco Systems, Inc. cannot attest to the accuracy of this information.
Use of a term in this book should not be regarded as affecting the validity of any trademark or service
mark.
Feedback Information
At Cisco Press, our goal is to create in-depth technical books of the highest quality and value. Each
book is crafted with care and precision, undergoing rigorous development that involves the unique
expertise of members from the professional technical community.
Readers’ feedback is a natural continuation of this process. If you have any comments regarding how
we could improve the quality of this book, or otherwise alter it to better suit your needs, you can
contact us through e-mail at [email protected]. Please make sure to include the book title
and ISBN in your message.
We greatly appreciate your assistance.
Dedications
As always, this book is dedicated to Trina, Zach, and Shae.
Acknowledgments
Anyone who has ever had anything to do with the publishing industry knows that it takes
many, many people to create a book. It may be my name on the cover, but there is no
way that I can take credit for all that occurred to get this book from idea to publication.
Therefore, I must thank:
The team at Cisco Press. Once again, you amaze me with your professionalism and the
ability to make me look good. Mary Beth, Chris, Mandie: Thank you for your continued
support and belief in my little engineering journal.
To my technical reviewer, Elan: Thanks for keeping me on track and making sure that
what I wrote was correct and relevant.
v
Contents at a Glance
Introduction xx
Part I TCP/IP v4
CHAPTER 1 How to Subnet 1
CHAPTER 2 VLSM 15
CHAPTER 3 Route Summarization 25
Part IV Routing
CHAPTER 7 Static Routing 57
CHAPTER 8 EIGRP 63
CHAPTER 9 Single-Area OSPF 73
CHAPTER 10 Multi-Area OSPF 83
Part V Switching
CHAPTER 11 Configuring a Switch 91
CHAPTER 12 VLANs 101
CHAPTER 13 VLAN Trunking Protocol and Inter-VLAN Communication 107
CHAPTER 14 Spanning Tree Protocol and EtherChannel 121
Part X WANs
CHAPTER 29 Configuring Serial Encapsulation: HDLC and PPP 233
CHAPTER 30 Establishing WAN Connectivity Using Frame Relay 239
CHAPTER 31 Configuring Generic Routing Encapsulation (GRE) Tunnels 249
CHAPTER 32 Configuring Point-to-Point Protocol over Ethernet (PPPoE) 251
Table of Contents
Introduction xx
Part I TCP/IP v4
CHAPTER 2 VLSM 15
IP Subnet Zero 15
VLSM Example 16
Step 1 Determine How Many H Bits Will Be Needed to Satisfy
the Largest Network 16
Step 2 Pick a Subnet for the Largest Network to Use 17
Step 3 Pick the Next Largest Network to Work With 18
Step 4 Pick the Third Largest Network to Work With 20
Step 5 Determine Network Numbers for Serial Links 21
Part IV Routing
CHAPTER 8 EIGRP 63
Configuring Enhanced Interior Gateway Routing Protocol (EIGRP) 63
EIGRP Auto-Summarization 65
EIGRP Manual Summarization 65
Passive EIGRP Interfaces 65
Equal-Cost Load Balancing: Maximum Paths 66
Unequal-Cost Load Balancing: Variance 66
Bandwidth Use 67
Authentication 67
Verifying EIGRP 68
Troubleshooting EIGRP 69
Configuration Example: EIGRP 69
Austin Router 70
Houston Router 71
Part V Switching
EtherChannel 129
Interface Modes in EtherChannel 130
Guidelines for Configuring EtherChannel 130
Configuring Layer 2 EtherChannel 131
Verifying EtherChannel 131
Configuration Example: EtherChannel 132
Part X WANs
Introduction
Welcome to CCNA Routing and Switching! This book is the result of a massive rede-
sign by Cisco of their entry-level certification exams to more closely align with indus-
try’s need for networking talent as we enter into the era of “the Internet of Everything.”
The success of the previous two editions of this book prompted Cisco Press to approach
me with a request to update the book with the necessary new content to help both stu-
dents and IT professionals in the field study and prepare for the new CCNA Routing and
Switching exam. For someone who originally thought that this book would be less than
100 pages in length and limited to the Cisco Networking Academy program for its com-
plete audience, I am continually amazed that my little engineering journal has caught on
with such a wide range of people throughout the IT community.
I have long been a fan of what I call the “engineering journal,” a small notebook that can
be carried around and that contains little nuggets of information—commands that you
forget, the IP addressing scheme of some remote part of the network, little reminders
about how to do something you only have to do once or twice a year (but is vital to the
integrity and maintenance of your network). This journal has been a constant companion
by my side for the past 15 years; I only teach some of these concepts every second or
third year, so I constantly need to refresh commands and concepts and learn new com-
mands and ideas as they are released by Cisco. My journals are the best way for me
to review because they are written in my own words (words that I can understand). At
least, I had better understand them, because if I can’t, I have only myself to blame.
My first published engineering journal was the CCNA Quick Command Guide; it was
organized to match to the (then) order of the Cisco Networking Academy program. That
book then morphed into the Portable Command Guide, the third edition of which you
are reading right now. This book is my “industry” edition of the engineering journal. It
contains a different logical flow to the topics, one more suited to someone working in
the field. Like topics are grouped together: routing protocols, switches, troubleshooting.
More-complex examples are given. New topics have been added, such as OSPFv3 and
EIGRPv6 for IPv6, multi-area OSPF, PPPoE, GRE tunnels, and Cisco IOS Version 15.
The popular “Create Your Own Journal” appendix is still here (blank pages for you to
add in your own commands that you need in your specific job). We all recognize the fact
that no network administrator’s job can be so easily pigeonholed as to just working with
CCNA topics; you all have your own specific jobs and duties assigned to you. That is
why you will find those blank pages at the end of the book. Make this book your own;
personalize it with what you need to make it more effective. That way your journal will
not look like mine.
xxi
Those of you familiar with Cisco devices will recognize that a majority of these commands
work across the entire range of the Cisco product line. These commands are not limited
to the platforms and Cisco IOS Software versions listed. In fact, these devices are in most
cases adequate for someone to continue his or her studies into the CCNP level, too.
Optional Sections
A few sections in this book have been marked as optional. These sections cover topics
that are not on the CCNA Routing and Switching certification exam, but they are valuable
topics that I believe should be known by someone at a CCNA level. Some of the optional
topics might also be concepts that are covered in the Cisco Networking Academy program
courses.
xxii
Part I: TCP/IP v4
Q Chapter 1, “How to Subnet”—An overview of how to subnet, examples of sub-
netting (both a Class B and a Class C address), the use of the binary AND opera-
tion, the Enhanced Bob Maneuver to Subnetting
Q Chapter 2, “VLSM”—An overview of VLSM, an example of using VLSM to
make your IP plan more efficient
Q Chapter 3, “Route Summarization”—Using route summarization to make your
routing updates more efficient, an example of how to summarize a network, nec-
essary requirements for summarizing your network
Part V: Switching
Q Chapter 11, “Configuring a Switch”—Commands to configure Catalyst 2960
switches: names, passwords, IP addresses, default gateways, port speed and
duplex; configuring static MAC addresses; managing the MAC address table; port
security
Q Chapter 12, “VLANs”—Configuring static VLANs, troubleshooting VLANs, sav-
ing and deleting VLAN information.
Q Chapter 13, “VLAN Trunking Protocol and Inter-VLAN Communication”—
Configuring a VLAN trunk link, configuring VTP, verifying VTP, inter-VLAN
communication, router-on-a-stick, subinterfaces, and SVIs.
xxiii
Q Chapter 15, “HSRP and GLBP”— Configuring HSRP, interface tracking, setting
priorities, configuring GLBP.
Part X: WANs
NOTE This example is a very simplified explanation of how routers send updates to
each other. For a more in-depth description, I highly recommend you go out and read
Jeff Doyle’s book Routing TCP/IP, Volume I, 2nd edition, Cisco Press. This book has
been around for many years and is considered by most to be the authority on how the
different routing protocols work. If you are considering continuing on in your certifica-
tion path to try and achieve the CCIE, you need to buy Doyle’s book—and memorize it;
it’s that good.
172.16.64.0/24
172.16.65.0/24
172.16.66.0/24
Winnipeg Vancouver Seattle
172.16.67.0/24
172.16.68.0/24
172.16.69.0/24
Calgary
172.16.70.0/24
172.16.72.0/24 172.16.79.0/24
172.16.71.0/24
172.16.73.0/24 172.16.78.0/24
Edmonton
172.16.74.0/24 172.16.77.0/24
172.16.75.0/24 172.16.76.0/24
As you can see from Figure 3-1, Winnipeg, Calgary, and Edmonton each have to adver-
tise internal networks to the main router located in Vancouver. Without route summari-
zation, Vancouver would have to advertise 16 networks to Seattle. You want to use route
summarization to reduce the burden on this upstream router.
You see that the first 22 bits of the four networks are common. Therefore, you can sum-
marize the four routes by using a subnet mask that reflects that the first 22 bits are com-
mon. This is a /22 mask, or 255.255.252.0. You are left with the summarized address of
172.16.64.0/22
Example for Understanding Route Summarization 27
This address, when sent to the upstream Vancouver router, will tell Vancouver: “If you
have any packets that are addressed to networks that have the first 22 bits in the pattern
of 10101100.00010000.010000xx.xxxxxxxx, then send them to me here in Winnipeg.”
By sending one route to Vancouver with this supernetted subnet mask, you have adver-
tised four routes in one line, instead of using four lines. Much more efficient!
Once again, the first 22 bits are common. The summarized route is therefore
172.16.68.0/22
For Edmonton, the first 21 bits are common. The summarized route is therefore
172.16.72.0/21
Figure 3-2 shows what the network looks like, with Winnipeg, Calgary, and Edmonton
sending their summarized routes to Vancouver.
28 Example for Understanding Route Summarization
172.16.64.0/24
172.16.65.0/24
172.16.64.0/22
172.16.66.0/24
Winnipeg Vancouver Seattle
172.16.67.0/24 2
/2
.0
.68
16
172.16.68.0/24 2.
17
172.16.72.0/21
172.16.69.0/24
Calgary
172.16.70.0/24
172.16.72.0/24 172.16.79.0/24
172.16.71.0/24
172.16.73.0/24 172.16.78.0/24
Edmonton
172.16.74.0/24 172.16.77.0/24
172.16.75.0/24 172.16.76.0/24
Because there are 20 bits that are common, you can create one summary route for
Vancouver to send to Seattle:
172.16.64.0/20
Vancouver has now told Seattle that in one line of a routing update, 16 different net-
works are being advertised. This is much more efficient than sending 16 lines in a rout-
ing update to be processed.
Figure 3-3 shows what the routing updates would look like with route summarization
taking place.
172.16.64.0/24
172.16.65.0/24
172.16.64.0/20
172.16.64.0/22
172.16.66.0/24
Winnipeg Vancouver Seattle
172.16.67.0/24 2
/2
.0
.68
16
172.16.68.0/24 2.
17
172.16.72.0/21
172.16.69.0/24
Calgary
172.16.70.0/24
172.16.72.0/24 172.16.79.0/24
172.16.71.0/24
172.16.73.0/24 172.16.78.0/24
Edmonton
172.16.74.0/24 172.16.77.0/24
172.16.75.0/24 172.16.76.0/24
TIP Because most networks use NAT and the ten networks internally, it is important
when creating your network design that you assign network subnets in a way that they
can be easily summarized. A little more planning now can save you a lot of grief later.
Other documents randomly have
different content
voice addressing herself, but could not distinguish the words
because of the low droning sound that filled her ears as she sat
passive on the rock. Who he was she quite well knew. It was not
possible for the member of a small congregation such as that in High
Tor church to be ignorant of the features of so notable an occupant
of Lord Wolverhampton’s pew as the Earl’s son and heir. Tall,
handsome, and manly, Lord Harrogate was worth looking at for his
own sake; but Ethel had never thus looked upon him until she found
herself thus confronted with him in the mist, as her rescuer from
certain suffering, perhaps from death.
‘If you are able to walk, Miss Gray,’ said Lord Harrogate earnestly,
‘will you take my arm and lean on me? My servant will charge
himself with the child here; indeed I do not think he can do better
than to set her on the pony, as she seems so tired. We must all of us
rely on Bates’s guidance to get clear of the waste. Happily, he is a
thorough moorman, and can pick his way where I should be at fault.’
‘Ay, ay, my Lord,’ returned Bates, flattered by the compliment, but
honestly unwilling to be pranked in borrowed plumage. ‘But if we
were t’ other side o’ Pinkney Ridge or Cranmere way, I’d not be so
gey ready to take the lead in a fog like this one. I’ve heard of
moormen straying round and round, and lying down to die in a drift
within gunshot o’ their own house-door. But we were on the hard
path just now, so if we can but strike it again, we’re safe.’
They started, Betty Mudge perched sideways on the pony, which the
keeper led; while Ethel, in spite of her protestation that she could
walk unaided, was glad to avail herself of the support of Lord
Harrogate’s arm. It was not all plain sailing, for so dense was the fog
that even the experienced keeper was puzzled for a time, until his
sharp ear caught the well-known babble of a brook.
‘’Tis running water!’ cried Bates in triumph. ‘Safest plan on the moor
is to follow running water, for that won’t deceive. We’ll win through
it.’
And indeed a short half-hour brought the party to the firm high-
road, with the gates of High Tor Park, topped by their stone
wyverns, within sight. Betty Mudge, who announced herself as
having an aunt in the village at whose cottage she could pass the
night, was despatched under convoy to that relative’s abode. But
Ethel Grey looked so worn and ill, that Lord Harrogate insisted on
her retaining his arm up the carriage-drive leading to the house,
where she could receive the attention her state required.
‘My mother and sisters will take care of you, I know,’ he said, as he
supported her slow steps through the park, where the fog, so dense
upon the frowning hills above, only floated in fitful wreaths. The
house was reached, and great was the surprise of those within when
Lord Harrogate appeared with Ethel, pale, patient, exhausted, but
beautiful still, her dark hair and her dress dripping with wet, leaning
on his strong arm. The Countess was kind; and her daughters,
beautiful golden-haired Lady Gladys, honest-eyed earnest Lady
Maud, even Lady Alice, a clever child of twelve, were still more kind.
A bright wood-fire was soon blazing in what was called the Yellow
Room; and Ethel, seated as near to the crackling logs as her chair
could be placed, and propped up with cushions, was able to dry her
wet tresses and drenched garments; while Lord Harrogate’s sisters,
and Lady Maud in especial, pressed her to partake of tea and other
refreshments, and spoke soothingly to her, and were very full of
tender womanly sympathy.
Lady Maud, the Earl’s second daughter, knew the new school-
mistress better than did the others, and liked her. She was herself a
constant visitor at the school-house, and had heard many and many
an urchin stammer through his or her lessons there, and could
therefore the better appreciate the motive which had led Ethel into
her late danger, through a natural wish to comfort little Lenny on his
bed of fever. Warmth, and that kindliness of manner which women
shew more than we do, did much towards bringing Ethel back from
that death-in-life which excessive fatigue and chill tend to produce;
and when the carriage was, in spite of her remonstrance, ‘ordered
round,’ to convey her home to the school, she had strength enough
to walk unaided to the door. Lord Harrogate had disappeared. The
Earl had not as yet returned from some meeting of magistrates. ‘I
will come down to see you, Miss Gray, to-morrow, if I can,’ said Lady
Maud, as the carriage drove off.
ebookball.com