CCIE Sec Exam Certification Guide 2nd Ed
CCIE Sec Exam Certification Guide 2nd Ed
CCIE Sec Exam Certification Guide 2nd Ed
CCIE Self-Study
Cisco Press
800 East 96th Street
Indianapolis, IN 46240 USA
ii
Trademark Acknowledgments
All terms mentioned in this book that are known to be trademarks or service marks have been appropriately 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 feedback@ciscopress.com. Please
make sure to include the book title and ISBN in your message.
We greatly appreciate your assistance.
iii
iv
vi
Dedications
I dedicate this book to Our Lady, Mary, the Mother of the Eucharist.
I am the Mother of the Eucharist. Know Jesus word. Love Jesus, the Eucharist.
Our Lady, Mary, Mother of the Eucharist
Dedica (Italiano)
Dedico questo libro alla Madonna, Maria, Madre dellEucaristia.
Io sono la Madre dellEucaristia. Conoscete Ges Parola. Amate Ges Eucaristia.
La Madonna, Maria, Madre dellEucaristia
vii
Acknowledgments
First I would like to thank the folks at Cisco Press for helping me and introducing me to this
challenging project.
Without Brett Bartow this book would never have been started. Thank you Brett for liaising with
the CCIE team on my behalf and believing that I could complete this book.
Andrew Cupp, who was expecting his rst baby at the time of completion, I really appreciate your
expert advice and guidance. Without you both this book would only be a dream. Michelle, I will
never forget you. Also I want to mention Sheila Schroeder, Chris Cleveland, John Kane, and Bill
McManus for being part of the best virtual team I have ever had the pleasure to be part of.
I would like to especially thank Gert De Laet for his valuable input and direction of this guide. Gert
was a contributing author to Chapter 8, CCIE Security Self-Study Lab. Thank you, my dear friend.
I must also mention the enormous effort of the technical reviewers, especially Randy for your eye
for the smallest and most technical aspects of every word I write, Steve for sharing with me and
the readers real-life scenarios, and of course Yusuf who made sure I did not break any rules. I look
forward to reviewing your next books with great anticipation.
I would also like to thank my family, including two beautiful sons, Simon (the Xbox and PC guru)
and Daniel, and my wife Sharon, who was expecting during the writing of this guide. I was always
grateful for my familys understanding when I needed time to complete this project. I treasure my
time with my family and my growing boys who make me proud to be their Dad. Simon I love you
to the sun and keep going around forever. Daniel I cannot wait to hold you in my arms each day
that goes by. I also thank my Dad and Mum (1948-2001) for bringing me up with such great
examples. Massimo Piccinini, my physicist friend in the most beautiful City of the World, Roma,
thank you for friendship and love over the past 5 years; thank you for sharing your life with me
even though we live so far apart, thank you for your Italian translation and many more beautiful
things you do for me and my family. It was an inspiration to know you. I would also like to mention
these wonderful friends who support me from far with much love: Vescovo Claudio (Vescovo
Ordinato da Dio Vescovo dellEucaristia), my favorite priest in all the world, I will never forget
the warm embrace you gave me, who also helped me realize what is important in life, Saint Marisa
Rossi (thank you for your prayers), Massimo (yes twice), Giorgio, Antonella, Domenico,
Federica, Fabrizio, Giulia, Alessandro, Paola, Fabio, Riccardo, Alessandra, Elisa, Selenia, Angelo,
Mariasole, Giacomo, Laura, Jacopo, Samuele, Yari, Laura, Emanuele, and Sara.
I would like to specially mention Claudine Campbell for ensuring my musical hardware arrived
also on time and saved me loads of money. Thank you cousin.
I want to thank my wonderful aunties who gave me wonderful encouragement over all the years
they have known me; thank you Oto, Lyda, and Alice.
May God bless us all.
viii
Go to http://www.ciscopress.com/safarienabled
ix
Contents at a Glance
Foreword xviii
Introduction xx
Chapter 1
Chapter 2
Application Protocols
Chapter 3
Chapter 4
Security Protocols
Chapter 5
Chapter 6
Security Technologies
Chapter 7
Chapter 8
441
Appendix A
561
Appendix B
625
Appendix C
639
Appendix D
657
103
149
221
297
341
405
Contents
Foreword xviii
Introduction xx
Chapter 1
47
xi
80
xii
145
xiii
Q & A 213
Scenario: Configuring Cisco Routers for Passwords and
Access Lists 215
Scenario Answers 217
Chapter 4
xiv
Chapter 5
Chapter 6
309
xv
Chapter 8
392
436
xvi
CCIE Security Self-Study Lab Part I: Basic Network Connectivity (4 Hours) 450
Basic Frame Relay Setup (5 Points) 450
Basic Frame Relay Setup Solution 451
Physical Connectivity (0 Points) 456
Catalyst Ethernet Switch Setup I (5 Points) 457
Catalyst Ethernet Switch Setup I Solution 457
Catalyst Ethernet Switch Setup II (6 Points) 463
Catalyst Ethernet Switch Setup II Solution 463
IP Host Lookup and Disable DNS (1 Point) 464
IP Host Lookup and Disable DNS Solution 464
PIX Configuration (6 Points) 465
PIX Configuration Solution 466
IGP Routing (18 Points) 470
Basic RIP Configuration (6 of 18 Points) 470
EIGRP Configuration (5 of 18 Points) 471
OSPF Configuration (7 of 18 Points) 475
Basic ISDN Configuration (6 Points) 484
Basic ISDN Configuration Solution 485
DHCP Configuration (3 Points) 490
DHCP Configuration Solution 491
BGP Routing Configuration (6 Points) 491
Basic IBGP Configuration 492
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours) 495
IP Access List (4 Points) 495
IP Access List Solution 496
Prevent Denial-of-Service Attacks (4 Points) 497
Prevent Denial-of-Service Attacks Solution 497
Time-Based Access List (4 Points) 499
Time-Based Access List Solution 499
Dynamic Access List/Lock and Key Feature (5 Points) 501
Dynamic Access List/Lock and Key Feature Solution 501
Cisco IOS Firewall Configuration on R5 (6 Points) 503
Cisco IOS Firewall Configuration on R5 Solution 503
IPSec Configuration (6 Points) 505
IPSec Configuration Solution 506
Advanced PIX Configuration (5 Points) 511
Configuring SSH on the PIX 512
Configuring the PIX for Intrusion Detection 512
ACS Configuration (5 Points) 514
Non-AAA Authentication Methods 514
Login Authentication Methods 516
xvii
Appendix B
625
Appendix C
639
Appendix D
657
Index 671
561
521
xviii
Foreword
Cisco Systems launched the CCIE Program in November 1993; it was the rst certication program from
Cisco. CCIE certication is widely considered the industrys highest-level IT certication program, and it
is commonly referred as the doctorate of networking. It equips candidates with excellent internetworking
skills that are simply the best in the industry. The program identies leaders with a proven commitment to
their career, the industry, and the process of ongoing learning.
Internet Security
As Dr. Vinton G. Cerf has said, The wonderful thing about the Internet is that all these computers are
connected. However, the challenge of the Internet also is that all these computers are connected.
The luxury of access to this wealth of information comes with its risks, and anyone on the Internet is a
potential stakeholder. The risks vary from information loss or corruption to information theft to lost revenue and productivity. The number of security incidents is also growing dramatically. On the other hand,
organizations cannot simply cut off communications with the outside world and hope to survive. The risks
inherent in modern networked communications drive the need for network security implementations to
improve the security posture within every organization worldwide. Todays most complex networks
require a comprehensive and integrated security solution.
This book
Every chapter of this book holds facts on one of the objectives from the CCIE Security 2.0 written exam.
This book will be a valuable asset for potential CCIE Security candidates. I am positive individuals will
inevitably gain extensive security network knowledge during their preparation for the CCIE Security
written exam by using this book.
Best wishes and Good Luck!
Yusuf Hussain Bhaiji
Program Manager, CCIE Security
Cisco Systems, Inc.
xix
Boldface indicates commands and keywords that are entered literally as shown.
Braces within brackets, [{ }], indicate a required choice within an optional element.
Introduction
The Cisco Certied Internetwork Expert (CCIE) Security Certication is an increasingly popular internetworking certication and one of the most popular security certications in the world. Although CCIE certication builds on the foundation you may have established from CCNA certication, CCNP
certication, and other certications, there is no prerequisite to attempt to gain CCIE certication. However, attaining CCNA and CCNP certications will help you understand the Cisco subjects and testing
strategies that are necessary to be successful when you attempt the CCIE written and lab exams.
This book is designed to help you prepare for the CCIE Security written exam. This second edition builds
on the successful rst edition by incorporating full coverage of the latest exam topics. This book will also
help you prepare for the CCIE Security recertication exam.
The CCIE Security certication was recognized in December 2003 as being the second hottest certication in the IT industry.
NOTE Cisco recently announced a revision of the CCIE Security certication exam with a
number of new topics added and a small amount of old and unused technologies removed.
For more details on the new CCIE Security 2.0 written exam, visit http://www.cisco.com/en/
US/learning/le3/ccie/security/index.html.
This new edition has been updated to consider all of these new changes.
xx
The CCIE Security track was released in 2001 by Cisco and since security technologies have been evolving
so much, Cisco is constantly working towards improving the track and ensuring the content is up-to-date.
To achieve CCIE Security certication you must rst pass a written qualication exam (a computer-based
exam of 100 multiple-choice questions) and a one-day lab exam. To qualify for the CCIE Security lab
exam, you must rst successfully pass the written exam.
Both exams are difcult, and this book is primarily aimed at helping you prepare for the written exam by
covering all of the stated written exam blueprint topics. However, Chapter 8, CCIE Security Self-Study
Lab, includes a CCIE Security self-study lab that helps you with comprehensive preparation for the lab
exam by giving you an idea of the challenges you will face in the lab exam. Appendix C, Sample CCIE
Routing and Switching Lab I and Appendix D, Sample CCIE Routing and Switching Lab II, also contain bonus Routing and Switching lab topics to help you prepare for that exam as well. This is an added
bonus because the lab portion of the CCIE Security certication contains approximately 50 percent of topics
from Routing and Switching content. Recent Cisco announcements regarding the lab exam mean that simple assignments such as basic Frame Relay congurations, VLAN conguration, and routing protocols are
now precongured for you. This ensures that the CCIE Security track is focused more on testing an individuals security skills.
Achieving CCIE Security certication is made intentionally difcult by Cisco. You should have extensive
practical experience and you should consult many resources to be prepared to pass a CCIE exam. Cisco
advises that you have 3 to 5 years of prior experience before attempting any CCIE track. What this book
will do for you is give you a comprehensive look at all of the topics covered on the CCIE Security written
exam. Use this book and the CD-ROM to condently assess your level of preparedness for all of the topics
covered on the written exam.
The CCIE Security written exam is a 2-hour multiple-choice exam with a surprising amount of Cisco IOS
congurations and scenario-type questions. Some questions require only one answer while other questions
require two or more.
Passing the written exam means that you have mastered networking concepts and fundamental security
topics necessary to build a complex, secure, and routable IP network using Cisco routers and security
equipment and software. This is a great skill and demonstrates to any employer you are ready for any challenges that may be asked of you.
NOTE The CCIE Security written exam is a computer-based exam with multiple-choice
questions. The exam can be taken at any Thomson Prometric testing center (http://
www.prometric.com/Default.htm) or Pearson VUE testing site (http://www.vue.com/). The
exam is 2 hours long and has 100 questions. You should check with Prometric or VUE for the
exact length of the exam. The exam is constantly under review, so be sure to check the latest
updates from Cisco at http://www.cisco.com/en/US/learning/le3/ccie/security/index.html.
xxi
Chapter 2, Application ProtocolsThis chapter covers the principles of Domain Name System
and TFTP le transfers. The most widely used applications such as FTP and HTTP are covered along
with some of the more secure methods used to download information from the web, such as Secure
Shell and the Secure Sockets Layer protocol. SSH and Remote Data Exchange Protocol (RDEP) are
new topics covered for the latest exam. A challenging scenario is included to ensure that you have the
IOS skill set to congure DNS, TFTP, NTP, and SNMP.
Chapter 3, Cisco IOS Specics and SecurityThis chapter covers the more advanced topics
available to Cisco IOS routers. It covers in detail the hardware components of a Cisco router and how
to manage Cisco routers. Common Cisco device operational commands are described, and examples
xxii
show how to manage Cisco IOS in todays large IP networks. Cisco password recovery techniques and
basic password security are detailed to ensure that you have a solid grasp of Cisco device operation.
Coverage of standard and extended access lists and examples conclude this chapter. Chapter 3
contains a wealth of new material covering the new exam objectives, such as new routing and
switching features, access layer controls, port security, DHCP snoop, and security policy best
practices.
Chapter 5, Cisco Security ApplicationsThis chapter required a large overhaul from the rst
edition. It covers new topics such as Cisco IDS, the VPN 3000 Concentrator, VPN Client software,
and new Catalyst security modules. Cisco Secure ACS and Security Information Monitoring System
round off this chapter.
Chapter 6, Security TechnologiesThis chapter describes the basic security methods and
evolution of new secure networks including packet ltering and proxies. The IP address depletion
rates with IPv4 have led to NAT/PAT becoming increasingly popular; this chapter covers these topics
along with sample IOS congurations. The Cisco PIX Firewall is Ciscos trademark security device,
and this chapter teaches you the architecture and conguration of these unique security devices. The
Cisco IOS Firewall feature set and VPN are covered. Network-based IDS, host-based IDS, and Cisco
Threat Response are covered in detail as well.
Chapter 8, CCIE Security Self-Study LabThis chapter is designed to assist you in your nal
preparation for CCIE Security certication. This rare sample lab was put together by one former
(Sydney CCIE lab) and one current (Brussels CCIE lab) CCIE proctor from the CCIE team. It is a
sample CCIE Security lab with working solutions to ensure that you are fully prepared for the nal
hurdle, the CCIE Security lab exam. In my view and experience (including writing numerous CCIE
lab exams) this sample exam is more challenging than most Cisco exams. Please enjoy and study this
sample CCIE Security lab. Many readers have e-mailed me in the past to ask what is their next step
after passing the written exam. An excellent start is Chapter 8 of this book. When the CCIE program
rst started, there were no sample lab questions. Now in your hands you have a sample Security lab
exam and bonus sample Routing and Switching lab exams (Appendixes C and D).
xxiii
Appendix B, Study Tips for CCIE Security ExaminationsAppendix B describes some of the
study tips and preparation steps you should consider before embarking on the long hard road to CCIE
Security certication. There are also answers to frequently asked question about the written exam and
CCIE Security certication.
Appendix C, Sample CCIE Routing and Switching Lab IAppendix C is a bonus appendix
designed to assist you in your nal preparation for the CCIE Routing and Switching lab exam and help
you appreciate the level of difculty found in any CCIE lab exam.
Appendix D, Sample CCIE Routing and Switching Lab IIAppendix D is a second bonus
appendix designed to assist you in your nal preparation for the CCIE Routing and Switching lab
exam and help you appreciate the level of difculty found in any CCIE lab exam. This second bonus
version of the R&S lab exam contains only four routers, for those readers who do not have access to
a large number of routers.
CD-ROMThe CD-ROM provides you with a testing engine that simulates the written exam with a
database of over 500 questions. Take several sample CD-ROM exams and ensure that you review all
the answers and results so that you can fully prepare for the exam by identifying areas where you need
extra preparation.
xxiv
Table 8-1
ID
I. Security Protocols
A.
Chapter 4
B.
Chapter 4
C.
AES
Chapter 4
D.
Chapter 4
E.
Chapter 4
F.
Chapter 4
G.
IP Secure (IPSec)
Chapter 4
H.
Chapter 4
I.
Chapter 4
ID
Topic Area
J.
Chapter 4
K.
Chapter 4
Chapter 2
B.
Chapter 2
C.
Chapter 2
D.
Chapter 2
E.
Chapter 2
F.
Chapter 2
G.
Chapter 2
H.
IOS SSH
Chapter 2
I.
Chapter 2
J.
Active Directory
Chapter 2
K.
Chapter 2
Networking Basics
Chapter 1
B.
TCP/IP
Chapter 1
C.
Chapter 1
xxv
Table 8-1
ID
Topic Area
D.
Routed Protocols
Chapter 1
E.
Chapter 1
F.
Chapter 1
G.
IP Multicast
Chapter 1
H.
Chapter 1
I.
Async
Chapter 1
J.
Chapter 1
K.
Chapter 1
L.
Chapter 1
Chapter 6
B.
Packet Filtering
Chapter 6
C.
Chapter 6
D.
Chapter 6
E.
Chapter 6
F.
Firewalls
Chapter 6
G.
Content Filters
Chapter 6
H.
Chapter 6
I.
Authentication Technologies
Chapter 6
J.
Authorization Technologies
Chapter 6
K.
Chapter 6
L.
Chapter 6
M.
Chapter 6
N.
Chapter 6
Cisco Secure NT
Chapter 5
B.
Chapter 6
C.
VMS
Chapter 5
D.
Chapter 5
xxvi
Table 8-1
ID
Topic Area
E.
Chapter 6
F.
VPN 3000
Chapter 5
G.
Client-Side VPN
Chapter 5
H.
Chapter 5
I.
Chapter 5
J.
Chapter 5
K.
Chapter 5
Chapter 7
B.
Chapter 7
C.
Vulnerability Discussions
Chapter 7
D.
Chapter 7
IOS specics
Chapter 3
B.
Chapter 3
C.
Chapter 3
*Note from Cisco.com: The Security written exam (350-018) went into production in all testing locations on June
1, 2004. The exam has 100 multiple-choice questions and is two hours in duration. The topic areas listed are
general guidelines for the type of content that is likely to appear on the exam. Please note, however, that other
relevant or related topic areas may also appear. Italicized bold type indicates topic areas changed from the previous Security exam (prior to June 1, 2004) and strengthens coverage of highly-secure enterprise networks.
How to Prepare for the CCIE Security Written Exam Using This
Book and CD-ROM
The chapters open by identifying the exam blueprint topics covered in that chapter. You can begin by taking the Do I Know This Already? quiz to immediately evaluate how familiar you are with the chapters
subjects. Use the quiz instructions in each chapter to decide how to proceed. If you feel unfamiliar with
the material and you need to learn a lot about the topics, start by reading the Foundation Topics section,
which goes into detail about the objectives covered in that chapter. If your quiz results demonstrate that
you already have a strong grasp of the subjects, you can skim certain topics in the chapter and then move
xxvii
on to the Foundation Summary, Q & A, and Scenarios sections at the end of the chapter. If you feel
comfortable with your results after working through these sections, move on to the next chapter or use the
CD-ROM to practice the topics. If you are consistently identifying areas that you have trouble with, study
those topics more and then assess yourself again.
This book covers all the objectives in the CCIE Security written exam blueprint, but no one book can teach
you everything you need to know for a CCIE exam. Although you can use this book to identify and ll in
knowledge gaps, you might encounter areas where you feel less prepared than others. Consider supplementing your learning in these areas with practical experience, specic books on the subject, or by searching the topic at Cisco.com.
In addition to the chapters in this book, the accompanying CD-ROM provides tools that can help you prepare for the exam. The CD-ROM includes over 500 sample questions that you can explore in different
modes. You can work through the questions in practice mode so that you can learn as you go or you can
assess your preparedness in test mode. Practice mode allows you to link to an electronic version of the
book when you want more information on the particular topic covered in the question. In practice mode,
you can choose the topics and number of questions you want to work through. Test mode simulates the
exact conditions in the CCIE Security certication exam, where you are presented with 100 difcult questions and asked to attain a pass score of 80 percent within 2 hours.
At the end of a CD-ROM practice exam, you receive a score and a categorical breakdown of your performance. Use these results to identify areas of strengths and weaknesses, so you can use this book and other
resources to ll in any knowledge gaps.
Using this book is one of the best steps you can take toward achieving one of the most sought-after certications in the IT industry. You need to rely on your extensive experience to pass the exam, but this book can
make your preparation focused and efcient. Do not give up, and keep studying until you become certied.
Final Thoughts
Having many Cisco certications myself, the joy and success they can help bring has signicantly
changed my life and that of my family. There are always challenges facing network engineers, and no
doubt once you are a CCIE, meeting those challenges will drive you to acquire skills you never knew you
could master.
I sincerely hope you enjoy your time spent with this book; it took over 6 months of long exhausting nights
to complete to ensure that you have the perfect companion through your journey to becoming a Security CCIE.
When you succeed in attaining your certication, feel free to e-mail me at henry.benjamin@optusnet.com
so I too can enjoy your success and joy. Please feel free to send me your feedback as well, as many readers
of the rst edition did to my wonderful surprise. I wish you the best in your endeavors and good luck!
Networking Basics
TCP/IP
Routed Protocols
IP Multicast
Async
CHAPTER
Networking BasicsDiscusses the OSI model, concepts, and functions. Topics include
the seven layers of the OSI model and common TCP/IP networking examples.
Switching and BridgingCovers the process that todays networks use to switch packets
and describes traditional bridging methods. Virtual LANs, spanning tree protocol (STP),
and Fast Ethernet Channel are discussed.
Routing IPCovers the most widely-used routed protocol in todays Internet, IP, and the
routing protocols available on Cisco routers, such as RIP, EIGRP, OSPF, and BGP. Cisco
IOS commands and conguration examples demonstrate the power of routing IP on Cisco
routers.
PPP, ISDN, Frame Relay, IP Multicast, and AsyncTwo of the most widely used dialup
protocols are PPP and ISDN. Frame Relay is covered briey to ensure that you have a good
understanding of the common terminology used in todays networks. IP multicast and
async protocols are also covered.
Telephony Best PracticesIP Telephony is one of the largest investments that Cisco has
made in its 20-year history. This section covers the best practices used in todays Cisco Voice
over IP (VoIP) implementation.
2.
Which layer of the OSI model is responsible for converting frames into bits and bits into
frames?
a.
Physical
b.
Network
c.
Transport
d.
LLC sublayer
e.
Data link
Physical
b.
Network
c.
Transport
d.
LLC sublayer
e.
Data link
3.
4.
5.
6.
7.
Physical
b.
Network
c.
Transport
d.
Data link
Network layer
b.
Physical layer
c.
Operational layer
d.
Application layer
Layer 1
b.
Layer 2
c.
Layer 3
d.
Layer 4
e.
Layer 5
f.
Layer 6
g.
Layer 7
Layer 4
b.
Layer 3
c.
Layer 2
d.
Layer 1
Layer 1
b.
Layer 2
c.
Layer 4
d.
Layer 3
8.
9.
10.
11.
12.
13.
Layer 1
b.
Layer 2
c.
Layer 3
d.
Layer 4
IP
b.
IPX
c.
NetBEUI
d.
NetBIOS
Which of the following is not a required step to enable Fast EtherChannel (FEC)?
a.
b.
Ensure that all ports share the same parameter such as speed.
c.
d.
Ensure eight ports are selected to be bundled into a logical link or trunk.
b.
c.
d.
e.
Layer 1
b.
Layer 2
c.
Layer 3
d.
b.
A routable frame
c.
d.
14.
15.
16.
17.
18.
An incoming frame on a Layer 2 switch is received on port 10/1 on a Catalyst 5000. If the
destination address is known through port 10/2, what happens?
a.
b.
c.
d.
e.
None of these.
Which of the following are the four possible states of spanning tree?
a.
b.
c.
d.
64 bits
b.
48 bits
c.
32 bits
d.
24 bits
e.
8 bits
131.108.1.1
b.
131.108.1.254
c.
131.108.1.255
d.
131.108.1.2
e.
10000011.1.1.1
b.
10000011.00000010.1.1
c.
10000011.1.1.01010101
d.
10000011.1.1.11111111
19.
20.
21.
22.
How many subnets are possible in VLSM if the Class C address 131.108.255.0 is used with
the subnet mask 255.255.255.252 in the fourth octet eld? (Allow for subnet zero.)
a.
None
b.
100
c.
255
d.
254
e.
253
f.
252
g.
66
h.
64
How many hosts are available when a /26 subnet mask is used?
a.
254
b.
62
c.
64
d.
126
255
b.
254
c.
253
d.
e.
You require an IP network to support, at most, 62 hosts. What subnet mask will accomplish
this requirement?
a.
255.255.255.255
b.
255.255.255.252
c.
255.255.255.224
d.
255.255.255.192
e.
255.255.255.240
23.
24.
25.
26.
27.
Which of the following are multicast addresses? (Choose all that apply.)
a.
224.0.0.5
b.
2240.0.6
c.
221.0.0.5
d.
192.1.1.1
e.
131.108.1.1
RIPv1
b.
RIPv2
c.
OSPF
d.
EIGRP
e.
BGP
What is the source TCP port number when a Telnet session is created by a PC to a Cisco
router?
a.
23
b.
c.
21
d.
20
e.
69
DNS resolution
b.
c.
d.
Both a and b
If two Cisco routers are congured for HSRP and one router has a default priority of 100 and
the other 99, which router assumes the role of active router?
a.
b.
c.
d.
Neither router because Cisco routers do not support HSRP; only clients do.
10
28.
What is the preferred path to 131.108.254.0/24? (Choose the best two answers.)
29.
30.
31.
a.
Via Serial0/0
b.
Via Serial0/1
c.
None
d.
To null0
23
b.
21
c.
69
d.
520
e.
None of these
23
b.
21
c.
69
d.
520
never be used
b.
c.
d.
32.
33.
34.
35.
36.
37.
b.
c.
d.
e.
f.
23
b.
69
c.
21
d.
161
In what eld, or elds, does the IP checksum calculate the checksum value?
a.
Data only
b.
c.
Header only
d.
The TCP header checksum ensures integrity of what data in the TCP segment?
a.
b.
c.
d.
b.
c.
d.
Data only
b.
c.
d.
11
12
38.
Place the following steps in the correct order for PPP callback, as specied in RFC 1570.
1. A PC user (client) connects to the Cisco access server.
2. The Cisco IOS Software validates callback rules for this user/line and disconnects the
39.
40.
41.
a.
1, 2, 3, 4, 5
b.
1, 3, 2, 5, 4
c.
1, 4, 5, 3, 2
d.
1, 5, 4, 3, 2
What hardware port is typically designed to connect a Cisco router for modem access?
a.
b.
c.
d.
e.
The AS5300 series router can support which of the following incoming connections?
a.
Voice
b.
c.
ISDN
d.
All of these
OSPF
b.
RIPv2
c.
RIPv1
d.
EIGRP
e.
IGRP
f.
EBGP
g.
IBGP
h.
BGP
42.
43.
44.
45.
13
What UDP port range is used between Cisco IP Phones when a call is in progress?
a.
6768
b.
8080
c.
27483748
d.
1638432766
e.
1638432767
f.
What two methods are commonly used to secure Voice over IP? (Choose two answers.)
a.
Access lists
b.
IDSs
c.
Enable passwords
d.
Which of the following can be used by attackers to gain access to WLANs? (Select three
answers.)
a.
b.
c.
d.
e.
Which of the following is not a method used to secure a wireless network? (Select the best
three answers.)
a.
b.
c.
d.
e.
14
Foundation Topics
Layer Number
Application
Layer 7
Presentation
Layer 6
Session
Layer 5
Transport
Layer 4
Network
Layer 3
Data link
Layer 2
Physical
Layer 1
The following sections cover each layer and provide protocol examples for each.
15
binary (1s and 0s). For example, the letter A is transmitted (in hex) as 00001010. Examples of
physical layer standards include the following:
RS-232
V.24
V.35
RJ-45
RJ-12
ISO Standard
Upper Layers
Figure 1-1
The LLC sublayer manages and ensures communication between end devices, and the MAC
sublayer manages protocol access to the physical layer.
16
Frame Relay
Ethernet version 2
Bridge protocol data units (BPDUs) in the Spanning Tree Protocol (STP)
Routing protocols, such as Open Shortest Path First (OSPF), Enhanced Interior Gateway Routing
Protocol (EIGRP), and Border Gateway Protocol (BGP), provide the information required to
determine the topology of the internetwork and the best path to a remote destination. A routed
protocol is one that is transported by a routing protocol (such as Routing Information Protocol
[RIP]). For example, IP is a routed protocol that can be advertised by a number of routing
algorithms, such as RIP, OSPF, and BGP. The Layer-3 eld format of protocol type denes to the
higher layers what protocol is being carried inside the IP packet. For example, OSPF has an IP
protocol number of 89; EIGRP has an IP protocol number of 88. Technically, OSPF and EIGRP
are not Layer-3 mechanisms.
NOTE Layer 3 protocols, such as IP, are commonly referred to as connectionless protocols,
whereas Layer 4 protocols, such as TCP, are commonly referred to as connection-oriented
protocols.
A connection-oriented protocol, such as TCP, ensures delivery of all information, whereas a
connectionless protocol, such as IP, packages the data but sends it without guaranteeing delivery.
Connection-oriented protocols exchange control information (also called Handshake) before
transmitting data. A telephone call can be considered a connection-oriented service because the
call is established before conversation can take place, much the same way that TCP sets up a data
connection before data is sent. FTP is another example of a connection-oriented protocol.
17
RTP has some important properties of a transport Layer-4 protocol; however, it also runs on end
systems. RTP differs from transport protocols like TCP in that it (currently) does not offer any
form of reliability or a protocol-dened ow/congestion control. IP voice is an example of RTP
operating at Layer 4 of the OSI model.
Database SQL
18
Telnet
Ping
Trace route
Mail clients
TCP/IP Model
Application
Presentation
Applications such as
Telnet, FTP. and ping
Session
Transport
Network
Data Link
Physical
TCP
UDP
IP
Network
Interface
19
Host B
Peer-to-Peer Communication
Data
TCP
header
Data
Layer 4
(TCP)
Peer-to-peer
communication
TCP
header
Data
IP
TCP
header header
Data
802.3
IP
TCP
header header header
Data
Layer 3
IP
TCP
header header
Layer 3
Data
Layer 2
802.3
IP
TCP
header header header
Data
Layer 4
(TCP)
Data
Layer 2
CRC
0101011000..........
(Binary Transmission)
CRC
0101011000..........
(Binary Transmission)
Frame
Relay
Router A
Frame
Relay
IP
Header
TCP
Header
Router B
Data
CRC
The data from Host A is encapsulated inside a TCP header and passed down to Layer 3 (the IP
layer) for address conguration, where an IP header is also added. Information included here is
the source IP address and destination address. Layer 3 (the network layer) passes the data to the
local router acting as the gateway via the Ethernet connection in raw binary.
20
Router A strips the 802.3 header and encapsulates the IP, TCP, and data in a Frame Relay packet
for delivery over the WAN. A CRC is added here to ensure the packet is not corrupted over the
WAN. Because Frame Relay is connectionless, if an error occurs, its up to the upper layers to
retransmit; Frame Relay will not retransmit the packet. Similarly, HDLC (Layer 2 protocol) is
connectionless and depends on upper layers to resubmit damaged data packets. PPP (connectionoriented), on the other hand, resubmits packets damaged in transmission over the WAN.
Router B receives the Layer 2 frames, strips the Frame Relay header/CRC, and encapsulates the
IP, TCP, and data frame back into an 802.3 header (with its own CRC, Ethernet checks only for
errors and cannot repair them; once more, upper layers, such as TCP, ensure data delivery) for
binary transmission across the Ethernet to Host B. The data is passed up the layers through IP,
TCP, and nally to the application, where the application layer reads and acts upon the data.
The good news for security candidates is that Token Ring and legacy technologies are not covered
in the written exam, so this chapter concentrates only on Ethernet switching. Before covering
switching, the next section summarizes the evolution of Ethernet so that you are aware of the
standards that have developed since Xerox Corporation rst introduced Ethernet.
Ethernet Overview
Ethernet networks are based on a development made by Xerox, Digital Equipment Corporation,
and Intel Corporation. The two versions of Ethernet are commonly referred to as Ethernet I and
Ethernet II (or version 2).
Ethernet uses carrier sense multiple access collision detection (CSMA/CD) to transmit frames on
the wire. In an Ethernet environment, all hosts can transmit as long as no other devices are transmitting. CSMA/CD is used to detect and warn other devices of any collisions, and colliding
stations use a backoff algorithm and wait a random amount of time before trying again. Colliding
devices send a jam signal to advise all stations that a collision has occurred. When a jam signal is
sent (a jam signal is detected by all devices, because the voltage is that of the combined colliding
devices), all stations also stop transmitting. A device attempts to transmit up to 16 times before a
user is notied of the collisions; typically, an application error informs the user that data could not
be delivered. Microsofts famous words are Network is busy.
NOTE The only situation in which CSMA/CD is not used is in a full-duplex connection,
because collisions are not possible when one pair of unshielded twisted-pair cable (UTP, the
physical cable connection) is used to transmit data (one pair of twisted-pair cable) and receive
data (a second pair of twisted-pair cable). In other words, devices connected in full-duplex mode
can send and receive data at the same time without the possibility of collision.
Ethernet Overview
21
Table 1-2 lists some of the common Ethernet media specications and the characteristics of each.
Table 1-2
Characteristics
10BASE5*
10BASE2
Maximum length: 185 m, using RG58 cable types and T connectors on all end
stations
Minimum distance between devices: 0.5 m
Maximum devices per 185-m segment: 30 stations
Speed: 10 Mbps
10BASE-T
100BASE-T
1000 GE
*The word BASE refers to baseband signaling, which uses a single channel, as opposed to broadband, which uses
multiple frequency channels.
22
----
------------------
----------------------------------------------------
36
00-10-7b-54-37-c6
8/13 [ALL]
35
00-09-43-3b-ac-20
8/5 [ALL]
101
00-01-02-00-4a-ff
1/1 [ALL]
00-01-02-00-4a-ff
1/1 [ALL]
102
00-03-e3-5e-ac-81
1/1 [ALL]
101
00-00-0c-92-0c-af
1/1 [ALL]
102
00-03-e3-53-7f-81
1/1 [ALL]
102
00-03-e3-5e-ae-c1
1/1 [ALL]
37
00-03-e3-63-55-80
8/9 [ALL]
102
00-03-e3-5e-a9-01
1/1 [ALL]
Example 1-1 displays a CAM table on a Catalyst switch with the CatOS command show cam
dynamic. You can use other CatOS commands to view specic ports (show cam dynamic 8/13
would show only devices discovered on port 8/13). Example 1-1 displays that the MAC address
01-10-7b-54-37-c6 is located via the port 8/13.
Ethernet Overview
23
NOTE The examples in this chapter display the traditional Cisco CatOS operating system.
The CCIE Security exams test on both Cisco CatOS and Cisco IOS. Chapter 8, CCIE Security
Self-Study Lab, displays CAM tables of the newest form of Cisco IOSbased switches so that
you have exposure to both operating systems.
A Cisco switch populates the CAM tables as new devices send frames, so a switch bases all
bridging decisions on the source MAC address. When a device rst sends a frame to a connected
port on a switch, the switch adds the incoming source address to the CAM table. Any broadcasts
(packets sent by a host that are destined for all hosts in the same broadcast domain) received
because the switch has no CAM entry are sent out all ports except the port the frame was received
on. The switch then adds the source MAC address on the source port. Frames that are received as
broadcasts are sent out all ports active in spanning tree.
NOTE Transparent bridges can operate in two traditional modes. Cut-through switching
occurs when, after the destination MAC address is received, the switch immediately forwards
the frame to the outgoing port. If a switch in cut-through mode encounters a large number of
frames with CRCs, it drops down to store-and-forward mode. This technique is known as
adaptive cut-through. Store-and-forward switching occurs when the entire frame is received
before forwarding the frame. The CRC is checked to ensure that frames containing errors or
CRCs are not forwarded. Although cut-through switching is faster, the switch could potentially
forward frames with errors, because the CRC is not checked. The default mode is typically
store-and-forward on Cisco switches. Routers can also be congured to bridge packets. The
most common form of switching is adaptive cut-through.
Spanning tree is a Layer 2 protocol used to ensure a loop-free topology. A Layer 2 loop is
devastating to a network, because a frame circulates (meaning frames are not dropped by
intelligent Layer 2 devices) the entire broadcast domain until all the switches eventually run out
of memory because of the intensive broadcast storm that occurs. Broadcasts must be forwarded to
all ports except the source port.
NOTE A broadcast domain is dened as a group of all devices that receive broadcast frames
originating from any device within the group. Broadcast domains are typically bound by routers,
because routers do not forward broadcast frames. Switches, on the other hand, must forward all
broadcasts out all ports except the port the frame was received from.
Spanning tree is used when there are multiple LAN segments or VLANs. A VLAN is a dened
group of devices on one or more LANs that are congured (using management software, such as
Catalyst switch code or CatOS) to communicate as if they were attached to the same wire when,
24
in fact, they are located on a number of different LAN segments. VLANs are based on logical
instead of physical connections and must be connected to a Layer 3 device, such as a router, to
allow communication between all segments or VLANs.
To create a VLAN on a Catalyst switch, the CatOS command is set vlan vlan-id (where vlan-id is
a number between 2 and 1005). By default, Cisco switches have VLAN 1 already congured.
Previously, VLAN 1 could not be removed for management purposes, but in the newest versions
of operating system software, you can disable it for security reasons. Cisco IOSbased switches
now extend VLAN coverage from 1-1005 to the extended ranges of 1025-4094. You can disable
Cisco Discovery Protocol (CDP) and spanning tree (not recommended in large switches
networks).
Spanning tree is on by default on all Catalyst switches, and before data can be received or sent on
any given port, STP goes through a root bridge election phase. A root bridge election takes into
account the bridge priority (value between 0 and 65535, default is 32768), and a lower priority is
better. If the bridge priority is equal in a segment with multiple bridges, the lowest MAC address
associated with the bridge is elected as the root bridge.
Bridges communicate using frames called bridge protocol data units (BPDUs). BPDUs are sent
out all ports that are not in a blocking state. A root bridge has all ports in a forwarding state. To
ensure a loop-free topology, nonroot bridges block any paths to the root that are not required.
BPDUs use the destination MAC address 01-08-C2-00-00-00 in Ethernet environments.
ListeningThe port has received data from the interface and will listen for frames. The
bridge only receives data; it does not forward any frames to the interface or to other ports.
LearningThe bridge still discards incoming frames. The source address associated with the
port is added to the CAM table. BPDUs are sent and received.
BlockingThe port has been through the learning and listening states, and because this
particular port is a dual path to the root bridge, the port is blocked to maintain a loop-free
topology.
In some situations, you do not want spanning tree to go through the preceding steps (listening,
learning, and forward/blocking, which can take up to 45 seconds) but rather to immediately enter
a forwarding state. For example, a PC with a fast processor connected to a switch does not need
Ethernet Overview
25
to test for any BPDUs (PCs do not run spanning tree), and the port on the Ethernet switch should
enter a forwarding state to allow the PC immediate connectivity. This feature is known as portfast
on Cisco switches. To enable portfast, use the Catalyst command set spantree spantree-number
portfast interface enable.
NOTE Concurrent routing and bridging/integrated routing and bridging, routing information
elds, source-route bridging, and source-route translational bridging are not covered in the
CCIE Security written exam, and they are not part of the blueprint.
Fast EtherChannel
Fast EtherChannel (FEC) is a Cisco method that bundles 100-Mbps Fast Ethernet ports into a
logical link. The existence of any redundant paths between two switches results in some ports
being in a blocking state, thus reducing available bandwidth.
Figure 1-4 displays a switched network with two 100-Mbps connections between them. Because
of STP, one of the links (Switch A, in this case) will be in a blocking state after the election of a
root bridge. Switch B will block one of the paths to ensure that only one path exists to the root
bridge (Switch A). To purchase and enable a Fast Ethernet port is expensive, and to have it sitting
in an idle position means wasted resources, so Cisco developed a method that enables Fast
Ethernet ports to be bundled together and used concurrently (in other words, cheating spanning
tree into believing that the two ports are one to send data from Switch A to Switch B with two 100Mbps links instead of one).
Figure 1-4
Switch B
Default priority 32768
1/1 Forwarding
Forwarding 1/1
1/2 Forwarding
Blocking 1/2
I am the root
bridge so I forward
on all ports.
Set to the same speed all ports that are part of FEC.
Step 2
26
Step 3
Step 4
Step 5
To set Fast EtherChannel on a switch, use the CatOS syntax set port channel.
Step 6
To set Fast EtherChannel on a router, use the Cisco IOS syntax channel-group
under the Fast Ethernet interface.
Step 7
Congure up to four FEC groups per switch. This limit could change with future
Catalyst releases.
Create the port-channel interface. The number can be from 1 to 64 (256 with Release
12.1(2)E and earlier).
Router(config)# interface port-channel port_channel_number
Step 2
NOTE A group of bundled ports running FEC is commonly known as a trunk. In switching
terms, a trunk is a physical and logical connection between two switches. A trunk, for example,
can carry multiple VLANs.
Inter-Switch Link (ISL) is a Cisco proprietary protocol that maintains VLAN information as
trafc ows between switches and routers. ISL allows members of one VLAN to be located on
any given switch. 802.1Q is an IEEE standard for trunking. You can use IEEE 802.1q in a
multivendor environment. Be aware that not all Cisco switches support ISL encapsulation. For
example, the 2850 only supports 802.1q.
Figure 1-5 displays the logical link when FEC is enabled between Switch A and Switch B.
Figure 1-5
1/1 Forwarding
Forwarding 1/1
1/2 Forwarding
Forwarding 1/2
Internet Protocol
27
Internet Protocol
Internet Protocol (IP) is a widely used networking term that describes a network layer protocol
that logically denes a distinct host or end system, such as a PC or router, with an IP address.
An IP address is congured on end systems to allow communication between hosts over wide
geographic locations. An IP address is 32 bits in length, with the network mask or subnet mask
(also 32 bits in length) dening the host and subnet portion.
Figure 1-6 displays the IP packet header frame format in detail.
Figure 1-6
IP Frame Format
32 bits
Version
IML
Type of Service
Identification
Time-To-Live
Total Length
Flags
Protocol
Fragment Offset
Header Checksum
Options (+ Padding)
Data (Variable)
VersionIndicates the version of IP currently used. IPv4 is the most widely used version.
IPv6 is also available. This version is not tested in the CCIE Security written exam yet, but
will most likely be included in the future.
28
Total LengthSpecies the entire packets length in bytes, including the data and header.
The mathematically dened limit is calculated as 65,535 bytes (2161).
IdenticationContains an integer that identies the current datagram. This eld helps
piece together datagram fragments (16 bits in length).
FlagsConsists of a 3-bit eld of which the two low-order (least-signicant) bits control
fragmentation. The low-order bit species whether the packet can be fragmented. The middle
bit species whether the packet is the last fragment in a series of fragmented packets. The
third, or high-order, bit is not used.
Fragment OffsetIndicates the position of the fragments data relative to the beginning of
the data in the original datagram, which allows the destination IP process to properly
reconstruct the original datagram.
Internet Protocol
29
Header ChecksumHelps ensure only IP header integrity and not the data eld.
OptionsAllows IP to support various options, such as security. The Options eld varies in
length. Some options are Security, Loose Source Routing, Strict Source Routing, Record
Route, and Timestamp.
The Internet Engineering Task Force (IETF) standards body, which consists of more than 80
working groups responsible for developing Internet standards, has dened ve address classes and
the appropriate address ranges. Table 1-3 displays the ve ranges.
Table 1-3
Range
Class A
0xxxxxxx
1126, 127**
255.0.0.0
Class B
10xxxxxx
128191
255.255.0.0
Class C
110xxxxx
192223
255.255.255.0
Class D
1110xxxx
224239
Class E
1111xxxx
240255
Reserved
30
Soon after these ranges were dened and the Internets popularity extended beyond the
Department of Defense in the United States, it became clear that to ensure that a larger community
could connect to the World Wide Web, there had to be a way to extend IP address space using
subnetting. Subnetting allows an administrator to extend the boundary for any given subnet.
To understand an IP address and subnet portion, determine how many hosts are available on a
particular subnet, and learn how to best use an IP address space, consider the following example.
Suppose you are given the IP address 131.108.1.56 and the subnet mask is 255.255.255.0.
You can deduce the subnet for any IP address by performing a logical AND operation for the IP
address along with the subnet mask. A logical AND operation follows two basic rules: positive and
positive equal positive, and negative and either positive or negative equal negative. In binary
(positive is 1 and negative is 0), 0 AND 0 is 0, 0 AND 1 is 0, 1 AND 1 is 1, and 1 AND 0 is 0.
Figure 1-7 displays the logical AND operation used to determine the subnet address.
Figure 1-7
1 0 0 0 0 0 1 1 .1 1 0 0 1 1 0 0 .0 0 0 0 0 0 0 1 . 0 0 1 1 1 0 0 0
1 1 1 1 1 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
1 0 0 0 0 0 1 1 .1 1 0 0 1 1 0 0 .0 0 0 0 0 0 0 1 . 0 0 0 0 0 0 0 0
131
108
1
0
The result of the logical AND operation reveals that the subnet address is 131.108.1.0. The subnet
address is reserved and cannot be assigned to end devices.
To determine the number of hosts available in any given subnet, simply apply the formula 2n 2,
where n is the number of borrowed bits. This is best explained with examples. To determine the
number of borrowed bits, you must examine the subnet mask in binary. For a default Class C
network mask of 11111111.11111111.11111111.00000000 or, in decimal, 255.255.255.0, the last
8 bits represent the borrowed bits. For a Class C network, the number of hosts that can reside is 28
2 = 256 2 = 254 hosts. You subtract two host addresses because host devices are not permitted
to use the subnet address or the broadcast address. In IP, a broadcast address consists of all binary
1s. So, for this example, the broadcast address for the subnet 131.108.1.0 is 131.108.1.255 (255
in binary is 11111111).
Consider another example. Given the host address 171.224.10.67 and the subnet mask of
255.255.255.224, this example shows you how to determine the subnet and the number of hosts
that can reside on this network.
To determine the subnet, perform a logical AND. Figure 1-8 displays the operation.
Figure 1-8
31
The subnet is 171.224.10.64. The number of hosts that can reside on this network with a subnet
mask of 255.255.255.224 (or 11100000) is 25 2 = 32 2 = 30 hosts. You can apply this simple
example to any Class A, B, or C address, and applying a subnet mask that is not the default or
classful kind allows network administrators to extend IP address space and allows a larger number
of devices to connect to the IP network.
Table 1-4 displays some common network subnets and the number of hosts available on those
subnets.
Table 1-4
Subnets
Hosts
64 subnets
2 hosts*
32 subnets
6 hosts
16 subnets
14 hosts
8 subnets
30 hosts
4 subnets
62 hosts
2 subnets
126 hosts
*Used commonly for point-to-point WAN circuits when no more than two hosts or routers reside. Point-to-point
networks typically connect a remote router to a central router.
32
OSPF
EIGRP
Additionally, Cisco IOS allows the use of any 0 subnets (for example, subnet 131.108.0.0/24)
with the global Cisco IOS command, ip subnet-zero. This can be very useful for networks that
are running out of IP address space.
To effectively use any IP address space, use the least number of subnet bits and the least number
of host bits. You could use a Class C mask or a mask that allows for 254 hosts. For a WAN link
that will never use more than two hosts, this is a vast amount of wasted space. Applying different
masks to cater to the exact requirement means that IP address space is not wasted unnecessarily.
Apply the formula to determine the best subnet to use to cater to two hosts on any given subnet
and class of address. Remember that you must subtract two host addresses for the subnet address
and broadcast address.
Applying the formula, you get 2n 2 = 2, or 2n = 4, or n = 2. You need to borrow only 2 bits from
the subnet mask to allow for two host addresses. The subnet mask is 30 bits in length, or
255.255.255.252 in binary. This is represented as 11111111.11111111.11111111.111111100. The
last 2 bits (00) are available for host addresses. The subnet is 00, the rst host address is 01, the
second is 10, and the broadcast address is 11.
TIP Loopback interfaces congured on Cisco routers are typically congured with a host
address using a 32-bit subnet mask. This allows, for example, a Class C network with 256 (from
0255) hosts among 256 different routers and conserves valuable IP address space.
33
In the past few years, the expansion of the Internet has been phenomenal. Currently, the Internet
uses more than 100,000 routes. From 1994 through 1996, the routing table increased from
approximately 20,000 entries to more than 42,000. Currently, there are over 120,000 IP routing
entries. How can network administrators reduce the large routing table size? Each routing entry
requires memory and a table lookup by the router each time a packet is required to reach a destination. Reducing memory requirements and the time it takes to send a packet to the destination
provides faster response times for packets to travel around the Internet.
CIDR helps to reduce the number of routing table entries and memory requirements. CIDR helps
conserve resources because it removes the limitation of using the default mask (which wastes IP
address space) and leaves the addressing up to the IP designer. Routers use CIDR to group networks
together to reduce routing table size and memory requirements. CIDR is typically represented with
the network number/bits used in the mask, such as 131.108.1.0/24, or the equivalent of 131.108.1.0
255.255.255.0. BGP and classless routing protocols use CIDR to reduce routing table entries,
allowing faster lookup and requiring less memory on Cisco routers, for example.
34
TCP Mechanisms
Figure 1-9 displays the TCP header format.
Figure 1-9
Destination Port
Sequence Number
Acknowledgment Number
Data Offset
Reserved
Flags
Checksum
Window
Urgent Pointer
Options (+ Padding)
Data (Variable)
The following descriptions summarize the TCP packet elds illustrated in Figure 1-9:
Source Port and Destination PortIdenties points at which upper-layer source and
destination processes receive TCP services (16 bits in length). Common destination ports
include 23 for Telnet, 21 for FTP, and 20 for FTP data.
Sequence NumberUsually species the number assigned to the rst byte of data in the
current message. In the connection-establishment phase, this eld can also identify an initial
sequence number to be used in an upcoming transmission.
35
Acknowledgment NumberContains the sequence number of the next byte of data that the
sender of the packet expects to receive.
FlagsCarries a variety of control information, including the SYN and ACK bits used for
connection establishment and the FIN bit used for connection termination.
WindowSpecies the size of the senders receive window (that is, the buffer space
available for incoming data).
A number of mechanisms are used by TCP to ensure the reliable delivery of data, including the
following:
Flags
Acknowledgments
Sequences numbering
Checksum
Windowing
NOTE The Flags eld is critical in a TCP segment. The elds various options include the
following:
URG (U) (Urgent)Informs the other station that urgent data is being carried. The
receiver will decide what to do with the data.
PSH (P) (Push)Informs the end station to send data to the application layer immediately.
FIN (Finished)Indicates that the sender is nished sending data and terminates the session.
36
To best describe how TCP is set up and established, consider a Telnet request from a PC to a Cisco
router and follow the ags, acknowledgments, sequence, and windowing options.
Figure 1-10 displays a typical Telnet session between a PC and a Cisco router. The PC initializes
a Telnet request using destination port 23 and an initial sequence number.
Figure 1-10
PC
Step 1
PC requests Telnet session.
Flags U A P R S F
0 0 0 0 1 0
Destination Port is 23 or Telnet.
Initial sequence is 14810532.
Ack set to 0.
Step 3
Flags U A P R S F
0 1 0 0 0 0
Sequence is 14810533.
Ack set to 364639619.
Router
Connection
Request (SYN)
Connection
Reply (ACK and SYN)
PC acknowledges
Router (ACK)
Step 2
Router responds with its
own sequence number, and
acknowledges the segment
by increasing the PC
sequence number by one.
Flags U A P R S F
0 1 0 0 1 0
Source port is 23.
Ack is 14810533.
Its own sequence is
3646346918.
Step 4
Data Flow
Step 5
Flags U A P R S F
0 1 1 0 0 1
Step 8
PC acknowledges request.
PC tears down
session (FIN)
(ACK)
Step 6
Router acknowledges request.
(FIN)
Step 7
Router also tears down
connection.
Flags U A P R S F
0 1 1 0 0 1
(ACK)
37
Step 2
The router responds with its own sequence number (such as 3646349618) and
acknowledges (ACK) the segment sent by the PC. The ACK will be the next
expected sequence number generated by the PC; in this example, the ACK is
numbered 14810533.
Step 3
The PC sends a segment that acknowledges (ACK) the routers reply. The rst three
steps are commonly known as the TCP three-way handshake. It is possible for four
packets to start a session if a parameter must be negotiated.
Step 4
Data is transferred. The window size can be adjusted according to the PC or the
router. The window size, for example, might be four packets before an
acknowledgment is required. The sender waits for an acknowledgment before
sending the next four segments. The window size can change during a data transfer;
this is commonly known as the sliding window. If, for example, a lot of bandwidth
is available, the sender might resize the window to eight segments. Or the sender
might resize the window to two segments during periods of high congestion. The
ACK sent by the receiver is the next expected segment. This indicates that all
previous segments have been received and reassembled. If any segment is lost during
this phase, TCP can renegotiate the time waited before receiving the ACK and resend
any lost segments.
Step 5
After the PC completes the data transfer, the Telnet session closes by sending a TCP
segment with the FIN ag set to 1.
Step 6
Step 7
At this stage, the session is still open and the router could send data (this is known
as TCP half close), but the router has no data to send and usually sends a segment
with the FIN bit set to 1.
Step 8
The PC acknowledges the routers FIN request, and the Telnet session is closed. At
any stage, the session can be terminated if either host sends a reset (RST ags in the
TCP header); in this case, the session must be reestablished from scratch.
You need to know the TCP process and how packets are sequenced and acknowledged. TCP
acknowledgments specify the next expected segment from a sender. A TCP session requires three
or four segments to start (known as three-way handshake) and four segments to shut down.
38
TCP/IP Services
This section covers common TCP/IP services or applications used in todays large IP networks:
ARP Request
IP address 1.1.1.3
MAC address 3333.3333.3333
Router A
PC1
IP address 1.1.1.1
MAC address 1111.1111.1111
PC2
IP address 1.1.1.2
MAC address 2222.2222.2222
When PC1 sends a ping request to PC2 using the known IP address 1.1.1.2 (Layer 3), a broadcast
Layer 2 frame must rst be sent by PC1; without a Layer 2 MAC address, PC1 cannot
communicate with PC2. PC1 will then send a Layer 2 frame to the destination address FF-FF-FFFF-FF-FF, and ARP (the ARP frame contains the source MAC address, destination MAC address,
the source IP address, and the destination address) is sent to all devices requesting the Layer 2
TCP/IP Services
39
MAC address of the device congured with the IP address 1.1.1.2 (by sending a Layer 2 broadcast
frame). PC2 responds to the ARP request with its source MAC address, 2222.2222.2222. PC1 now
has PC2s MAC address and sends a packet to the destination address, 2222.2222.2222, and Layer
3 destination address, 1.1.1.2.
NOTE A less common ARP term used in ARP terminology is gratuitous ARP. A gratuitous
ARP is an ARP request with its own IP address as the target address. It refreshes a devices ARP
table entries and also looks up duplicate IP addresses. Routers are devices that can send a
gratuitous ARP.
To view the IP ARP table on a Cisco router, the command is show ip arp. The IP ARP table from
Figure 1-11 is displayed in Example 1-2.
Example 1-2
show ip arp
RouterA#s
Protocol
Address
Internet
1.1.1.3
Internet
1.1.1.1
Internet
1.1.1.2
Age (min)
Hardware Addr
Type
Interface
3333.3333.3333
ARPA
Ethernet0
170
1111.1111.1111
ARPA
Ethernet0
94
2222.2222.2222
ARPA
Ethernet0
NOTE If you have ever wondered why the rst ping request on a Cisco router fails, it is
because an ARP request is sent rst when an entry is not present in the ARP table. Subsequent
pings will have 100 percent success.
Reverse ARP
RARP is the protocol that is used when a device boots up without an IP address and requests an
IP address. RARP is typically not used in todays networks, and is replaced by DHCP.
Inverse Address Resolution Protocol (InARP) is an addition to ARP which addresses ARP in a
Frame Relay environment. InARP discovers the remote ends data-link connection identier
(DLCI).
A gratuitous ARP is when the MAC address in a system is changed. That is, the MAC address for
a given Hosts IP address mapping is changed for any valid reason, such as network card
replacement or router failure. In this case, when the host or router is rebooted or replaced, the
device sends a gratuitous ARP packet advising all hosts of the new MAC address. Because this is
a broadcast packet, all the hosts in the network receive and process this packet. They update their
old mapping in the ARP cache with this new mapping. This ensures that devices can communicate
immediately.
40
Example 1-3
To view the DHCP leases, use the Cisco IOS command show ip dhcp server. Example 1-4
displays the output taken from a router congured for DHCP (note that Cisco IOS 12.2 and higher
output is shown in Example 1-4).
Example 1-4
40392
Address pools
Database agents
Automatic bindings
180
TCP/IP Services
Example 1-4
41
Manual bindings
Expired bindings
Malformed messages
Message
Received
BOOTREQUEST
12
DHCPDISCOVER
200
DHCPREQUEST
178
DHCPDECLINE
DHCPRELEASE
DHCPINFORM
Message
Sent
BOOTREPLY
12
DHCPOFFER
180
DHCPACK
172
DHCPNAK
Example 1-4 shows that 180 devices are currently allocated IP addresses, and 178 requests were
made.
42
Figure 1-12
HSRP Example
Router A #
interface Ethernet 0
ip address 131.100.2.2 255.255.255.0
standby priority 110
standby preempt
standby authentication cisco
standby ip 131.108.2.100
standby track Serial0
Network
Sydney
Router C #
interface Ethernet 0
ip address 131.108.1.2 255.225.255.0
standby priority 110
standby preempt
standby authentication cisco
standby ip 131.108.1.100
standby track Serial0
E0
131.108.2.2/24
Router A
Network
San Jose
E0
131.108.1.2/24
Serial 0
Router B
Serial 0
Router C
PC2
IP Address
131.108.2.1/24
Gateway Address
131.108.2.100/24
PC1
Router F
E0
131.108.2.3/24
Router E
Serial 0
Router F #
interface Ethernet 0
ip address 131.100.2.3 255.255.255.0
standby authentication cisco
standby ip 131.108.2.100
standby priority 100
Router D
Serial 0
E0
131.108.1.3/24
IP Address
131.108.1.1/24
Gateway Address
131.108.1.100/24
Router D #
interface Ethernet 0
ip address 131.108.1.3 255.255.255.0
standby authentication cisco
standby ip 131.108.1.100
standby priority 100
PCs are typically congured with only one gateway address. (Windows 2000/XP clients can take
more than one, but this still leaves a problem in that all devices must be congured for multiple
gateways; the most scalable solution is to congure a single gateway on all devices and allow an
intelligent network to provide redundancy where only a few devices require conguration.)
Assume that PC1 is congured with a gateway address of 131.108.1.100. Two routers on the
Ethernet share the segment labeled San Jose network. To take advantage of the two routers, HSRP
allows only Routers C and D to bid for a virtual IP address, and if any one router (Router C or D,
in this example) fails, the operational router assumes the HSRP gateway address. Host devices
typically have only a brief 100- to 200-ms interruption when a network failure occurs.
To illustrate how HSRP provides default gateway support, refer to Figure 1-12, which shows a
network with two local routers congured with an Ethernet interface address of 131.108.1.2/24 for
TCP/IP Services
43
Router C and 131.108.1.3/24 for Router D. Notice that both routers share a common Ethernet
network. Assume that PC1 has been congured with a default gateway pointing to Router C. If
Router C goes down or the Ethernet interface becomes faulty, all the devices must be manually
recongured to use the second default gateway (Router D, 131.108.1.3/24). HSRP enables the
network administrator to elect one of the two routers to act as the default gateway. If the elected
router goes down, the second router assumes the IP default gateway. The Cisco IOS command
standby track interface-of-wan under the Ethernet interface allows the router to monitor the WAN
link. If the WAN link continuously fails past a threshold, the HSRP default router decreases its priority
to allow a more reliable WAN connection to provide a gateway. For example, in Figure 1-12, if the link
between Routers C and B fails past a threshold, Router D can be congured to assume the HSRP
address to provide a faster connection to the IP backbone network.
The steps to enable HSRP are as follows:
1.
2.
3.
Table 1-5 illustrates the various required and optional commands to enable HSRP.
Table 1-5
HSRP Commands
Cisco IOS Command
Purpose
or
standby [group-number] preempt [delay
{minimum delay | reload delay | sync
delay}]
44
Table 1-5
Purpose
Now congure Routers C and D in Figure 1-12 for HSRP, and ensure that Router C is the primary
gateway address and that the PC is congured with a gateway address of 131.108.1.100. Router C
is congured with a higher priority (standby priority 110 preempt) than the default 100 to ensure
that Router C becomes the default gateway for the hosts on the San Jose network; authentication
is also enabled between the two gateway routers.
Example 1-5 displays the sample Cisco IOS conguration for Router C.
Example 1-5
interface Ethernet0
ip address 131.108.1.2 255.255.255.0
standby priority 110
standby preempt
standby authentication cisco
standby ip 131.108.1.100
standby track Serial0
Example 1-5 displays Router C congured with a virtual IP address of 131.108.1.100 and
preempt, which allows Router C to assume the role if a failure occurs. The track command
ensures that Serial0, or the WAN link to Router B, is monitored to make sure that a apping link
does not cause bandwidth delays for users, such as PC1. For every tracked interface failure, the
priority is reduced by 10 by default. The Cisco IOS default priority is set to 100. In this conguration, two failures must occur for Router D to assume the HSRP address (110 10 10 = 90 <
100).
Example 1-6 displays the sample Cisco IOS conguration for Router D. Congure Router D with
an HSRP priority of 105 so that any two (not one) failures on Router C will mean that Router D
priority is higher than Router C. (Router C is set to 110; one failure and then it is set to 110 20
= 90 < 100.) Router D is not congured for preempt because Router C is designed to be the active
HSRP address when both C and D are operational.
TCP/IP Services
Example 1-6
45
interface Ethernet0
ip address 131.108.1.3 255.255.255.0
standby authentication cisco
standby ip 131.108.1.100
To view the status of HSRP, the Cisco IOS command is show standby. Example 1-7 displays the
sample output when this command is entered in Router C.
Example 1-7
show standby
Router-C#s
Ethernet0 - Group 0
Local state is Active, priority 110, may preempt
Hellotime 3 sec, holdtime 10 sec
Next hello sent in 1.458
Virtual IP address is 131.108.1.100 configured
Active router is local
Standby router is 131.108.1.3 expires in 8.428
Virtual mac address is 0000.0c07.ac01
2 state changes, last state change 02:09:49
IP redundancy name is "hsrp-Et0-1" (default)
Priority tracking 1 interface, 1 up:
Interface
Serial0
Decrement
10
State
Up
Router C is currently the congured gateway and is tracking Serial 0 for failures; every WAN
failure decrements the priority value by 10. If a single failure occurs, the priority on Router C
drops to 100 (110 10 = 100), the same as Router D. Because Router C still has the preempt
option, Router C remains active when it returns. However, if a second failure occurs on Router C,
its priority drops another 10 to 90, below the priority of D, so Router D remains as the default
gateway until the interface on Router C has fully recovered. After the priority on Router C
increments back to 110, Router C assumes the gateway function because preempt is enabled, as
displayed in Example 1-7.
Example 1-8 displays the output of the show standby command on Router D when in standby
mode.
46
Example 1-8
show standby
Router-D#s
Ethernet - Group 0
Local state is Standby, priority 100,
Hellotime 3 holdtime 10
Next hello sent in 00:00:01.967
Hot standby IP address is 131.108.1.100 configured
Active router is local
Standby router is unknown expired
Standby virtual mac address is 0000.0c07.ac00
2 state changes, last state change 00:03:59
ping 131.108.1.1
R2>p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.1.1,
!!!!!
Success rate is 100 percent (5/5),
R2>
The ping command has a number of reporting mechanisms that run over ICMP. The exclamation
point (!) indicates a successful reply. The ping command can also advise you, using a special code
character, that the end device is not reachable, as depicted in Table 1-6.
TCP/IP Services
Table 1-6
47
Indicates
Destination unreachable
Network unreachable
Protocol unreachable
Source quench
Cisco IOS provides a detailed version of the ping tool, which you can evoke by typing ping in the
enabled mode. This command is known as the extended ping command.
Telnet
Telnet is an application layer protocol and part of the TCP/IP protocol suite. The TCP destination
port number is 23 and commonly manages routers and switches, for example. Telnet is an insecure
protocol, because data ows in plain text and the Telnet passwords can be sniffed. SSH is more
secure for remote logins.
48
Now that you fully appreciate the TCP/IP model, the next section covers routing protocols used to
ensure that TCP/IP data can be moved, or routed, from one location to another.
Routing Protocols
This section covers four main routing protocols:
Before discussing the characteristic of each protocol, this section covers how routers (Cisco
routers, in particular) generally route IP packets.
Routing is a process whereby a path to a destination host is selected by either a dynamic or static
routing protocol. A routing protocol is an algorithm that routes data across the network. Each
router makes routing decisions from host to destination based on specic metrics used by the
operating routing protocol. For example, RIP uses hop count (commonly known as the network
diameter) to decide which router interface the data is sent over. A lower hop count is always
preferred. OSPF, on the other hand, uses a cost metric; the lower a paths cost, the more preferred
it is as a path to the destination.
Routing IP across a network of Cisco routers requires IP address allocation to interfaces and then
a static or dynamic routing protocol to advertise these networks to local or remote routers. After
these networks are advertised, IP data can ow across the network. Routing occurs at Layer 3 (the
network layer) of the OSI model.
By default, IP routing is enabled on Cisco routers. The command used to start or disable IP routing
is [no] ip routing. By default, IP routing is enabled on all routers, so you do not see this command
by viewing the conguration. On the Catalyst switches, you have to enable IP routing to make it
a Layer 3 device. Consider a one-router network with two directly connected Ethernet interfaces
as an introductory example. Figure 1-13 displays a two-port Ethernet router congured with two
subnets.
PC1 can communicate with PC2, as shown in Figure 1-13, because Cisco routers route to directly
connected interfaces.
The Cisco IOS command show ip route is used to view the IP routing table, and a number of
symbols dene how remote or local networks have been discovered. Table 1-7 denes the various
symbols and their meanings. The Cisco Documentation CD-ROM denes the routing elds or
codes as follows.
Routing Protocols
Figure 1-13
49
Connected Routes
Directly Connected Networks
172.108.1.1/24
R1
172.108.2.1/24
E0
E1
PC 1
PC 2
Table 1-7
Description
Indicates the protocol that derived the route. Possible values include
the following:
IIGRP derived
RRIP derived
OOSPF derived
CConnected
SStatic
EEGP derived
BBGP derived
DEIGRP
EXEIGRP external
IIS-IS derived
IaIS-IS
MMobile
PPeriodic downloaded static route
UPer-user static route
OOn-demand routing
continues
50
Table 1-7
Description
E2
E 10.67.10.0 [200/128]
via 10.119.254.244,
0:02:22, Ethernet2
[90/5]
via
Ethernet2
By default, Cisco IOS assigns to each routing protocol an administrative distance (AD) that
indicates the trustworthiness of a routing entry if more than one path exists to a remote network
running two or more routing algorithms. You can congure the AD value from the default with the
distance administrative-distance Cisco IOS command if you want to manually choose RIP over
OSPF, for example. The value for administrative-distance can be 1 to 255.
IP routing protocols support multipath destinations. In other words, if more than one path exists
to a remote network, then metrics are used to determine whether load balancing will occur. If load
Routing Protocols
51
balancing occurs and more than one routing protocol has learned this remote path, then the
distinguisher becomes the ADthe lower its value, the more trusted it is. Remember that AD is
rst considered the delineator, followed by the metric.
Table 1-8 displays the administrative distances enabled by default on Cisco routers.
Table 1-8
Connected interface
Static route
External BGP
20
Internal EIGRP
90
IGRP
100
OSPF
110
IS-IS
115
RIP
120
EGP
140
170
Internal BGP
200
Unknown
255
For example, Table 1-8 demonstrates that an EIGRP (AD 90) route is preferred over a network
entry discovered by RIP (AD 120) because the AD is lower, or more trustworthy.
NOTE The IP address source and destination in an IP datagram do not alter, but the Layer 2
MAC source and destination do, for example, when PC1 sends a packet to PC2 in Figure 1-13.
The TCP/IP software on PC1 identies that the remote destination (172.108.2.0/24) is not
locally connected and sends the Layer 3 frame to the local gateway address, 171.108.1.1/24. For
the Layer 2 frame to traverse the local Ethernet, the destination Layer 2 MAC address must be
that of the local router or gateway. PC2 resides on a different subnet, so the destination MAC
address will be that of Router R1 (E0 burnt-in address) or the default gateway address of
172.108.1.1. Router R1 then strips the Layer 2 header and installs its own Layer 2 header when
the packet enters the network where PC2 resides. The Layer 2 header contains the source
address (Layer 2) of R1 E1 and destination address of PC2s MAC address. The Layer 3 IP
source and destination addresses do not change during the routing of the IP packet. The
exception to changes in Layer 3 addressing is when Network Address Translation (NAT) is used.
52
Table 1-9
Characteristic
Description
Periodic updates
Periodic updates are sent at a set interval; for IP RIP, this interval is 30
seconds.
Broadcast updates
Triggered updates
Also known as Flash updates, these are sent when a change occurs outside the
update interval.
Split horizon
This method stops routing loops. Updates are not sent out an outgoing
interface from which the source network was received. This saves bandwidth,
as well.
Count to innity
Maximum hop count. For RIP, it is 15, and for IGRP, it is 255.
Algorithm
Examples
RIP comes in two versions: RIPv1 (does not support VLSM) and RIPv2. Both versions of RIP
automatically summarize at the network boundary (you can congure the classful routing
protocol, RIPv2, to support VLSM).
The following list summarizes RIPv1 characteristics:
Routing Protocols
53
NOTE Split horizon is a routing technique in which information about routes is prevented
from exiting the router interface through which that information was received. Split horizon
updates are useful in preventing routing loops. To enable split horizon, the Cisco IOS command
is ip split-horizon (an interface command). Split horizon on Frame Relay subinterfaces is
enabled by default. Always use the Cisco IOS command show ip interface to determine if split
horizon is enabled or displayed.
A triggered update is a method by which a routing protocol sends an instant message as soon as
a network failure is detected. If a triggered update were not used, the only way the update would
be sent would be via the normal update every 30 seconds, causing a delay in network convergence times. Split horizon is a favorite topic in CCIE lab exams.
Poison Reverse updates explicitly indicate that a network is unreachable rather than implying
that a remote network is unreachable by not sending that network in an update. Poison Reverse
updates are intended to defeat routing loops in large IP networks.
Split horizon, Poison Reverse, and triggered updates are methods used by distance vector
protocols to avoid routing loops
RIPv2 was developed to enable RIPv1 to support VLSM, so it is a classless routing protocol that
also supports authentication. RIPv1 and RIPv2 use the same hop count as the metric.
The following list summarizes RIPv2 characteristics:
54
Supports authentication
To enable RIPv1 or RIPv2 on a Cisco router, the command required is router rip. By default, after
you enable this command and install the network statements, RIPv1 sends and receives updates
and RIPv2 only listens for updates.
Consider a two-router topology running VLSM and RIP. Figure 1-14 displays two routers, named
R1 and R2, with a 30-bit network used across the WAN. Loopbacks are used to populate the IP
routing tables.
To start, enable RIP on both routers with the commands in Example 1-10. Version 2 must be
enabled because you are implementing VLSM across the WAN links between R1 and R2.
Figure 1-14
E0/0
131.108.2.1/24
R1
S0/0
.1
R1's Loopbacks
Loopback0 131.108.4.1/24
Loopback1 131.108.5.1/24
Loopback2 131.108.6.1/24
S0/0
.2
R2
E0/0
R2's Loopbacks
Loopback0 131.108.7.1/24
Loopback1 131.108.8.1/24
Loopback2 131.108.9.1/24
Example 1-10 displays the RIP conguration on R1. The same conguration commands are
applied to R2.
Example 1-10
IP RIP Conguration on R1
router rip
version 2
network 131.108.0.0
You can view the RIP forward database with the command show ip rip database. Example 1-11
displays the output when show ip rip database is executed on R1.
Routing Protocols
Example 1-11
55
auto-summary
131.108.1.0/24
131.108.2.0/24
[1] via 131.108.3.2, 00:00:12, Serial0/0
131.108.3.0/30
131.108.4.0/24
131.108.5.0/24
131.108.6.0/24
131.108.7.0/24
[1] via 131.108.3.2, 00:00:12, Serial0/0
131.108.8.0/24
[1] via 131.108.3.2, 00:00:12, Serial0/0
131.108.9.0/24
[1] via 131.108.3.2, 00:00:12, Serial0/0
Example 1-11 displays the directly connected routes and the four dynamically discovered routes
via Serial0/0 to R2. To conrm that the entries are reachable, display the IP routing table on R1
and perform a few ping requests across the Frame Relay cloud.
Example 1-12 displays the IP routing table and the successful ping requests to the four remote
networks.
Example 1-12
show ip route
R1#s
Codes: C - connected, R - RIP,
131.108.0.0/16 is variably subnetted, 9 subnets, 2 masks
R
ping 131.108.2.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.2.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms
ping 131.108.7.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.7.1, timeout is 2 seconds:
!!!!!
continues
56
Example 1-12
Example 1-12 displays the four remote networks reachable by the Serial 0/0 and four successful
ping requests (ve replies from each remote network) to those interfaces on R2.
Stop R2 from sending R1 any updates via the Frame Relay cloud to demonstrate the passiveinterface command, passive-interface serial0/0. New Cisco IOS revision levels also permit the
administrator to set a default state (routing or just listening-passive) for all interfaces. The Cisco
IOS command passive-interface default ensures that all interfaces, unless specied otherwise,
are passive. To take an interface from passive into active, for example, you would use the
command no passive-interface serial0/0 in conjunction with the passive-interface default
command. This new command can be helpful in large IP networks.
Example 1-13 displays the passive interface conguration on R2 Serial0/0.
Example 1-13
router rip
R2(config)#r
passive-interface serial 0 /0
R2(config-router)#p
R1s routing table now contains no remote entries from R2, which will still receive updates
because the command affects only outbound updates. Example 1-14 conrms the missing routing
RIP entries in R1s IP routing table.
Example 1-14
show ip route on R1
show ip route
R1#s
Codes: C - connected,
131.108.0.0/16 is variably subnetted, 5 subnets, 2 masks
C
Routing Protocols
57
NOTE RIPv2 also offers MD5 authentication as an optional authentication mode added by
Cisco to the original RFC 1723-dened plain-text authentication. The conguration is identical
to that for plain-text authentication, except for the use of the additional command ip rip
authentication mode md5. You must congure router interfaces on both sides of the link for
the MD5 authentication method, making sure the key number and key string match on both
sides.
Rapid convergenceEIGRP uses the Diffusing Update Algorithm (DUAL) to achieve rapid
convergence. A Cisco IOS router that runs EIGRP will ensure that any redundant paths are
stored and used in case of a network failure.
Reduced bandwidth usageBy default, EIGRP uses up to 50 percent of available bandwidth, and this option can be changed with the Cisco IOS command ip bandwidth-percent
eigrp as-number percent. By default, EIGRP uses up to 50 percent of the bandwidth dened
by the interface bandwidth command. The interface command ip bandwidth-percent eigrp
as-number percent can be used to change this value (a good method to use for the CCIE lab).
EIGRP is considered a hybrid routing protocol, meaning that EIGRP uses characteristics of both
distance vector and link-state routing protocols to maintain routing tables.
A distance vector protocol counts the number of devices data must ow through to reach a
destinationthis is called the hop count.
A link-state protocol such as OSPF, discussed later in this book, permits routers to exchange
information with one another about the reachability of other networks.
EIGRP Terminology
You need to understand several EIGRP-related terms for the CCIE Security written exam. Table
1-10 denes some of the common terminology used in EIGRP.
58
Table 1-10
EIGRP Terms
Term
Meaning
Neighbor
Neighbor table
Topology table
Hello
Query
Reply
ACK
Holdtime
How long a router waits for a Hello packet before tearing down a
neighbor adjacency.
Retransmission Timeout
(RTO)
Feasible distance
Feasible successor
Successor
Active
Passive
Routing Protocols
59
Figure 1-15
172.108.1.1/24
E0/0
131.108.3.0/30
Frame Relay
S0/0
.2
S0/1
S0/1
.1 131.108.10.0/30 .2
Bandwidth
Frame Relay
128
172.108.2.1/24
E0/0
R1
R2
R1's Loopbacks
Loopback0 131.108.4.1/24
Loopback1 131.108.5.1/24
Loopback2 131.108.6.1/24
R2's Loopbacks
Loopback0 131.108.7.1/24
Loopback1 131.108.8.1/24
Loopback2 131.108.9.1/24
Routers R1 and R2 reside in AS 100, and to enable EIGRP on both routers, you need to start by
conguring EIGRP. Example 1-15 displays the EIGRP conguration required on R1 and R2.
Example 1-15
The network command in Example 1-15 enables EIGRP to send and receive updates for
interfaces congured with the Class B address, 131.108.0.0. EIGRP will automatically summarize
Class A, B, or C addresses.
Example 1-16 displays the IP routing table on R1.
Example 1-16
show ip route on R1
show ip route
R1#s
Codes: C - connected, D - EIGRP, EX - EIGRP external,
131.108.0.0/16 is variably subnetted, 10 subnets, 2 masks
C
continues
60
Example 1-16
Example 1-16 displays four remote EIGRP entries (designated by D in the routing table) via the
serial interface Serial0/0. EIGRP has discovered these networks as the preferred path because the
WAN bandwidth is 256 kbps, as opposed to 128 kbps via Serial 0/1. To view the alternate paths,
use the show ip eigrp topology Cisco IOS command to display backup paths.
Example 1-17 displays the output of the show ip eigrp topology command on R1.
Example 1-17
Routing Protocols
Example 1-17
61
Example 1-17 shows that the remote network 131.108.2.0 is reachable via two paths, and because
the feasible distance is lower through Serial 0/0, that path is injected into the routing table. If, for
some reason, the link with Serial 0/0 on R1 fails, the alternate path will be chosen and inserted into
the routing table, decreasing convergence times.
When EIGRP loses a path to a remote network, it sends requests to neighboring routers for
alternative ways to reach the failed network. The neighboring router that returns the most
favorable routes is called the feasible successor; in Figure 1-15, that router is R2.
NOTE The Cisco CD Documentation denes the state (active, passive, and more) of a given
network with the following:
P (Passive)Indicates that no EIGRP computations are being performed for this
destination.
A (Active)Indicates that EIGRP computations are being performed for this destination.
r (Reply status)A ag that is set after the software has sent a query and is waiting for a
reply.
62
Term
Description
Hello packet
Exchanged by the routers for neighbor discovery and forming adjacencies, neighbor keepalives,
and designated router (DR)/backup DR (BDR) election.
Link state
Area
A group of routers and links that share the same area ID. All OSPF routers require area
assignments. All routers within an area have the same database. Link-state ooding is limited to
an area.
Autonomous
system
A network under a common network administration domain running common routing protocols.
Cost
(OSPF metric)
The routing metric used by OSPF. Lower costs are always preferred. You can manually
congure the cost of an interface with the ip ospf cost command. By default, the cost is
calculated by using the formula, cost = 108 bandwidth.
Router ID
Each OSPF router requires a unique router ID, which is the highest IP address congured on a
Cisco router or the highest-numbered loopback address. You can manually assign the router ID.
Adjacency
When two OSPF routers have exchanged information between each other and have the same
topology table. Adjacency can have a number of states or exchange states:
Init stateWhen Hello packets have been sent and are awaiting a reply to establish two-way
communication.
Establish bidirectional (two-way) communicationAccomplished by the discovery of the
Hello protocol routers and the election of a DR.
ExstartTwo neighbor routers form a master/slave relationship and agree upon a starting
sequence that will be incremented to ensure that LSAs are acknowledged.
Exchange stateDatabase Description (DD) packets continue to ow as the slave router
acknowledges the masters packets. OSPF is operational because the routers can send and
receive LSAs between each other. DD packets contain information such as the router ID, area
ID, checksum, if authentication is used, link-state type, and the advertising router. LSA packets
also contain information such as router ID, and additionally include MTU sizes, DD sequence
numbering, and any options.
Loading stateLink-state requests are sent to neighbors, asking for recent advertisements that
have been discovered in Exchange state but not received.
Full stateNeighbor routers are fully adjacent because their link-state databases are fully
synchronized within the area. Routing tables begin to be populated.
Routing Protocols
Table 1-11
63
Term
Description
Topology table
Also called the link-state table, contains every link in the entire network.
Designated
router (DR)
Ensures adjacencies between all neighbors on a multiaccess network (such as Ethernet). This
ensures that not all routers need to maintain full adjacencies with each other.
The DR is selected based on the priority. In a tie, the router with the highest router ID is selected.
Backup DR
Link-state
advertisement
(LSA)
A packet that contains all relevant information regarding a routers links and the state of those
links.
Priority
Router links
Describe the state and cost of the routers interfaces to the area. Router links use LSA type 1.
Summary
links
Originated by Area Border Routers, these links describe networks in the AS. Summary links use
LSA type 3 and 4.
Network links
External links
Area Border
Router (ABR)
Router located on the border of one or more OSPF areas to connect those areas to the backbone
network.
Autonomous
System
Boundary
Router
(ASBR)
Start OSPF with the command router ospf process ID. The process ID is locally
signicant to the router.
Step 2
Enable the interfaces with the network command. For example, to place the network
131.108.1.0 in area 1, the Cisco IOS command is network 131.108.1.0 0.0.0.255
area 1.
Step 3
64
Step 4
(Optional) Assign the router ID with the router-id router-id Cisco IOS command
under the OSPF process.
NOTE The following is a list of reasons OSPF (link-state) is considered a better routing
protocol than RIPv1 (distance vector):
OSPF has no hop count limitation. (RIP has a limit of 15 hops only.)
OSPF converges much faster than RIP because OSPF propagates changes immediately.
OSPF is faster because it sends the link update and then calculates the local routing table.
RIP calculates the local routing table and then sends an update.
OSPF has authentication available (RIPv2 does also, but RIPv1 does not).
OSPF conguration, monitoring, and troubleshooting have a far greater Cisco IOS tool
base than RIP.
Routing Protocols
Table 1-12
65
Function
Stubby area
Does not accept LSA types 4 and 5, which are summary links and external
link advertisements, respectively. The only way to achieve a route to unknown
destinations is a default route injected by the ABR.
Totally stubby
area
Blocks LSA types 3, 4, and 5. Only a single type 3 LSA advertising the
default route is allowed. This solution is Cisco proprietary and is used to
further reduce a topological database.
Not-so-stubby
area
(NSSA)
Used primarily for connections to an ISP. This area is designed to allow type 7
LSAs only. All advertised routes can be ooded through the NSSA and an
ABR translates it into a type 5 LSA. Basically, a type 7 LSA (if the P bit is set
to 1) is converted to a type 5 LSA and ooded through the rest of the network.
The bit P is used to tell the NSSA ABR whether to translate type 7 into type 5.
If the P bit is set to 0, no translation takes place. Type 4 or 5 LSAs are not
permitted. This advertisement is not propagated to the rest of the network.
NSSAs typically provide a default route.
Table 1-13 denes the challenges across various media types, such as Frame Relay and broadcast
media.
Table 1-13
Description
Point-to-point
nonbroadcast
Point-to-point
Point-to-multipoint
Nonbroadcast
Broadcast
Ethernet is an example of a broadcast medium for which OSPF will elect a DR to minimize the
number of OSPF updates. Each multiaccess OSPF network that has at least two attached routers
has a designated router elected by the OSPF Hello protocol. The DR reduces the number of
adjacencies required on a multiaccess network, which reduces the amount of routing protocol
trafc and the size of the topological database, especially when more than two routers are
deployed on this network segment. In a nonbroadcast multi-access (or NBMA) network, OSPF
elects both a DR and a BDR. NBMA simulates a broadcast model by electing a DR and a BDR.
There are two ways to simulate a broadcast model on an NBMA network: dene the network type
66
as broadcast with the ip ospf network broadcast interface subcommand or congure the neighbor
statements by using the router ospf command.
Virtual Links
All OSPF areas must be connected to the backbone area (Area 0). Figure 1-16 demonstrates a
topology where an area (Area 100) is not directly connected to the backbone.
Figure 1-16
Router A
Router B
Router C
Router D
Router F
Area 0
or
Backbone
Router E
Area 200
Area 100
To ensure that Area 100 is reachable by the backbone, a virtual link can be congured over the
transit area (200), and IP connectivity will be maintained. Virtual links are typically used in a
transition phase (for example, when one company buys another and both companies use OSPF).
Another solution to the problem depicted in Figure 1-16 is to install a physical link between
Router C or Router D and the backbone core network.
OSPF Configuration Example
Figure 1-17 demonstrates a two-router topology and displays three OSPF areas, with Area 2
partitioned from the backbone, necessitating a virtual link.
Routing Protocols
67
Figure 1-17
Area 1
Area 2
131.108.255.0/30
Frame Relay
S0/0
.1
131.108.1.1/24
E0/0
R1
PVC#1
PVC#2
F/R
S0/0
.2
S0/1
S0/1
.5
.6
131.108.255.4/30
Frame Relay
Point-to-point
network 256
Kb for each PVC
131.108.8.1/24
E0/0
R2
!
hostname R1
enable password cisco
interface Loopback0
ip address 131.108.2.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback1
ip address 131.108.3.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback2
ip address 131.108.4.1 255.255.255.0
ip ospf network point-to-point
!
continues
68
Example 1-18
interface Loopback3
ip address 131.108.5.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback4
ip address 131.108.6.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback5
ip address 131.108.7.1 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/0
ip address 131.108.1.1 255.255.255.0
!
interface Serial0/0
bandwidth 256
ip address 131.108.255.1 255.255.255.252
encapsulation frame-relay
ip ospf network point-to-point
!
interface Serial0/1
bandwidth 256
ip address 131.108.255.5 255.255.255.252
encapsulation frame-relay
ip ospf network point-to-point
!
router ospf 1
router-id 131.108.7.1
area 1 virtual-link 131.108.15.1
network 131.108.0.0 0.0.7.255 area 0
network 131.108.255.0 0.0.0.3 area 1
network 131.108.255.4 0.0.0.3 area 1
!
end
By default, loopback interfaces are stub hosts in OSPF and are advertised as 32-bit hosts. The
Cisco IOS command ip ospf network point-to-point advertises the loopback networks as /24
networks (in this case, you use the /24 subnet mask). The Frame Relay connection is congured
as point-to-point to ensure that no manual OSPF neighbor conguration is required to form OSPF
neighbors. The virtual link is congured across the transit area, 1, to the R2 router ID of
131.108.15.1.
Routing Protocols
69
hostname R2
enable password cisco
interface Loopback0
ip address 131.108.9.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback1
ip address 131.108.10.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback2
ip address 131.108.11.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback3
ip address 131.108.12.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback4
ip address 131.108.13.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback5
ip address 131.108.14.1 255.255.255.0
ip ospf network point-to-point
!
interface Loopback6
ip address 131.108.15.1 255.255.255.0
ip ospf network point-to-point
!
interface Ethernet0/0
ip address 131.108.8.1 255.255.255.0
half-duplex
!
interface Serial0/0
ip address 131.108.255.2 255.255.255.252
encapsulation frame-relay
ip ospf network point-to-point
interface Serial0/1
ip address 131.108.255.6 255.255.255.252
encapsulation frame-relay
ip ospf network point-to-point
!
router ospf 1
continues
70
Example 1-19
router-id 131.108.15.1
area 1 virtual-link 131.108.7.1
network 131.108.8.0 0.0.0.255 area 2
network 131.108.9.0 0.0.0.255 area 1
network 131.108.10.0 0.0.0.255 area 1
network 131.108.11.0 0.0.0.255 area 1
network 131.108.12.0 0.0.0.255 area 1
network 131.108.13.0 0.0.0.255 area 1
network 131.108.14.0 0.0.0.255 area 1
network 131.108.15.0 0.0.0.255 area 1
network 131.108.255.0 0.0.0.3 area 1
network 131.108.255.4 0.0.0.3 area 1
end
131.108.9.0/24
O IA
131.108.8.0/24
R1s routing table has the remote OSPF networks labeled as O IA because the network
131.108.8.0/24 is part of an area not directly attached to R1. Also, R1 is automatically load
balancing across the two paths because the cost metric is the same (391). The administrative
distance is 110 (the default).
NOTE The election of the designated router in networks such as Frame Relay is important,
and you must ensure that the hub or core network router is the elected DR so that the hub router
disseminates information to all spoke routers. To ensure that the hub is the DR, you can disable
the DR election process on edge routers with the Cisco IOS command ip ospf priority 0.
Routing Protocols
71
Update messagesSent as a result of any changes that occur, such as a loss of network
availability
A full routing table is exchanged only during the initial BGP session.
72
BGP has its own BGP table. Any network entry must reside in the BGP table rst.
BGP has a complex array of metrics, such as next-hop address and origin, which are called
attributes.
BGP supports VLSM and summarization (sometimes called classless interdomain routing
[CIDR]).
BGP4s ability to guarantee routing delivery (and the complexity of the routing decision process)
is the reason that BGP is widely used in large IP routing environments, such as the Internet. The
Internet consists of over 100,000 BGP network entries, and BGP is the only routing protocol
available today that can handle and manage such a large routing table. The Internet (120,000+
routes) would not be functional today if BGP were not the routing protocol in use.
Before covering some simple examples, the next section describes BGP attributes.
OSPF also provides an authentication mechanism, a clear-text form, and an MD5 authentication
type. MD5 authentication provides higher security than plain-text authentication. Like plain-text
authentication, passwords dont have to be the same throughout an area, but they do need to be the
same between neighbors. MD5 authentication uses a key ID that allows the router to reference
multiple passwords, making password migration easier and more secure. For more details, search
the keywords OSPF authentication at Cisco.com.
BGP Attributes
BGP has a number of complex attributes that determine a path to a remote network. The BGP
attributes allow a greater exibility and complex routing decision process that ensures the path to
a remote network is taken , which is turn can be manipulated by the BGP designer.
The network designer can also manipulate these attributes. BGP, when supplied with multiple
paths to a remote network, always chooses a single path to a specic destination. (Load balancing
is possible with static routes.) BGP always propagates the best path to any peer.
BGP attributes are carried in update packets.
Table 1-14 describes the well-known and optional attributes used in BGP4.
Routing Protocols
Table 1-14
73
Description
Origin
Mandatory attribute that denes the source of the path, and can be any
of three different values:
IGPOriginating from interior of the AS.
EGPLearned through an External Gateway Protocol.
IncompleteThe BGP route was discovered using redistribution or
static routers.
AS_Path
Next Hop
Local Preference
Indicates the preferred path to exit the AS. A higher Local Preference is
always preferred. This is local to the AS and exchanged between IBGP
peers only.
Multi-Exit Discriminator
(MED)
Weight
Atomic Aggregate
Advises BGP routers that route aggregation has taken place. Not used
in route selection process.
Aggregator
Community
Originator ID
Prevents routing loops. This information is not used for route selection.
The Originator ID is generated by a route reector, and the route
reector must never send routing information back to the router
specied in the Originator ID.
Cluster-List
74
There are two types of BGP sessions: internal BGP (IBGP) and external BGP (EBGP). IBGP is a
connection between two BGP speakers in the same autonomous system. EBGP is a connection
between two BGP speakers in different autonomous systems.
IBGP peers also make sure that routing loops cannot occur, by ensuring that any routes sent to
another autonomous system must be known via an interior routing protocol, such as OSPF, before
sending that information. That is, the routers must be synchronized. The benet of this added rule
in IBGP TCP sessions is that information is not sent unless it is reachable, which reduces any
unnecessary trafc and saves bandwidth. Route reectors in IBGP ensure that large, internal BGP
networks do not require a fully meshed topology. Route reectors are not used in EBGP
connections. A BGP route reector disseminates routing information to all route-reector clients,
and ensures that BGP tables are sent and that a fully meshed IBGP need not be congured.
The BGP routing decision is quite complex and takes several attributes into account. The attributes
and process taken by a Cisco router running BGP4 are as follows:
1.
2.
Prefer the route with the highest weight (Cisco IOS routers only).
3.
If the weight is the same, prefer the largest Local Preference attribute.
4.
If the local preference is the same, prefer the route originated by this local router (routes
generated by network or redistribute commands).
5.
6.
If the AS_Path length is the same, prefer the route with the lowest origin type.
7.
If the origin codes are the same, prefer the route with the lowest MED.
8.
9.
10.
Finally, if all else is equal, prefer the path with the lowest BGP router ID.
Configuring BGP
To start the BGP process on a Cisco router requires the following command:
router bgp autonomous-system-number
You must be aware that the network commands is not used in the same way that you apply
network commands in OSPF or EIGRP. With BGP, the network command advertises networks
75
that are originated from the router and should be advertised via BGP. For more Cisco IOS
examples of BGP, see Chapter 8, CCIE Security Self-Study Lab. The BGP network command
does not affect for which interfaces BGP is enabled. Also, BGP routes that originate from a BGPenabled device can include connected routes, static routes, and routes learned from a dynamic
routing protocol.
To identify peer routers, apply the following command:
neighbor {ip-address | peer-group name} remote-as autonomous-system-number
NOTE Route redistribution allows routing information discovered through one routing
protocol to be distributed in the update messages of another routing protocol. Whenever
redistribution is congured on Cisco routers, the routing metric must also be converted. For
example, with redistribution from a RIP domain into OSPF, the RIP network inserted into OSPF
requires an OSPF cost metric.
BGP neighbor authentication can be congured whenever routing updates are exchanged between
neighbor routers. This authentication ensures that a router receives reliable routing information
from a trusted source. BGP supports MD5 authentication only. If a rewall exists between two
neighboring BGP routers, the rewall cannot NAT the BGP router addresses because it breaks the
MD5 hash. It is important to remember that BGP runs over TCP, with the well-known TCP port
number 179.
76
NOTE The effective throughput of a PRI service with 23 channels is 1.472 Mbps (23 64
kbps). With 30 B channels, the effective throughput is 1.920 Mbps (30 64 kbps). The
International Telecommunications Union (ITU) denes the standards for ISDN. The specied
standard is ITU-T Q.921.
Figure 1-18
77
Field Length
in Bytes
1
Variable
Flag
Address
Control
Protocol
Data
FCS
Flag
SAPI C/R
EA
TEI
EA
Point-to-Point Protocol
PPP was designed to transport user information between two WAN devices (also referred to as
point-to-point links). PPP was designed as an improvement over the Serial Line Internet Protocol
(SLIP). When PPP encapsulation is congured on a Cisco WAN interface, the network
administrator can carry protocols such as IP and IPX, as well as many others. Cisco routers support
PPP over asynchronous lines, High-Speed Serial Interfaces (HSSIs), ISDN lines, and synchronous
serial ports. PPP has the added function of allowing authentication to take place before any enduser data is sent across the link.
The following three phases occur in any PPP session:
Link establishmentLink Control Protocol (LCP) packets are sent to congure and test the
link.
Authentication (optional)After the link is established, authentication can ensure that link
security is maintained.
Network layersIn this phase, Network Control Protocol (NCP) packets determine which
protocols are used across the PPP link. An interesting aspect of PPP is that each protocol (IP,
IPX, and so on) supported in this phase is documented in a separate RFC that discusses how
it operates over PPP.
Figure 1-19 displays the PPP frame format, which is similar to the HDLC frame format in Figure 1-18.
78
Figure 1-19
Variable
2 or 4
Flag
Address
Control
Protocol
Data
FCS
01111110 11111111
Address
not used.
Set to all 1s.
Identifies
Payload
Frame
Check Sequence
IP Multicast
Table 1-15
79
ISDN Commands
Cisco IOS Command
Description
Description
The number of the device making the outgoing call; only one
entry is allowed.
isdn switch-type
NOTE Frame Relay is a Layer 2 protocol that provides connectionless delivery between
devices.
Frame Relay, although not listed in the ofcial blueprint for the CCIE Security written exam,
has a few terms you should be aware of for the exam:
Forward explicit congestion notication (FECN)A bit set by a Frame Relay network
to inform DTE receiving the frame that congestion was experienced in the path from source
to destination. DTE receiving frames with the FECN bit set can request that higher-level
protocols take ow-control action, as appropriate.
Backward explicit congestion notication (BECN)A bit set by a Frame Relay network
in frames traveling in the opposite direction of frames encountering a congested path. DTE
receiving frames with the BECN bit set can request that higher-level protocols take owcontrol action, as appropriate. The ISP or WAN switches typically set FECN/BECN.
Data-link connection identier (DLCI)A value that species a PVC or SVC in a Frame
Relay network. DLCIs are locally signicant. Globally signicant DLCIs are used for LMI
(Local Management Interface) communication between Frame Relay switches.
IP Multicast
This section briey covers the IP multicast areas of interest for the CCIE written test.
The multicasting protocol was designed to reduce the high bandwidth requirements of
technologies, such as video on demand, to a single stream of information to more than one device.
Applications include electronic learning, company share meetings (video on demand), and
software distribution.
Multicasting transmits IP packets from a single source to multiple destinations. The network
device transmitting the multicast source copies single packets, which are sent to a subset of
80
network devices. In IPv4, the Class D addresses ranging from 224.0.0.0 to 239.255.255.255 are
reserved for multicast. Routing protocols, for example, use multicasting to send Hello packets and
establish neighbor adjacencies.
Table 1-16 displays some common multicast addresses and their uses.
Table 1-16
Use
224.0.0.1
224.0.0.2
224.0.0.5
224.0.0.6
224.0.0.9
224.0.0.10
TIP The Class D addresses used in multicast trafc range from 224.0.0.0 to 239.255.255.255.
81
Clients are supplied one number to call, and the AS5300 makes intelligent decisions based on the
incoming call type, whether it be digital (ISDN) or analog (PSTN).
Figure 1-20
WWW
AS1 1.1.1.1/24
AS2 1.1.1.2/24
AS3 1.1.1.3/24
AS4 1.1.1.4/24
ISDN Call
ISDN Call
PSTN
PSTN
ISDN
ISDN
AS5300
PSTN Call
ISDN/PSTN
calls come in using
PPP encapsullation.
PSTN Call
Users, such as clients with ISDN, call the dedicated number supplied by the ISP. The four
AS5300s in Figure 1-20 can also share the load of incoming calls using the Stack Group Bidding
Protocol (SGBP), which is used when multiple PPP, or multilink PPP (MPPP), sessions are in use.
When SGBP is congured on each Cisco AS5300, each access server sends a query to each stack
group member. A stack group member is a router running SGBP.
Each router participating in SGBP then bids for the right to terminate the call. The router with an
existing PPP session, for example, will win the bid; this allows the best bandwidth allocation to
the end client, as both PPP sessions are terminated on the same router. If the PPP call is the rst
session to be terminated on the AS5300, the AS5300 with the lowest CPU usage will have a higher
probability of terminating the call. Example 1-21 displays a typical Cisco IOS conguration when
SGBP is enabled on the four AS5300 routers in Figure 1-20.
82
Example 1-21
Hostname AS1
!
username CCIE password CCIE
sgbp group CCIE
sgbp member AS2 1.1.1.2
sgbp member AS3 1.1.1.3
sgbp member AS4 1.1.1.4
The following list explains the Cisco IOS commands used in Example 1-21.
username CCIE password CCIEDenes the username and password used to authenticate
SGBP members. If the password is wrong, an error such as the following is presented on the
console:
%SGBP-1-AUTHFAILED: Member [chars] failed authentication
sgbp group CCIEDenes a named stack group and makes this router a member of that
stack group. Use the sgbp group command in global conguration mode. To remove the
denition, use the no form of this command.
sgbp member ip-addressSpecies the host name and IP address of a router or access server
that is a peer member of a stack group. Use the sgbp member command in global
conguration mode.
83
understand the details that are required for the written exam, knowledge of which will also help
you in the real world.
Establishing the identity of every IP phone is the key to VoIP security. The handset identies itself
with the CCM via the MAC address. If auto registration is enabled on the CCM, then any rogue
IP phone can be installed and operated. Thus, you should disable auto registration or place the
phone in a partition whereby only local internal calls can be made, for instance. You should also
disable the switched port to the PC until the phone is correctly identied and reregistered with the
correct access rights, such as a calling search space (CSS).
A CSS comprises an ordered list of route partitions (logical groupings of directory numbers and
route patterns, not to be confused with IP routing) that is typically assigned to devices such as IP
phones. CSSs determine the partitions where calling devices search when they are attempting to
complete a call. If an intruder places a rogue device in an incorrect partition, then that intruder
could potentially call any number around the globe and discover the IP subnet the phone is
allocated, the CCM, the DHCP server, the TFTP server, and so forth. The intruder can simply press
the Settings button on the phone and select Network Conguration to view the IP address of these
core devices, such as the CCMs IP address. This information can then be used to attach to the
main component of a VoIP networkthe CCM(s).
A common best practice is to disable all unused network ports in a switched Layer 2 environment;
this prevents deployment of any rogue IP phones. You could also consider statically dening IP
addresses so that DHCP does not allocate a valid routable IP address in your network to rogue IP
phones. You can secure the network by placing phones in a voice VLAN (isolated, that is) and
permitting only that particular VLAN access to the CCM and associated servers and ports. In this
way, you can enable DHCP for IP phones.
This leads to the best practice of allsecuring the network where the CCMs reside. The call
processing of VoIP networks means that the RTP stream is vital and can be hijacked by potential
intruders. Call gateways and CCMs are the most vulnerable devices in your network. Hence, Cisco
advises that you use network intrusion detection systems, along with well-dened access lists, to
ensure that the core devices in your VoIP are secure.
The SAFE: IP Telephony Security in Depth white paper recommends the following for all VoIP
installations:
Use a host-based IDS (HIDS). Cisco Security Agent network shimmy needs to be installed.
84
Prevent toll fraud by not allowing unregistered phones to register. Typically, implementations
leave auto registration in place although unregistered phones are placed in a partition. This
partition can be congured to permit only internal calls, for example, thus preventing toll
fraud.
Prevent denial of service (DoS) attacks by using separate voice and data networks.
Table 1-17 denes the common TCP and UDP ports used in an IP telephony environment when
deploying access list security.
Table 1-17
Protocol
Port(s)
DHCP
UDP
67/68
HTTP
TCP
80
RTP
UDP
1638432767
TCP
2748
TCP
389/8404
Cisco skinny
TCP
2000
HIDS management
TCP
5000
TCP
8404
IDSs can be easily deployed in chassis-based switches, making their integration fairly easy, as
discussed in Chapter 5, Operating Systems and Cisco Security Applications.
Other common best practices include securing Internet Information Server (IIS) on the CCMs,
disabling Windows services, locking down SQL, and using IPS and virus protection on CCMs.
Cisco has recently released IP wireless phones. Any network that has VoIP installed must secure
the wireless networks as well, as the following section discusses.
85
Wireless networks have become one of the most interesting targets for hackers. Wireless
technology deployment is growing at a rapid rate, and sometimes without consideration of all
security aspects. This rapid deployment is due, in part, to the low cost of the devices, ease of
deployment, and the large productivity gains. Because WLAN devices ship with all security
features disabled, increasingly, WLAN deployments have attracted the attention of the hacker
community. Several websites document freely available wireless connections throughout the
United States.
Although most hackers are using these connections as a means to get free Internet access, a smaller
group, using more sophisticated tools to capture data, modify data, capture passwords, or to hide
their identity, sees this situation as an opportunity to break into networks that otherwise might have
been difcult to attack from the Internet. Unlike a wired network (Ethernet for example), a WLAN
sends data over the air and may be accessible outside the physical boundary of an organization.
Power settings should be used, for example, to ensure that only the secure building oors have
coverage and not caf shops on the ground level.
When WLAN data is not encrypted, the packets can be viewed by anyone within radio frequency
range. For example, a person with a Linux laptop, a WLAN adapter, and a program such as
TCPDUMP can receive, view, and store all packets circulating on a given WLAN.
Vendors are constantly updating and providing new mechanisms to thwart hackers, such as with
protocols like the following:
To support all popular operating systems, Cisco designed and implemented LEAP on Cisco
Aironet WLAN products and solutions. Microsofts latest operating system, Windows XP,
provides support for 802.1x (specically EAP-TLS and EAP MD5). Thus, a variety of EAP
authentication protocols can be used to authenticate users in todays WLAN networks.
The Cisco AVVID WLAN solution is a fundamental element of the Cisco AVVID network
infrastructure. This means that there are few or no cables. What is still required, of course, is
network security. This section covers the main methods used to ensure that wireless networks are
secure when they are implemented and designed and that common best practices are used in
todays wireless LANs. The need for security must also be balanced with users need for
maximum exibility when accessing a corporate or public network.
86
This section also ensures that you have all the information that you need to answer the questions
that may appear on the CCIE Security written exam.
The IEEE has dened a number of wireless standards, the most important of which are the
following:
Cisco has implemented the following wireless LAN security features in its access points and
bridges:
Enhancement beyond the IEEE recommendations, such as dynamic WEP keys to prevent
WEP spoong. Other enhancements include Message Integrity Check (MIC) and the
Temporal Key Integrity Protocol (TKIP), also covered in Chapter 4.
WEP is an 802.11 standard that describes the communication that occurs in wireless LANs.
The WEP algorithm is used to protect wireless communications from eavesdropping. A secondary
function of WEP is to prevent unauthorized access to a wireless network; this function is not an
explicit goal in the 802.11 standard, but it is frequently considered to be a feature of WEP. WEP
uses the RC4 encryption algorithm, which is known as a stream cipher.
There are some very common best practices that you should consider when deploying wireless
networks:
Use dynamic, per-user, per-session key enhancements to mitigate a variety of passive attacks.
Enhancements detect and drop packets that have been (maliciously) modied in transit.
Deploy authentication between the client and user. This may connect to a RADIUS server or,
for example, may need to authenticate through a rewall. The authentication is still only
between the client and the access point.
87
Use rekeying policies that can be centrally congured by external servers such as an AAA
server. This allows the secret key rotation to occur transparently to end users. Customers can
also congure broadcast key rotation policies at the access points.
Keep accounting records. Every time a wireless client associates with an access point or
disassociates from an access point, a record should be kept for auditing purposes.
Use TKIP to defend against an attack on WEP in which the intruder uses an unencrypted
segment called the initialization vector (IV) in encrypted packets to calculate the WEP key.
TKIP removes the predictability that an intruder relies on to determine the WEP key by
exploiting IVs. TKIP protects both unicast and broadcast WEP keys. TKIP still requires the
WEP key to be changed every 16.7 million packets.
Use MIC to prevent attacks on encrypted packets, called bit-ip attacks. During a bit-ip
attack, an intruder intercepts an encrypted message, alters it slightly, and retransmits it, and
the receiver accepts the retransmitted message as legitimate. MIC, implemented on both the
access point and all associated client devices, adds a few bytes to each packet to make the
packets tamper proof.
Use EAP authentication, which provides dynamic unicast WEP keys for client devices but
uses static broadcast keys. With broadcast WEP key rotation enabled, the bridge provides a
dynamic broadcast WEP key and changes it at the interval you select. Broadcast key rotation
should be used with TKIP. If the wireless clients do not support TKIP, using broadcast key
rotation just means that the client keys get hacked rst.
Intruders typically use a number of tools, freely available on the Internet, to sniff out the airwaves
for access points. Thus, it is vital that you make sure every wireless access point in your network
has the most secure features enabled. Some common tools include:
MAC address auditingA device is placed on the network and pings a number of local
devices and caches the MAC. The intruder can then, for example, congure their NIC to
receive packets for devices acting as the gateway and thereby redirect them to the wrong
location.
SniffersBy using a simple network monitor, of which many are available on the Internet,
such as Ethereal, an intruder can sniff packets over the airwaves by using any wireless adapter.
Operating system imperfectionsBy using the ngerprint of Windows and Cisco IOS,
intruders can discover weaknesses in the code to develop tools to bypass internal security.
Recent reports of code thefts from Cisco and Microsoft have further heightened this aw.
Examples of tools freely available on the Internet include Airsnort, Asleap, and Network
Stumbler.
88
Disable SSID broadcastNot allowing the SSID to broadcast protects against someone
gaining unauthorized association. Although the SSID is not for security, it is a simple means
of access control.
This section discussed in brief some of the main points you should consider when designing a
wireless network. Simple practices such as dynamic key management, deploying authentication
between a client and access point, and enabling 802.1X authentication encompass the crucial
wireless best practices.
There are more wireless security features available to administrators:
802.11 networks are insecure, and only careful design and monitoring will ensure that your IP
network is not compromised. Prevention and detection are the keys to a safe wireless network.
Prevention is best designed with these points in mind:
Corporate policy
Physical security
Implementing various levels of VLAN support for various levels of wireless accessfor
example, ensuring that users who are permitted only Internet access are not placed on
corporate LAN-based networks
For more details on common best practices in wireless technologies, refer to the SAFE: Wireless
LAN Security in Depth version 2 white paper:
http://www.cisco.com/en/US/netsol/ns340/ns394/ns171/ns128/
networking_solutions_white_paper09186a008009c8b3.shtml
Foundation Summary
89
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of this
chapters key concepts. If you are already comfortable with the topics in this chapter and decided
to skip most of the Foundation Topics material, the Foundation Summary will help you recall
a few details. If you just read the Foundation Topics section, this review should help further
solidify some key facts. If you are doing your nal preparation before the exam, the Foundation
Summary offers a convenient and quick nal review.
Table 1-18
OSI Model
Description
The application layer is closest to the end user, which means that the application is being
accessed by the end user. This layers major function is to provide services to end users.
Examples of application layer services include the following:
File Transfer Protocol
Telnet
Ping
Trace route
SMTP
Mail clients
Presentation layer
(Layer 6)
The presentation layer handles data formats and code formatting. This layers functions are
normally transparent to the end user because it takes care of code formats and presents
them to the application layer, where the end user can examine the data. Examples of
presentation layer protocols include the following:
GIF
JPEG
ASCII
MPEG
TIFF
MIDI
HTML
continues
90
Table 1-18
Description
The session layer performs several major functions, including managing sessions between
devices and establishing and maintaining sessions. Examples of session layer protocols
include the following:
Database SQL
NetBIOS Name Queries
H.323
Transport layer
(Layer 4)
The transport layer is responsible for segmenting upper-layer applications and establishing
end-to-end connections between devices. Other transport layer functions include providing
data reliability and error-free delivery mechanisms. Information being processed at this
layer is processed in what are commonly known as segments. Examples of transport layer
protocols include Transmission Control Protocol (TCP) and User Datagram Protocol
(UDP). Voice RTP resides here also.
Network layer
(Layer 3)
The network layer determines the best path to a destination. Device addressing, packet
fragmentation, and routing all occur at the network layer. Information at this layer is
processed in what are commonly known as packets. Examples of network layer protocols
include the following:
Internet Protocol (IP)
Open Shortest Path First (OSPF)
Cisco Enhanced Interior Gateway Routing Protocol (EIGRP)
The data link layer focuses on getting data reliably across any particular kind of link. Flow
control and error notications are other data link layer functions. The data link layer applies
to all access methods, whether they are LAN or WAN methods. Information being
processed at this layer is processed in what are commonly known as frames. Examples of
correct frame types include the following:
ISDN
SDLC
HDLC
PPP
Frame Relay
Bridge protocol data units (spanning tree)
Foundation Summary
Table 1-18
91
Description
The physical layer consists of standards that describe bit ordering, bit transmission rates,
connector types, and electrical and other specications. Information at Layer 1 is
transmitted in binary (1s and 0s; for example, the letter A is transmitted as 00001010).
Examples of physical layer standards include the following:
RS-232
V.24
V.35
RJ-45
RJ-12
10BASE-T
100BASE-T
1000BASE-T
Gigabit Ethernet
Table 1-19
Characteristics
10BASE5*
10BASE2
Maximum length: 185 m, using RG58 cable types and T connectors on all
end stations
Minimum distance between devices: 0.5 m
Maximum devices per 185 m segment: 30 stations
Speed: 10 Mbps
10BASE-T
92
Table 1-19
Characteristics
100BASE-T
1000 GE
*The word BASE refers to baseband signaling, which uses a single channel, as opposed to broadband, which uses
multiple frequency channels.
To set Fast EtherChannel on a router, the Cisco IOS syntax is channel-group under the Fast
Ethernet interface.
Table 1-20
Description
Disabled
Listening
The port has received data from the interface and will listen for frames. In
this state, the bridge only receives data; it does not forward any frames to
the interface or to other ports.
Learning
The bridge still discards incoming frames. The source address associated
with the port is added to the CAM table. BPDU are sent and received.
Forwarding
Blocking
The port has been through the learning and listening states, and because
this particular port is a dual path to the root bridge, the port is blocked to
maintain a loop-free topology.
Foundation Summary
Table 1-21
93
Range
Class A
0xxxxxxx
1126, 127**
255.0.0.0
Class B
10xxxxxx
128191
255.255.0.0
Class C
110xxxxx
192223
255.255.255.0
Class D
1110xxxx
224239
Class E
1111xxxx
240255
Reserved
Table 1-23
Class
IGRP
EIGRP
Hybrid (classless)
OSPF
Link-state (classless)
RIPv1
RIPv2
BGP
Description
URG (U)
UrgentInforms the other station that urgent data is being carried. The receiver will
decide what to do with the data.
ACK (A)
PSH (P)
PushInforms the end station to send data to the application layer immediately.
RST (R)
SYN (S)
SynchronizeInitiates a connection.
FIN
FinishedIndicates that the sender is nished sending data and terminates the session.
94
Table 1-24
Description
Telnet
Table 1-25
Table 1-26
Connected interface
Static route
External BGP
20
Internal EIGRP
90
IGRP
100
OSPF
110
IS-IS
115
RIP
120
EGP
140
170
Internal BGP
200
Unknown
255
Protocol
Port(s)
DHCP
UDP
67/68
HTTP
TCP
80
RTP
UDP
1638432767
TCP
2748
TCP
389/8404
Cisco skinny
TCP
2000
HIDS management
TCP
5000
TCP
8404
95
96
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the
CCIE Security written exam and those topics presented in this chapter. This format should help
you assess your retention of the material. A strong understanding of the answers to these questions
will help you on the CCIE Security written exam. You can also look over the questions at the
beginning of the chapter again for further review. As an additional study aid, use the CD-ROM
provided with this book to take simulated exams, which draw from a database of over 500
multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
What layer of the OSI model is responsible for ensuring that IP packets are routed from one
location to another?
3.
What mechanism is used in Ethernet to guarantee packet delivery over the wire?
4.
5.
What Catalyst command displays the bridging or CAM table on a Cisco 3550 series switch?
6.
7.
Fast EtherChannel (FEC) allows what to occur between Cisco Catalyst switches?
8.
Does an IP packet include a known and common eld that guarantees data delivery? If so,
what is this eld.
9.
10.
Given the address 131.108.1.56/24, what are the subnet and broadcast addresses? How many
hosts can reside on this network?
11.
How many hosts can reside when the subnet mask applied to the network 131.108.1.0 is
255.255.255.128 (or 131.108.1.0/25)?
12.
13.
14.
15.
What Cisco IOS command displays the IP ARP table on a Cisco IOS router?
Q&A
97
16.
Cisco IOS routers use what mechanism to determine the routing selection policy for remote
networks if more than one routing protocol is running?
17.
What is the administrative distance for OSPF, RIP, and external EIGRP?
18.
Name ve characteristics of distance vector routing protocols and provide two examples of
routing protocols classied as distance vector.
19.
IP RIP runs over what protocol and port number when sending packets to neighboring
routers?
20.
21.
22.
23.
24.
If OSPF is congured for one area, what area assignment should be used?
25.
26.
What Cisco IOS command disables an interface from participating in the election of an OSPF
DR/BDR router?
27.
On an Ethernet broadcast network, a DR suddenly reboots. When the router recovers and
discovers neighboring OSPF routers, will it be the designated router once more?
28.
What Layer 4 protocol does BGP use to guarantee routing updates, and what destination port
number is used?
29.
30.
What are the three phases that occur in any PPP session?
31.
32.
33.
34.
35.
What is the best method you can easily deploy to protect CCMs from unauthorized access?
36.
98
Scenario
Scenario Diagram
E0 IP address 1.1.1.100
MAC address 3333.3333.3333
R1
Ethernet 0
E1 IP address 2.1.1.100
MAC address 4444.4444.4444
Ethernet 1
PC1
IP address 1.1.1.1
MAC address 1111.1111.1111
1.
2.
PC2
IP address 2.1.1.1
MAC address 2222.2222.2222
In Figure 1-21, PC1 cannot communicate with PC2. What is the likely cause of the problem,
assuming that the router is congured correctly?
a.
b.
c.
d.
In Figure 1-21, what will be the ping response display when an exec user on Router R1 pings
PC1s IP address for the rst time? Assume that all congurations are correct.
a.
!!!!!
b.
!!!!.
c.
.....
d.
.!!!!
e.
.!!!!!
3.
99
What Cisco IOS command was used to display the following output taken from Router R1?
Protocol
Internet
Internet
Internet
Internet
Address
1.1.1.100
2.1.1.100
1.1.1.1
2.1.1.1
a.
show ip arpa
b.
show ip arp
c.
d.
Age (min)
10
10
Hardware Addr
333.3333.3333
4444.4444.4444
1111.1111.1111
2222.2222.2222
Type
ARPA
ARPA
ARPA
ARPA
Interface
Ethernet0
Ethernet1
Ethernet0
Ethernet1
100
Scenario Answers
Scenario Solutions
1.
c. Cisco IOS routers will route between directly connected interfaces and, because PC1
cannot ping PC2 on another subnet, the PC1 gateway address must not be congured
correctly.
2.
d. The rst request will fail because of the ARP broadcast. The four subsequent pings will
reply successfully. (There are ve in total: one for an ARP request and four successful
replies.)
3.
b. show ip arp displays the correct ARP address table for the devices in Figure 1-21.
Active Directory
CHAPTER
Application Protocols
This chapter covers some of todays most widely used application protocols.
This chapter covers the following topics:
Domain Name System (DNS)Topics in this section include how DNS is congured on
Cisco routers and what port numbers are used when delivered across an IP network.
Trivial File Transfer Protocol (TFTP)This section covers the common uses of TFTP,
particularly on Cisco IOSenabled routers. The process used to copy les to and from a
TFTP server is described.
File Transfer Protocol (FTP)This section covers FTP and the advanced mechanisms
used in this connection-orientated protocol to ensure data delivery.
Other application topicsSections are included for Hypertext Transfer Protocol (HTTP),
Secure Sockets Layer (SSL), Simple Network Management Protocol (SNMP), Simple Mail
Transfer Protocol (SMTP), Network Time Protocol (NTP), Secure Shell (SSH),
Lightweight Directory Access Protocol, and Active Directory. These sections cover some
common congurations and Cisco IOS commands on Cisco routers that enable these
applications. Cisco implementation of SSH in IOS and RDEP will also be covered.
NOTE SNMP, although not listed ofcially as an exam topic on Cisco.com, is a possible
topic in the written examination.
104
If you already intend to read the entire chapter, you do not necessarily need to answer these
questions now. If you nd these assessment questions difcult, read through the entire
Foundation Topics section and review it until you feel comfortable with your ability to answer
all of these questions and the Q & A questions at the end of the chapter.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
3.
4.
TCP port 21
b.
TCP port 23
c.
UDP port 21
d.
UDP port 53
e.
TCP/UDP port 53
b.
A TFTP directory
c.
A lename
d.
A domain name
e.
None of these
What Cisco IOS command will stop a Cisco router from querying a DNS server when an
invalid Cisco IOS command is entered at the EXEC or PRIV prompt?
a.
no ip domain-lookup
b.
no ip dns-lookup
c.
no ip dns-queries
d.
no exec
What does the following Cisco IOS global conguration mode line accomplish?
ip host SimonisaCCIE 131.108.1.1 131.108.1.2
a.
b.
c.
Congures the Cisco IOS router for remote routing entries 131.108.1.1 and 131.108.1.2
d.
e.
Congures the local routers with the IP address 131.108.1.1 and 131.108.1.2 on bootup
5.
6.
7.
8.
9.
105
21
b.
22
c.
23
d.
53
e.
69
What Cisco IOS command will copy a Cisco IOS image from the current system ash to a
TFTP server?
a.
b.
c.
d.
Suppose a client calls and advises you that an FTP data transaction is not allowing the client
to view the hosts directory structure. What are the most likely causes of the problem?
(Choose all that apply.)
a.
b.
c.
The host machine has denied the client access because the password is wrong.
d.
A serious network outage has occurred, which requires that you reload the router closest
to the client.
e.
IP
b.
TCP
c.
TFTP
d.
DNS
e.
UDP
21
b.
443
c.
334
d.
333
e.
343
106
10.
11.
12.
13.
14.
snmp-server enable
b.
c.
snmp-server ip-address
d.
b.
c.
d.
e.
b.
Encryption is used after a simple handshake is completed; that is, after the client is
authenticated.
c.
d.
e.
b.
c.
d.
b.
Retrieve mail.
c.
d.
15.
16.
17.
18.
107
23
b.
551
c.
21
d.
20
e.
123
f.
321
b.
c.
d.
e.
Which of the following protocols can be authenticated? (Select the best four answers.)
a.
Telnet
b.
HTTP
c.
HTTPs
d.
e.
TFTP
f.
FTP
What is the community string value when the following Cisco IOS commands are entered in
global conguration mode?
snmp-server
snmp-server
snmp-server
community publiC RO
enable traps config
host 131.108.255.254 isdn
a.
ISDN
b.
Cong
c.
publiC
d.
public
e.
Public
f.
108
19.
20.
21.
22.
Requires no acknowledgment.
b.
c.
d.
21
b.
22
c.
161
d.
162
What TCP port number will an SNMP inform acknowledgment packet be sent to?
a.
21
b.
22
c.
23
d.
161
e.
162
f.
None of these
To restrict SNMP managers from the source network 131.108.1.0/30, what Cisco IOS
command is required?
a. ip http enable 131.108.1.1 131.108.1.2
b. snmp community
131.108.1.1 131.108.1.2
23.
b.
c.
d.
SSH version 3
24.
25.
26.
27.
109
When enabling Cisco IOS SSH on a Cisco IOS router, which of the following is not a required
step?
a.
b.
c.
d.
What Cisco IOS command will enable an SSH client session with the username cisco,
encryption 3DES, and target IP address 10.1.1.1/24?
a.
b.
c.
d.
None of these
SSH provides a security mechanism but lacks one certain feature. What feature is that?
a.
b.
c.
d.
What protocol allows network administrators to monitor IDS sensors and what two protocols
can be used?
a.
b.
c.
d.
110
Foundation Topics
111
To illustrate a local name lookup on a Cisco IOS router, look at the following Cisco router
command that provides a host lookup. (Note: a router will not provide DNS server responses to
client devices such as PCs or UNIX hosts.)
ip host name [tcp-port-number] ip-address1 [ip-address2...ip-address8]
You can assign more than one IP address to any given name.
Example 2-1 displays three hosts and their corresponding IP addresses.
Example 2-1
The three locally dened hosts (remember, these are available only to the local router; they are not
DNS entries and thus are not available to other devices) named Router1, Router2, and Router3 are
translated into IP addresses 131.108.1.1, 131.108.1.2, and 131.108.1.3.
When a network administrator types in the local host name dened in the global conguration, the
router translates the name to an IP address. Example 2-2 displays a network administrator
Telneting from Router R1 to the remote host, Router2.
Example 2-2
router2
R1#r
Translating "router2"
Trying Router2 (131.108.1.2)... Open
User Access Verification
Password: *****
Router2>
When the network administrator types the local name router2 (dened local names are not case
sensitive) at the exec prompt, the Cisco IOS router does a local host lookup for the name router2
and translates the address to 131.108.1.2.
What would happen if you were to type a name that is not congured locally? Example 2-3
displays the sample output from a Cisco router when an unknown name (ccie, in this case) is typed
at the exec prompt.
112
Example 2-3
c c ie
R1#c
Translating "ccie"...domain server (255.255.255.255)
Translating "ccie"...domain server (255.255.255.255)
(255.255.255.255)% Unknown command or computer name,
or unable to find computer address
R1#
From the privileged exec prompt on Router R1 in Example 2-3, R1 performs a DNS entry lookup
via a broadcast packet to 255.255.255.255. After no response (assuming no DNS server responds),
R1 then does a local DNS lookup, discovers there is no DNS translation, and provides the
following error message:
% Unknown command or computer name, or unable to find computer address
Scalability issues with local host conguration can become a nightmare in a large network.
Thankfully, DNS servers can be placed around the network (typically in the core infrastructure) to
ensure that only a few devices in the network require the full table of names and IP address
translations. The World Wide Web has DNS servers that provide DNS mappings for websites.
DNS has become so important that one DNS server typically is not enough for an organization,
because of the need for redundancy in case the primary DNS server fails. For example, typically
an organization provides an internal protected DNS server for internal DNS requests and an
external DNS server for external DNS resolutions.
NOTE By default, Cisco routers search for a DNS server. To disable this feature, use the Cisco
IOS global conguration command no ip domain-lookup. This stops the router from querying
a DNS server whenever a name translation is required. This command is a denite time saver
for the CCIE Security lab exam.
To enable a Cisco IOS router to perform DNS lookup to a remote DNS server, the following steps
are required:
Step 1
For local name entries (available to the router only; not the same as a DNS entry),
you must specify any local host mapping with the following Cisco IOS command
(note that tcp-port-number is used for connections on a TCP port number other than
the default, 23):
ip host name [tcp-port-number] ip-address1 [ip-address2...ip-address8]
Step 2
113
Specify the domain name or a domain list (Cisco routers can be congured with
multiple domain names) with the following Cisco IOS commands:
ip domain-name nameDenes a default domain name that the Cisco
IOS software uses to complete unqualied host names
ip domain-list nameDenes a list of default domain names to
complete unqualied host names
Step 3
Specify the DNS server or servers with the following Cisco IOS command:
ip name-server server-address1 [server-address2...server-address6]
Devices such as PCs can also be congured for DNS servers and domain names. Example 2-4
congures a router named R1 with the domain name cisco.com. The domain name servers are
131.108.255.1 and 131.108.255.2.
Example 2-4
DNS Conguration
ip domain-name cisco.com
R1(config)#i
ip name-server 131.108.255 .1
R1(config)#i
ip name-server 131.108.255 .2
R1(config)#i
When a network administrator types a name (not a valid Cisco IOS command, of course), the
Cisco router attempts to translate the name into an IP addressrst from any dened local names,
second from the DNS server with the IP address 131.108.255.1, and third from the DNS server
131.108.255.2.
Example 2-5 displays a successful DNS query and translation to the host named ccie (another
Cisco router) from the DNS server 131.108.255.1.
Example 2-5
c c ie
R1#c
! Administrator types ccie
Translating "ccie"
! Query is sent to first configured DNS server
Trying CCIE (131.108.255.1)... Open
User Access Verification
Password: ****
CCIE>
114
TFTP has no method to authenticate a username or password; the TFTP packet has no eld
enabling the exchange of a username or password between two TCP/IP hosts. TFTP
communication or data transfer is actually transferred between two UDP port values, a source
and destination UDP port number.
2.
TFTP directory security (congurable on UNIX and Windows platforms) on the TFTP server
is accomplished by allowing a predened le on the server access to the le to be copied
across. This allows the remote hosts to TFTP the le from the remote TFTP client. For
example, to copy a conguration le from a Cisco router to a UNIX or Windows host, the le
must be predened on the TFTP server with the appropriate access rights dened. Security is
reliant on the application and not the operating system. For example, the TFTP server daemon
does not ship on Windows-based platforms and hence you need a third-party application.
Upgrading Cisco IOS images is a great example of a situation in which TFTP is useful; Cisco IOS
images can be downloaded from a TFTP server to the Cisco routers system ash.
Cisco no longer offers a free TFTP application protocol, but the following URL provides some
alternatives:
http://www.cisco.com/en/US/products/hw/routers/ps133/
products_tech_note09186a00801f7735.shtml#locate
The Cisco TFTP Client Software no longer is available to the public. It was used to transfer
software image les from a PC to your device, such as a router or switch. The favorite TFTP
software of this author can be downloaded for free from 3Coms website:
http://infodeli.3com.com/software/utilities_for_windows_32_bit.htm
Now, congure the Cisco application software, Cisco TFTP, to enable a Cisco router to download
a version of Cisco IOS code.
Figure 2-1 displays the available options when conguring the TFTP application software.
Figure 2-1
115
The TFTP directory in Figure 2-1 is dened as c:\tftpboot. On the host TFTP server (in this case,
a Windows 2000 PC), the Cisco IOS images reside in the tftpboot directory at c:\tftpboot. This
download directory option is a congurable option, and you can select any valid directory on the
host TFTP server.
The le is located in the tftpboot directory. In this example, the Cisco IOS image is named c2600js-mz.121-5.T10.bin.
To copy a Cisco IOS image from a TFTP server, the Cisco IOS command is copy tftp ash.
Example 2-6 displays a TFTP request for the le c2600-js-mz.121-5.T10.bin from a TFTP server
with an IP address of 150.100.1.253.
Example 2-6
continues
116
Example 2-6
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
[OK - 11432808/22864896 bytes]
Verifying checksum...
OK (0xBC59)
117
FTP clients can be congured for two modes of operation (note that the names in parentheses are
the names used in this guide):
Active FTP
FTP active mode is dened as one connection initiated by the client to the server for the FTP
control connection. Remember that FTP requires two port connections through TCP ports 20
(data) and 21 (control). The second connection is made for the FTP data connection (where data
is transferred), which is initiated from the server back to the client.
Active FTP is less secure than passive mode because the FTP server, which, in theory, could be
any host, initiates the data channel. Also, port 20 must be opened up to the outside world, which
is inherently less secure than using just port 21.
Figure 2-2 displays the active FTP mode of operation between an FTP client and FTP server.
Figure 2-2
FTP
Client
Active FTP
FTP Port
Number
20 Data
21 Command
> 1023
Local TCP
Number
> 1023
ok
3
Data Channel
4
ok
FTP Port
Number
118
Figure 2-2 displays a typical FTP mode of operation between a client PC and an FTP server in
active mode. The following steps are completed before FTP data can be transferred:
1.
The FTP client opens a control channel on TCP port 21 to the FTP server. The source TCP
port number on the FTP client is any number randomly generated above 1023.
2.
The FTP server receives the request and sends an acknowledgment. FTP commands are
exchanged between client and server.
3.
When the FTP client requests a directory list or initiates a le transfer, the client sends a
command (FTP port command). The FTP server then opens (initiates) a data connection on
the FTP data port, TCP port 20.
4.
The FTP client generates a new ephemeral (a decimal number above 1023) and sends the
information to the server using the port command. The FTP server responds on the data port
on the port number requested by the client.
Passive FTP
Passive FTP still requires a connection for the initial FTP control connection, which is initiated
from the FTP client to the server. However, the second connection for the FTP data connection is
also initiated from the client to the server (the reverse of active FTP).
Figure 2-3 displays a typical FTP mode of operation between a client PC and FTP server in passive
mode.
The following steps are completed before data can be transferred:
1.
The FTP client opens a control channel on TCP port 21 to the FTP server and requests passive
mode with the FTP command pasv, or passive. The source TCP port number for the control
connection is any number randomly generated above 1023.
2.
The server sends the port number to the client and waits for the client to initiate a data
connection on that port. The FTP server receives the request and agrees to the connections
using a randomly generated, local TCP port number greater than 1023.
3.
The FTP client receives the information, selects a local TCP number randomly generated and
greater than 1023, and opens a data channel to the FTP server (using the destination TCP port
number selected by the server, a number greater than 1023).
4.
The FTP server receives the FTP clients request and agrees to the connection by beginning
to transfer data.
In passive FTP, the client initiates both the control connection and the data connection. In active
mode, the FTP server initiates the FTP data channel. When using passive FTP, the probability of
compromising data is lower because the FTP client initiates both connections.
Figure 2-3
119
FTP
Client
Passive FTP
FTP Port
Number
20 Data
21 Command
> 1023
PASV
FTP Port
number
> 1023
FTP Port
Number
> 1023
2
ok
Data Channel
ok
4
To view the routers home page, use a web browser pointed to http://a.b.c.d, where a.b.c.d is the
IP address of your router or access server. If a name has been set via a DNS server, use http://
router-name.
120
Figure 2-4 displays a sample HTTP request to a remote router with the IP address 10.66.32.5
displaying the request for a valid username and password. The default username is the Cisco
routers local host name, and the password is set to the enable or secret password.
Figure 2-4
After the user is authenticated, the user enters the remote IP address or DNS name.
Varying forms of authentication for login can be set using the ip http authentication command.
However, the default login method is to enter the host name as the username and the enable or
secret password as the password, as displayed in Figure 2-4.
After the user is authenticated with the correct username and password pairing, the user is
permitted HTTP access. Figure 2-5 displays the options available after authentication. Note that
the HTML options may be different, depending on the Cisco IOS revision of your router.
After HTTP is authenticated, the available options are identical to the command-line interface
(CLI) prompt. Depending on the congurable username and password pairing on the router, you
will have certain privilege levels. For example, if you type the username as the local host name of
the Cisco IOS router and the enable or secret password as completed in Figure 2-5, you will have
privilege level 15, which is the same as the PRIV level on the CLI permitting all Cisco IOS
commands. If the username/password pairing has a lower privilege level (via the ip http
authentication command), the corresponding Cisco IOS command set will be available via
HTTP. For example, a user with privilege level 5 will not have the option to reload the router. The
user can also click the option (via the HTTP GUI interface) labeled Monitor the router, as shown
in Figure 2-5, to access the CLI.
Figure 2-5
121
NOTE The command to disable an HTTP server on a Cisco router is no ip http server. To set
username/password pairs, use the following Cisco IOS command:
username username privilege [0-15] password password
You can also dene the HTTP port number with the following command:
ip http [0-65535]
The default is 80. You can restrict access to the router by using an access list that denes
networks and/or hosts permitted to access the router via HTTP.
122
The SSL Handshake Protocol was rst developed by Netscape Communications Corporation to
provide security and privacy over the World Wide Web. The SSL protocol supports server and
client authentication. The SSL protocol is application-independent, allowing protocols like HTTP,
FTP, and Telnet to be layered on top of it transparently. In other words, it is a session layerbased
protocol. Cisco has developed a number of content-based switches to accelerate this communication, such as the Cisco SCA 11000 Series Secure Content Accelerator, an appliance-based
solution that increases the number of secure connections supported by a website by ofoading the
processor-intensive tasks related to securing trafc with SSL. After an SSL session is established,
no further authentication is required. Chapter 4, Security Protocols, broadens this discussion on
public security by discussing topics such as private and public keys, and how keys are exchanged
through the Certicate Authority (CA) to ensure that SSL is secure.
Both SNMPv1 and SNMPv2 use a community-based form of security. The community string allows
access to the SNMP agent and can also be dened by an IP address access control list and password.
SNMPv2c is the newer version of SNMP, and SNMPv2c (the c stands for community) is an
experimental Internet protocol dened in RFC 1901, RFC 1905, and RFC 1906. SNMPv2c is an
update of the protocol operations and data types of SNMPv2p (SNMPv2 classic), and uses the
community-based security model of SNMPv1.
To set up the community access strings to permit access to SNMP on a Cisco IOS router, use the
snmp-server community global conguration command:
snmp-server community string [v
view view-name] [r
ro | rw] [number]
Table 2-1
123
Description
string
Case-sensitive community string that acts like a password and permits access to
the SNMP protocol.
view view-name
(Optional) Name of a previously dened view. The view denes the objects
available to the community.
ro
rw
number
SNMP servers collect information from remote devices known as SNMP agents. SNMP packets
are sent and received by devices on UDP ports 161 (SNMP servers-receivers) and 162 (SNMP
agents-senders).
The Management Information Base (MIB) is a virtual information storage area for network
management information consisting of collections of managed objects. Within the MIB are
collections of related objects, dened in MIB modules. MIB modules are written in the SNMP
MIB module language, as dened in STD 58, RFC 2578, RFC 2579, and RFC 2580. SNMP port
161 is used to query SNMP devices, and SNMP port 162 is used to send SNMP traps. SNMP runs
over UDP and is secured by a well-known, case-sensitive community string. A well-known
community string is one that is commonly known to all devices such as the default community
string named Public.
SNMP Notifications
SNMPs key feature is that it enables you to generate notications from SNMP agents.
Cisco routers can be congured to send SNMP traps or informed requests to a network
management system (NMS), where a network administrator can view the data.
Figure 2-6 displays the typical communication between an SNMP manager and the SNMP agent
(for example, a Cisco-enabled SNMP router).
124
Figure 2-6
UDP 162
SNMP
Manager
SNMP
Agent
UDP 161
Unsolicited notications can be generated as traps or inform requests. Traps are messages that
alert the SNMP manager about a condition on the network (sent by the SNMP agent). Inform
requests (informs) are traps that include a request for conrmation of receipt from the SNMP
manager. SNMP notications can indicate improper user authentication, restarts, the closing of a
connection, loss of connection to a neighbor router, or other signicant events.
The major difference between a trap and an inform packet is that an SNMP agent has no way of
knowing if an SNMP trap was received by the SNMP manager. An inform request will be sent
continually until an acknowledgment is received by the sending SNMP agent.
Table 2-2 denes some of the common terminology used in SNMP.
Table 2-2
SNMP Terminology
Term
Description
Managed device
Agent
Network management
system (NMS)
SNMP manager
125
NOTE Managed devices are monitored and controlled using three common SNMP
commands:
readUsed by an NMS to monitor managed devices. The NMS examines different
variables that are maintained by managed devices.
writeUsed by an NMS to control managed devices. The NMS changes the values of
variables stored within managed devices.
The value of an MIB object can be changed or retrieved using SNMP commands, usually
through a GUI network management system. Cisco supports a number of dened and
proprietary MIB commands.
NOTE Be aware that newer and more functional Cisco IOS releases have new features and
new added options. For this book, we are using the common features found in version 12.2. The
CCIE Security candidate sitting for the written exam is not expected to remember the entire
range of options available. Just be aware when you sit for the lab exam that you may have
additional options.
Refer to http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/ffun_r/
ffrprt3/frf014.htm#wp1056809 for more details. For example, in 12.0.3(T) there are additional
options with the snmp community host command dened as:
version 3 [auth | noauth | priv]
hsrp
Example 2-7 congures a Cisco IOS (12.2 mainline) router for SNMP support.
Example 2-7
The Cisco IOS command snmp-server community public RO enables SNMP on a Cisco router.
This command is also used to restrict access via SNMP. The community string is dened as public
and acts as a password protection mechanism against unauthorized users. The community string
is sent in every SNMP packet, so an incorrect community string results in no authorized access to
the SNMP agent. The read-only attribute means that no conguration changes will be permitted
126
via an SNMP management station. Security administrators should never use the well-known
community string public. SNMPv1 and SNMPv2 (easily spoofed) send information in clear
text. SNMPv3 is the most secure model, because it allows packet encryption.
The Cisco IOS command snmp-server enable traps cong advises the NMS of any conguration
changes. The Cisco IOS command snmp-server host 131.108.255.254 isdn alerts the host
131.108.254.254 of any ISDN traps which can include link apping or high link usage, for
example.
To specify the recipient of an SNMP notication operation, use the snmp-server host global
conguration command. To remove the specied host, use the no form of this command.
snmp-server host host-addr [t
traps | informs] [v
version {1
1 | 2c | 3
auth | noauth | priv]}] community-string
[a
udp-port port] [notification-type]
[u
Table 2-3 expands the snmp-server host Cisco IOS command and presents the full range of
options, including MD5 authentication.
Table 2-3
Meaning
host-addr
traps
informs
version
(Optional) Version of the SNMP used to send the traps. Version 3 is the most
secure model because it allows packet encryption with the priv keyword. If
you use the version keyword, one of the following must be specied:
1SNMPv1 (not available with informs)
2cSNMPv2C
3SNMPv3
The following three optional keywords can follow the 3 keywords:
auth(Optional) Enables Message Digest 5 (MD5) and Secure Hash
Algorithm (SHA) packet authentication. This is known as authNoPriv.
noauth(Default) The noAuthNoPriv security level. This is the default if
the [auth | noauth | priv] keyword choice is not specied.
priv(Optional) Enables Data Encryption Standard (DES) packet
encryption (also called privacy). This is known as authPriv.
community-string
udp-port port
Table 2-3
127
Meaning
(Optional) Type of notication to be sent to the host. If no type is specied,
all notications are sent. The notication type can be one or more of the
following keywords:
bgpSends Border Gateway Protocol (BGP) state change notications.
calltrackerSends Call Tracker call-start/call-end notications.
congSends conguration notications.
dspuSends downstream physical unit (DSPU) notications.
entitySends Entity MIB modication notications.
envmonSends Cisco enterprise-specic environmental monitor
notications when an environmental threshold is exceeded.
frame-relaySends Frame Relay notications.
hsrpSends Hot Standby Routing Protocol (HSRP) notications.
isdnSends Integrated Services Digital Network (ISDN) notications.
llc2Sends Logical Link Control, type 2 (LLC2) notications.
repeaterSends standard repeater (hub) notications.
Author Query:
is this
correct?
128
SNMP Examples
The following example assigns the SimonisCool string to SNMP, allowing read-only access, and
species that IP access list 4 can use the community string:
R1(config)# snmp-server community SimonisCool ro 4
R1(config)# access-list 4 permit 131.108.1.0 0.0.0.255
The hosts on network 131.108.1.0/24 are permitted SNMP access if the read-only string is set to
SimonisCool. This enables an added feature which ensures that devices that source SNMP
information are from a trusted or internal network.
The following example assigns the string SnR to SNMP, allowing read-write access to the objects
in the restricted view (read-write):
R1(config)# snmp-server community SnR view restricted rw
The following example enables the router to send all traps to the host, host.cisco.com, using the
community string "publiC":
R1(config)# snmp-server enable traps
R1(config)# snmp-server host host.cisco.com public
In the following example, the BGP traps are enabled for all hosts, but only the ISDN traps are
enabled to be sent to an actual host named simon:
R1(config)# snmp-server enable traps bgp
R1(config)# snmp-server host simon public isdn
The following example enables the router to send all inform requests to the host test.cisco.com
using the community string publiC:
R1(config)# snmp-server enable traps
R1(config)# snmp-server host test.cisco.com informs publiC
129
A process or daemon running on a server uses SMTP to send mail to clients. A program called
Sendmail is a common tool used for SMTP mail transfer. Recently, a new release of SMTP, called
Enhanced SMTP (ESMTP), was developed. You are not required to know this protocol for the
written exam.
The client and SMTP server send various commands when communicating. The most common
command is HELO, which introduces the calling machine to the receiving machine; the client
machine advertises its host name to the mail server. There are numerous other commands, some
of which are described in the following list. If you are interested in further details on the Sendmail
application, a great resource is Sendmail, by Bryan Costales and Eric Allman (OReilly and
Associates, ISBN 1-56592-839-3). For more details on SMTP, refer to the RFC 821
documentation at http://www.faqs.org/rfcs/rfc821.html.
To test whether a remote hosts SNMP mail is operational and active, use Telnet with the dened
HELO command. The following is a summary of other useful SMTP commands, in case you are
questioned on these commands during the exam:
MAIL (MAIL)Initiates a mail transaction in which the mail data is delivered to mailboxes.
RECIPIENT (RCPT)Identies an individual recipient of the mail data; multiple use of the
command is needed for multiple users.
DATA (DATA)Identies the lines following the command (such as the MAIL command) as the
mail data in ASCII character codes.
SEND (SEND)Initiates a mail transaction in which the mail data is delivered to one or more
terminals.
SEND OR MAIL (SOML)Initiates a mail transaction in which the mail data is delivered to one
or more terminals or mailboxes.
SEND AND MAIL (SAML)Initiates a mail transaction in which the mail data is delivered to
one or more terminals and mailboxes.
RESET (RSET)Aborts the current mail transaction. Any stored sender, recipients, and mail
data must be discarded, and all buffers and state tables must be cleared. The receiver must send an
OK reply.
VERIFY (VRFY)Veries if a user exists; a fully specied mailbox and name are returned.
NOOP (NOOP)Species no action other than that the receiver sent an OK reply.
QUIT (QUIT)Closes the transmission channel; the receiver must send an OK reply.
130
Figure 2-7 displays a simple two-router network where Router R1 will be congured to supply a
clock source to Router R2. In this example, you will congure authentication and ensure that the
NTP peering between the two routers is secure.
Figure 2-7
131.108.3.0/30
Frame Relay
NTP
Server
R1
Send
NTP
Serial0/0.1
I have NTP atomic
clock source; my stratum
value is 2.
Receive
NTP
Serial0/0.2
NTP
Client
R2
Ethernet0/0
172.108.2.1/24
131
Step 2
Congure the master NTP router (which will supply a clock to other routers) with
the following command:
ntp master [stratum-value]
To congure a remote NTP peer to a Cisco router with a better stratum value, use the
following Cisco IOS command:
ntp peer ip-address [version number] [key keyid]
[source interface] [prefer]
Table 2-4 displays the required parameters for the ntp peer command.
Step 4
To dene NTP to authenticate the NTP session, use the following Cisco IOS
commands:
ntp trusted-key key-number
Table 2-4
Description
Ip-address
version
number
key
keyid
source
interface
(Optional) Name of the interface from which to pick the IP source address
prefer
To ensure that R1 sends a clock source to R2 via NTP, R1 must be congured to send NTP trafc
over the Frame Relay cloud, by using the command ntp broadcast. To specify that a specic
interface should send NTP broadcast packets, use the ntp broadcast interface conguration
command. Similarly, R2 must receive NTP trafc and is considered an NTP client, which is
accomplished by using the Cisco IOS command ntp broadcast client.
R2s Serial0/0 interface is congured with the command ntp broadcast client.
132
Example 2-8 congures Router R1 in Figure 2-7 to supply a clock source to Router R2.
Example 2-8
NTP Conguration on R1
Notice that the router is set to the correct time with the Cisco IOS command clock set.
The router is congured for the UTC time zone and 10 hours behind UTC time. (This particular
router resides in Sydney, Australia, 10 hours behind UTC.) The authentication key is set to 1.
Example 2-9 congures R2 to get the clock from R1 using the same MD5 password (set to ccie)
from Example 2-8.
Example 2-9
NTP Conguration on R2
interface serial0/0
ntp bro adcast client
!Global conf iguration
ntp authenticati on-key 1 md5 ccie
ntp auth enticate
ntp trusted-key 1
n tp peer 131.108.1.1 key 1
Example 2-10 displays the two clocks on Routers R1 and R2, conrming that R1 is sending the
correct time to R2 via NTP. The Cisco IOS command ntp authenticate ensures that the NTP peers
are authenticated. Optionally, you can dene where a device will source the NTP clock from with
the command ntp server ip-address.
Example 2-10
show clock
R1#s
10:47:48.508 UTC Fri Aug 9 2002
show clock
R2#s
10:47:48.508 UTC Fri Aug 9 2002
133
Example 2-11 conrms that NTP is authenticated (the remote stratum value is 2) by displaying the
output of the Cisco IOS command show ntp associations detail.
Example 2-11
6.67
0.00
0.00
0.00
0.00
0.00
0.00
0.00
filtoffset = 2979091
0.00
0.00
0.00
0.00
0.00
0.00
0.00
filterror =
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
filtoffset =
0.00
0.00
0.00
0.00
0.00
0.00
0.00
0.00
filterror =
Example 2-11 displays that R2 is dynamically peered to R1 and is authenticated. The IP address
of the NTP peer server, a congured peer, is 131.108.255.1, as highlighted midway down in
Example 2-11.
134
SSH support has been available in Cisco IOS since 12.1(1)T and 12.0(5)S.
NOTE Secure Shell and Cisco IOS SSH are not two different protocols; rather, Cisco IOS
SSH is the Cisco terminology for the fact that Cisco IOS supports SSH. Do not confuse them as
different protocols.
Figure 2-8
Figure 2-8 displays a simple Telnet connection between a PC and a remote router. Figure 2-8 is a
packet trace from a client PC Telnet connection to a Cisco IOS router with the IP address
10.32.66.5. The packet trace clearly captures the password prompt sent by the router. Therefore,
the prompt is viewable in clear text. If you scrolled down the next few frames (frames numbered
98 to 103 in Figure 2-8), the password would be clearly visible. An intruder or hacker could piece
together the password and gain unauthorized access. For security reasons, these frames are not
shown, but it is clear that the Telnet application protocol is not a secure protocol; all data is sent
as clear text (including the password exchanged).
SSH is implemented with TCP port 22 and UDP port 22 and ensures that data is encrypted by a
network sniffer. SSH can be congured on both Cisco IOS routers and Catalyst switches.
Typically, however, SSH software supplied by vendors supports TCP port 22.
135
Figure 2-9
UDP
IP
Network Interface
SSH sits on top of the TCP/IP layers, protecting the hosts from unknown devices. The SSH
transport layer is responsible for securing the data, by using encryption authentication. Also,
because SSH encrypts the username and password, SSH protects vulnerable devices from
unknown users masquerading as trusted users. There are currently two versions of SSH: SSHv1
and SSHv2. Cisco IOS supports SSHv1 and SSHv2.
136
SSHv1 server support was introduced in some Cisco IOS platforms/images starting in 12.0.5.S.
SSH client support was introduced in some Cisco IOS platforms/images starting in 12.1.(5)T9.
SSH terminal-line access (also known as reverse-Telnet) was introduced in some Cisco IOS
platforms/images starting in 12.2.2.T. It can be used to secure reverse-telnet connections from
terminal servers.
SSHv2 support was introduced in some Cisco IOS platforms/images starting in 12.1(19)E6.
The following is an example of conguring a Cisco router as an SSH server and a client connection
from another Cisco IOS router.
There are four steps required to enable SSH support on a Cisco IOS router:
1.
2.
3.
4.
Example 2-12 displays a sample Cisco IOS SSH conguration. The exclamation points (!) identify
comments that have been added to make the conguration more reader-friendly.
Example 2-12
137
Example 2-12 congures a router named Massimo for Cisco IOS SSH. In particular, the command
crypto key generate rsa generates the RSA public key, the ip ssh time-out 120 command sets
the default idle time to 120, and the ip ssh authentication-retries 2 command sets a maximum
retry limit of 2. The crypto key generate command builds both halves of the key pair. There is an
optional write keyword that saves the key pair to NVRAM; otherwise, it is lost on reboot or a
reload as the volatile RAM is refreshed.
To start an encrypted session with a remote networking device, use the ssh user EXEC command:
ssh [-l userid] [-c {d
des | 3des}] [-o numberofpasswordprompts n] [-p portnum]
{ipaddr | hostname} [command]
Table 2-5 displays the options available with the ssh EXEC command.
Table 2-5
-c {des | 3des}
-o numberofpasswdprompts n
-p portnum
(Optional) Indicates the desired port number for the remote host.
The default port number is 22.
ipaddr | hostname
command
*From http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fsecur_r/fothercr/
srfssh.htm#wp1024082.
138
The connection is labeled 0 (vty number), is running version 2.0, is using 3DES encryption, and
the username is guest.
Example 2-13 displays a session connection from a router named Simon to the SSH server
enabled router named Massimo.
Example 2-13
The username is dened with the l option; in Example 2-13, it is set to cisco.
To display the version and conguration data for SSH, use the show ip ssh privileged EXEC
command.
For more detailed information on SSH and on the Cisco IOS functional matrix, visit http://
www.ssh.com/products/tectia/ and http://www.cisco.com/warp/public/707/ssh.shtml,
respectively.
139
Sensor conguration, control, log, and event information are communicated and stored in XML
documents. Version 4.0 provides an open interface that is accessible by clients that can
communicate over HTTP/HTTPs and process XML documents.
So, in summary, RDEP allows IDS sensors to communicate with external systems. RDEP uses
HTTP and SSL to pass XML documents over an encrypted session, between the sensor and the
external system. XML les located on the IDS sensors can control the conguration and operation
of the sensor.
NOTE Although RDEP is listed as a blueprint item, RDEP is a propriety protocol, and you
can expect the exam to test you only lightly on this protocol. RDEP is a subset of the HTTP/1.1
protocol and uses a client request/server response model; it replaces the old IDS Postofce
protocol. The IDS sensor is the RDEP server, and management stations are the clients.
140
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of this
chapters key concepts. If you are already comfortable with the topics in this chapter and decided
to skip most of the Foundation Topics material, the Foundation Summary will help you recall
a few details. If you just read the Foundation Topics section, this review should help further
solidify some key facts. If you are doing your nal preparation before the exam, the Foundation
Summary offers a convenient and quick nal review.
Table 2-6
Table 2-7
DNS Concepts
Concept
Description
no ip domain-lookup
ip domain-name name
ip domain-list name
ip name-server ip-address
TFTP Concepts
Concept
Description
UDP port 69 (UDP is typically the only supported protocol for TFTP
produced by vendors) and TCP port 69
Security
Only lename and directory names created on the server provide the
only method used to secure transfers
Foundation Summary
Table 2-8
Table 2-9
Table 2-10
Table 2-11
141
Description
HTTPs
Service/client
authentication
SNMP Concepts
Concept
Description
SNMP agent
SMTP Concepts
Concept
Description
HELO command
NTP Concepts
Concept
Description
ntp authenticate
Enables authentication.
Denes NTP to authenticate NTP session; keynumber is the authentication key to be trusted.
142
Table 2-12
Description
Q&A
143
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the CCIE
Security written exam and those topics presented in this chapter. This format should help you assess
your retention of the material. A strong understanding of the answers to these questions will help you
on the CCIE Security written exam. You can also look over the questions at the beginning of the chapter
again for further review. As an additional study aid, use the CD-ROM provided with this book to take
simulated exams, which draw from a database of over 500 multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
According to RFC 1700, what is the well-known TCP/UDP port used by DNS?
2.
3.
What is the correct Cisco IOS syntax to specify local host mapping on a Cisco router?
4.
5.
6.
7.
What well-known port do Secure Sockets Layer (SSL) and Secure Shell (SSH) use?
8.
Dene SNMP and give an example of how SNMP traps can be used to identify problems with
Cisco IOS routers.
9.
10.
11.
Which TCP/UDP port numbers are dened for use by the Network Time Protocol (NTP)?
12.
When dening a stratum value on a Cisco router, what is the range and what value is closest
to an atomic clock?
13.
14.
What is the difference between an SNMP inform request and an SNMP trap?
15.
16.
What is the SNMP read-write community string for the following router conguration?
snmp-server community simon ro
snmp-server community Simon rw
144
17.
Before you can TFTP a le from a Cisco router to a UNIX- or Windows-based system, what
is the rst step you must take after enabling the TFTP server daemon on either platform?
18.
What Cisco IOS command can be implemented to restrict SNMP access to certain networks
by applying access-lists? Can you apply standard, extended, or both to these access lists?
19.
20.
Can you use your Internet browser to congure a Cisco router? If so, how?
21.
Suppose that a network administrator denes a Cisco router to allow HTTP requests but
forgets to add the authentication commands. What is the default username and password
pairing that allows HTTP requests on the default TCP port 80? Can you predene another
TCP port for HTTP access other than port 80?
22.
What are the four steps to enable Cisco IOS SSH for a SSH server?
145
Scenario
R1 Running Conguration
version 12.1
hostname R1
clo ck timezone UTC 10
!
no ip domain-lookup
ip domain-na me cisco.com
ip host CCIE 131.108.1.1
ip host Router3 131.108.1.3
ip host Route r2 131.108.1.2
ip host Rou ter1 131.108.1.1
ip name-s erver 131.108.255.1
ip name -server 131.108.255.2
inte rface Ethernet0/0
ip addr ess 131.108.1.1 255.255.2 55.0
!
interface Serial0/0
i p address 131.108.255.1 2 55.255.255.252
ntp broadc ast
!
no ip http server
snmp -server community public R O
snmp-server community pu bliC RW
snmp-server host 1 31.108.255.254 isdn
line con 0
!
ntp authentication-k ey 1 md5 121A061E17 7
ntp authenticate
ntp trusted-k ey 1
ntp master 1
ntp peer 131.108.2.1 key 1
end
146
1.
2.
What happens when a network administrator types the host name Router1 at the router
prompt? (Select the best two answers.)
a.
b.
c.
The administrator could also type CCIE to reach the same IP address (131.108.1.1).
d.
Because DNS is disabled with the command no ip domain-lookup, the router assumes
that this is an invalid Cisco IOS command and returns the error % Unknown command
or computer name, or unable to nd computer address.
e.
Local DNSs are case-sensitive so you can only type Router1 to map to 131.108.1.1.
The following commands are entered on the router named R1. What are the TFTP server
address and TFTP lename stored on the router on board ash?
copy tftp flash
R1#c
Address or name of remote host []? 150.100.1.253
Source filename []? c2600-jo3s56i-mz.121-5.T10.bin
Destination filename [c2600-jo3s56i-mz.121-5.T10.bin]? c2600-c1
3.
R1 supplies an NTP clock source to a remote router. What is the NTP peer IP address, and
what is the MD5 password used to ensure that NTP sessions are authenticated?
4.
What is the SNMP read-write access community string for the following conguration?
snmp-server community public RO
snmp-server community publiC RW
Scenario Solutions
147
Scenario Answers
Scenario Solutions
1.
b and c. The host name Router1 (not case sensitive) is mapped to 131.108.1.1 with the
command ip host Router1 131.108.1.1. Also, the Cisco IOS command CCIE is mapped to
the same name with the Cisco IOS command ip host CCIE 131.108.1.1. If you look at the IP
address assigned to Ethernet 0/0, it is the local IP address. Therefore, if a user types Router1
or CCIE, they will be returned to the same router. The following sample display demonstrates
this fact:
router1
R1#r
Translating "router1"
Trying Router1 (131.108.1.1)... Open
User Access Verification
Password:
quit
R1>q
! quit commands exit Telnet session and you return
! to the first Telnet connection on R1
[Connection to router1 closed by foreign host]
ccie
R1#c
Translating "ccie"
Trying CCIE (131.108.1.1)... Open
User Access Verification
Password:
R1>
Both DNS names, CCIE and Router1, are translated to the same IP address, 131.108.1.1.
2.
The TFTP server address is 150.100.1.253 and the lename requested is c2600-jo3s56imz.121-5.T10.bin. However, the last command entered is the destination lename, which
denes the names stored locally on the system ash. In this case, the network administrator
types the lename c2600-c1.
3.
R1 is congured statically to peer to the remote NTP IP address, 131.108.2.1 (ntp peer
131.108.2.1 key 1). The MD5 password is congured but, unfortunately, the conguration
will not display the MD5 password (encrypted), so it cannot be derived.
4.
The read-only (RO) community string is named "public", and the read-write (RW)
community string is set to "public". Community strings are case sensitive.
CHAPTER
Cisco HardwareCovers the hardware components on a Cisco router, namely the System
Flash, nonvolatile RAM (NVRAM), and how les are saved to and from a TFTP server.
show and debug CommandsPresents the most common show and debug commands
used on Cisco routers to manage an IP network.
Basic Security on Cisco RoutersReviews some commands used to ensure that Cisco
routers are secured with basic passwords.
IP Access ListsCovers both standard and extended IP access lists and their formats.
150
If you already intend to read the entire chapter, you do not necessarily need to answer these
questions now. If you nd these assessment questions difcult, read through the entire
Foundation Topics section and review it until you feel comfortable with your ability to answer
all of these and the Q & A questions at the end of the chapter.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
3.
show ash
b.
c.
show memory
d.
The network administrator has forgotten the enable password, and all passwords are
encrypted. What should the network administrator do to recover the password without losing
the current conguration?
a.
b.
Call the TAC and raise a case to supply the engineering password.
c.
Reboot the router, press the Break key after the reload, and enter ROM mode and
change the conguration register.
d.
Reboot the router, press the Break key during the reload, enter ROM mode and change
the conguration register, and when the router reloads, remove the old conguration.
4.
a.
b.
Simon.
c.
simon or Simon.
d.
You cannot set the password to a word; it must also contain digits.
If the conguration register is set to 0x2101, where is the IOS image booted from?
a.
slot0:
b.
slot1:
c.
Flash
d.
ROM
e.
TFTP server
5.
6.
151
What IOS command will copy the running conguration to a TFTP server?
a.
b.
write network
c.
d.
write erase
What debug command allows an administrator to debug only packets from the network
131.108.0.0/16?
a. debug ip packet
b. terminal monitor
c. debug ip packet 1
access-list 1 permit 131.108.0.0
d. debug ip packet 1
access-list 1 permit 131.108.0.0 0.0.255.255
e. debug ip packet 1
access-list 1 permit 131.108.0.0 255.255.0.0
7.
8.
9.
After entering debug ip packet, no messages appear on your Telnet session. What is the likely
cause?
a.
b.
c.
d.
To change the conguration register to 0x2141, what is the correct IOS command?
a.
b.
conguration 0x2141
c.
d.
cong-register 0x2142
e.
cong-register 0x2141
b.
NVRAM
c.
RAM
d.
Flash
e.
slot0:
152
10.
11.
b.
c.
d.
12.
a.
b.
c.
You will not be able to access the router without the password set.
d.
When a Telnet user tries to establish a remote Telnet session to this router, what will happen?
13.
a.
The Telnet user will be prompted for the login password, which is set to cIscO.
b.
c.
The Telnet user will not be able to access the router without the password set.
d.
e.
The Telnet user will be prompted for the login password; password case does not matter.
0 1
cisco
2 4
ciSco
153
When a third Telnet session is established to a remote router with the preceding conguration,
what will happen?
14.
a.
You will be prompted for the login password, which is set to cisco.
b.
You will be prompted for the login password, which is set to ciSco.
c.
d.
You will not be able to access the router without the password set.
e.
Which of the following access lists will deny any IP packets sourced from network
131.108.1.0/24 and destined for network 131.108.2.0/24 and permit all other IP-based trafc?
a. access-list 1 deny 131.108.1.0
b. access-list 1 deny 131.108.1.0 0.0.0.255
c. access-list 100 permit/deny ip 131.108.1.0 0.0.0.255 131.108.2.0 0.0.0.255
d. access-list 100 deny ip 131.108.1.0 0.0.0.255 131.108.2.0 0.0.0.255
access-list 100 permit ip any any
15.
16.
Which of the following secure protocols are available to manage Cisco IOS software?
(Choose the best three answers.)
a.
Telnet
b.
SSH
c.
HTTPS
d.
HTTP
e.
IPSec-ESP
f.
IPSec-AH
What types of attacks can intruders use to enable them to attack VLANs on a Layer 2 switched
network?
a.
b.
c.
BPDU manipulation
d.
e.
DHCP starvation
f.
All of these
154
17.
18.
19.
20.
21.
b.
BPDU details
c.
d.
It cannot be exploited.
b.
CAM tables can be used to forward all packets to certain interfaces by ooding the
switch with the MAC addresss source by one or more interfaces.
c.
d.
Using a trunk port to access all VLANs, thus bypassing an access control device
b.
Modifying the 802.1p eld to an IP packet, causing the switch to put the attackers port
in a different VLAN
c.
d.
None of these
b.
c.
Intercepting DHCP offer packets and performing a DOS attack on the DHCP server
d.
None of these
When preparing a security policy, what are the three core requirements?
a.
b.
c.
d.
e.
None of these.
22.
155
An administrator notices a routers CPU utilization has jumped from 2 percent to 100 percent,
and that a CCIE engineer was debugging. What IOS command can the network administrator
enter to stop all debugging output to the console and vty lines without affecting users on the
connected router?
a.
b.
undebug all
c.
line vty 0 4
d.
e.
156
Foundation Topics
Cisco Hardware
Cisco routers consist of many hardware components. The main components of a Cisco router
include the following:
RAM
NVRAM
Flash
CPU
ROM
Conguration registers
Interfaces
Flash
Read-Only
Memory (ROM)
Nonvolatile RAM
(NVRAM)
Router Interfaces
LAN, WAN,
Console, AUX Port
Each hardware component is vital for Cisco routers to operate properly. To help you prepare for
the CCIE Security written exam, the next few sections present the main concepts you need to know
about Cisco hardware components.
Cisco Hardware
157
Random-Access Memory
Routers use RAM to store the current conguration le and other important data collected by the
router (such as Cisco Express Forwarding [CEF] tables and Address Resolution Protocol [ARP]
entries, to name a few). This data includes the IP routing table and buffer information. Buffers
temporarily store packets before they are processed. All Cisco IOS processes, such as routing
algorithms (Open Shortest Path First [OSPF] and Border Gateway Protocol [BGP], for example),
also run in RAM.
RAM information is lost if the router power cycles (when a router loses and regains power) or is
restarted by an administrator. To view a routers current conguration, use the show runningcong IOS command. Before Cisco IOS version 10.3, administrators used the write terminal
command to show a routers conguration. The write terminal command is still valid in todays
Cisco IOS releases, although Cisco IOS releases 12.2T and above now provide a warning to use
the new commands only.
Cisco IOS software is hardware-specic, and the image loaded on various router platforms varies
from platform to platform. For example, the image on a Cisco 4500 (end of sale in 2004) will not
run on a Cisco 3600, nor will an image designed for an 1800 run on the 3800. Also, IOS images
contain certain features, such as Internetwork Packet Exchange (IPX) or Data Encryption
Standard (DES) encryption. For example, you can load only Cisco IOS software that supports IP
or IP plus DES encryption, and so forth.
Visit the following Cisco website for more details on Cisco IOS images and platform
requirements: http://www.cisco.com/public/sw-center/sw-ios.shtml.
Nonvolatile RAM
NVRAM stores a copy of the routers conguration le. The NVRAM storage area is retained by
the router in the event of a power cycle. When the router powers up from a power cycle or a reboot
(reload command), the Cisco IOS software copies the stored conguration le from the NVRAM
to RAM. To view the conguration le stored in NVRAM, issue the show startup-cong
command. In earlier versions of Cisco IOS software (before version 10.3), the show cong
command was used to view the conguration le stored in NVRAM. In Cisco IOS versions 11.0
and above, both the show cong and show startup-cong commands will work. The crypto keys
are also stored in NVRAM.
System Flash
The System Flash is erasable and programmable memory used to store the routers IOS image.
Although Flash memory is always limited in size, it can contain multiple versions of Cisco IOS
software. Therefore, you can delete, retrieve, and store new versions of Cisco IOS software in the
158
Flash memory system. To view the Flash memory on a Cisco router, use the show ash IOS
command. Example 3-1 displays the Flash lename on a router named R1.
NOTE On a high-performance router, such as Cisco 3800 series or 7500 series routers, you
can make the Flash system look like a le system and store many versions of Cisco IOS
software. The IOS command to partition the System Flash is partition ash number-ofpartition size-of-each-partition. Even on a low-end router, such as the 2500, the Flash can be
partitioned.
show ash Command
Example 3-1
show flash
R1>s
System flash directory:
File
1
Length
Name/status
9558976
c2500-ajs40-l.12-17.bin
Example 3-1 shows that the IOS image, c2500-ajs40-l.12-17.bin, is currently stored on the routers
on-board System Flash.
The Cisco IOS series routers, such as the 7500 or 3800 series, provide the option of installing
additional PCMCIA Flash memory. If this additional memory is installed, the dir slot0: IOS
command displays the IOS image stored in slot0.
NOTE Cisco recently renamed all of its IOS images to permit a total of only eight possible
trains. Visit http://www.cisco.com/kobayashi/sw-center/sw-ios.shtml for more details. This link
requires a Cisco CCO account.
Cisco Hardware
159
Example 3-2 shows a sample display taken from a Cisco IOS router.
(Truncated) show process Command
Example 3-2
show process
R1>s
CPU utilization for five seconds: 9%/7%; one minute: 9%;
five minutes: 10%
PID QTy
1 Csp
2 M*
3 Lst
PC
Runtime (ms)
Invoked
uSecs
732/1000
318F396
24456
1043
234
28
28
1000
3268/4000 0
Load Meter
EXEC
317D1FC
1304
175
5257
1724/2000 0
Check heap
...
The show process command displays the router utilization within the past 5 seconds, the past 1
minute, as well as the average over the last 5 minutes. Details about specic processes follow the
CPU utilization statistics.
Read-Only Memory
ROM stores a scaled-down version of a routers IOS image in the event that the Flash system
becomes corrupted or no current IOS image is stored in Flash. ROM also contains the bootstrap
program (sometimes referred to as the rxboot image in Cisco documentation) and a devices
power-up diagnostics. You can perform a software upgrade (that is, perform a software image
upgrade on ROM) only by replacing ROM chips, because ROM is not programmable.
The bootstrap program enables you to isolate or rule out hardware issues. For example, suppose
that you have a faulty Flash memory card and, subsequently, the router cannot boot the IOS image.
The power diagnostics program tests all the hardware interfaces on the router. ROM mode
contains a limited number of IOS commands, which enable the administrator or the Technical
Assistance Center (TAC) to help troubleshoot and ascertain any hardware or conguration issues
on a Cisco router. Cisco TAC is available 24 hours a day, 7 days a week. You must pay Cisco for
this service and have a valid contract number to open any cases.
Unfortunately, not all Cisco routers have the same ROM code, so the commands might vary, but
the principle remains the same. You can always issue the ? command in ROM mode to identify the
available commands used to troubleshoot a Cisco IOSbased router. Newer Cisco hardware
models now contain a new boot program stored in boot Flash rather than in ROM. The program is
a little more user-friendly. Menu-driven options are available to change the conguration register,
for example.
160
Example 3-3 provides all the available options on a Cisco 3800 router when the ? command is used
in ROM mode.
Example 3-3
boot
break
confreg
cont
context
cookie
Initialize
dev
unalias
unset an alias
unset
xmodem
The options in Example 3-3 include the ability to initialize a router with the i command after you
have nished ROM mode. ROM mode enables you to recover lost passwords by altering the
conguration registers (covered in the Password Recovery section, later in this chapter).
Configuration Registers
The conguration register is a 16-bit number that denes how a router operates on a power cycle.
These options include whether the IOS image will be loaded from Flash or ROM. Conguration
registers advise the CPU to load the conguration le from the NVRAM or to ignore the
conguration le stored in memory, for example. The default conguration register is displayed
as 0x2102. Table 3-1 lists the binary conversion from 0x2102.
Table 3-1
Value
15
14
13
12
11
10
Cisco Hardware
161
Table 3-1
Bit Number
Value
Visit http://www.cisco.com/en/US/products/hw/routers/ps282/products_installation_guide_
chapter09186a008007dfd0.html#wp1010336 for more details on the Conguration Register
Settings.
The bits are numbered from right to left. In the preceding example, the value is displayed as
0x2102 (0010.0001.0000.0010). The function of the conguration register bits is determined by
their position, as follows:
Bits 0 through 3Determines whether the router loads the IOS from the Flash. Possible
values are 00 - stays at the ROM monitor on a reload or power cycle, 01 - boots the rst image
in CompactFlash memory as a system image, or 02 - F enables default booting from
CompactFlash memory. In Hexadecimal the range is 0x0000-0x000F.
Bit 4Reserved.
Bit 5Reserved.
Bit 6Tells the router to load the conguration from NVRAM if set to 1 and to ignore the
NVRAM if set to 0.
Bit 8Species whether to enter ROM mode without power cycling the router. If bit 8 is set
to 1 and the Break key is issued while the router is up and running normally, the router will
go into ROM mode. This is a dangerous scenario, because if this occurs, your router
immediately stops functioning.
162
Bit 9Causes the system to use the secondary bootstrap. This bit is typically not used and is
set to 0.
Bit 10Species the broadcast address to use, where 1 equals the use of all 0s for broadcast
at boot (in conjunction with bit 14). Bit 10 interacts with bit 14.
Bits 11 and 12Set the console ports baud rate. For example, if bits 11 and 12 are set to 00,
the baud rate is 9600 bps. A baud rate of 4800 bps can be set when these bits are set to 01. 10
sets the baud rate to 2400 bps, and 11 sets the baud rate to 1200 bps.
Bit 13Tells the router to boot from ROM if the Flash cannot boot from a network, such as
a TFTP server. If bit 13 is set to 0 and no IOS image is found, the router will hang. If bit 13
is set to 1 and no IOS image is found, the router boots from ROM.
Bit 15Species whether to enable diagnostics display on startup and ignore the NVRAM.
To view the current conguration register, use the show version IOS command.
Example 3-4 displays the conguration register of a router, R1 (taken from a 7500 series router).
Example 3-4
Cisco Hardware
Example 3-4
163
The output from Example 3-4 displays the conguration register as 0x2102. The show version
command also displays other useful router information, such as the routers uptime, the IOS image
in use, and the hardware conguration. To change the conguration register, use the global
conguration command, congure-register register-value. When a conguration register is
changed, use the show version command to ensure that the register has been changed to the new
value.
Table 3-2 displays common conguration register values you can use in day-to-day
troubleshooting of Cisco IOS routers.
Table 3-2
Common Registers
Register Value
Description
0x2100
0x2102
Boots the router using Flash and NVRAM. This is the default setting.
0x2142
Boots the router using Flash and ignores NVRAM. This value is used to
recover passwords or modify conguration parameters.
Cisco Interfaces
Interfaces provide connections to a network. Interfaces include LANs, WANs, and management
ports (that is, console and auxiliary ports).
To view the current LAN or WAN interfaces, issue the show interface command, which displays
all LAN and WAN interfaces. To display information regarding console or auxiliary ports, use the
show line command. Figure 3-2 summarizes the available IOS commands that administrators can
use to view a routers current conguration.
164
Figure 3-2
show startup-config
show config
show running-config
write terminal
Flash
Read-Only
Memory (ROM)
Nonvolatile RAM
(NVRAM)
Router Interfaces
LAN, WAN,
Console, AUX Port
show interfaces
Now that you have reviewed Cisco router hardware basics, it is time to review how routers operate.
In addition to router operation, this chapter covers how administrators can manage Cisco routers
by saving and loading les to and from a TFTP server.
NOTE Cisco routers can operate in a number of modes. Cisco denes them as follows:
ROM boot modeWhen the router is in boot mode and loaded with a subset of the IOS
image, only a limited number of commands are available.
Initial conguration modeWhen a router rst boots up out of the box with no initial
conguration, you are prompted for basic system conguration details, such as name and
IP address assignment. The prompt looks like this:
Would you like to answer the initial configuration dialog? [yes/no]
User EXEC modeBasic IOS commands are permitted from the command-line interface
(CLI). An example prompt is R1>.
Cisco Hardware
165
configure terminal
R1#c
Enter configuration commands, one per line.
Table 3-3 summarizes the conguration le manipulation that can be performed on Cisco IOS
routers.
Table 3-3
Meaning
write memory
166
Table 3-3
Meaning
write terminal
show cong
write memory
write erase
Router CLI
Cisco IOS routers give network administrators access to a wide range of show and debug
commands. The show command displays various information about the routers state of play, such
as the Ethernet collisions on a particular interface or a routers conguration le. Only a subset of
show commands is available when in user EXEC mode. The full range is available when in PRIV
EXEC mode.
The debug command is a more advanced IOS command that allows the administrator to view the
routers analyses of packets or buffering mechanisms and is used only to troubleshoot a device or
a complete network. The debug command is very CPU-intensive.
show Commands
The best method to appreciate the use of show commands is to display sample output from a Cisco
IOS router.
Example 3-6 displays a list of truncated show commands available from the CLI on a Cisco router
in PRIV EXEC mode. (Version 12.2 was used to supply this output.)
Example 3-6
167
show Commands
show ?
R1#s
access-expression
access-lists
accounting
adjacency
Adjacent nodes
aliases
arp
ARP table
async
backup
Backup status
bgp
BGP information
bridge
buffers
caller
cef
class-map
clock
configuration
connection
Show Connection
context
controllers
cops
COPS information
crypto
Encryption module
debugging
derived-config
dhcp
diag
dial-peer
dialer
dialplan
diffserv
Differentiated services
dlsw
dnsix
docsis
Show DOCSIS
drip
DRiP DB
dspu
dxi
atm-dxi information
entry
environment
exception
exception informations
file
flash:
frame-relay
Frame-Relay information
fras
FRAS Information
fras-host
gateway
history
continues
168
Example 3-6
html
idb
interfaces
ip
ipv6
IPv6 information
key
Key information
line
llc2
lnm
local-ack
location
logging
memory
Memory statistics
mgcp
microcode
modemcap
mpoa
ncia
netbios-cache
ntp
num-exp
parser
pas
pci
PCI Information
policy-map
ppp
printers
privilege
processes
protocols
registry
reload
rmon
rmon statistics
route-map
route-map information
running-config
sessions
sgbp
snmp
snmp statistics
spanning-tree
srcp
ssh
ssl
stacks
standby
startup-config
tcp
Example 3-6
169
terminal
traffic-shape
users
version
vlans
vtemplate
whoami
show ip route
R1#s
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is not set
131.108.0.0/16 is variably subnetted, 3 subnets, 2 masks
C
show ip route ?
R1#s
Hostname or A.B.C.D
bgp
connected
Connected
egp
eigrp
dhcp
igrp
isis
ISO IS-IS
list
IP Access list
mobile
Mobile routes
odr
ospf
profile
rip
static
Static routes
summary
supernets-only
continues
170
Example 3-7
vrf
Output modifiers
<cr>
show ip route ospf
R1#s
131.108.0.0/16 is variably subnetted, 3 subnets, 2 masks
O
R1#
Example 3-7 displays three IP routing entries. The more specic command, show ip route ospf,
displays only remote OSPF entries. Every IOS command can be used with the ? character to
display more options. In this case, the network administrator used it to identify the ospf option and
then typed show ip route ospf to view only remote OSPF entries.
Example 3-8 displays the output from the show ip access-lists IOS command.
show ip access-lists Command
Example 3-8
show ip access-lists ?
R1#s
<1-199>
<1300-2699>
WORD
Output modifiers
<cr>
show ip access-lists
R1#s
Standard IP access list 1
permit 131.108.0.0, wildcard bits 0.0.255.255
Extended IP access list 100
permit tcp any host 131.108.1.1 eq telnet
Example 3-8 enables the network administrator to quickly verify any dened access lists.
Example 3-8 includes two access lists, numbered 1 and 100.
Use the show debugging command to display any debug commands in use. This veries whether
any debugging is currently enabled.
Example 3-9 displays the sample output when debug ip routing is enabled.
Example 3-9
show debugging
R1#s
IP routing:
IP routing debugging is on
undebug all
R1#u
All possible debugging has been turned off
171
Currently, the router in Example 3-9 is enabled for debugging IP routing. To turn off the debugging,
apply the undebug all command, as shown in Example 3-9. This command ensures that all debug
options are disabled. You can specify the exact debug option you want to disable with the no
option; for example, to disable the IP packet option, the IOS command is no debug ip packet.
To display the hardware interfaces on the router, use the show interfaces command to explore the
physical and statistical state.
Example 3-10 displays the show interfaces command on a router named R1.
Example 3-10
show interfaces
R1#s
Ethernet0/0 is up, line protocol is up
Hardware is AmdP2, address is 0002.b9ad.5ae0 (bia 0002.b9ad.5ae0)
Internet address is 131.108.1.1/24
MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation ARPA, loopback not set
Keepalive set (10 sec)
ARP type: ARPA, ARP Timeout 04:00:00
Last input 00:00:00, output 00:00:01, output hang never
Last clearing of "show interface" counters 00:00:05
Queueing strategy: fifo
Output queue 0/40, 0 drops; input queue 0/75, 0 drops
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
1 packets input, 366 bytes, 0 no buffer
Received 1 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored
0 input packets with dribble condition detected
3 packets output, 202 bytes, 0 underruns(0/0/0)
0 output errors, 0 collisions, 0 interface resets
0 babbles, 0 late collision, 0 deferred
0 lost carrier, 0 no carrier
0 output buffer failures, 0 output buffers swapped out
Serial0/0 is up, line protocol is up
Hardware is PowerQUICC Serial
Internet address is 131.108.255.1/30
MTU 1500 bytes, BW 256 Kbit, DLY 20000 usec,
reliability 255/255, txload 1/255, rxload 1/255
Encapsulation FRAME-RELAY, loopback not set
Keepalive set (10 sec)
LMI enq sent
continues
172
Example 3-10
DSR=up
DTR=up
RTS=up
CTS=up
Example 3-10 displays a router with two Ethernet interfaces and one serial interface. Interface
Ethernet 0/0 is enabled and is currently running packets over the wire, while Ethernet 0/1 is not
173
enabled. Interface Serial 0/0 is congured for Frame Relay and the physical layer (Layer 1) details
are displayed. Other possible physical states are as follows:
Ethernet0/1 is up, line protocol is upThe Ethernet interface is active, sending and
receiving Ethernet frames.
Ethernet0/1 is up, line protocol is downThe Ethernet interface is cabled but no keepalives
are received, and no Ethernet frames are sent or received (possible cable fault).
Ethernet 0/1 is down, line protocol is upA physical condition is not possible. The
protocol is up only if the physical state of the line is up. The IOS image will never report this
condition because it is not a possible state of any IOS interface.
To display the system log (syslog), use the show logging command. Example 3-11 displays
sample output taken from a router named R1.
Example 3-11
show logging
R1#s
Syslog logging: enabled (0 messages dropped, 0 messages rate-limited, 0 flushes,
0 overruns)
Console logging: level debugging, 27 messages logged
Monitor logging: level debugging, 0 messages logged
Buffer logging: level debugging, 1 messages logged
Logging Exception size (4096 bytes)
Trap logging: level debugging, 31 message lines logged
Log Buffer (60000 bytes):
2d20h: %SYS-5-CONFIG_I: Configured from console by console
2d20h: %CLEAR-5-COUNTERS: Clear counter on all interfaces by console
Example 3-11 shows that 27 messages have been logged and that the logging level is debugging,
which entails the following log message types:
174
Two messages have also been displayed on the terminal: the rst message is a conguration
change, and the second appears when a PRIV EXEC user has cleared the counters on all the
interfaces.
The show route-map command displays any policy route maps congured. Policy route maps
override routing decisions on Cisco routers. Route maps basically allow an administrator to
change or modify a router to override the current IP routing table entries. The only caveat of this
is that the show ip route command does not show the administrator routes following a route map.
The show route-map command can be used instead.
The show version command displays the systems hardware conguration, the software version,
the names and sources of conguration les, and the boot images. Issue the show version EXEC
command to accomplish this. Example 3-12 displays sample output.
Example 3-12
show version
R1#s
Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-IK8O3S-M), Version 12.2(2)T,
RELEASE SOFTWARE (f
c1)
TAC Support: http://www.cisco.com/cgi-bin/ibld/view.pl?i=support
Copyright
Example 3-12 displays a number of key components and identies the hardware installed on the
router. For example, the Cisco IOS software version is 12.2T, the routers uptime is 2 days, 20
175
hours, 15 minutes, and the memory installed on the router is 64 MB. There is 16 MB of System
Flash, and the current conguration register is 0x2102.
NOTE The alias command allows you to create a custom shortcut to an IOS command so that
the EXEC user does not have to type the complete IOS command. In addition to these custom
commands that you might dene, there are some predened shortcut commands already. For
example, show ip route is already dened in IOS with the shortcut sh ip ro. You can dene your
own alias with the following global IOS command:
alias EXEC alias-name IOS-command
help
logout
ping
resume
show
undebug
where
For example, you could make the command ospf display only OSPF routes by issuing the
following command:
alias EXEC ospf show ip route ospf
176
Remember to turn off console logging when you are done troubleshooting the problem. The router
will continue to send to the console even if no one is there, tying up valuable CPU resources.
On virtual lines (vty lines), you must enable the terminal monitor command to view the debug
output. You use vty lines when you telnet to a remote Cisco router.
NOTE Refer to the Cisco IOS Debug Command Reference at the following URL for the most
recently updated debug command information:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122sup/122debug/
index.htm
When debugging data, you must also be aware of the switching method used by the router (for
example, fast or process switches) because the CPU will use the same method when sending
debug output to the console or vty line.
The ip route-cache IOS command with no additional keywords enables fast switching. When
debug ip packet is enabled, make sure you disable fast switching (no ip route-cache) so that
you can view packet-by-packet ow through the router. Search Cisco.com for the keywords
process and fast switching for more details on switching methods. The following URL
provides quality information on switching methods available on Cisco 7200 routers:
http://www.cisco.com/en/US/customer/products/sw/iosswrel/ps1831/
products_conguration_guide_ chapter09186a00800ca6c7.html#xtocid6 . Please note you
must have a valid CCO login for this link.
Also make sure you check out the Cisco Express Forwarding overview for a discussion on CEF
at the same link.
Table 3-4 displays the debug commands and the system debug message feature.
Table 3-4
Purpose
show debugging
debug ?
debug command
177
Example 3-13 displays the list of debug command options covered in this section.
Example 3-13
debug ?
R1#d
all
ip
IP information
list
debug ip ?
R1#d
audit
auth-proxy
bgp
BGP information
cache
IP cache operations
cef
IP CEF operations
cgmp
dhcp
drp
dvmrp
egp
EGP information
eigrp
IP-EIGRP information
error
IP error debugging
flow
ftp
FTP dialogue
html
HTML connections
http
HTTP connections
icmp
ICMP transactions
igmp
igrp
IGRP information
inspect
interface
mbgp
MBGP information
mcache
mhbeat
mobile
IP Mobility
mpacket
mrm
mrouting
msdp
mtag
nat
NAT events
nbar
ospf
OSPF information
packet
peer
pim
policy
Policy routing
postoffice
rgmp
continues
178
Example 3-13
rip
routing
rsvp
rtp
RTP information
scp
Secure Copy
sd
security
IP security options
socket
Socket event
ssh
tcp
TCP information
tempacl
IP temporary ACL
trigger-authentication
Trigger authentication
udp
urd
wccp
WCCP information
The rest of this section covers the debug commands shaded in Example 3-13.
CAUTION The CPU system on Cisco routers gives the highest priority to debugging output.
For this reason, debugging commands should be turned on only for troubleshooting specic
problems or during troubleshooting sessions with technical support personnel. Excessive
debugging output can render the system inoperable.
Try to use the most specic debug command possible to reduce the load on the CPU. For
example, the debug all command will surely disable a router. You should use the debug all
command only in a lab environment.
Typically, the console port is used for debugging major faults because the CPU places
debugging messages to the console port as the highest priority. Sometimes, debugging messages
can overwhelm a network administrators ability to monitor the router, and the IOS command
logging synchronous can limit the messages to the console.
When synchronous logging of unsolicited messages and debug output is turned on (the line
console is congured with the logging synchronous IOS command), unsolicited Cisco IOS
software output is displayed on the console or printed after solicited Cisco IOS software output
is displayed or printed. Unsolicited messages and debug output are displayed on the console
after the prompt for user input is returned. This keeps unsolicited messages and debug output
from being interspersed with solicited software output and prompts. After the unsolicited
messages are displayed, the console displays the user prompt again. The IOS commands
logging trap can be used to limit the logging of error messages sent to syslog servers to only
those messages at the specied level (levels range from 0 to 7). The highest level is 7; level 7
encompasses all possible levels from 0 to 7. The lowest level is 0, or emergencies (system is
unusable).
179
The debug all command turns on all possible debug options available to a Cisco router. This will
crash any router in a busy IP network, so we strongly recommended that you never apply this
command in a working network environment.
Example 3-14 displays the options when enabling IP debugging through a Cisco router.
Example 3-14
debug ip packet ?
R1#d
<1-199>
Access list
<1300-2699>
detail
<cr>
You can dene an access list so that only packets that satisfy the access list are sent through to the
console or vty line.
Figure 3-3 displays a typical example in which a user (Simon) on one Ethernet (Ethernet 0/0) is
advising you that packets from users on Ethernet 0/1 (Melanies PC) are not reaching each other.
To view the routing packet ow through Router R1, you can debug the IP packets and use a
standard access list or an extended one (access lists are covered later in this chapter).
Figure 3-3
131.108.1.100/24
131.108.2.100/24
R1
E0/0
User Simon
E0/1
User Melanie
interface Ethernet0/0
ip address 131.108.1.1 255.255.255.0
interface Ethernet0/1
ip address 131.108.2.1 255.255.255.0
To view the IP packet ow and ensure that you view only packets from Melanies PC to Simons
PC, you can dene an extended access list matching the source address, 131.108.2.100 (Melanies
PC), to the destination address, 131.108.1.100 (Simons PC).
180
config terminal
R1#c
Enter configuration commands, one per line.
Access list
<1300-2699>
detail
<cr>
debug ip packet 100 ?
R1#d
detail
<cr>
debug ip packet 100 detail
R1#d
IP packet debugging is on (detailed) for access list 100
Applying the exact debug command for only trafc generated from one device to another ensures
that the router is not using too many CPU cycles to generate the debug output to the console. When
a ping request is sent from Melanies PC to Simons PC, debug output displays a successful ping
request.
Example 3-16 displays the sample output matching access list 100 when ve ping packets are sent.
Example 3-16
Ping Request
ping 131.108.1.100
R1#p
2d22h: IP: s=131.108.2.100 (local), d=131.108.1.100 (Ethernet0/0), len 100,
sending
2d22h:
Example 3-16
181
2d22h:
When debugging with a specic IP access list, be sure to stop all debugging options with the
undebug all IOS command before removing IP access lists; Cisco IOS routers are prone to failure
if the access list is removed before the debugging options are disabled. For example, no debug
output will be captured and sent to the console if no access list is dened, but one is referenced by
a debug command (for example, debug ip packet 100, when access list 100 is not dened). Also,
remember that the default behavior for Cisco IOS access lists is to deny trafc that is not
specically permitted. Make sure you permit only trafc for which you are interested in viewing
debug messages like the example shown in Figure 3-3.
The debug output demonstrates that ve packets were successfully routed from Ethernet 0/1 to
Ethernet 0/0. (Note there are 10 entries in Example 3-16the ICMP echo and ICMP reply
packets.) Therefore, the network fault reported by the users points to an application error rather
than a network error.
Table 3-5 displays the meaning of the codes in Example 3-16.
Table 3-5
Meaning
IP:
Indicates an IP packet
Ping request
Len 100
NOTE The detail option allows for further detail in the debug output.
Using the route cache is often called fast switching. The route cache allows outgoing packets to
be load-balanced on a per-destination basis rather than on a per-packet basis.
182
NOTE The output modier | (pipe) is a great time saver. For example, the command show
running-cong | begin router ospf 100 shows only the running conguration starting from the
router ospf 100 part instead of showing the entire output.
Password Recovery
Sometimes, the Cisco enable or secret password is unknown and thus you must use password
recovery to attain or change the enable or secret password.
Password recovery allows the network administrator to recover a lost or unknown password on a
Cisco router. For password recovery, an administrator must have physical access to the router
through the console or auxiliary port. When an EXEC user enters an incorrect enable password,
the user receives an error message similar to the message shown in Example 3-17; the password
entered is Cisco, which is displayed as *****.
Example 3-17
enable
R1>e
Password: ******
Password: *****
Password: *****
% Bad passwords
R1>
When a user receives a % Bad passwords message, they can neither access the advanced command
set (in this case, enabled mode) nor make any conguration changes. Fortunately, Cisco provides
the following method to recover a lost password without losing conguration les:
Step 1
Step 2
Press the Break key (for Windows 2000, press Control-Break) to enter into boot
ROM mode. The Control-Break key sequence must be entered within 60 seconds of
the router restarting after a power cycle. Other terminal applications will have their
own sequence, so make sure that you consult the help les.
Step 3
After you are in ROM mode, change the conguration register value to ignore the
startup conguration le that is stored in NVRAM. Use the o/r 0x2142 command
(2500 series routers). For Cisco IOS 12.2T (2600 models and higher) or later the
command is confreg 0x2142.
Step 4
Password Recovery
183
Step 5
After the router has nished booting up (you will be prompted to enter the setup
dialoganswer no or press Control-c to abort the setup dialog) without its startup
conguration, look at the show startup-cong command output. If the password is
encrypted, move to Step 6, which requires you to enter enabled mode (type enable
and you will not be required to enter any password) and copy the startup conguration
to the running conguration with the copy startup-cong running-cong command.
Then, change the password. If the password is not encrypted and the enable secret
command is not used, simply document the plain-text password and go to Step 8.
Step 6
Because the router currently has no conguration in RAM, you can enter enabled
mode by simply typing enable (no password is required). Copy the startup
conguration to RAM with the IOS command copy startup-cong running-cong.
Step 7
Step 8
Change the conguration register to 0x2102 (default) with the global IOS command
cong-register 0x2102. Note that this IOS command is automatically saved and
there is no need to write changes to NVRAM when modifying the conguration
register even though the IOS image will prompt you to save when you do perform a
reload.
Step 9
After saving the conguration, you can optionally reload the router.
Step 10
Check the new password if it is not encrypted. If the password is encrypted, simply
enter enabled mode and verify your password.
These are the generic steps for password recovery on a Cisco router. Some commands and steps
might be slightly different depending on the hardware platform. Refer to the Password Recovery
Procedures index (http://www.cisco.com/warp/public/474/) for more information on each
platform.
To review, look at an example. Assume that you are directly connected to Router R1 and you do
not know the enable password. You power cycle the router and press the Control-Break key
combination (the Esc key) to enter boot mode.
Example 3-18 shows the dialog displayed by the router after a break is issued.
Example 3-18
continues
184
Example 3-18
D /S M L V
E /S M L
G [address]
Begin EXECution
Initialize
Stack trace
T function
As you can see in Example 3-18, the ? symbol can display all the available options. To view the
current conguration register, issue the e/s 2000002 command, which displays the value of the
conguration register. Example 3-19 displays the current conguration register.
Example 3-19
/s 2000002
>e/
! This command will display the current configuration register
2000002: 2102
! Type q to quit
>
The default value for the conguration register on Cisco IOS routers is 2102. For illustrative
purposes, change the register to 0x2142, which tells the IOS image to ignore the conguration in
NVRAM.
The command to change the conguration register in Boot ROM mode is o/r 0x2142 followed by
the initialize (i) command, which reloads the router. Example 3-20 displays the conguration
change and the initialization of the router from boot ROM mode. New ROMMON versions require
a different command to set the conrmation register, namely confreg 0x2142 (or follow the menu
system by typing confreg).
Example 3-20
>o/r 0x2142
>i
Password Recovery
185
The i command reboots the router and ignores your startup conguration because the
conguration register has been set to 0x2142. The aim here is to change the password without
losing your original conguration. Example 3-21 shows a truncated display by the Cisco IOS
image after the router is reloaded.
Example 3-21
Router#
Notice that the router reverts to the default conguration. Enter the enable command to enter
PRIV EXEC mode. In this example, you are not prompted for the enable password because there
is not one; by default, no enable password is congured when a Cisco IOS router boots from the
default conguration (no passwords are congured in this default state).
You can view the startup conguration by using the show startup-cong command (or show
cong in Cisco IOS versions predating version 10.3), as shown in Example 3-22.
186
Example 3-22
show startup-config
Router#s
Using 1968 out of 32762 bytes
! Last configuration change at 16:35:50 UTC Tue May 18 2002
! NVRAM config last updated at 16:35:51 UTC Tue May 18 2002
version 2.2
service password-encryption
hostname R1
! Note there is no secret password either
enable password 7 05080F1C2243
...
As you can see in Example 3-22, the enable password is encrypted. In instances where the
password is not encrypted, you could view the password by using the show startup-cong
command. When a password is encrypted, you must copy the startup conguration to the running
conguration and change the password manually by using the following IOS command:
copy startup-config running-config
At this point, you are still in privileged mode, so you can now enter global conguration mode to
change the password back to its original setting (cisco, in this instance).
Example 3-23 displays the password change in global conguration mode set to the new password
of cisco.
Example 3-23
You complete password recovery by changing the conguration register back to the default value
(0x2102). The conguration register command is the only IOS command that you can type
without the need to save the conguration, because IOS image automatically changes the setting
regardless.
187
NOTE If a secret password is also congured, you must use the enable secret password IOS
command because the secret password overrides the enable password. Example 3-23 includes
no secret password, so you can use the enable password command.
When the Cisco IOS router reloads, it loads the new conguration le with the password set to
cisco. To ensure that you can view the new password when the router reloads, optionally turn off
encryption with the command no service password-recovery. When the router reloads and is
running, you must administratively activate all interfaces because by default the interface is shut
down.
Telnet 131.108.1.2
R1#T
Trying 131.108.1.2 ... Open
User Access Verification
Password: xxxxx
R2>
Cisco routers can have passwords set on all operation modes, including the console port, privilege
mode, and virtual terminal access. To set a console password to prevent unauthorized console
access to the router, issue the commands shown in Example 3-25.
NOTE All passwords are case sensitive.
188
Example 3-25
line con 0
R1(config)#l
password cisco
R1(config-line)#p
!You can also set a password on the auxiliary port
line aux 0
R1(config)#l
password cisco
R1(config-line)#p
To set the privilege mode password, you have two options: the enable password and the secret
password. To set these passwords, use the respective commands listed in Example 3-26.
Example 3-26
The command to set an enable password is enable password password. You can also set a more
secure password, called a secret password, which is encrypted when viewing the conguration
with the enable secret password command.
The enable secret password IOS command overrides the enable password password command.
Cisco IOS does permit you to congure the same password if you apply both commands but warns
you that you should apply different passwords. It is a good security practice to use only the secret
password.
In Example 3-26, the secret password will always be used. Now, issue the show running-cong
command to display the conguration after entering the enable and secret passwords in Example 3-26.
Example 3-27 displays the output from the show running-cong IOS command after entering
enable and secret passwords.
Example 3-27
show running-config
R1#s
Building configuration
Current configuration:
!
version 12.2
!
hostname R1
!
enable secret 5 $1$Aiy2$GGSCYdG57PdRiNg/.D.XI.
enable password cisco
189
Example 3-27 shows that the secret password is encrypted (using a Cisco proprietary algorithm),
while the enable password is readable. This setup enables you to hide secret passwords when the
conguration is viewed.
If you want, you can also encrypt the enable password by issuing the service password-encryption
command, as displayed in Example 3-28. Cisco uses the MD5 algorithm to hash the secret
password. You can easily reverse-engineer the hashed password (for example, $1$Aiy2$GGSCYd
G57PdRiNg/.D.XI.) with a number of open-source tools that can brute-force or apply dictionary
attacks to the secret hash and attain the password. For the simple user, though, MD5 might be just
enough to stop an intruder from gaining access and going to the next router.
Example 3-28
service password-encryptio n
R1(config)#s
The service password-encryption command encrypts all passwords issued to the router by using
a simple Vigenere cipher, which can be easily reversed. Example 3-29 shows an example of how
these passwords appear when the conguration is viewed after all passwords have been encrypted.
Example 3-29
show running-config
R1#s
Building configuration...
Current configuration:
!
service password-encryption
version 12.2
hostname R1
!
enable secret 5 $1$Aiy2$GGSCYdG57PdRiNg/.D.XI.
enable password 7 0822455D0A16
NOTE Note the digits, 5 and 7, before the encrypted passwords. The number 5 signies that
the MD5 hash algorithm is used for encryption, whereas the number 7 signies a weaker
algorithm. You are not expected to know this for the written exam, but it is valuable knowledge
for troubleshooting complex networks. In fact, a great network engineer is measured by his
well-dened troubleshooting techniques, and not by how many CCIE lab exams he has passed.
Notice in Example 3-29 that both the secret and enable passwords are encrypted. If you enable the
service password-encryption command in global conguration mode, all passwords will be
encrypted and will not be viewable when displaying the conguration on the Cisco router.
190
The nal Cisco password you can set is the virtual terminal password. This password veries
remote Telnet sessions to a router. Example 3-30 displays the commands necessary to set the
virtual terminal password on a Cisco router.
Example 3-30
line vty 0 4
R4(config)#l
password ccie
R4(config-line)#p
If you issue the no login command below the virtual terminal command (line vty 0 4), remote
Telnet users are not asked to supply a password and automatically enter EXEC mode. Example
3-31 displays the Telnet session dialog when the no login command is entered.
Example 3-31
telnet 1.1.1.1
R1#t
Trying 1.1.1.1 ... Open
R2>
Keep in mind that the preceding setup is not a secure access method for a router network.
IP Access Lists
Standard and extended access lists lter IP trafc. An access list is basically a set of permit or
deny statements. Standard access lists control IP trafc based on the source address only.
Extended access lists can lter on source and destination addresses. Extended access lists can also
lter on specic protocols and port numbers. This section covers how a Cisco router handles
access lists.
IP Access Lists
Figure 3-4
191
Drop
Packet
No
Incoming
IP Packet
Access
list
configured?
Yes
Is
packet
permitted?
Yes
Process
IP Packet
No
Process
IP Packet
NOTE If you do not apply the keyword out or in when dening an IP lter on an interface,
the default action is to apply the lter on the outbound trafc. When applying an access list to
an interface on a router running Cisco IOS 12.2T, you must dene whether it is applied to
outbound or inbound to the interface.
Standard IP access lists range from 1 through 99 and 1300 through 1999.
Extended IP access lists range from 100 through 199 and 2000 through 2699. When conguring
access lists on a router, you must identify each access list uniquely within a protocol by
assigning either a name or a number to the protocols access list.
192
Cisco IOS software also permits remarks so that administrators can easily manage large code
blocks of access list lines. The following IOS output displays the available options:
access-list 8 ?
R3-1720a(config)#a
deny
Specify packets to reject
permit Specify packets to forward
remark Access list entry comment
Description
access-list-number
deny
permit
source-address
source-wildcard
(optional)
After creating the access list as described in Table 3-6, you must apply the access list to the
required interface by using the following command:
ip access-group {access-list-number | name} {i
in | out }
Description
access-list-number
A number in the range from 1 through 99 and 1300 through 1999 that
denes a standard access list number.
name
If you are using named access lists, that name will be referenced here.
in
out
Keyword that designates the access list as an outbound packet lter. This is
the default action. For IOS images versions below 12.2T, the in or out
keyword must be dened, there is no longer a default option.
IP Access Lists
193
The wildcard mask previously mentioned in the access-list command matches the source address.
When the wildcard mask is set to binary 0, the corresponding bit eld must match; if it is set to
binary 1, the router does not care to match any bit or it is an insignicant bit. For example, the
mask 0.0.255.255 means that the rst two octets must match, but the last two octets do not need
to matchhence, the commonly used phrases care bits (0s) and dont care bits (1s).
For further clarication, look at some examples of using access lists.
Suppose you have found a faulty NIC with the address 141.108.1.99/24. You have been asked to
stop packets from being sent out Serial 0 on your router but to permit everyone else (access-list 1
permit any). In this situation, you need to deny the host address 141.108.1.99 and permit all other
host devices. Example 3-32 displays the access list that fullls this requirement.
Example 3-32
Next, you would apply the access list to lter outbound (the keyword out is supplied) IP packets
on the Serial 0 interface. Example 3-33 applies the access list number 1 to the serial interface
(outbound packets). You can be a little wiser and lter the incoming packets on the Ethernet
interface. This ensures that the packet is immediately dropped before it is processed by the CPU
for delivery over the serial interface. Both examples are displayed in Example 3-33.
Example 3-33
Interface Ethernet0
ip acce ss-group 1 in
interface Se rial 0
ip access-group 1 o ut
Now look at a more complex example of using a standard access list. Suppose you have 16
networks ranging from 141.108.1.0 to 141.108.16.0, as shown in Figure 3-5.
194
Figure 3-5
Block
Access to
Internet
Odd
Networks
141.108.1.0
141.108.3.0
141.108.5.0
141.108.7.0
141.108.9.0
141.108.11.0
141.108.13.0
141.108.15.0
Ethernet
segment
Serial0/0
Internet
Even
Networks
141.108.2.0
141.108.4.0
141.108.6.0
141.108.8.0
141.108.10.0
141.108.12.0
141.108.14.0
141.108.16.0
Accounting
Department
access-list permit 141.108.2.0 0.0.254.255
You have assigned even subnets (2, 4, 6, 8, 10, 12, 14, and 16) to the Accounting department and
odd subnets (1, 3, 5, 7, 9, 11, 13, and 15) to the Sales department. You do not want the Sales
department to access the Internet, as shown in Figure 3-5. To solve this issue, you congure a
standard access list. Figure 3-5 displays a simple requirement to block all odd networks from
accessing the Internet.
You could congure the router to deny all the odd networks, but that would require many
conguration lines.
NOTE Access lists are CPU-process-intensive because the router has to go through every
entry in the access list for each packet until a match is made. If you want to determine the actual
effect an access list has on your router, compare the CPU processes before and after activating
an access list. Remember to check on a regular basis to see the big picture.
Instead, permit only even networks (2, 4, 6, and so forth) with one IOS conguration line. To
accomplish this, convert all networks to binary to see if there is any pattern that you can use in the
wildcard mask.
IP Access Lists
195
Table 3-8 displays numbers 1 through 16 in both decimal and binary format.
Table 3-8
Binary
00000001
00000010
00000011
00000100
00000101
00000110
00000111
00001000
00001001
10
00001010
11
00001011
12
00001100
13
00001101
14
00001110
15
00001111
16
00010000
Notice that odd networks always end in the binary value of 1, and even networks end with 0.
Therefore, you can apply your access lists to match on the even network and implicitly deny
everything else. Even numbers will always end in binary 0. You do not care about the rst 7 bits,
but you must have the last bit set to 0. The wildcard mask that applies this condition is 111111110
(1 is dont care and 0 is must match; the rst 7 bits are set to 1, and the last bit is set to 0).
This converts to a decimal value of 254. The following access list will permit only even networks
(from 2, 4, 6,..to 254):
access-list 1 permit 141.108.2.0 0.0.254.255
The preceding access list will match networks 2, 4, 6, 8, 10, 12, 14, and 16 in the third octet. The
default action is to deny everything else, so only even networks will be allowed, and odd networks
are blocked by default. Next, you would apply the access list to the inbound interface. Example 3-34
describes the full conguration.
196
Example 3-34
Hostname R1
interface Seria l0/0
ip access-group 1 in
access -list 1 permit 141.108.2. 0 0.0.254.255
You can be a little wiser and lter the incoming packets on the Ethernet interface. This ensures that
the packet is immediately dropped before it is processed by the CPU for delivery over the serial
interface. This conserves critical CPU cycles.
access-list access-list-number [d
dynamic dynamic-name
timeout minutes]] {d
deny | permit} icmp source source-wildcard
[t
icmp-type [i
icmp-code ]
destination destination-wildcard [i
icmp-message] [p
precedence precedence] [t
tos tos] [l
log ]
[i
For Internet Group Management Protocol (IGMP) trafc, use the syntax shown in Example 3-36.
Example 3-36
access-list access-list-number [d
dynamic dynamic-name
timeout minutes]] {d
deny | permit} igmp source source-wildcard
[t
igmp-type ]
destination destination-wildcard [i
precedence precedence] [t
tos tos] [l
log ]
[p
access-list access-list-number [d
dynamic dynamic-name
timeout minutes]] {d
deny | permit} tcp source source-wildcard
[t
[operator port [port]] destination destination-wildcard
established] [p
precedence precedence]
[operator port [port]] [e
tos tos] [l
log ]
[t
IP Access Lists
197
For User Datagram Protocol (UDP) trafc, use the syntax shown in Example 3-38.
Example 3-38
access-list access-list-number [d
dynamic dynamic-name
timeout minutes]] {d
deny | permit} udp source source-wildcard
[t
[operator port [port]] destination destination-wildcard
precedence precedence] [t
tos tos] [l
log ]
[operator port [port]] [p
As you can see, extended access lists have a range of options to suit any requirement. The most
often used extended access list options are as follows:
protocolSpecies the protocol you are ltering. Some common options include eigrp, gre,
icmp, igmp, igrp, ip, ospf, tcp, and udp. You can also dene the protocol number with a valid
protocol value.
You are expected to demonstrate your understanding of standard and extended access lists. You
are not expected to memorize the available options in an extended access list. The options are
provided in this chapter for your reference only. When constructing access lists, the built-in help
feature (?) is extremely useful.
Here are a few more complex examples of access lists.
Example 3-39
eq smtp
continues
198
Example 3-39
In Example 3-39, the access list numbered 100 is not concerned with specic host addresses or
networks, but rather ranges of networks.
The any keyword is shorthand for 0.0.0.0 255.255.255.255, which means that the devices address
is irrelevant. This address can be entered in shorthand as any. If any IP packet arrives to the router
and does not match the specied criteria, the packet is dropped.
The Cisco CD-ROM documentation provides additional quality examples of access lists. You
should take some time to study the Cisco examples available on the CD-ROM and at Cisco.com
under the Technical Documentation quick link.
Access lists are difcult to manage because you cannot explicitly delete a specic line; you must
rst remove the entire access list and re-enter the new access list with the correct order for
numbered access lists. For a large access list that might contain over 1000 lines of code, any
variations are completed on a TFTP server and copied to the startup conguration. I have worked
with some access lists that were 2500 lines in length and took over 5 minutes to load on Cisco
routers. On the other hand, named access lists allow you to determine where in the access list the
new line will be placed. In a named access list, you must rst delete the lines up to where you want
to add the new lines and then re-add the lines you deleted. Simply search for the keywords IP
named access lists for more conguration details on named access lists at Cisco.com.
IP Named Access Lists might be a likely scenario for the CCIE security lab exam, so ensure that
you are fully comfortable with named and numbered access lists for the laboratory exam.
Now that you are familiar with some of the best practices used in securing Cisco IOS routers, the
next section presents the best practices used in Layer 2 switched networks, in particular Cisco
Catalyst switches.
NOTE As you may have noticed, the CCIE Security blueprint at times is a little difcult to
understand. Having taken the CCIE Security examination a number of times has made me aware
of exactly how the blueprint topics actually match up to examination content. It is the aim of the
next few sections to ensure that you have the information you need to answer possible questions
about security on switches. Having covered routing security, it is imperative to concentrate on
the new content, namely securing Layer 2 devices in a Cisco-powered network.
199
VLAN hopping
200
Figure 3-6
AB
t2
Por
MAC B
Por t
3
Port 1
Switch
MAC A
CAM Table
Port 1 A
Port 2
Port 3
-
MAC C
Step 2
BA
t2
Por
Port 1
Por t
3
MAC B
CAM Table
Port 1 A
Port 2 B
Port 3
-
Switch
MAC A
MAC C
Step 3
CA
t2
Por
MAC B
Por t
3
Port 1
MAC A
Switch
CAM Table
Port 1 A
Port 2 B
Port 3 C
MAC C
Figure 3-6 displays the typical CAM table population by a Cisco switch. When Device A, with
MAC address A, sends a frame destined for Device B, with MAC address B, the switch looks at
the source MAC address from Port 1 and installs MAC address A into the CAM table immediately.
Because this is the rst frame, the switch does not know where Device B is, so the frame is copied
to all other ports (2 and 3 in Figure 3-6) and awaits a response.
Device B responds to the frame from Device A and the switch installs Device Bs MAC address
into the CAM table. Eventually, when Device C sends a frame, the CAM table will contain all
three devices.
Most CAM tables are limited in size, depending on the switch hardware, based on memory
available. It is not difcult to ll a CAM table on a Cisco switch. If enough entries are entered into
201
the CAM table before other entries are expired (based on an idle timer), the CAM table lls up to
the point that no new entries can be accepted. This is how an intruder typically attacks a switch
by sending multiple frames with different source addresses attempting to overow the CAM table
so that authorized devices can no longer reside in the CAM table, which causes the switch to
continuously send frames out all ports as the default until the CAM table discovers which devices
reside on what interfaces.
Typically a network intruder will ood the switch with a large number of invalid-source MAC
addresses until the CAM table lls up. This renders your powerful Layer 2 switch as a hub where
all frames are repeated out all ports or interfaces.
Figure 3-7 displays the invalid-source MAC addresses populating the CAM table.
Figure 3-7
Port 1
MAC A
t2
Por
Por t
3
C
A
I
F
D
AI
G B
B
MAC B
CAM Table
Port 1 A
Port 2 B
Port 3
-
Hacker
MAC C
Step 2
Switch
t2
Por
Port 1
H
MAC A
MAC B
Por t
3
AI
CAM Table
Port 1 A
Port 2 B
Port 3 CDFG
B
Hacker
MAC C
Step 3
Switch
Port 1
t2
Por
MAC B
Por t
3
MAC A
Attack continues with
different Source MAC addresses.
Hacker
MAC C
CAM Table
Port 1 A
Port 2 B
Port 3 CDFGHI
202
Figure 3-7 displays an intruder device labeled with the PC Device C, sending multiple packets
with various source addresses labeled C, D, E, F, G, H, and I.
By continuously sending packets, the CAM table for Port 3 will continue to grow. A simple tool,
freely available on the Internet, named Macof oods a switch with packets containing randomly
generated source and destination MAC and IP addresses. The switch will keep building the CAM
table until its memory runs out, rendering the switch to certain failure.
The only method to mitigate this style of attack is to enable MAC port security by conguring your
switch ports with port security. For a large network, it is advisable to congure dynamic port
security, whereby you allow dynamic security to take over any static-based conguration and
allow only one MAC address to connect to the port. In an IP telephony environment (like Cisco
AVVID), you would need to allow at least two MAC addresses per port, one for the IP phone and
one for the PC attached to the phone.
Example 3-40 displays the command syntax to enable port security on a Catalyst-based operating
system.
Example 3-40
Example 3-41 displays the equivalent commands for Cisco IOSbased switches.
Example 3-41
VLAN Hopping
VLAN hopping is a network attack whereby an end system sends out packets destined for a system
on a different VLAN that cannot normally be reached by the end system. Typically, for a device
to reach another device in a different VLAN, a Layer 3 device such as a router or Layer 3aware
switch is required. The attacker manipulates the frame and sends the trafc based on a different
VLAN ID. The attacker may even attempt to be a trunk port and send 802.1q frames with data
inside those frames.
203
Switch spoong is a common technique whereby the attacker emulates a trunk port by using InterSwitch Link (ISL) or 802.1q frames. By using this method, the attacker can become a member of
any VLAN congured in the VLAN Trunking Protocol (VTP) domain.
To mitigate this form of attack, it is highly recommended to turn off trunking on all ports that will
not be enabled for Cisco ISL or the IEEE 802.1q trunking methods.
Attackers may even use a double tagging mechanism whereby the initial frame is tagged with two
802.1q frames so that when the rst switch removes the header, the end device is still presented
with a frame with an 802.1q header, as Figure 3-8 demonstrates.
Figure 3-8
Switch
Figure 3-8 shows the method of double tagging whereby the transmitted frames have two 802.1q
(or ISL) headers in order to forward the frames to the wrong VLAN. The rst switch to encounter
the double-tagged frame (1) strips the rst tag off the frame and forwards the frame. The result is
that the frame is forwarded with the inner 802.1q tag out all the switch ports (2) including trunk
ports congured with the native VLAN of the network attacker. The second switch then forwards
the packet to the destination based on the VLAN identier in the second 802.1q header. This
enables a device in one VLAN to communicate with a device in a separate VLAN. This is an
extremely vulnerable situation for your network, because now your frames do not communicate
to the legitimate Layer 3 device but rather to a rouge device where all sorts of sensitive data could
be compromised.
204
To mitigate this potential issue, all non-trunking ports should be disabled (that is, trunking is
disabled) and congured as access ports or interfaces that only permit devices such as PCs or Voice
over IP (VoIP) phones.
Another common technique is to disable all ports not in use on the particular switch in question.
Example 3-42 displays the Catalyst OS and IOS congurations that disable trunking.
Example 3-42
! Catalyst OS
CatOS>(enable) set trunk mod_num/port_num off
! IOS Based switches
switchport mode access
IOS#(config-if)s
Example 3-43
205
! Catalyst OS
set spantree portfast mod/num bpdu-guard enable
CatOS> (enable)s
! IOS enabled Switch
spanning-tree portfast bpd uguard enable
CatSwitch-IOS(config)#s
AB
t2
Por
MAC B
Por t
3
Port 1
Switch
MAC A
CAM Table
Port 1 A
Port 2 B
Port 3 C
B
Hacker
MAC C
Step 2
BA
t2
Por
Port 1
Por t
3
Switch
MAC A
MAC B
CAM Table
Port 1
Empty
Port 2
B
Port 3
AC
B
Hacker
MAC C
Step 3
B
t2
Por
Port 1
MAC A
MAC B
Por t
3
Switch
A B, intruder sends
with Source of MAC A
Hacker
MAC C
CAM Table
Port 1
Empty
Port 2
B
Port 3
AC
206
Step 1 in Figure 3-9 demonstrates the three discovered devices (Devices A, B, and C) in the CAM
table. Device C is an intruder. After spoong the MAC address of Device A (remember, the initial
frame when a CAM table is empty is sent to all ports except the source port), Device C sends out
a frame with the source address of MAC A, with a new spoofed IP address. The switch relearns
the MAC address and changes the CAM table entries in Step 2 of the attack. Now when Device B
wishes to communicate to the legitimate Device A, the switch sends the packet according to the
CAM table, which is now Port 3 or the attacking PC. Until Device A resends packets, the data ow
will remain and the attacker will receive and view active data. By ensuring that any ARP requests
are replied to, the intruder can maintain the connection until manual intervention occurs from the
network administrator.
Mitigating this form of attack takes a little more design because the attacker is far more intelligent.
To start with, you must enable port security. Example 3-41, earlier in the chapter, displays how
this can be achieved.
However, as with the CAM table overow attack mitigation, specifying a MAC address on every
port is an unmanageable solution. Another solution would be to use private VLANs to help
mitigate these network attacks.
Using private VLANs is a common mechanism to restrict communications between systems on
the same logical IP subnet. This is not a fool-proof mechanism. Private VLANs work by limiting
the ports within a VLAN that can communicate with other ports in the same VLAN. To congure
a private VLAN on switch-based Cisco IOS or Catalyst OS, follow these steps:
Step 1
Step 2
Step 3
The best method, in conjunction with port security, is to use DHCP snooping mechanisms to
ensure that only valid DHCP servers are enabled across your network. One DHCP snooping
mechanism is to permit only trusted DHCP messages to ow between client PC and authorized
DHCP servers. The ideal solution to mitigate various ARP-based network exploits is the use of
DHCP snooping along with Dynamic ARP Inspection (DAI).
207
When a client sends out a broadcast message for an IP address, the intruders PC also sees the
request, of course, because broadcasts are sent out to all interfaces or ports except the source port.
So, in effect, the network must not allow DHCP offers, acknowledgements, or negative
acknowledgements (DHCPOffer, DHCPAck, or DHCPNak) to be sent from untrusted sources.
Illegal DHCP messages are messages received from outside the network or rewall. The DHCP
snooping binding table contains the MAC address, IP address, lease time, binding type, VLAN
number, and interface information corresponding to the local untrusted interfaces of a switch; it
does not, however, contain information regarding hosts interconnected with a trusted interface. By
conguring trusted and untrusted DHCP sources, the switch can be congured to drop illegal
frames immediately. DHCP snooping will still not stop an intruder snifng for MAC addresses.
DAI determines the validity of an ARP packet based on the valid MAC addresstoIP address
bindings stored in a DHCP snooping database. This means that only valid MAC addresses are
permitted to reply to authorized devices on the network. Some really crafty attackers are out there
waiting to pounce on networks, and for a majority of them these features are not enabled, so it is
a gold mine in many parts of the world even in todays climate.
To enable DHCP snooping, the following commands are required. Example 3-44 enables DHCP
snooping. Notice that the only supported platforms are switches with Cisco IOSbased software.
Example 3-44
208
Additional features in Cisco IOSenabled switches can mitigate this attack by enabling DHCP
snooping. In additon to the defense shown in Example 3-44, IP source guard can provide
additional defense against attacks such as DHCP starvation and IP spoong. Like DHCP
snooping, IP source guard is enabled on untrusted Layer 2 ports. All IP trafc is initially blocked
except for DHCP packets captured by the DHCP snooping process. Once a client receives a valid
IP address from the DHCP server, a per-port and VLAN access control list (PACL) is applied to
the port. This restricts the client IP trafc to those source IP addresses congured in the binding.
Any other IP trafc with a source address other than the addresses in the binding will be ltered
and thrown away by the switch. Example 3-45 displays a sample conguration to help alleviate a
DHCP starvation attack.
Example 3-45
Example 3-45 enables DHCP snooping and ensures that any other IP trafc with a source address
other than the addresses in the binding will be ltered and dropped immediately.
There are, of course, many other techniques used by attackers. Other examples include using Cisco
Discovery Protocol (CDP), trying to manipulate VTP messages without password authentication,
and searching for vulnerabilities over wireless and telephony-based networks, as already discussed
in Chapter 1, General Networking Topics. Once you pass the written examination, make sure you
do not limit your knowledge to just those mechanisms presented here, because Cisco releases new
features almost daily to overcome new and even smarter techniques used by attackers.
The next section briey covers some of the overall security policy best practices that Cisco
recommends be designed and implemented in networks.
209
network security is to perform a risk assessment of the current network and then build a security
policy that considers that risk assessment. This risk assessment should be carried out on a regular
basis and improved when new vulnerabilities are discovered.
NOTE This section presents some of the SAFE recommendations in brief. The examination
is very light on this material.
Prior to implementing a security policy, you must do the following:
Create usage policy statementsInvolves outlining users roles and functions within an
organization. The main purpose of these statements is to ensure that the user communities
understand the security policy. The next step is to dene a usage policy for partners involved
within an organization. Finally, the administrators within the organization must have dened
procedures for user account management, policy enforcement, and a regular status review of
privileged users.
Conduct a risk analysisIdenties the risks to your current network, resources, and data
devices. This involves identifying resources within your network and assigning each critical
device an appropriate level of securitylow, medium, and high.
The security team in any organization has the fundamental responsibility of ensuring network
integrity. In fact, in some parts of the world, the chief information ofcer can be jailed for not
ensuring that the network is secure. The three primary areas of concern for security administrators
are the following:
Policy development
Practice
Response
In addition to the three key areas of policy development, ensure the security policy remains at the
forefront to protect data integrity by ensuring there is adequate preparation, prevention, and
response.
The following URL provides more details on a security teams core responsibilities and areas of
focus (please note requires a CCO login):
http://www.cisco.com/en/US/partner/tech/tk869/tk769/technologies_white_paper
09186a008014f945.shtml#t3
210
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of this
chapters key concepts. If you are already comfortable with the topics in this chapter and decided
to skip most of the Foundation Topics material, the Foundation Summary will help you recall
a few details. If you just read the Foundation Topics section, this review should help further
solidify some key facts. If you are doing your nal preparation before the exam, the Foundation
Summary offers a convenient and quick nal review.
Table 3-9
Description
show ash
199, 13001999.
100199, 20002699.
0x2102
IOS syntax:
To ignore the startup conguration, use 0x2142.
cong-register value
show version
Table 3-10
Description
show debugging
debug ?
undebug all
Foundation Summary
Table 3-11
Table 3-12
211
Description
Press the Break key (for Windows 2000, press Control-Break) to enter into boot ROM
mode. The Control-Break key sequence must be entered within 60 seconds of the router
restarting after a power cycle. Other terminal applications will have their own sequence, so
make sure that you consult the help les.
After you are in ROM mode, change the conguration register value to ignore the startup
conguration le that is stored in NVRAM. Use the o/r 0x2142 command (2500 series
routers). For Cisco IOS 12.2T (2600 models and higher) or later, the command is confreg
0x2142.
After the router has nished booting up (you will be prompted to enter the setup dialog
answer no or press Control-c to abort the setup dialog) without its startup conguration,
look at the show startup-cong command output. If the password is encrypted, move to
Step 6, which requires you to enter enabled mode (type enable and you will not be
required to enter any password) and copy the startup conguration to the running
conguration with the copy startup-cong running-cong command. Then, change the
password. If the password is not encrypted and the enable secret command is not used,
simply document the plain-text password and go to Step 8.
Because the router currently has no conguration in RAM, you can enter enabled mode by
simply typing enable (no password is required). Copy the startup conguration to RAM
with the IOS command copy startup-cong running-cong.
Change the conguration register to 0x2102 (default) with the global IOS command
cong-register 0x2102. Note that this IOS command is automatically saved and there is
no need to write changes to NVRAM when modifying the conguration register even
though the IOS will prompt you to save when you do perform a reload.
After saving the conguration, you can optionally reload the router.
10
Check the new password if it is not encrypted. If the password is encrypted, simply enter
enabled mode and verify your password.
Description
service passwordencryption
212
Table 3-13
Table 3-14
Description
VLAN hopping
DHCP starvation
Description
Q&A
213
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the
CCIE Security written exam and those topics presented in this chapter. This format should help
you assess your retention of the material. A strong understanding of the answers to these questions
will help you on the CCIE Security written exam. You can also look over the questions at the
beginning of the chapter again for further review. As an additional study aid, use the CD-ROM
provided with this book to take simulated exams, which draw from a database of over 500
multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
3.
4.
What conguration register enables a Cisco router to ignore the startup conguration?
5.
To copy the startup conguration to the running conguration, what IOS command or
commands are used?
6.
What is the range for standard access lists and for extended IP access lists on Cisco IOS
routers?
7.
8.
How do you disable all debug commands currently enabled on a Cisco router, assuming you
are not sure what debug commands are enabled?
9.
What must you be very careful of when enabling any form of debugging on a Cisco router?
10.
What are the required steps when performing password recovery on a Cisco router?
11.
12.
13.
214
What IOS command enables port security for the interface FastEthernet0/1? The MAC
address of the end station is 00-DE-AD-CC-EE-00. Ensure that the port is shut down if a
violation occurs for more than one MAC address.
15.
16.
Prior to implementing a security policy, what three common steps should you accomplish?
215
Scenario
131.108.1.1/24
R1
131.108.2.1/24
Ethernet0/0
Ethernet0/1
131.108.2.100/24
131.108.1.101/24
Example 3-46 displays the working conguration le on Router R1, numbered from line 1 to 25.
Example 3-46
1.
2.
3.
hostname R1
4.
5.
6.
7.
interface Ethernet0/0
8.
9.
interface Ethernet0/1
continues
216
Example 3-46
1.
The network administrator enables the debug ip packet command on Router R1, but no
output is seen when connected to the console. IP trafc is following correctly from Ethernet0/0
to Ethernet0/1. What is the likely problem? What IOS conguration change is required to
rectify the fault?
2.
There are a number of congured aliases. What alias will display the Ethernet interface
statistics for the Ethernet interface labeled Ethernet0/1?
3.
When the following command is entered at the privileged EXEC prompt, what will the output be?
R1#eth0
4.
What is the password of Router 1 that enables a network administrator to make conguration
changes?
5.
What Cisco IOS debug command can be used to debug the IP packets source IP address from
the address 131.108.2.100 to the PC with the IP address 131.108.1.1?
6.
debug ip packet
R1>d
^
% Invalid input detected at ^ marker.
R1>
7.
8.
What is the vty password required for Telnet clients logging into R1?
9.
10.
What global IOS command would encrypt all passwords congured on R1 in Figure 3-10?
Scenario Solutions
217
Scenario Answers
Scenario Solutions
1.
Line 4 in Example 3-46 has disabled the debug output from being visible. To enable debug
messages to be sent to the console port, the command logging console debugging must be
congured in global conguration mode. Alternatively, telneting to the router and enabling
the terminal monitor command via the vty line enables the network administrator to view
the debug output. (You must also ensure that the command logging monitor debugging is
congured for Telnet users.)
2.
Line 17 displays the alias, eth1, which is the command show interface ethernet0/1.
3.
Line 16 denes an alias, eth0, which will be used as a shortcut to the show interface
ethernet0/0 command. This IOS command displays the statistics of interface Ethernet0/0.
4.
Line 6 (enable password ciscO) denes the enable password as ciscO. However, because a
secret password exists on line 5, that is the password required to enter enabled mode, and
because the secret password is encrypted, you cannot decipher the password.
5.
Access list 100 denes an access-list with the source address 131.108.2.100 to the destination
IP address 131.108.1.1. You can apply the command debug ip packet 100 with the optional
keyword detail to view IP packets sent from the server to the IP address 131.108.1.1.
6.
The Telnet user must be in privileged EXEC mode and must enable the terminal monitor
command to ensure that debug output is sent to the vty line. Use the command logging
monitor debugging to enable Telnet users to access console messages. See Example 3-47
for IOS help commands.
Example 3-47
logging ? Output
logging ?
Randy1(config)#l
Hostname or A.B.C.D
buffered
cns-events
console
exception
facility
history
monitor
on
rate-limit
source-interface
trap
218
7.
The conguration in Example 3-46 does not include a conguration register, so the default
register (0x2102) can be assumed as the correct setting. To correctly identify the conguration
register, the show version (or show hardware) command is required.
8.
Line 24 congures the router for no vty login, so there is no password; any Telnet users will
be directed to the router at the EXEC prompt level.
9.
Access list 1 is not dened on any interface and can be used when debug ip packet is turned
on. Because it is a standard access list, it can be used to debug packets sourced from IP
addresses 131.108.0.0 to 131.108.255.255.
10.
The global IOS command service password-encryption encrypts all passwords, including
the enable and vty password, if any.
IP Security (IPSec)
CHAPTER
Security Protocols
This chapter covers some of todays most widely used technologies that enable network
administrators to ensure that sensitive data is secure from unauthorized sources.
Standards such as IP Security (IPSec) and encryption standards are covered, as are all the
fundamental foundation topics you need to understand to master the topics covered in the CCIE
Security written exam.
The chapter ends with a discussion of some of the security features used in wireless networking
to improve security. Protocols such as Extensible Authentication Protocol (EAP), Protected
Extensible Authentication Protocol (PEAP), Temporal Key Integrity Protocol (TKIP), Message
Integrity Check (MIC), and Transport Layer Security (TLS) are discussed, all of which are
newly dened protocols used to help secure vulnerable wireless networks.
This chapter covers the following topics:
EAP, PEAP, and TKIPShows common new mechanisms used in the ght to keep
intruders and hackers away from wireless networks.
222
If you can answer most or all of these questions, you might want to skim the Foundation Topics
section and return to it later, as necessary. Review the Foundation Summary section and answer
the questions at the end of the chapter to ensure that you have a strong grasp of the material
covered.
If you already intend to read the entire chapter, you do not necessarily need to answer these
questions now. If you nd these assessment questions difcult, read through the entire
Foundation Topics section and review it until you feel comfortable with your ability to answer
all of these questions and the Q & A questions at the end of the chapter.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
3.
4.
What are the three components of AAA? (Choose the three best answers.)
a.
Accounting
b.
Authorization
c.
Adapting
d.
Authentication
What Cisco IOS command must be issued to start AAA on a Cisco router?
a.
aaa old-model
b.
aaa model
c.
d.
aaa new-model
e.
aaa new_model
Routing algorithm
b.
Dife-Hellman algorithm
c.
d.
Can you congure RADIUS and TACACS+ to be used on the same router?
a.
No.
b.
Yes, provided you have the same lists names applied to the same interfaces.
c.
Yes, provided you have the different lists names applied to the same interfaces.
d.
Yes, provided you have the different list names applied to different interfaces.
5.
How do you remotely launch ACS to a Windows 2000 device? (The remote IP address is
10.1.1.1 and the client is Internet Explorer.)
a.
b.
c.
d.
Type launch.
Type 10.1.1.1.
Type 10.1.1.1:2002.
Type 10.1.1.1:8080.
6.
What RADIUS attribute is used by vendors and not predened by RFC 2138?
7.
1
b. 2
c. 3
d. 4
e. 13
f. 26
g. 333
h. 33
RADIUS can support which of the following protocols?
a.
PPP
b. OSPF
c. AppleTalk
d. IPX
e. NLSP
When a RADIUS server identies the wrong password entered by the remote user, what
packet type is sent?
a.
8.
9.
223
a.
ACCEPT-USER
b.
REJECT-USERS
c.
REJECT-DENY
d.
REJECT-ACCEPT
e.
REJECT-ERROR
f.
ACCESS-REJECT
b.
c.
d.
224
What is the RADIUS key for the following conguration? If this conguration is not valid,
why isnt it? (Assume that this conguration is pasted into Notepad and not on an active
router.)
aaa authentication login use-radius group radius local
aaa authentication ppp user-radius if-needed group radius
aaa authorization exec default group radius
aaa authorization network default group radius
radius-server 3.3.3.3
radius-server key IlovemyMum
11.
a.
b.
c.
This conguration will not work because the command aaa new-model is missing.
d.
12.
13.
a.
b.
c.
d.
What versions of TACACS does Cisco IOS support? (Select the best three answers.)
a.
TACACS+
b.
TACACS
c.
Extended TACACS
d.
Extended TACACS+
520
b.
23
c.
21
d.
20
e.
49
What is the predened RADIUS server key for the following conguration?
radius-server host 3.3.3.3
radius-server key CCIEsrock
15.
a.
3.3.3.3
b.
c.
CCIESROCK
d.
CCIEsRock
e.
CCIEsrock
16.
17.
18.
a.
b.
c.
d.
e.
PPP
b.
AppleTalk
c.
NetBIOS
d.
All of these
64
b.
128
c.
192
d.
256
e.
512
What is the number of bits used with a standard DES encryption key?
a.
56 bits
b.
c.
128 bits
d.
256 bits
e.
65,535 bits
f.
168 bits
225
226
20.
21.
22.
23.
56 bits
b.
c.
128 bits
d.
256 bits
e.
65,535 bits
f.
168 bits
In IPSec, what encapsulation protocol encrypts only the data and not the IP header?
a.
ESP
b.
AH
c.
MD5
d.
HASH
ESH
b.
ESP
c.
AH
d.
MD5
e.
HASH
23
b.
21
c.
50
d.
51
e.
500
f.
444
23
b.
21
c.
50
d.
51
e.
500
f.
444
25.
26.
27.
28.
227
b.
Exchanging keys
c.
d.
Negotiating SA parameters
b.
c.
d.
Main mode
b.
Fast mode
c.
Aggressive mode
d.
Quick mode
Certicate Enrollment Protocol (CEP) runs over what TCP port number? (Choose the best
two answers.)
a.
Same as HTTP
b.
Port 80
c.
Port 50
d.
Port 51
e.
Port 333
f.
Port 444
Which of the following are new features aimed at increasing wireless security? (Choose the
best four answers.)
a.
TKIP
b.
AES
c.
EAP
d.
PEAP
e.
MIC
f.
802.1D
g.
ESP
h.
AH
228
Foundation Topics
ISDN dialup
AccountingWhat resources were accessed, at what time, by whom, and what commands
were issued?
The three phases ensure that legitimate users are permitted access. A remote user must be
authenticated before being permitted access to network resources.
Authentication allows the user to submit a username and password and permits challenges and
responses. After the user is authenticated, authorization denes what services or resources in the
network users are permitted access to. The operations permitted here can include IOS-privileged
EXEC commands. For example, a user might type commands but be permitted to use only certain
show and debug commands for which the user is authorized.
Accounting allows the network administrator to log and view what was actually performed (for
example, if a Cisco router was reloaded or the conguration was changed). Accounting ensures
229
that an audit will enable network administrators to view what was performed and at what time it
was performed. Accounting keeps track of the information needed to audit and report network
resource usage. This typically includes the username, the start and stop time of login, and the
commands typed by the user.
NOTE To start AAA on a Cisco router, issue the following IOS command:
aaa new-model
R1
NAS
AAA
Server
The users could be dialup users running async (in this case, PSTN) or using ISDN with Point-toPoint Protocol (PPP). The network access server (NAS) ensures that only authenticated users have
access to the secure network; it maintains resources and accounting information.
Authorization tells which resources, or host devices, are authorized to be accessed (such as FTP
servers). The NAS implements the AAA protocols and also collects data regarding what network
resources were accessed. The NAS can also ensure that devices in the secured network require
authentication. For example, the users in Figure 4-1 who are accessing Router R1 require a valid
username/password pairing to enter any IOS commands.
230
The following sections further dene what authentication, authorization, and accounting are by
discussing a common Cisco IOS router example.
Authentication
Authentication allows administrators to identify who can connect to a router by including the
users username and password. Normally, when a user connects to a router remotely by Telnet, the
user must supply only a password, and the administrator has no way of knowing the users
username. You can, however, congure local usernames and passwords on a Cisco IOS router, but
this does not scale well and it is not very secure. Conguring a small set of routers with individual
usernames and passwords (IOS syntax username username password password) is ne, but
doing so for large networks would be a difcult exercise to manage. Centrally locating the
usernames and passwords is a better solution because only a few devices need to be updated and
maintained. Also, users are not logged, and their conguration changes are not monitored without
further conguration changes made on each individual router.
Example 4-1 displays a sample code snippet of a remote user accessing a AAA-congured Cisco
router by Telnet.
Example 4-1
telnet San-Fran
Sydney>t
Trying san-fran (10.99.1.1)... Open User Access Verification
Username: drewrocks
Password: xxxxxxxx
San-Fran>
As you can see in Example 4-1, the user must enter a valid username and password to gain access
to the router. Typically, a database containing the valid usernames resides locally on the router or
on a remote security server.
Authorization
Authorization comes into play after authentication. Authorization allows administrators to control
the level of access users have after they successfully gain access to the router. Cisco IOS allows
certain access levels (called privilege levels) that control which IOS commands the user can issue.
For example, a user with a privilege level of 0 cannot issue many IOS commands. There are ve
commands at privilege level 0: disable, enable, exit, help, and logout. A user with a privilege
level of 15 can perform all valid IOS commands. The local database or remote security server can
grant the required privilege levels.
Remote security servers, such as RADIUS and TACACS+, authorize users for specic rights by
associating attribute-value (AV) pairs, which dene those rights with the appropriate user. AAA
231
authorization assembles a set of attributes that describes what the user is authorized to perform.
These attributes are compared with the information contained in a database for a given user, and
the result is returned to AAA to determine the users actual permissions and restrictions.
NOTE You can display the users privilege level on a Cisco router with the show privilege
command. The following code displays the privilege level when the enable password has
already been entered:
R1#show privilege
Current privilege level is 15
The higher the privilege, the more capabilities a user has with the IOS command set.
Accounting
Accounting occurs after authentication and authorization have been completed. Accounting
allows administrators to collect information about users. Specically, administrators can track
which user logged into which router, which IOS commands a user issued, and how many bytes
were transferred during a users session. For example, accounting enables administrators to
monitor which routers have had their congurations changed. Accounting information can be
collected by a remote security server.
To display local account information on a Cisco router collecting accounting information, issue
the show accounting IOS command. Example 4-2 displays sample output when the command is
issued on Router R1. (Note that for Cisco IOS 12.2T and higher, the command has changed to
show aaa user all.)
Example 4-2
show accounting
R1#s
Active Accounted actions on Interface Serial0:1, User jdoe Priv 1
Task ID 15, Network Accounting record, 00:00:18 Elapsed
task_id=15 timezone=PDT service=ppp mlp-links-max=4 mlp-links-current=4
protocol=ip addr=119.0.0.2 mlp-sess-id=1
Overall Accounting Traffic
Starts
Stops
Updates
Active
Exec
Drops
0
Network
Connect
Command
Rsrc-mgmt
System
232
Description
User
The users ID
Priv
Task ID
Accounting Record
Elapsed
Rather than maintain a separate database with usernames, passwords, and privilege levels, you can
use external security servers to run external security protocolsnamely RADIUS and TACACS.
These security server protocols stop unauthorized access to your network. The following sections
review these two security protocols.
2.
The username and encrypted password are sent over the network to the RADIUS server.
These events are sent via the packet format known as Access-Request.
3.
233
The user receives one of the following responses from the RADIUS server:
ACCESS-ACCEPTThe user is authenticated.
ACCESS-REJECTThe user is not authenticated and is prompted to re-enter the username
and password, or access is denied. The RADIUS server sends this response when the user
enters an invalid username/password pairing.
ACCESS-CHALLENGEA challenge is issued by the RADIUS server. The challenge
collects additional data from the user.
CHANGE PASSWORDThe RADIUS server issues a request asking the user to select a
new password.
Username: Simon
Password: Uy_%#!
The RADIUS server accepts or rejects a username and password pair. In some instances, a user
might be asked to enter more information (this is called a challenge response). For example, if a
users password has expired, a RADIUS server prompts the user for a new password.
234
Transactions between the client (end user) and the RADIUS server are authenticated through a
shared secret. The username is sent as clear text. RADIUS supports both Password Authentication
Protocol (PAP) and Challenge Handshake Authentication Protocol (CHAP). PAP and CHAP are
security protocols that allow users to gain access to remote devices with PPP. A RADIUS server
will never send the users password over the network in any circumstance. If the username/
password pairing is entered incorrectly, the RADIUS server sends an ACCESS-REJECT response.
The end user must re-enter the pairings or the connection will be rejected. Note that PAP sends the
end users password in the clear to the NAS, but from the NAS to the RADIUS server (the NAS
and the RADIUS communicate using the shared secret), the end users password is encrypted.
RADIUS supports a number of predened attributes that can be exchanged between client and
server, such as the clients IP address. RADIUS attributes carry specic details about authentication.
RFC 2138 denes a number of attributes. The following list provides details for the most common
attributes:
Attribute type 1Username (denes usernames, such as numeric, simple ASCII characters,
or a Simple Mail Transfer Protocol [SMTP] address).
Attribute type 2User Password (denes the password, which is encrypted using Message
Digest 5 [MD5]).
Attribute type 4NAS IP Address (denes the NASs IP address; used only in accessrequest packets).
Attribute type 5NAS Port (this is not the User Datagram Protocol [UDP] port number; it
indicates the NASs physical port number, ranging from 0 to 65,535).
Attribute type 7Framed-Protocol denes required framing; for example, PPP is dened
when this attribute is set to 1 and SLIP is set to 2.
Attribute type 8Framed-IP-Address denes the IP address to be used by the remote user.
Attribute type 9Framed-IP-Netmask denes the subnet mask to be used by the remote
user.
235
Attribute type 26Vendor-Specic. Cisco (vendor-ID 9) uses one dened option: vendor
type 1 named cisco-avpair; this attribute transmits TACACS+ A/V pairs.
Table 4-2
Feature
Description
UDP
Packets sent between the client and server are UDP, primarily because
TCPs overhead does not allow for signicant advantages. Typically, the
user can wait for a username/password prompt.
1812 and 1813. Dened in RFC 2865, which supersedes RFC 2138. Early
deployments RADIUS used UDP ports 1645 and 1646.
Attributes
Attributes are used to exchange information between the NAS and client.
Model
Encryption method
Multiprotocol support
Type
Length
236
Enable AAA with the aaa new-model global conguration command. AAA must be
congured if you plan to use RADIUS.
Step 2
Use the aaa authentication global conguration command to dene method lists for
RADIUS authentication.
Step 3
Use line and interface commands to enable the dened method lists to be used.
Step 4
Dene the RADIUS server and secret key with the following IOS commands:
radius-server ip-address
radius-server key secret-key
Examples are the best method to show the enormous IOS command set that is available for use
when conguring RADIUS support with AAA.
Example 4-3 congures a Cisco IOS router with AAA and RADIUS support.
Example 4-3
aaa new-model
aaa authentic ation login use-radius gr oup radius local
aaa authe ntication ppp user-radius if-needed group radius
aaa authorization exec defau lt group radius
aaa author ization network default g roup radius
radius-server 3 .3.3.3
radius-server key c cie2005
! Ensure you apply the named access list on the VTY line
line vty 0 4
a aa authentication login
237
The command lines in this RADIUS authentication and authorization conguration are dened as
follows:
The aaa authentication login use-radius group radius local command congures the router
to use RADIUS for authentication at the login prompt. If RADIUS returns an error, the user
is authenticated using the local database. In this example, use-radius is the name of the
method list, which species RADIUS and then local authentication. If the RADIUS server
returns the ACCESS-REJECT response, the user is denied access and the router will not
check its local database.
The aaa authentication ppp user-radius if-needed group radius command congures the
Cisco IOS software to use RADIUS authentication for lines using PPP with CHAP or PAP, if
the user is not already authorized. If the EXEC facility has authenticated the user, RADIUS
authentication is not performed. In this example, user-radius is the name of the method list
dening RADIUS as the if-needed authentication method.
The aaa authorization exec default group radius command sets the RADIUS information
used for EXEC authorization, autocommands, and access lists.
The aaa authorization network default group radius command sets RADIUS for network
authorization, address assignment, and access lists.
The radius-server key commands dene the shared secret text string between the NAS and
the RADIUS server host.
Example 4-4 displays an example in which AAA is enabled on a Cisco IOS router.
Example 4-4
Hostname R1
username simon password SimonisisAgreatd rummeR
aaa new-model
aaa authentic ation ppp dialins group r adius local
aaa authorizat ion network default group radius local
aaa accountin g network default start-s top group radius
aaa authe ntication login simon loc al
aaa authorization exec d efault local
radius-server host 3.3.3.3
radius-serve r key CCIEsrock
line vty 0 4
login authentication ra dius-login
238
The radius-server host command denes the RADIUS server hosts IP address.
The radius-server key command denes the shared secret text string between the NAS and
the RADIUS server host.
The aaa authentication ppp dialins group radius local command denes the authentication
method list, dialins, which species that RADIUS authentication and then (if the RADIUS
server does not respond) local authentication will be used on serial lines using PPP.
The aaa authorization network default group radius local command sets RADIUS for
network authorization, address assignment, and access lists.
The aaa accounting network default start-stop group radius command tracks PPP usage.
This command is used for all network services. It can be PPP, but also SLIP or ARAP.
The aaa authentication login simon local command denes the method list, simon, for local
authentication.
The aaa authentication login simon command applies the simon method list for login
authentication.
NOTE A method list simply denes the authentication methods to be used, in sequence, to
authenticate a user. Method lists enable you to designate one or more security protocols to be
used for authentication, ensuring a backup system for authentication in case the initial method
fails. Cisco IOS software uses the rst method listed to authenticate users; if that method does
not respond, the Cisco IOS software selects the next authentication method listed. This process
continues until there is successful communication with a listed authentication method or the
authentication method list is exhausted, in which case authentication fails.
TIP Cisco.com provides a long list of conguration examples. To view more detailed
congurations, visit the following web address and follow the link to Security Management:
http://www.cisco.com/pcgi-bin/Support/browse/index.pl?i=Products&f=753&viewall=true
239
Cisco has also developed Cisco Secure Access Control Server (ACS), a exible family of security
servers that supports both RADIUS and TACACS+. You can even run debugging commands on
the Cisco Secure ACS software. In UNIX, you can modify les, such as syslog.conf and csu.cfg,
to change the output to your screen. For more details on how to debug on a UNIX server, see
http://www.cisco.com/warp/public/480/cssample2x.html#debug.
TACACS+ has the following features:
TCP packets (port 49) ensure that data is sent reliably across the IP network.
Supports AAA architectures and, in fact, separates each of the three AAA mechanisms.
Access control lists (ACL) can be dened on a per-user basis. (RADIUS can also dene ACLs
on a per-user basis.)
Authorization
START
RESPONSE
RECORD
Authentication Process
Network Access
Server
User initiates
PPP request
PPP
Username: Simon
Password: Uy_%#!
Followed by Authorization.
Followed by Accounting.
240
When a TACACS+ server authenticates a remote user, the following events occur:
1.
When the connection is established, the NAS contacts the TACACS+ daemon to obtain a
username prompt, which is then displayed to the user. The user enters a username and the
NAS and communicates to the TACACS+ server to obtain a password prompt. The NAS
displays the password prompt to the user, the user enters a password, and the password is sent
to the TACACS+ daemon.
2.
The NAS eventually receives one of the following responses from the TACACS+ daemon:
ACCEPTThe user is authenticated and service can begin. If the NAS is congured to
require authorization, authorization begins at this time.
REJECTThe user has failed to authenticate. The user may be denied further access or
may be prompted to retry the login sequence, depending on the TACACS+ daemon.
ERRORAn error occurred at some time during authentication. This can be either at
the daemon or in the network connection between the daemon and the NAS. If an
ERROR response is received, the NAS typically tries to use an alternative method for
authenticating the user.
3.
A PAP login is similar to an ASCII login, except that the username and password arrive at the
NAS in a PAP protocol packet instead of being typed in by the user, so the user is not
prompted. PPP CHAP logins are also similar, in principle.
4.
5.
Connection parameters, including the host or client IP address, ACL, and user timeouts
The TACACS+ authorization process is dened as the packet ow between the NAS and the
TACACS+ server. The packets exchanged between the NAS and server contain AV pairs. The NAS
sends Start packets and the TACACS+ server responds with Response packets. The server can
permit, deny, or modify commands requested by the end user. The data (that contains the full list
of all username/password pairs) is stored on a local le dening what commands are permitted by
the end user, for example.
241
TACACS+ accounting provides an audit record of what commands were completed. The NAS
sends a record of any commands, and the TACACS+ server sends a response acknowledging the
accounting record.
Table 4-3 summarizes the main features of TACACS+.
Table 4-3
Port 49.
Attributes
Seq_no
The sequence number of the current packet ow for the current session.
The Seq_no starts with 1, and each subsequent packet increments by one.
The client sends only odd numbers. The TACACS+ server sends only even
numbers.
Encryption method
The entire packet is encrypted. Data is encrypted using MD5 and a secret
key that matches both on the NAS (for example, a Cisco IOS router) and
the TACACS+ server.
Multiprotocol support
Now, examine the TACACS+ conguration tasks required when enabling TACACS+ on a Cisco
IOS router.
Use the aaa new-model global conguration command to enable AAA, which must
be congured if you plan to use TACACS+. For more information about using the
aaa new-model command, refer to http://www.cisco.com/univercd/cc/td/doc/
product/software/ios121/121cgcr/secur_c/scprt1/scdaaa.htm.
Step 2
Use the tacacs-server host command to specify the IP address of one or more
TACACS+ daemons:
tacacs-server host hostname [single-connection] [port integer] [timeout
integer] [key string]
242
Step 3
Use the tacacs-server key command to specify an encryption key to encrypt all
exchanges between the NAS and the TACACS+ daemon. This same key must also
be congured on the TACACS+ daemon. The actual command is as follows:
tacacs-server key key
The key should match the one used on the TACACS+ daemon.
Step 4
Use the aaa authentication global conguration command to dene method lists
that use TACACS+ for authentication.
Step 5
Use line and interface commands to apply the dened method lists to various
interfaces.
Step 6
Step 7
Example 4-5 displays a sample conguration of a Cisco router with TACACS+ authentication for
PPP.
Example 4-5
aaa new-model
aaa authentic ation ppp CCIE group taca cs+ local
tacacs-server ho st 10.1.2.3
tacacs-server key cciesarecool
interface serial 0
ppp authenticati on chap pap CCIE
The aaa authentication command denes a method list, CCIE, to be used on serial interfaces
running PPP. The keyword group tacacs+ means that authentication is done through
TACACS+. If TACACS+ returns an ERROR during authentication, the keyword local
indicates that authentication will be attempted using the local database on the NAS. Note that
the local database is not used if a REJECT response is received from the security server.
243
The tacacs-server host command identies the TACACS+ daemon as having an IP address
of 10.1.2.3. The tacacs-server key command denes the shared encryption key as cciesarecool.
The interface command selects the line, and the ppp authentication command applies the
CCIE method list to this line.
Example 4-6 shows how to congure TACACS+ as the security protocol for PPP authentication
using the default method list; it also shows how to congure network authorization through
TACACS+.
Example 4-6
aaa new-model
aaa authentication ppp def ault if-needed group taca cs+ local
aaa authorization network default group tacacs+
taca cs-server host 3.3.3.3
tac acs-server key simoniscoo l
interface serial 0
ppp aut hentication default
The aaa authentication command denes a method list, default, to be used on serial interfaces
running PPP. The keyword default means that PPP authentication is applied by default to all
interfaces. The if-needed keyword means that if the user has already authenticated by going
through the ASCII login procedure, PPP authentication is not necessary and can be skipped. If
authentication is needed, the keyword group tacacs+ means that authentication is done through
TACACS+. If TACACS+ returns an ERROR during authentication, the keyword local indicates
that authentication will be attempted using the local database on the NAS.
The tacacs-server host command identies the TACACS+ daemon as having an IP address
of 3.3.3.3.
The tacacs-server key command denes the shared encryption key as simoniscool.
The interface command selects the line, and the ppp authentication command applies the
default method list to this line.
The source interface used by TACACS+ or RADIUS can be dened when required as follows:
ip tacacs source-interface subinterface-name
ip radius source-interface subinterface-name
244
The source-interface commands force the security protocol to use a specic interface as the
source IP address. For example, it may be a loopback address (remember, it is always active,
unlike a physical interface, which may fail or be down) for redundancy purposes in case of a
physical interface failure.
Example 4-7 displays a sample conguration where accounting is also enabled.
Example 4-7
Accounting Example
aaa new-model
aaa authentication ppp def ault if-needed group taca cs+ local
aaa accounting network def ault stop-only group taca cs+
tacacs-server host 3.3 .3.3
tacacs-server key and rewiscool
interface serial 0
ppp authentication defa ult
The aaa authentication command denes a method list, default, to be used on serial
interfaces running PPP. The keyword default means that PPP authentication is applied by
default to all interfaces. The if-needed keyword means that if the user has already
authenticated through the ASCII login procedure, PPP authentication is not necessary. If
authentication is needed, the keyword group tacacs+ means that authentication is done
through TACACS+. If TACACS+ returns an ERROR during authentication, the keyword local
indicates that authentication will be attempted using the local database on the NAS.
The aaa accounting command congures network accounting through TACACS+. In this
example, accounting records stop-only, meaning that the session that just terminated will be
sent to the TACACS+ daemon whenever a network connection terminates.
The interface command selects the line, and the ppp authentication command applies the
default method list to this line.
NOTE You can dene a group of TACACS+ servers by dening the servers with the IOS
commands tacacs-server host ip-address-of-server and tacacs-server key secret-key. For
example, to dene six servers, you would use the following IOS conguration:
tacacs-server
tacacs-server
tacacs-server
tacacs-server
tacacs-server
tacacs-server
tacacs-server
host 1.1.1.1
host 2.2.2.2
host 3.3.3.3
host 4.4.4.4
host 5.5.5.5
host 6.6.6.6
key ccie
If the rst server does not respond within a timeout period (the default is 5 seconds), the next
server is queried, and so forth.
Typically, the console port is not congured for authorization.
245
TACACS+/RADIUS Comparison
RADIUS
TACACS+
Packet delivery
UDP.
TCP.
Packet encryption
AAA support
Multiprotocol
support
None.
Router management
Responses
NOTE You can congure both RADIUS and TACACS+ concurrently on a Cisco router
provided that you have dened different list names and applied the list to different interfaces.
NOTE You can download and install a trial copy of Cisco Secure ACS for Windows NT/2000
or UNIX. This comes with a built-in RADIUS and TACACS+ server. You also need a Cisco
router with Cisco IOS 12.X with one working Ethernet port. This will reinforce your
understanding of the AAA concept. For more information, visit the Cisco Secure Software
Center at Cisco.com.
The AAA conguration options are numerous, and those presented in this guide are only a small
subset of a larger set that you can view online at Cisco.com. Visit the following URL for more
quality examples of how AAA, along with RADIUS or TACACS, can be implemented on Cisco
IOS routers:
http://www.cisco.com/pcgi-bin/Support/browse/index.pl?i=Technologies&f=774
The IOS debug command set for RADIUS and TACACS is extensive. Presented here are some
common RADIUS and TACACS debug outputs found in real networks.
246
Example 4-8 displays a sample output from the debug aaa authentication command for a
RADIUS login attempt that failed. The information indicates that TACACS is the authentication
method used.
Example 4-8
Example 4-9 displays a sample output from the debug radius command that shows a successful
login attempt (note that newer versions of IOS code may display some differences), as indicated
by an Access-Accept message.
Example 4-9
Attribute 4 6 AC150E5A
13:59:02:
Attribute 5 6 0000000A
13:59:02:
Attribute 1 6 62696C6C
13:59:02:
Attribute 2 18 0531FEA3
Attribute 6 6 00000001
Example 4-10 displays a sample output from the debug radius command that shows an
unsuccessful login attempt, as indicated by an Access-Reject message.
Example 4-10
Attribute 4 6 AC150E5A
13:57:56:
Attribute 5 6 0000000A
13:57:56:
Attribute 1 7 62696C6C
13:57:56:
Attribute 2 18 49C28F6C
247
Theft of dataWhen intruders use sniffers, for example, to capture data over the network
and steal that information for later use.
ImpersonationWhen an intruder assumes the role of a legitimate device but, in fact, is not
legitimate. The intruder efciently assumes the role of an authorized user.
The solution to these and numerous other problems is to provide encryption technology to the IP
community and enable network administrators to ensure that data is not vulnerable to any form of
attack or intrusion. This ensures that data is condential, authenticated, and has not lost any
integrity during the routing of packets through an IP network.
Encryption (user data that is encrypted will require decryption also) is dened as the process by
which plain data is converted into ciphered data (a system in which plain-text data is arbitrarily
substituted according to a predened algorithm known as cipertext) so that only the intended
recipient(s) can observe the data. Encryption ensures data privacy, integrity, and authentication.
Figure 4-4 displays the basic methodologies behind data encryption.
Figure 4-4
Encryption Methodologies
1.
3.
Data, for
example 123...
Encrypted data
is decrypted
using the key.
2.
4.
Data is encrypted using mathematical
formulae to scramble data.
Figure 4-4 demonstrates the basic principles of data encryption, including the following:
1.
248
2.
Data (clear text) is modied according to a key. The key is a sequence of digits that decrypts
and encrypts messages. Each device has three keys:
A private key used to sign messages that is kept secret and never shared.
A shared secret key that is used to encrypt data using a symmetric encryption algorithm,
such as DES. Typically, however, a device has two keys, a symmetric key and an asymmetric key. The symmetric key is a shared secret that is used to both encrypt and decrypt
the data. The asymmetric key is broken into two parts, a private key and a public key.
3.
A mathematical formula is applied to scramble the data. In Figure 4-4, the mathematical
formula is applied during Step 2.
4.
The data ows throughout the network and can be decrypted only if the correct key and
algorithm are applied.
Encryption can take place at the application layer, the network layer, or the data link layer. Be
aware of the following encryption technologies for the CCIE Security written exam:
IP Security (IPSec)
Cisco IOS routers support the following industry standards to accomplish network layer
encryption:
DES/3DES
AES
MD5
Dife-Hellman exchange
IPSec
249
Figure 4-5
Encrypted Data
$%^$%&@&
Figure 4-5 demonstrates the PCs clear-text generation. The data is sent to the Cisco IOS router,
where it is encrypted with a shared key (remember, the shared secret key is used to derive the
session key, which is then used to encrypt and decrypt the trafc) and sent over the IP network in
unreadable format until the receiving router decrypts the message and forwards it in clear-text form.
DES is a block cipher algorithm, which means that DES performs operations on xed-length data
streams. DES uses a 56-bit key to encrypt 64-bit datagrams.
DES is a published, U.S. governmentstandardized encryption method; however, it is no longer a
U.S. governmentapproved encryption algorithm.
3DES is the DES algorithm that performs three times (3 x 3 x encryption and 3 x decryption)
sequentially (although there are some variations as well). Three keys are used to encrypt data,
resulting in a 168-bit encryption key.
3DES is an improved encryption algorithm standard and is summarized as follows:
1.
The sending device encrypts the data with the rst 56-bit key.
2.
The sending device decrypts the data with the second key, also 56 bits in length.
3.
The sending device encrypts for a nal time with another 56-bit key.
250
4.
The receiving device decrypts the data with the rst key.
5.
The receiving device then encrypts the data with the second key.
6.
Finally, the receiving device decrypts the data with the third key.
A typical hacker uses a Pentium III computer workstation and takes approximately 22 hours to
break a DES key. In the case of 3DES, the documented key-breaking times are approximately 10
billion years when 1 million PC III computers are used. Encryption ensures that information theft
is difcult.
TIP It is possible to increase the number of bits in the key, but brute-force cracking of a 1024bit key is not feasible using current or reasonably foreseeable technology. Even if, based on
future innovations, this becomes a weak key length, the value of the data it protects will have
very likely diminished to zero. In the event that you have need for more protection, you can
increase the key size. However, you should be aware that this will take a processing toll on every
secure transaction.
NOTE Unbeknownst to the author of the previous tip, a mathematician named D. J. Bernstein
delivered a paper entitled How To Find Small Factors Of Integers (http://cr.yp.to/
papers.html#nfscircuit) earlier in the year. At the Financial Cryptography conference held in late
March, 2002, it was discovered that, using his formulas, 512-bit keys can be broken in less than
10 minutes using Pentium IVbased computers and that an array of them (cost estimate, $1
billion) could break a 1024-bit key in the same time. That price tag is well within the reach of
the worlds major security agencies; an NSA satellites price tag is double that, and it has several
of them.
The lessons here are two-fold. First, if your data is attractive enough to those able to afford those
rapidly declining but still very large price tags, go for the biggest key your software supports.
Second, authors who write tips like the previous one do so at great risk.
Encryption can be used to enable secure connections over the LAN, WAN, and World Wide Web.
The end goal of DES/3DES is to ensure that data is condential by keeping data secure and hidden.
The data must have integrity to ensure that it has not been modied in any form, and be authenticated
by ensuring that the source or destination is indeed the proper host device. Another encryption
standard in common use today is widely regarded as the new industry standard, namely AES.
251
the National Institute of Standards and Technology (NIST) has adopted AES. AES provides key
lengths for 128, 192, and 256 bits.
AES supports Cipher Blocks Chaining (CBC), which circumvents one of the problems with block
algorithms in that two equal plain-text blocks will generate the same two equal ciphertext blocks.
With CBC, the key is applied to Plain(1) to get Cipher(1). Then, Cipher(1) is used as the key
against Plain(2) to get Cipher(2), which is used as the key against Plain(3) to get Cipher(3),
continuing on until the end.
AES is designed to be more secure than DES through the following enhancements:
Ensures that the only known approach to decrypt a message is for an intruder to try every
possible key.
Has a variable key length; the algorithm can specify a 128-bit key (the default), a 192-bit key,
or a 256-bit key.
NOTE AES is supported in Cisco IOS 12.2.13(T) and later. To enable AES, your router must
support IPSec. AES cannot encrypt IPSec and IKE trafc if an acceleration card is present. This
restriction will be lifted in a future release of Cisco IOS.
For more details on Cisco IOS support for AES, visit http://cisco.com/en/US/products/sw/
iosswrel/ps1839/products_feature_guide09186a0080110bb6.html.
252
MD5 Operation
Clear Text message of variable length
"Hello, its me"
MD5
Figure 4-6 displays the simple clear-text message, Hello, its me, which can be of any variable
length. This message is sent to the MD5 process, where the clear-text message is hashed and a
xed-length, unreadable message is produced. The data can include routing updates or username/
password pairings, for example. MD5 produces a 128-bit hash output.
SHA is the newer, more secure version of MD5, and Hash-based Message Authentication
(HMAC) provides further security with the inclusion of a key exchange. SHA produces a 160-bit
hash output, making it even more difcult to decipher. SHA follows the same principles as MD5
and is considered more CPU-intensive.
For more details on Cisco IOS encryption capabilities, visit the following website:
http://www.cisco.com/en/US/products/sw/iosswrel/products_ios_cisco_ios_software
_releases.html
Diffie-Hellman
The Dife-Hellman protocol allows two parties to establish a shared secret over insecure channels,
such as the Internet. This protocol allows a secure shared key interchange over the public network,
such as the World Wide Web, before any secure session and data transfer is initiated. DifeHellman ensures that, by exchanging just the public portions of the key, both devices can generate
a session and ensure that data is encrypted and decrypted by valid sources only. Only public keys
(clear text) are exchanged over the public network. Using each devices public key and running
the key through the Dife-Hellmann algorithm generates a common session key. Only public keys
will ever be exchanged.
253
Figure 4-7 displays the Dife-Hellman exchange between Cisco routers, R1 and R2.
Figure 4-7
2. Random Integer
generated.
1
1. Public keys are exchanged
in clear text.
2
3
3.Each router uses the random
integer to generate a private key.
2. Random Integer
generated.
4
4. R1 and R2 then combine with
the known prime number A and B
to generate a public key.
Shared Secret
The Dife-Hellman key exchange takes place over a public domain. With the private key kept
secret, it is very difcult for an outside intruder to generate the same key, and the private key is
never exchanged over the public domain, making the process very secure.
The shared prime numbers (mathematically, a prime number is any positive integer greater than 1
and divisible without a remainder only by 1 and itself) have a special relationship that makes
agreeing on a shared secret possible. An analogy would be to have two milkshake blenders making
a chocolate milkshake, but with one blender supplied with apples and the other with oranges. The
Dife-Hellman algorithm is the secret ingredient that, when mixed in with both blenders, produces
the chocolate milkshake. Remember, it really is a superb algorithm.
NOTE RSA is another public key cryptographic algorithm (named after its inventors, Rivest,
Shamir, and Adleman) with a variable key length. RSAs main weakness is that it is signicantly
slow to compute compared to popular secret-key algorithms, such as DES or 3DES. The Cisco
IKE implementation uses a Dife-Hellman exchange to get the secret keys. This exchange can
be authenticated with RSA (or preshared keys). With the Dife-Hellman exchange, the DES key
never crosses the network, which is not the case with the RSA encryption and signing
techniques. RSA is public domain like DES/3DES, and to apply RSA, you must be licensed
from RSA Data Security. RSA is also approved by the U.S. government. An RSA signature is
dened as the host (for example, PC or routers) public and private key, which is bound with a
digital certicate. With RSA, only the public key is ever transmittedthe private key is never
shared.
254
IP Security
IPSec provides security services at the IP layer by enabling a system to select required security
protocols, determine the algorithm(s) to use for the service(s), and put in place any cryptographic
keys required to provide the requested services.
RFC 2401, Security Architecture for the Internet Protocol
IPSec is a dened encryption standard that encrypts the upper layers of the OSI model by adding
a new predened set of headers. IPSec is not just an encryption standard; IPSec provides a variety
of other services, as discussed in this section. A number of RFCs dened IPSec.
IPSec is a mandatory requirement for IP version 6 (IPv6 is not covered in the examination). IPSec
ensures that the network layer of the OSI model is secured. In TCP/IPs case, this would be the IP
network layer. The two IPSec frame formats available, Authentication Header (AH) and
Encapsulating Security Payload (ESP), both have protocol numbers assigned to them. They are
shimmed in between IP and transport. (The protocol number says to give the datagram to AH or
ESP, each of which has a next protocol number that eventually delivers the datagram to TCP or
UDP or whatever else might be at the higher layer, such as OSPF.) Therefore, IPSec ensures that
the data and headers above the network layer are secured.
IPSec can be congured in two protection modes, which are commonly referred to as security
associations (SA). These modes provide security to a given IP connection. The modes are as
follows (you have to use IPSec in tunnel mode if you want to obscure the network layer):
Transport modeProtects payload of the original IP datagram; typically used for end-toend sessions
An SA is required for inbound and outbound connections. In other words, IPSec is unidirectional.
IKE, discussed in this chapter, allows for bidirectional SAs.
Figure 4-8 displays the extension to the current IP packet frame format for both transport and
tunnel modes.
The Encapsulating Security Payload (labeled IPSec header in Figure 4-8) can be of [the] form:
ESP
AH
Figure 4-8
255
Transport
Mode
IP Header
IPSec
Header
Data (Encrypted)
New IP Header
Tunnel
Mode
New IP
Header
Encrypted
IPSec
Header
IP Header
Original
Header
Data
ESP Header
IP HDR
ESP
IP Data
Authenticated
Encrypted
ESP does not encrypt the original IP header (when in transport mode), and encrypts only the IP
data by placing a header in between the original IP header and data. ESP provides data
condentiality, data integrity, and data origin authentication. ESP also prevents replay attacks.
Replay attacks can include intruders capturing a valid packet and replaying it over the network in
an attempt to get a packet conversation between an illegal and legal host.
256
In tunnel mode ESP, the original IP datagram is placed in the encrypted portion of the
Encapsulating Security Payload and that entire ESP frame is placed within a datagram that has
unencrypted IP headers. The information in the unencrypted IP headers is used to route the secure
datagram from origin to destination. An unencrypted IP routing header might be included between
the IP header and the Encapsulating Security Payload.
ESP does not protect the IP header and cannot detect any alternations during packet delivery.
Figure 4-10 displays the frame formats when ESP is applied.
Figure 4-10
Encrypted
PAD Length
Authenticated
IP Data
Authentication Data
The Security Parameters Index (SPI) is an arbitrary 32-bit value that, in combination with the
destination IP address and security protocol (ESP), uniquely identies the SA for this datagram.
The Sequence Number, an unsigned 32-bit eld, contains a monotonically increasing counter
value. It is mandatory and is always present, even if the receiver does not elect to enable the
antireplay service for a specic SA. PAD or padding is used when the frame needs to meet the
minimum frame size formats. The PAD Length denes the length of padding used. Padding is used
for a number of reasons. For example, padding can ensure that the minimum frame size is set so
that packets are not discarded because they are too small. Padding is typically all binary ones
(1111. . .) or zeros (0000. . .). The sequence number ensures that no intruder or intruders can replay
data transactions by using any form of attack mechanisms.
The Next Header is an 8-bit eld that identies the type of data contained in the Payload Data eld.
The IP Data eld contains the data to be sent. The Authentication Data eld is a variable-length
eld containing an Integrity Check Value (ICV) computed over the ESP packet minus the
Authentication Data.
257
Authentication Header
AH is described in RFC 2402. The IP destination protocol is 51. Figure 4-11 highlights the elds
in the IP datagram that are encrypted (data is not encrypted) and authenticated. Note that not all
elds, such as the Time to Live elds, are encrypted.
NOTE AH provides data origin authentication and optional replay-detection services. AH
doesnt provide data condentiality (or encryption). Authentication is done by applying a oneway hash to create a message digest of the packet. Replay detection can be implemented by
using the sequence number in the AH packet header.
Figure 4-11
Le
ToS
ID
TTL
Total Length
Flags, Fragment
Protocol
Header Checksum
Source IP Address
AH Header
Destination IP Address
AH Header
TCP/UDP
Header
Next
Header
Payload
Length
Reserved
Sequence Number
Encrypted
IP Header
(Port 51)
Authentication Data
Next Header, an 8-bit eld, identies the type of the next payload after the Authentication Header.
The Payload Length eld is an 8-bit eld specifying AHs length in 32-bit words (4-byte
units), minus 2.
The Reserved eld is a 16-bit eld reserved for future use. It must be set to 0.
258
The SPI is an arbitrary 32-bit value that, in combination with the destination IP address and
security protocol (AH), uniquely identies the SA for this datagram.
AH can operate in transport or tunnel mode; however, unlike ESP, AH also protects elds in the
outer IP header (in transport mode, this is the original IP header; in tunnel mode, this is the newly
added IP header), which are normally considered nonvariable. AH ensures that if the original IP
header has been altered, the packet is rejected. The protection mechanism thereby with AH is
authentication only.
Before you take a look at how IPSec is enabled on Cisco routers, you need to understand how keys
are exchanged between secure devices to ensure that data is not compromised. IPSec ensures that
once an IPSec tunnel is created, the keys are modied so that intruders cannot replicate the keys
and create IPSec tunnels to insecure locations. A recent study showed that a network of computer
hackers was able to decipher a DES-encrypted message in just a day. (For details on this study
please download ants.dif.um.es/~humberto/ asignaturas/v30/docs/CryptographyFAQ.pdf.)
In IPSec, key exchange is provided by Internet Key Exchange (IKE).
Internet Key Exchange
In IPSec, an SA between any two devices will contain all relevant information, such as the
cryptographic algorithm in use. A cryptographic algorithm is the product of the science of
cryptography. This eld of science includes the exact details of encryption algorithms, digital
signatures, and key agreement algorithms.
A simple two-router network requires two SAs, one for each router. (IPSec requires one SA on
each router for two-way communication.)
Clearly, for a large network, this would not scale. IKE offers a scalable solution to conguration,
and key exchange management.
IKE was designed to negotiate and provide authenticated keys in a secure manner. IKE has two
phases. In phase I, the cryptographic operation involves the exchange of a master secret where no
security is currently in place. IKE phase I is primarily concerned with establishing the protection
suite for IKE messages. Phase I operations are required infrequently and can be congured in two
modes of operationaggressive mode and main mode.
Aggressive mode eliminates several steps during IKE authentication negotiation phase I between
two IPSec peers. Aggressive mode is faster than main mode but not as secure. Aggressive mode is
a three-way packet exchange, while main mode is a six-way packet exchange.
259
IKE can be congured in aggressive mode or main mode (not both). Aggressive mode is a lessintensive process that requires only three messages to establish a tunnel, versus the six messages
required in main mode. Aggressive mode is typically used in remote-access VPN environments.
NOTE Cisco devices use main mode but can respond to peers using aggressive mode. Cisco
IOS 12.2T and 12.3 now support congurable options as well.
Main mode negotiates IKE policy (message types 1 and 2). Information exchanges in these
message types include IP addresses. Proposals, such as Dife-Hellman group number and
encryption algorithm, are also exchanged here. All messages are carried in UDP packets with
a destination UDP port number of 500. The UDP payload comprises a header, an SA payload,
and one or more proposals. Message type 1 offers many proposals, and message type 2
contains a single proposal. For message type 2, it is the single proposal and transform that the
responder wishes to accept.
Performs authenticated Dife-Hellman (DH) exchange. Message types 3 and 4 carry out the
DH exchange. Message types 3 and 4 contain the key exchange payload, which is the DH
public value and a random number (called a nonce). Message types 3 and 4 also contain the
remote peers public key hash and the hashing algorithm. A common session key created on
both ends, and the remaining IKE messages exchanged from here are encrypted. If perfect
forward secrecy (PFS) is enabled, another DH exchange will be completed. The public key
hash and hashing algorithm are sent only if the authentication mechanism is public key
encryption.
Protects IKE peers identitiesidentities are encrypted. Message types 5 and 6 are the last
stage before trafc is sent over the IPSec tunnel. Message type 5 allows the responder to
authenticate the initiating device. Message type 6 allows the initiator to authenticate the
responder. These message types are not sent as clear text. Message types 5 and 6 will now be
encrypted using the agreed-upon encryption methods established in message types 1 and 2.
After IKE phase I is completed, each peer or router has authenticated itself to the remote peer, and
both have agreed on the characteristics of all the SA parameters (IKE parameters).
Figure 4-12 summarizes the key components of IKE phase I and some of the possible
permutations available on Cisco IOS routers.
260
Figure 4-12
Examples include:
DES, MD5, RSA Encryption, DH2 or
DES, MD5, Pre-shared Keys, DH2
IPSec Tunnel
Remote peer
Initiator
IKE SA Parameters
DES
MD5
Pre-share
DH2
Lifetime
IKE Phase 1
IKE SA Parameters
DES
MD5
Pre-share
DH2
Lifetime
The rst message exchanged offers the remote router a choice of IPSec parameters, such as
encryption algorithm, 3DES, MD5, and DH group number, for example. The rst messages aim
is to negotiate all SA policies.
In the second message (type 2), the responding device indicates which of the IPSec parameters it
wants to use in the tunnel between the two devices, including the information required to generate
the shared secret and provide authentication details. The nal message (type 3; until now no
encryption is enabled) authenticates the initiator.
After IKE phase I is complete, IKE phase II is initiated. As discussed in the following section, IKE
phase II negotiation has three message types.
IKE Phase II Message Types 13
IKE phase II negotiates the SA and the keys that will be used to protect the user data. IKE phase
II messages occur more frequently, typically every few minutes, whereas IKE phase I messages
might occur once a day. On most Cisco IOS devices, the timeout is 1 hour.
IP datagrams that exchange IKE messages use UDP (connectionless) destination port 500.
261
Phase II negotiations occur in a mode called Oakley quick mode and have three different message
exchanges. Quick mode can be the following:
With key exchangeWhen PFS is enabled, the DH algorithm is run once more to generate
the shared secret.
Message type 1 allows the initiator to authenticate itself, and selects a random (nonce) number and
proposes an SA to the remote peer. Additionally, a public key is provided (can be different than a
key exchanged in IKE phase I). IKE phase II message type 2 allows the responding peer to
generate the hash. Message type 2 allows the responder to authenticate itself, and selects a random
number and accepts the SA offered by the initiating IPSec peer. A hash is intended as a collisionresistant function, as required for the hashing of information prior to application of a signature
function.
IKE message type 3 acknowledges information sent from quick mode message type 2 so that the
phase II tunnel can be established.
NOTE Perfect forward secrecy can be requested as part of the IKE SA. PFS ensures that a given
IPSec SA key was not derived from any other secret. In other words, if someone were to break
a key or get the key used between two peers, PFS ensures that the attacker would not be able to
derive any other key. If PFS was not enabled, someone could hypothetically break the IKE SA
secret key, copy all the IPSec-protected data, and use knowledge of the IKE SA secret to
compromise the IPSec SAs setup by this IKE SA. With PFS, breaking IKE would not give an
attacker immediate access to IPSec. The attacker would have to break each IPSec SA individually.
Changing the secret key being used for encryption after some period of time (or after a specied
number of bytes have been encrypted) is a good idea. Changing keys makes it more difcult for
an attacker to derive the key or the newly created key.
Now that all the required data has been exchanged, the initiating IPSec router, or peer, sends a nal
phase I message with the hash of the two random numbers generated and the message ID. The
responder needs to verify the hash before data can be protected.
Figure 4-13 summarizes the key components of IKE phase II.
262
Figure 4-13
IPSec Tunnel
IPSec SA
Peer
3DES
SHA
ESP
Lifetime
IKE Phase 2
IPSec SA
Peer
3DES
SHA
ESP
Lifetime
Host A
IKE Peers
Transform,
key material
Transform,
key material
Host B
IPSec Tunnel
Table 4-5 summarizes the key components of IKE phases I and II.
Table 4-5
Tasks
IKE phase I
IKE phase II
263
IKE requires that all information exchanges be encrypted and authenticated. In addition, IKE is
designed to prevent the following attacks:
Denial of serviceWhen messages are constructed with unique cookies that can be used to
identify and reject invalid messages.
Man in the middlePrevents the intruder from modifying messages and reecting them
back to the source or replaying old messages.
NOTE Access control lists determine what trafc to encrypt. For example, you can specify
that certain networks are to be encrypted and other networks are not. The permit statement
encrypts data, and the deny statement (implicit) in an ACL does not send trafc encrypted. An
ACL applied to IPSec conguration parameters does not stop IP routing on a Cisco IOS router.
Table 4-6 summarizes the key terms and concepts used in IPSec terminology.
Table 4-6
Meaning
Advanced Encryption
Standard (AES)
A new standard that supports 128-, 192-, and 256-bit key lengths;
considered a replacement for DES.
A hash algorithm (128 bit) that takes an input message (of variable
length) and produces a xed-length output message. IKE uses
MD5 for authentication purposes.
RSA signatures
264
Table 4-6
Meaning
Dife-Hellman (DH)
Encapsulating Security
Payload (ESP)
ESP (transport mode) does not encrypt the original IP header, and
only encrypts the IP data by placing a header in between the
original IP header and data. ESP (tunnel and transport modes)
provides data condentiality, data integrity, and data origin
authentication.
Figure 4-15 displays the ow chart before any data can be transferred between two IPSec peers.
Figure 4-15
IPSec Flow
R1
R1
1. IKE
2. IPSec Tunnel
3. Data Flow
In Figure 4-15, interesting trafc (or trafc from an end user, for example, dened in the ACLs)
triggers IKE phases I and II followed by the establishment of the IPSec tunnel. After the IPSec tunnel
is established, the data can be transferred. After the data is transferred, the IPSec tunnel is closed.
You can tunnel any form of data across the IPSec tunnel, such as IP, Novel IPX, or AppleTalk.
Cisco IOS IPSec Configuration
To enable IPSec between Cisco IOS routers, the following steps are required:
Step 1
Enable Internet Security Association Key Management Protocol (ISAKMP) with the
IOS command crypto isakmp enable.
This step globally enables or disables ISAKMP at your peer router.
ISAKMP is enabled by default (ACLs dene what interesting trafc will be
encrypted using dened ACLs).
Step 2
265
266
Step 3
Step 4
This command puts you into the crypto transform conguration mode.
Then, dene the mode associated with the transform set:
Router(cfg-crypto-tran)# mode [tunnel | transport]
Dene crypto maps, which tie the IPSec policies and SAs together:
crypto map name seq method [dynamic dynamic-map-name]
NOTE Crypto map entries created for IPSec pull together the various parts used to set up
IPSec SAs, including the following:
Which trafc should be protected by IPSec (per a crypto ACL).
Where IPSec-protected trafc should be sent (who the remote IPSec peer is).
A dynamic crypto map entry is essentially a crypto map entry without all the parameters
congured. It acts as a policy template where the missing parameters are later dynamically
congured (as the result of an IPSec negotiation) to match a remote peers requirements. This
allows remote peers to exchange IPSec trafc with the router even if the router does not have a
crypto map entry specically congured to meet all the remote peers requirements. Dynamic
crypto maps are typically used to ensure security between a remote access IPSec client and
Cisco IOS router, for example.
267
The following typical conguration scenario illustrates the IPSec conguration tasks with a tworouter network. Figure 4-16 displays two routers congured with the networks 131.108.100.0/24
and 131.108.200.0/24, respectively. Suppose that the Frame Relay cloud is an unsecured network
and you want to enable IPSec between the two routers, R1 and R2.
Figure 4-16
IKE Peers
Host A
Host B
131.108.255.0/24
R1
R2
IPSec Tunnel
131.108.100.1/24
access-list 100 permit ip
131.108.100.0 0.0.0.255
131.108.200.0 0.0.0.255
Mirrored ACLs
131.108.200.1/24
access-list 100 permit ip
131.108.200.0 0.0.0.255
131.108.100.0 0.0.0.255
The network administrator has decided to dene the following ISAKMP parameters:
MD5.
To start, congure IKE on Router R1. Example 4-11 displays the IKE conguration on R1.
Remember that IKE policies dene a set of parameters to be used during IKE negotiation. (Note
that in Cisco IOS 12.2T and later, the commands have different options.)
Example 4-11
R1 IKE Conguration
R1 is congured to use the MD5 algorithm, and the authentication method is dened as preshared.
The preshared key value (password) is CCIE, and the remote IPSec peers address is
131.108.255.2 (R2 serial link to R1 in Figure 4-16).
268
IPSec Conguration
mode transport
!
cryp to map anyname1 1 ipsec-i sakmp
set peer 131.108.255.2
se t security-association li fetime seconds 900
set tr ansform-set anyname
match address 100
!
access- list 100 permit ip 131.10 8.100.0 0.0.0.255 131.108 .200.0 0.0.0.255
! IKE configuration
crypto isakmp policy 1
hash md5
authentication pre-share
c rypto isakmp key CCIE add ress 131.108.255.1
!
crypto ipsec transform-set anyna me esp-des esp-sha-hmac
mode transport
Example 4-13
269
!IPSec configuration
crypto map anyname1 1 ipsec-isa kmp
set peer 131.108.2 55.1
set security-associa tion lifetime seconds
900
Notice that the routers have mirrored ACLs. This ensures that when encrypted data is received
from a source, such as R1, the corresponding IPSec peer router, R2, enables encryption in the
reverse direction. For example, when trafc from the network 131.108.100.0/24 residing on
Router R1 is sent across, destined for R2s Ethernet network, the IP subnet 131.108.200.0/24, R2
must have a corresponding ACL permitting trafc from the locally connected Ethernet segment,
131.108.200.0/24, to the remote network, the IP subnet on R1, 131.108.100.0/24. This is referred
to as mirrored ACLs.
Example 4-13 congures R2 to peer to R1 and only encrypt trafc sourced from 131.108.200.0/
24 destined for R1s Ethernet network, 131.108.100.0/24. The crypto predened map name is
anyname1.
Finally, you must apply a previously dened crypto map in Example 4-12. The dened crypto map
name is anyname1 in this example, so apply that conguration to the interface. The IOS command
that applies the crypto map to an interface is as follows (in cong-interface mode):
crypto map anyname1
Example 4-14 assigns the serial links on R1 and R2 to the crypto map name anyname1 and assigns
the crypto map to interface Serial 0/0 on R1/R2.
Example 4-14
Hostname R1
!
interface Seri al0/0
ip address 131.108. 255.1 255.255.255.252
crypto map anyname1
!
Hostn ame R2
!
interface Serial0/ 0
ip address 131.108.255. 2 255.255.255.252
crypto map anyname1
270
To display the status of all crypto engine active connections, use the IOS command show crypto
engine connections active.
Example 4-15 displays the current active crypto engines on R1.
Example 4-15
IP-Address
131.108.255.1
State
set
Algorithm
HMAC_MD5+DES_56_CB
Encrypt
Decrypt
R1 has an IPSec peer connection to R2, through the Serial0/0 interface (131.108.255.1). The
algorithm in use is dened and displayed, as well.
To view the crypto map conguration from the PRIV EXEC, use the IOS command show crypto map.
Example 4-16 displays the conguration present on R1.
Example 4-16
Example 4-16 displays the fact that the crypto map named anyname1 is peered to a remote
router, 131.108.255.2, and the access-list 100 denes what trafc will be encrypted across the
tunnel.
IPSec is a large eld, and to dene every possible scenario would require a book in itself. What is
presented in this guide is a conceptual overview of IPSec and a common conguration example.
For more extensive details, visit:
http://www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fsecur_c/
psenc/index.htm
For the CCIE Security written exam, expect to see scenarios of the variant presented in Figure 4-16
and questions on terminology and the main characteristics of IPSec.
271
NOTE IPSec can also be supported over the Cisco software tunnel interface. Typically, the
tunnel (IP tunnel; GRE, for example) can be congured to carry non-IP trafc by dening a
crypto map to the tunnel interface and a crypto control list.
Table 4-7 denes some key IPSec conguration show and debug commands available on Cisco
IOS routers.
Table 4-7
Description
272
NOTE A number of PC-based applications are available to the public that allow application
layer encryptions.
An excellent e-mail encryption application is a product called Pretty Good Privacy (PGP).
Designed and freely available on the Internet (http://www.pgp.com), PGP allows users to
authenticate les and e-mail text, allowing only the intended recipient to decrypt the message.
Users who send and receive encrypted data exchange keys. With encrypted data, the remote
users key is used to encrypt clear-text data or les. This ensures that the data is authenticated
and not forged. Also check out http://www.gnupg.org for a free version of PGP.
Microsoft Outlook 2000 supports PGP and allows the client to encrypt and decrypt data using
the preshared public keys.
To declare the CA that a Cisco IOS router should use, use the crypto ca identity name command
in global conguration mode. The CA might require a particular name, such as the domain name.
Finally, to cover the exam blueprint, this chapter closes with a short explanation of some of the
security protocols used in todays networks to ensure security over wireless connections.
Extensible Authentication Protocol, Protected EAP, and Temporal Key Integrity Protocol
273
A proposal jointly submitted to the IEEE by Cisco Systems, Microsoft, and various other
organizations introduced Protected EAP (PEAP), an EAP to provide enhanced functionality and
security features to wireless networks. PEAP is todays preferred authentication mechanism in
wireless networks.
PEAP provides the following security benets:
Relies on Transport Layer Security (TLS) to allow nonencrypted authentication types such as
EAP-Generic Token Card (GTC) and One Time Password (OTP) support.
Does not expose the logon username in the EAP identity response.
That functionality is provided to wireless client adapters, which may support different
authentication types, to communicate with different back-end servers such as RADIUS servers.
EAP can be used with wired networks as well.
Microsoft Windows XP supports an extension to EAP, namely Extensible Authentication Protocol
Transport Layer Security (EAP-TLS). Hence, a number of options are available to end users so
that authentication may be completed securely over a wireless network. Recently Microsoft has
added support for EAP-TLS and PEAP to several of its operating systems.
Figure 4-17 displays a typical wireless network in which a user labeled PEAP Client is required
to authenticate to either a Cisco Secure ACS or the Cisco Access Registrar. The Cisco Access
Registrar is based on a client/server model, which supports AAA. The client passes user
information on to the RADIUS server and acts on the response it receives. The server, on the other
hand, is responsible for receiving user access requests, authenticating and authorizing users, and
returning all of the necessary conguration information the client can then pass on to the user.
Figure 4-17
1
PEAP Client
Access Point
with PEAP Support
Layer 2
Switch
RADIUS Server
Running ACS/CAR
274
NOTE There have been some additions to EAP to help alleviate some of the weaknesses in
other technologies, such as wireless networks.
PEAP is an EAP authentication type that provides mutual authentication of the client and
RADIUS server via the access point. PEAP mutual authentication has two parts. In the rst part,
the server certicate is veried by the client; in the second part, the user is authenticated using
the information protected in the TLS tunnel. Additionally, EAP-TLS provides mutual
authentication using digital certicates on both the client and the server.
Figure 4-17 displays a Windows XP client trying to associate with a wireless access pointthe
rst step the client performs. The second step is that the access point in Figure 4-17 blocks the
request because the client has not been veried by the RADIUS server.
Figure 4-18 displays the next six steps in the PEAP authentication process.
Figure 4-18
Layer 2
Switch
PEAP Client
5 Server/Client establish
identical unicast key.
Access Point
with PEAP Support
IP Network
8
Client activates
encryptionto AP
and starts transmission
that is it stops blocking
traffic from the client.
Access Point
Delivers Key to Client
RADIUS
Server
Extensible Authentication Protocol, Protected EAP, and Temporal Key Integrity Protocol
275
The eight-step process in Figure 4-17 and Figure 4-18 starts with the clients attempt to
authenticate with the RADIUS server. Once a valid username and password are exchanged, the
RADIUS server and client establish a common key used to send and receive data over a secured
wireless connection.
NOTE Cisco Secure ACS or the Cisco Access Registrar can be used for a combined LEAP
and EAP-TLS protocol deployment in an enterprise network. Cisco LEAP is an 802.1X
authentication type for wireless LANs that supports mutual authentication between the client
and a RADIUS server.
EAP allows the administrator access to a number of password authentication mechanisms,
including one-time passwords, public key authentication using smart cards, certicates, and
others.
EAP is discussed in RFC 2284, PPP Extensible Authentication Protocol (March 1998).
RFC 2284 can be found at http://www.ietf.org/rfc/rfc2284.txt
The Cisco Wireless Security Suite supports IEEE 802.1X authentication and numerous EAP
types, including EAP Cisco Wireless (LEAP); EAP-Transport Layer Security (EAP-TLS), and
types that operate over EAP-TLS, such as PEAP, EAP-Tunneled TLS (EAP-TTLS), and EAPSubscriber Identity Module (EAP-SIM). The suite also supports a pre-standard version of
Temporal Key Integrity Protocol (TKIP).
TKIP defends against an attack on Wired Equivalent Privacy (WEP) in which the intruder uses an
unencrypted segment called the initialization vector (IV) in encrypted packets to calculate the
WEP key. TKIP removes the predictability that an intruder relies on to determine the WEP key by
exploiting IVs. TKIP protects both unicast and broadcast WEP keys.
TKIP provides enhancements to 128-bit encryption. One such enhancement is per-packet key
hashing, where the encryption key is changed on each packet. This feature helps combat a
common WLAN hacking tool called AirSnort, freely available at http://airsnort.shmoo.com/,
which takes advantage of a weakness in WEP encryption when static WEP keys are not changed
during a session. It must be pointed out, however, that even with TKIP, the session key needs to
be changed before the IV space recycles at 16.7 million packets.
Another important new security advance with TKIP is Message Integrity Check (MIC). With MIC,
a digital signature is included with every frame sent, neutralizing the man-in-the-middle attack by
hackers who can capture a wireless packet, modify it, and resend it.
276
TKIP and MIC are easily deployed on an access point. The following list details the simple threestep IOS conguration process:
Step 1
Step 2
Step 3
Establish a tunnel between the NAS and the home gateway (HWY). The HWY is a
Cisco router or access server (for example, an AS5300) that terminates VPDN
tunnels and PPP sessions. This phase takes place only when no active tunnel exists
between both devices.
Step 2
For L2TP, the setup for tunneling a PPP session consists of two steps:
Step 1
Establish a tunnel between the L2TP access concentrator (LAC) and the L2TP
network server (LNS). The LAC acts as one side of the L2TP tunnel endpoint and
has a peer to the LNS. This phase takes place only when no active tunnel exists
between both devices.
Step 2
277
Figure 4-19 displays the tunnel termination points between a remote point of presence (POP)
(typically an ISP router) and the home gateway router.
Figure 4-19
Home
Network
L2F or L2TP
Tunnel
Local
POP
Remote
POP
ISP (IP)
Network
Remote
Users
The remote POP accepts frames encapsulated in L2F or L2TP and forwarded over the tunnel.
The LAC and LNS are hardware devices, such as Ciscos AS 5300 series router platform. The
LACs function is to sit between the LNS and the remote system and forward packets to and from
each device. The LNS logically terminates the PPP connection.
VPDNs are implemented so that users connected through ISPs in any part of the world can take
advantage of the connection to the ISP and tunnel the companys remote access trafc through the
ISP network.
VPDNs include the following benets:
Ofoad remote access services to the ISP, which already has the infrastructure place.
End system transparency because the remote user does not require any hardware or software
to use VPDN. Cisco IOS routers performs all the requirements.
Allows for accounting, which is sent from the home gateway router.
278
Figure 4-20 displays a typical VPDN scenario where a PC or router dials the NAS/LAC to request
a VPDN connection to the private network.
Figure 4-20
VPDN Tunnel
L2TP or L2P
PSTN
Telco
Cloud
ISDN
VPDN Tunnel
IP
Cloud
HGW/LNS
NAS/LAC
Internal
Network
PC or router
sends PPP request.
PPP Request
NAS/LAC
TACACS+ Server
or RADIUS Server
A Cisco router or access server for client access (NAS/LAC) and a Cisco router for network
access (HGW/LNS) with IP connectivity between them.
Host names of the routers or local names to use on the VPDN groups.
A tunneling protocol, either the L2TP or L2F Protocol. L2TP is an industry standard, and L2F
is a Cisco-proprietary protocol.
A tunneling criteria, either domain name or Dialed Number Identication Service (DNIS).
A VPDN connection between a remote user (router or through PSTN) and the corporate LAN is
accomplished in the following steps:
Step 1
The remote user initiates a PPP connection to the ISP using the analog telephone
system or ISDN.
Step 2
279
Step 3
The ISP NAS authenticates the end user with CHAP or PAP. The username
determines whether the user is a VPDN client. If the user is not a VPDN client, the
client accesses the Internet or other contacted service.
Step 4
The tunnel endpointsthe NAS and the home gatewayauthenticate each other
before any sessions are attempted within a tunnel.
Step 5
If no L2F tunnel exists between the NAS and the remote users home gateway, a
tunnel is created. Then, an unused slot within the tunnel is allocated.
Step 6
The home gateway accepts or rejects the connection. Initial setup can include
authentication information required to allow the home gateway to authenticate the
user.
Step 7
The home gateway sets up a virtual interface. Link-level frames can now pass
through this virtual interface through the L2F tunnel.
Create a virtual template interface, and enter the interface conguration mode:
interface virtual-template number
Step 2
Identify the virtual template interface type and number on the LAN:
ip unnumbered interface number
Step 3
Step 4
Step 5
Enable the global conguration command to allow virtual private networking on the
NAS and home gateway routers:
vpdn enable
Step 6
Specify the remote host (the NAS), the local name (the home gateway) to use for
authenticating, and the virtual template to use:
Home gateway router:
vpdn incoming nas-name hgw-name virtual-template number
NAS conguration:
vpdn outgoing domain-name NAS-nameip ip ip-address
280
NOTE You can also enable the NAS to authenticate users via TACACS+ or RADIUS using
AAA commands.
A typical conguration le on a UNIX server has a conguration similar to the following
conguration:
LAC Radius Configuration - Sample
Sanjose.cisco.com
Password = "cisco"
Service-Type = Outbound-User,
cisco-avpair = "vpdn:tunnel-id=DEFGH",
cisco-avpair = "vpdn:tunnel-type=l2tp",
cisco-avpair = "vpdn:ip-addresses=10.31.1.9",
cisco-avpair = "vpdn:l2tp-tunnel-password=ABCDE"
The conguration on the LAC denes the specic av-pairs, namely the tunnel-id, tunnel-type,
ip-address, and l2tp password.
Example 4-17 displays a typical NAS/LAC conguration using TACACS+.
Example 4-17
Example 4-17
281
Example 4-17 displays the ISP router that typically supplies the tunnel-id to the HGW and IP
address to the dial users.
Example 4-18 displays a typical conguration the home gateway router.
Example 4-18
282
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of this
chapters key concepts. If you are already comfortable with the topics in this chapter and decided
to skip most of the Foundation Topics material, the Foundation Summary will help you recall
a few details. If you just read the Foundation Topics section, this review should help further
solidify some key facts. If you are doing your nal preparation before the exam, the Foundation
Summary offers a convenient and quick nal review.
Table 4-8
Table 4-9
AAA Terminology
Attribute
Meaning
Authentication
Who are you? A remote user must be authenticated before being permitted access
to network resources. Authentication allows users to submit their usernames and
passwords, and permits challenges and responses. Username/password pairs are a
common form of authentication.
Authorization
What resources are you permitted to use? Once the user is authenticated,
authorization denes what services in the network the user is permitted access to.
The operations permitted here can include IOS privileged EXEC commands.
Accounting
What resources were accessed, at what time, and by whom, and what commands
were issued to access them? Accounting allows the network administrator to log
and view what was actually performed; for example, if a Cisco router was
reloaded or the conguration was changed. Accounting ensures that an audit will
enable network administrators to view what was performed and at what time.
RADIUS Summary
Feature
Meaning
UDP
Packets sent between clients and servers are UDP primarily because TCPs
overhead does not allow for signicant advantages. Typically, the user can
wait for a username/password prompt.
Early deployments of RADIUS used UDP ports 1645 and 1646. The
ofcially assigned port numbers are 1812 and 1813.
Attributes
Attributes are used to exchange information between the NAS and client.
Model
Encryption method
Multiprotocol
support
Foundation Summary
Table 4-10
283
TACACS+ Summary
Feature
Meaning
TCP
Port 49.
Attributes
Table 4-11
Table 4-12
Seq_no
The sequence number of the current packet ow for the current session. The
Seq_no starts with 1, and each subsequent packet increments by one. The
client sends only odd numbers. TACACS+ servers send only even numbers.
Encryption method
The entire packet is encrypted. Data is encrypted using MD5 and a secret
key that matches both on the NAS (for example, a Cisco IOS router) and the
TACACS+ server.
Multiprotocol
support
TACACS+
Packet delivery
UDP
TCP
Packet encryption
AAA support
Multiprotocol
support
None.
Router management
Encryption Methods
Encryption Method
Description
Data Encryption
Standard (DES)
284
Table 4-12
Description
A variant of DES that iterates three times with three separate keys
(encrypts with one 56-bit key, decrypts with another 56-bit key, and then
encrypts with another 56-bit key).
Three keys are used to encrypt data, resulting in a 168-bit encryption key.
Advanced Encryption
Standard (AES)
Table 4-13
A new standard that replaces DES. Encryption key lengths are 128, 192,
and 256 bits.
Tasks
IKE phase I
IKE phase II
Table 4-14
IPSec Terminology
Term
Meaning
Foundation Summary
Table 4-14
Table 4-15
285
Meaning
RSA signatures
Dife-Hellman (DH)
Step 2
Step 3
286
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the
CCIE Security written exam and those topics presented in this chapter. This format should help
you assess your retention of the material. A strong understanding of the answers to these questions
will help you on the CCIE Security written exam. You can also look over the questions at the
beginning of the chapter again for further review. As an additional study aid, use the CD-ROM
provided with this book to take simulated exams, which draw from a database of over 500
multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
Dene the AAA model and a typical application on a Cisco IOS router.
2.
Can you allow a remote user authorization before the user is authenticated with AAA?
3.
What IOS command is required when enabling AAA for the rst time?
4.
What is the privilege level of the following user? Assume AAA is not congured.
R2>
5.
Dene four possible RADIUS responses when authenticating the user through a RADIUS
server.
6.
7.
What protocols does RADIUS use when sending messages between the server and client?
8.
What predened destination UDP port number is RADIUS accounting information sent to?
9.
What does the following Cisco IOS software command accomplish on a Cisco IOS router?
aaa authentication ppp user-radius if-needed group radius
10.
What is the RADIUS server IP address and key for the following conguration?
radius-server host 3.3.3.3
radius-server key GuitarsrocKthisplaneT
11.
12.
13.
What are the four possible packet types from a TACACS+ server when a user attempts to
authenticate a Telnet session to a Cisco router congured for AAA, for example?
Q&A
14.
What is the signicance of the sequence number in the TACACS+ frame format?
15.
287
16.
17.
TACACS+
Packet delivery
UDP
TCP
Packet encryption
AAA support
Multiprotocol
support
None.
Router management
18.
What are the three most common threats from intruders that network administrators face?
19.
20.
21.
22.
288
Scenario
Scenario Topology
Host C
131.108.101.5/24
Ethernet 0/1
131.108.101.0/24
Host A
Host B
131.108.255.0/24
Ethernet 0/0
131.108.100.1/24
131.108.100.5/24
Ethernet 0/0
131.108.200.1/24
IPSec Tunnel
131.108.200.5/24
Example 4-19 displays the working conguration of R1, with lines numbered from 1 to 31.
Example 4-19
1.
version 12.2
2.
hostname R1
3.
4.
5.
6.
hash md5
authentication pre-shar e
7.
8.
9.
mode tunnel
12.
13.
14.
Example 4-19
289
19.
encapsulation frame-rela y
20.
ip split-horizon
21.
22.
23.
24.
25.
30.
31. end
Example 4-20 displays the working conguration of R2, with lines numbered from 1 through 29.
Example 4-20
1.
Version 12.2
2.
hostname R2
3.
4.
5.
hash md5
6.
authentication pre-share
7.
8.
9.
mode tunnel
19.
encapsulation frame-relay
20.
ip split-horizon
21.
22.
23.
24.
25.
26.
router ospf 1
27.
28.
29. end
290
The following debug output is seen on R1 after the network administrator pings remote network
131.108.100.1 from Router R2s console port.
1.
2.
3.
What IOS command produced the following display and from which router?
Crypto Map "anyname1" 1 ipsec-isakmp
Peer = 131.108.255.2
Extended IP access list 100
access-list 100 permit ip 131.108.100.0 0.0.0.255 131.108.200.0 0.0.0.255
Current peer: 131.108.255.2
Security association lifetime: 4608000 kilobytes/180 seconds
PFS (Y/N): N
Transform sets={ anyname, }
Interfaces using crypto map anyname1:
Serial0/0
4.
Will Host A be able to communicate with Host B or Host C? The following displays are the
IP routing tables on R1 and R2. (Assume the gateway congurations on the PCs are correct.)
R1s IP routing table:
show ip route
R1>s
Codes: C - connected, , O - OSPF,
131.108.0.0/16 is variably subnetted, 4 subnets, 2 masks
C
131.108.255.0/30 is directly connected, Serial0/0
O
131.108.200.0/24 [110/400] via 131.108.255.2, 00:52:00, Serial0/0
C
131.108.101.0/24 is directly connected, Ethernet0/1
C
131.108.100.0/24 is directly connected, Ethernet0/0
5.
291
292
Scenario Answers
Scenario Solutions
1.
The following debug output advises the network administrator of the problem:
22:58:55: %CRYPTO-4-IKMP_BAD_MESSAGE: IKE message from 131.108.255.1
s sanity check or is malformed....
failed it
During the IKE negotiation, the router reports a message that identies the fault as the share
password. R2 is congured with the password, CCIe (should match R1s preshared password
set to CCIE). See Example 4-17, and code line 7.
Changing the IKE password to CCIE with the IOS command crypto isakmp key CCIE
address 131.108.255.1, the following debug output conrms the IPSec connections by
pinging from R2 Ethernet 0/0 IP address to R1 Ethernet 0/0 IP address:
ping
R2#p
Protocol [ip]:
Target IP address: 131.108.100.1
Repeat count [5]:
Datagram size [100]:
Timeout in seconds [2]:
Extended commands [n]: y
Source address or interface: 131.108.200.1
Type of service [0]:
Set DF bit in IP header? [no]:
Validate reply data? [no]:
Data pattern [0xABCD]:
Loose, Strict, Record, Timestamp, Verbose[none]:
Sweep range of sizes [n]:
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.100.1, timeout is 2 seconds:
23:12:21: CryptoEngine0: generate alg parameter
23:12:21: CRYPTO_ENGINE: Dh phase 1 status: 0
23:12:21: CRYPTO_ENGINE: Dh phase 1 status: 0
23:12:21: CryptoEngine0: generate alg parameter
23:12:21: CryptoEngine0: create ISAKMP SKEYID for conn id 1
23:12:21: CryptoEngine0: generate hmac context for conn id 1
23:12:21: CryptoEngine0: generate hmac context for conn id 1
23:12:21: CryptoEngine0: generate hmac context for conn id 1
23:12:21: CryptoEngine0: clear dh number for conn id 1
23:12:22: CryptoEngine0: generate hmac context for conn id 1
23:12:22: validate proposal 0
23:12:22: validate proposal request 0
23:12:22: CryptoEngine0: generate hmac context for conn id 1.!!!!
Success rate is 80 percent (4/5), round-trip min/avg/max = 12/13/16 ms
R2#
Scenario Solutions
293
The rst ping packet fails because the IPSec tunnel has not yet been created. Then, the IPSec
tunnel is successfully brought up between R1 and R2.
2.
Access-list 100 on both routers denes the IP subnets that need to be encrypted between R1
and R2. Packets owing between subnets 131.108.100.0/24 and 131.108.200.0/24 will be
encrypted.
R1s ACL is as follows:
access-list 100 permit ip 131.108.100.0 0.0.0.255 131.108.200.0 0.0.0.255
3.
The show crypto map IOS command displays the remote peer address and the transform set.
The previous displays are taken from R1 because the remote peer address is displayed as
131.108.255.2 (R2s serial 0/0 IP address).
4.
Yes, because IPSec has nothing to do with routing IP data, IPSec will encrypt only data as
congured. R1 has a remote entry to the network residing on R2, and R2 has a remote entry
to the network residing on R1. Trafc between A and C and B and C will not be encrypted;
only trafc between A and B will be encrypted.
Here is a sample ping request from R2 to R1 and Host A and Host C:
ping 131.108.100.1
R2>p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.100.1, timeout is
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R2>
ping 131.108.101.1
R2>p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.101.1, timeout is
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R2>
ping 131.108.100.5
R2>p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.100.5, timeout is
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
R2>
ping 131.108.101.5
R2>p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 131.108.105.1, timeout is
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
2 seconds:
4/6/8 ms
2 seconds:
4/6/8 ms
2 seconds:
4/6/8 ms
2 seconds:
4/6/8 ms
294
5.
Because the source network is located on R1, access-list 100 on R1 needs to be modied,
remembering that, by default, an implicit deny is dened on ACL 100. Network
131.108.101.0/24 is only permitted to encrypt trafc to the static IP address 131.108.200.5,
hence the ACL line required on R1 becomes the following:
access-list 100 permit ip 131.108.100.5 0.0.0.0 131.108.200.0 0.0.0.255
access-list 100 permit ip 131.108.101.0 0.0.0.255 131.108.200.5 0.0.0.0
or:
access-list 100 permit ip 131.108.100.5 0.0.0.0 131.108.200.0 0.0.0.255
access-list 100 permit ip 131.108.101.0 0.0.0.255 host 131.108.200.5
IP routing is already congured and working. IPSec will ensure only that IP data is encrypted.
Cisco Secure NT
VPN 3000
Client-side VPN
CHAPTER
Cisco Secure for Windows (NT) and Cisco Secure ACSIntroduces Cisco Secure, the
Cisco security application that is available on Windows platforms, and Cisco Secure Access
Control Server (ACS), which provides additional network security when managing IP
networks designed with Cisco devices.
Cisco VPN 3000 Concentrator and Cisco Secure VPN ClientIncludes information on
the VPN Concentrator and the Cisco Secure VPN Client required to ensure that connections
over public networks are secured.
Security Information Monitoring SystemExplains how Cisco IDS can monitor and
identify intruder-based attacks and enable security information to be monitored and acted
upon.
298
2.
3.
Switches
b.
Routers
c.
Firewalls
d.
e.
f.
All of these
Cisco Secure ACS supports what two security protocols? (Choose the best two answers.)
a.
RADIUS
b.
TCP
c.
TACACS+
d.
TFTP
e.
ICMP
Console port.
b.
c.
d.
4.
5.
6.
7.
299
Router
b.
Switch
c.
Firewall
d.
e.
VPN Concentrator
f.
Windows XP PC
g.
All of these
b.
c.
d.
e.
None of these
All but which of the following is a Cisco VPN model currently supported by Cisco?
a.
3001
b.
3002
c.
3005
d.
3015
e.
3020
f.
3030
g.
3060
h.
3080
All but which of the following is part of the Cisco SAFE Blueprint for IDS tuning?
a.
b.
c.
d.
Analyze alarms, tune out false positives, and implement signature tuning (if needed).
e.
f.
g.
300
8.
9.
10.
What application layer protocol does a security manager use when using the Cisco Security
Device Manager (SDM) application?
a.
ICMP
b.
SSC
c.
SSCP
d.
SSL
e.
CCH
f.
AES
g.
ESP
h.
3DES
What is the default username and password combination for a Catalyst 6500 ISDM-2 module
(not the IDS 4.0)?
a.
Cisco/cisco
b.
cisc/cisc
c.
ciscoids/attacks
d.
cisco/cisco
e.
attack/attack
f.
None of these
What is the default username and password combination for a VPN 3000 Concentrator?
a.
Admin/admin
b.
admin/admin
c.
cisco/cisco
d.
3000/3000
e.
attack/attack
f.
None of these
301
Foundation Topics
Cisco Secure ACS for NTThis powerful ACS application for NT servers runs both
TACACS+ and RADIUS. It can use an NT username/password database or Cisco Secure ACS
database.
Cisco Secure ACS for UNIXThis powerful ACS application for UNIX includes support
for TACACS+ and RADIUS. It supports SQL applications such as Oracle and Sybase.
Cisco Secure Global Roaming ServerThis server performs TACACS+ and RADIUS
proxy functions. It is a standalone server for large ISP networks. Cisco Secure Global
Roaming Server recently has been replaced by Cisco CNR Access Register to take advantage
of multiprocessor systems and provide the highest AAA performance.
NOTE Cisco Secure topics are tested in the CCIE Security lab exam (particularly Cisco
Secure for Windows 2000 Server). The written exam does not require you to have a detailed
understanding of this application. Chapter 8, CCIE Security Self-Study Lab, contains an
excellent example of how to congure Cisco Secure ACS for Windows NT in a real lab scenario
and hence it is not covered in depth in this chapter.
Chapter 8 also contains a detailed example of how a VPN 3000 Concentrator is congured.
Supports centralization of AAA access for all users, including routers and rewalls
302
Can support a limited number of network access servers of between 5000 and 20,000 AAA
clients
Supports many different Cisco platforms, including PIX access servers and routers
Figure 5-1 displays typical centralized Cisco Secure Server performing functions such as user
authentication, authorization, and accounting.
Figure 5-1
ISDN/PSTN
PIX
Ethernet Switch
Ethernet Switch
TACACS+/
RADIUS
TACACS+/
RADIUS
Cisco Secure NT/UNIX
Figure 5-1 displays a typical application where ISDN/PSTN users are authenticated by RADIUS
or TACACS+ via Cisco Secure.
In addition to simultaneous support for RADIUS/TACACS+, Cisco Secure also supports the
following AAA features:
IDS Fundamentals
303
Time restrictions where access to the network is controlled during the day and night
IDS Fundamentals
A solid understanding of IDS fundamentals and different IDS technologies is required before
analysis and deployment discussions can be coverednot only for the written and lab exams but
also for real-life scenarios. Out of all the CCIE tracks available, the Security exam is one of the
most sought-after certications because it relates to everyday real-life scenarios.
Notification Alarms
The overall purpose of intrusion detection systems is to trigger alarms when a given packet or
sequence of packets seems to represent suspicious activity that violates the dened network
security policy. Although alarms are essential, it is critical for network security personnel to
congure the IDS to minimize the occurrence of false negative and false positive alarms. There
are a number of terms you should be familiar with when discussing host- or network-based IDSs:
304
False positive alarmFalse positives (benign triggers) occur when the IDS reports certain
benign activity as malicious, requiring human intervention to diagnose the event.
False negative alarmA false negative alarm can occur when the IDS sensor does not detect
and report a malicious activity, but the system allows it to pass as nonintrusive behavior.
Because this can be catastrophic for network operation, minimizing false negatives is the
highest priority.
True positive alarmThis is the opposite of a false negative. In this case an alarm has been
correctly sent in response to malicious activity. These alarms cause the most concern for a
network administrator.
True negative alarmA true negative is not an actual alarm but rather a situation in which
the IDS in place does not trigger an alarm for activity permitted within a network.
Signature-Based IDS
The signature-based IDS monitors the network trafc or observes the system and sends alarms if
a known malicious event is happening. It does this by comparing the data ow against a database
of known attack conditions. These signatures explicitly dene what trafc or activity should be
considered malicious. Various types of signature-based IDSs exist, including the following:
Heuristic-based analysis
Anomaly detection
The pattern-matching systems look for a xed sequence of bytes in a single packet, which has
three advantages:
It is simple.
The weakness of a pattern-matching system is that any slightly modied attack leads to false
negatives. Multiple signatures may be required to deal with a single vulnerability in stateful
pattern-matching systems, as matches are made in context within the state of the stream.
IDS Fundamentals
305
Anomaly-Based IDS
The anomaly-based IDS looks for trafc that deviates from what is seen normally. The denition
of the normal and abnormal network trafc patterns forms the identity of the culprit. Once the
denition is in place, the anomaly-based IDS can monitor the system or network and send an alarm
if an event outside known normal behavior is detected. An example of suspicious behavior is the
detection of specic data packets (routing updates) that originate from a user device rather than
from a network router.
Pros
Cons
Host-based
Networkbased
IDS Placement
The HIDS is typically placed in a number of locations, such as the DMZ, behind a rewall, inline
inside a Catalyst 6500, or on the inside network.
306
Figure 5-2 displays a typical IDS placement and shows how this technology can be used to prevent
attacks from within and from outside an organization.
Figure 5-2
IDS Placement
Disgruntaled
Employees
IDS 1
Corporate
Network
IDS 3
IDS Device
Manager
Firewall
Public
Network
Administration
Hacker
WWW Server
IDS 2 6500
with IDS/FW
Figure 5-2 displays a network with three NIDSs in place communicating back to an IDS Device
Manager (IDM).
IDS 1 in Figure 5-2 is the frontline defense against all the noise from the Internet and will typically
stop attacks such as port scans, Network Mapper (Nmap) for example. Nmap is a free, open-source
utility for network exploration or security auditing, downloadable from http://www.insecure.org/
nmap/index.html.
NOTE The NIDS appliance (IDS 1) in Figure 5-2 at the public side of the rewall is
monitoring for attacks based on Layer 4 through Layer 7 analysis and on comparisons against
known signatures. Still, this NIDS should have alarms set to a lower level than appliances on the
inside of the rewall. Alarms seen here do not represent actual breaches, but merely attempts to
reduce the number of false positives and to decrease the amount of time it takes to discover any
successful attacks against devices within the corporate network.
However, IDS 2 in Figure 5-2 is a 6500 series switch with an IDS blade and a Cisco Firewall
Services Module (FWSM). The Cisco FWSM is a high-speed, integrated rewall module for
Cisco Catalyst 6500 switches and Cisco 7600 Series routers and is based on Cisco PIX Firewall
technology. It includes advanced features like multiple security contexts both at the routed levels
and in bridging mode, helping to reduce cost and operational complexity while managing multiple
rewalls from the same management platform. IDS 2 in Figure 5-2 can prevent much more
sophisticated forms of attack, such as manipulated Internet Information Server (IIS) services in
IDS Fundamentals
307
Windows-based platforms. Recent reports mention a number of vulnerabilities in the IIS services,
such as device manager traversal, Unicode device manager traversal, and the ability to decode
command execution via a webpage.
Cisco IDS Sensors are network devices that perform real-time monitoring of network trafc for
suspicious activities and active network attacks. When an event does occur, the Cisco IDS sends
an alarm to the Cisco IDS Device Manager (IDM), a software package installed on an HP
OpenView, HPUX, or Solaris workstation.
Typically, when an alarm is raised, the IDS can send e-mail messages at a particular alarm level
via the daemon named eventd. IDS sensors can also set an alarm that is user congurable. IDS
sensors cannot perform a trace route function to the intruding system; this is not often effective,
because hackers use other IP addresses by spoong valid network addresses. Recent developments
in Cisco security also mean that sensors can modify and add new access lists, for example, when
an event does occur, and block the source IP address from instigating any more attacks. This is
called shunning in Cisco terminology.
IDS 3 in Figure 5-2 will prevent intruders from within an organization.
It is vital that any organization that is serious about defending against new styles of attacks
constantly tune the IDS signatures so that the number of false positives is minimized.
IDS Tuning
Tuning IDS sensors is critical to a successful network implementation. IDS sensors generate alerts
in response to all trafc matching established criteria; without tuning, this will not be as reliable
as possible. This could result in a large number of false positives, which could easily overwhelm
security personnel and reduce the value of the information the IDS provides, resulting in a relaxed
attitude by security support and administration staff until a real event occurs. But that could be too
late.
The Cisco SAFE Blueprint recommends a number of key guidelines when tuning an IDS sensor
(as described by Cisco at http://cisco.com/en/US/netsol/ns340/ns394/ns171/ns128/
networking_solutions_white_paper09186a00801bc111.shtml):
Step 1
Identify Potential Locations for SensorsTo properly tune IDS sensors, the rst
step is to identify network locations where the sensors can be placed for maximum
efciency.
Step 2
308
Step 3
Step 4
Analyze Alarms, Tune Out False Positives, and Implement Signature Tuning (If
Needed)During the initial tuning period, you will need to determine the cause of
every alarm in order to identify false positives. This task could be tedious, but it is
necessary for your network IDS deployment to be of any use in detecting malicious
activity.
Step 5
Selectively Implement Response ActionsOnce the false positives are tuned out
and logging due to IDS tuning changes is sufciently reduced, response actions such
as TCP resets, shunning, and IP logging can be implemented.
Step 6
Network managers or security users can dene user blade signatures with string matches using the
signature in the 8000 range. Each signature is dened by a signature ID or number.
Network IDSs imbedded in Cisco IOS, in hardware-based models, or in PIX Firewalls can respond
to attacks with a number of predened actions to help network security managers:
BlockingBlocking (also known as shunning) may also be implemented within the network
to protect corporate servers that are not customer facing.
IP loggingNetwork IDS sensors can be congured to log IP packet data after an attack
signature is seen.
As you can see, IDS technology offers many advantages to protect todays growing networks. The
need to be connected to the public Internet has meant IP networks are always vulnerable if not
protected.
309
Cisco Secure IDS SensorHigh-speed device that analyzes the contents of data being
transported across a network and determines whether that trafc is authorized or
unauthorized. Unauthorized trafc includes ping requests from intruders. Trafc detected
from unauthorized sources is sent directly to the IDM and the intruder is removed from the
network.
Cisco IDS Device Manager (IDM)Enables IDS security administrators to easily manage
the IDS solution in place by allowing secure communication between local and remote IDS
systems.
Cisco IDS Management Center (MC)Communicates with the Cisco Secure ACS server.
It dictates to Cisco Secure ACS the creation of a command authorization set type, which
appears in the Shared Prole Components section of the Cisco Secure ACS HTML interface.
Figure 5-3 displays the typical network placement of Cisco Secure IDS products. Cisco Secure
IDS sensors are typically placed on the DMZ network, because that region contains hosts that are
publicly reachable via the Internet.
Cisco Secure IDS Sensors can be located anywhere in the network. They are typically located
close to hosts or entry points to a network, such as dial-in users or Internet connections. Alarms
are logged on the Sensor and IDM. The alarms are displayed or viewed on the IDM. Optional
conguration settings include killing an active TCP session or reconguring access lists (termed
shunning).
310
The sensor can detect the intruders IP address and destination ports, and buffer up to 256
characters entered by the illegal devices. Cisco Secure IDS 4.1 supports Ethernet (10/100/1000)
only. Cisco Secure IDS Sensors can modify predened access lists on Cisco IOS routers and
change the denitions of permitted networks in response to an attack. Cisco Secure IDS Sensors
cannot modify the IP routing table nor reload or shut down interfaces. When illegal activity is
discovered, an alarm is sent directly to congured IDMs.
Figure 5-3
Sensor
Sensor
ISDN/PSTN
Alarms
Alarms
IDS Device
Manager
IDS Device
Manager
PIX
TACACS+/
RADIUS
TACACS+/
RADIUS
Cisco Secure NT/UNIX
The software used on the sensors can be loaded from a central IDM, allowing easier software
upgrades. The GUI on the IDM also allows network monitoring from one central location,
ensuring that one central group within an organization can be directly responsible for monitoring
and acting on alarms. GUIs and colored alarms indicate possible vulnerabilities.
The section Security Information Monitoring System, later in this chapter, covers some sample
events.
311
NOTE For more details on software and hardware requirements for Cisco IDS Device
Manager, go to http://www.cisco.com/univercd/cc/td/doc/product/iaabu/csids/csids10/idmiev/
swchap1.htm#wp50470.
IDS Device Manager can send out an alarm when certain conguration changes are made on Cisco
routers, can send e-mail messages when particular alarm levels are reached, and can ensure a TCP
attack is thwarted by sending TCP reset segments to unauthorized sources. When a Cisco Secure
IDS Sensor communicates with the IDM, if the network is down, up to 255 alternate route paths
can be attempted. Packets can be buffered and sent when the network is restored and communications occur (there are no keepalive communications; rather, one device sends and the other waits
and listens) to ensure that alarms are sent.
NOTE Cisco Secure IDS 4.1 examines the entire packet. Intruders usually use an attack based
on large ICMP trafc, typically fragmented, to discover the behavior of routers in a network.
Cisco IDS 4.1 can mitigate this form of attack because packets can be reassembled and alerts
sent if required, but this feature is available only in the most recent releases of IDS. Previously,
this form of attack could cause networking issues and loss of packets.
Intruders typically also use context-based attacks by scanning TCP or UDP ports in use.
For more details on Cisco Secure IDS, search with the keywords Cisco Secure IDS at
Cisco.com. For example, information on the latest Cisco Secure IDS (version 4.1) can be found at
http://www.cisco.com/univercd/cc/td/doc/product/iaabu/csids/index.htm.
The ability to dynamically load and enable selected IPS signatures in real time
An increase in the number of supported signatures to more than 740 of the signatures
supported by Cisco IDS sensor platforms
The ability for a user to modify an existing signature or create a new signature to address
newly discovered threats; each signature can be enabled to send an alarm, drop the packet, or
reset the connection
312
Typical types of attacks from hackers and, most importantly, internal intruders and disgruntled
employees are of the following forms:
Reconnaissance attacks
Access attacks
Most large organizations install a number of rewall technologies such as PIX Firewall,
CyberGuard, or Netscreens, but fail to adequately prevent attacks that initiate from the inside.
Chapter 6, Security Technologies, discusses in detail some of the most common attacks that
employees (or an attacker who has plugged into a network by tailgating their way into an ofce
area) can instigate within organizations. Some large organizations, which will remain nameless,
have experienced this very problem.
You will now cover the details about the different forms of inline IDS before we take a look at
some example scenarios.
IDS sensors are software and/or hardware used to collect and analyze network trafc. These
sensors are available in two avors, network IDS and host IDS.
The CiscoWorks Management Center for IDS Sensors is a component of the CiscoWorks VMS
and acts as the collection point for alerts and performs conguration and deployment services for
the IDS sensors in the network.
Cisco recently announced a new series of architectures based on IPS. IDS and IPS are used in
tandem to provide a secure and reliable IP network. You are encouraged to maximize your security
knowledge of IDS and IPS not just for the written exam but for your own career development.
More details on IDS and IPS can be found at http://www.cisco.com/security/.
CiscoWorks VMS
313
NOTE In todays age, though, almost any security cost is a good investment, because business
continuity and keeping host systems operating is paramount to the success of most
organizations. If Cisco.com were to go down and stay down due to a DoS attack, for example,
Cisco would lose up to an estimated $10 million an hour in lost or delayed purchase orders.
Figure 5-4
IDSM-2 Module
The IDSM-2 does not have a console port. To manage and congure the IDSM-2, you issue the
following command from the Cisco Catalyst 6500 Series Supervisor Engine:
session module-number
For example:
session 8
The default password for the administrator account is cisco. The username is cisco. The default
password should be changed as soon as possible.
The Cisco IDSM-2 offers many Security features and benets, for further details please visit
http://cisco.com/en/US/products/hw/modules/ps2706/products_data_sheet
09186a00801e55dd.html
CiscoWorks VMS
CiscoWorks VPN/Security Management Solution (VMS) is core management software that
provides a centralized means of dening and distributing security policies, providing patches and
software updates, and ensuring communication with all agents. A Cisco Security Agent is dened
as an endpoint software device that resides on servers or desktops/laptops and autonomously
enforces local policies that prevent attacks.
CiscoWorks VMS is an integral part of the SAFE Blueprint. The following are some of the devices
it maintains:
314
Firewalls
Monitoring
CiscoWorks VMS addresses the needs of both small- and large-scale VPN and security
deployments, and enables organizations to protect productivity gains and reduce operating costs.
CiscoWorks VMS provides the following tools for management of IDS appliances:
Firewall management
Security monitoring
VPN monitoring
Operational management
NOTE The written exam does not currently test the candidates knowledge of this product.
For more details on VMS, go to http://www.cisco.com/go/vms and http://cisco.com/en/US/
products/sw/cscowork/ps2330/products_data_sheet09186a0080092536.html.
The Agent Manager is an integral part of the CiscoWorks VMS. The CiscoWorks Management
Center for Cisco Security Agents is a featured component within the VMS.
There are some excellent articles on the Management Center for Cisco Security Agents at http://
cisco.com/en/US/products/sw/cscowork/ps5212/index.html.
IP Security (IPSec)
315
The Cisco VPN 3000 Series Concentrator supports the widest range of connectivity options,
including WebVPN (clientless using a web browser), the Cisco Secure VPN Client, Microsoft
L2TP/IPSec, and Microsoft PPTP.
Figure 5-5 displays a VPN 3000 Concentrator, front view.
Figure 5-5
The VPN Concentrator is designed to terminate IPSec connections over a public domain such as
the Internet. The placement of the VPN Concentrator is crucial for any network security engineer.
Cisco makes a number of recommendations in its SAFE Blueprint, but in general requires that the
VPN Concentrator be located behind a Cisco PIX Firewall on the inside interface where the DMZ
is located. The Cisco SAFE Blueprint has a number of recommendations based on network size
and appliances, though. See http://www.cisco.com/safe for the latest details.
There are currently six different VPN Concentrator models that you can purchase from Cisco. The
following list details the hardware specications of the models (reprinted from http://cisco.com/
en/US/partner/products/hw/vpndevc/ps2284/products_data_sheet09186a00801d3b56.html):
Cisco VPN 3005 ConcentratorThe Cisco VPN 3005 Concentrator is a VPN platform
designed for small- to medium-sized organizations with bandwidth requirements up to fullduplex T1/E1 (4 Mbps maximum performance) with support for up to 200 simultaneous
IPSec sessions or 50 simultaneous clientless sessions. Encryption processing is performed in
software. The Cisco VPN 3005 does not have built-in upgrade capability.
316
Cisco VPN 3015 ConcentratorThe Cisco VPN 3015 Concentrator is a VPN platform
designed for small- to medium-sized organizations with bandwidth requirements up to fullduplex T1/E1 (4 Mbps maximum performance) and up to 100 simultaneous IPSec sessions or
75 simultaneous clientless sessions. Like the Cisco VPN 3005, encryption processing is
performed in software, but the Cisco VPN 3015 is also eld-upgradeable to the Cisco VPN
3030 and 3060 models.
Cisco VPN 3020 ConcentratorThe Cisco VPN 3020 Concentrator is a VPN platform
designed for medium to large organizations with bandwidth requirements from full T1/E1
through T3/E3 (50 Mbps maximum performance) with support for up to 750 simultaneous
IPSec sessions or 200 simultaneous clientless sessions. Specialized SEP modules (SEP-E)
perform hardware-based acceleration. The Cisco VPN 3020 cannot be upgraded to other
products in the family. Redundant and nonredundant congurations are available.
Cisco VPN 3030 ConcentratorThe Cisco VPN 3030 Concentrator is a VPN platform
designed for medium to large organizations with bandwidth requirements from full T1/E1
through T3/E3 (50 Mbps maximum performance) with support for up to 1,500 simultaneous
IPSec sessions or 500 simultaneous clientless sessions. Specialized SEP modules perform
hardware-based acceleration. The Cisco VPN 3030 can be upgraded to the Cisco VPN 3060
in the eld. Redundant and nonredundant congurations are available.
Cisco VPN 3060 ConcentratorThe Cisco VPN 3060 is a VPN platform designed for large
organizations demanding the highest level of performance and reliability, with highbandwidth requirements from fractional T3 through full T3/E3 or greater (100 Mbps
maximum performance) with support for up to 5,000 simultaneous IPSec sessions or 500
simultaneous clientless sessions. Specialized SEP modules perform hardware-based
acceleration. Redundant and nonredundant congurations are available.
Cisco VPN 3080 ConcentratorThe Cisco VPN 3080 Concentrator is optimized to support
large enterprise organizations that demand the highest level of performance combined with
support for up to 10,000 simultaneous IPSec sessions or 500 simultaneous clientless sessions.
Specialized SEP modules perform hardware-based acceleration. The VPN 3080 is available
in a fully redundant conguration only.
Figure 5-6 displays a complex network whereby users from many different locations, such as
Internet cafes, remote branch ofces, and telecommuters using wireless networks, need to gain
access to the campus network.
To congure the VPN Concentrator, you have two methods: via the CLI or via the web. The web
is the preferred management option. This section shows how to congure a VPN 3000
Concentrator for typical settings to allow telecommuters access to the corporate network.
Figure 5-6
317
Marketing
HR
Finance
Web
Server
Sensor
Campus Backbone
Telecommuter
DMZ
External CA
WAN
Suppliers
Internet
(168.17.40.0/24)
VPN 3000
Internal User
Branch Office
NOTE The lab exam will not have any preconguration on any security appliances, including
VPN 3000. This means candidates need to be aware of how to congure a VPN 3000 out of the
box. Use the CLI (console) to initialize (bootstrap). Review Chapter 8 for VPN 3000
conguration and ensure that you also have CLI console experience for the lab. The written
exam does not require a candidate to be an expert with the CLI.
318
URL of VPN
Concentrator
Default username/password
is "admin"
By using the default username/password pair of admin, the conguration screen is displayed next.
Figure 5-8 displays the home conguration page for a VPN 3000.
Figure 5-8 displays Conguration, Administration, and Monitoring navigation text in the upperleft corner. The VPN 3000 Concentrator is a favorite topic of the lab exam. There are numerous
examples and screen shots on how the VPN 3000 is congured at Cisco.com to help you study for
the lab exam.
Figure 5-8
319
Consider an example of a typical VPN 3000 Concentrator conguration that allows remote
telecommuters access to the campus network. The telecommuter in Figure 5-6 is attempting to
connect to the corporate backbone via a Cisco Secure VPN Client on a PC. To connect, the
telecommuter user must install the Cisco Secure VPN Client. (You can use other clientsfor
example the Windows IPSec clientbut for the exam, the only tested mechanism is the Cisco
Secure VPN Client. The next section covers the Cisco Secure VPN Client and conguration.) The
Windows IPSec client is only supported using L2TP over IPSec.
Prior to allowing VPN terminations, the VPN Concentrator must be congured for IP and polices.
Figure 5-9 displays the rst conguration step, in which the interfaces are assigned an IP.
320
Figure 5-9
Public Routable
Address
Figure 5-9 shows how to assign the static public IP address 131.108.1.2. You can also set the speed
and the mode of the interface on that screen. The other remaining options are left at their default
settings for this example.
Now you have to perform the same steps for the private interface.
Once the interfaces are congured, you have to add a group and a user to the Concentrator. To do
this, choose Conguration > User Management. Choose Groups, because you have to dene a
group before you can add users to that group. Figure 5-10 displays this conguration step. When
you congure the VPN Client in the next section, it will be a lot clearer why Groups are important.
The dialog box in Figure 5-10 has several tabs. You will congure the rst three tabs, Identity,
General, and IPSec.
Figure 5-10
321
The option group password in Figure 5-10 is also the shared key that the client uses to log into the
Concentrator. You also have to dene the type of authentication that is used for this group. Users
can be authenticated via the following four methods:
RADIUS servers
SecureID
In this example, you use the internal VPN 3000 server authentication database, so the next step is
to add a user to the Concentrator on the internal server.
322
Figure 5-11 displays the network administrator selecting the General tab.
Figure 5-11
Access HoursSelected from the drop-down menu, this attribute determines when the
Concentrator is open for business for this group. It is currently set to No Restrictions, but you
could also select Never, Business Hours (9 a.m. to 5 p.m., Monday through Friday), or a
named access hour range that you created elsewhere in the VPN Manager.
Simultaneous LoginsThe default is 3, and the minimum is 0. There is no upper limit, but
security and prudence would suggest that you limit this value to 1.
Allow Alphabetic-Only PasswordsNotice that the box has been unchecked. The default
is to allow alphabetic-only passwords, which is a security risk. This value has been modied.
323
Idle Timeout30 minutes is a good value here. The minimum allowable value is 1, and the
maximum is a value that equates to more than 4,000 years. Zero disables idle timeout.
Maximum Connect TimeZero disables maximum connect time. The range here is again
1 minute to more than 4,000 years.
FilterA lter applies its rules to data packets coming through the system, in the order the
rules are arranged on the lter.
Primary/Secondary DNS/WINSThese have been modied from the base groups default
settings.
Tunneling ProtocolsIPSec has been selected, but you could allow the group to use PPTP,
L2TP, and L2TP over IPSec as well.
Strip RealmThe default operation of the VPN Concentrator veries users against the
internal database using a combination of the username and realm qualier, as in
username@group. The @group portion is called the realm.
Once these options are congured, the nal page you need to congure covers the IPSec
parameters. Figure 5-12 displays a sample conguration.
Figure 5-12
324
IPSec SAFor remote-access clients, you must select an IPSec Security Association (SA)
from this list of available combinations. The client and server negotiate an SA that governs
authentication, encryption, encapsulation, key management, and so on based on your
selection here. These are the default selections supplied by the VPN Concentrator:
NoneNo SA assigned.
ESP-DES-MD5 This SA uses DES 56-bit data encryption for both the IKE
tunnel and IPSec trafc.
Other options include ESP/MD5/HMAC-128, MD5/HMAC-128, ESP-3DES-MD5,
ESP/IKE-3DES-MD5, ESP/MD5/HMAC-128, ESP-3DES-NONE, ESP-L2TPTRANSPORT, ESP/MD5/HMAC-128, and ESP-3DES-MD5-DH7. DH refers to the
Dife-Hellman algorithm.
IKE Peer Identity ValidationThis option applies only to VPN tunnel negotiation based on
certicates. This eld enables you to hold clients to tighter security requirements.
IKE KeepalivesThis option monitors the continued presence of a remote peer and noties
the remote peer that the Concentrator is still active. If a peer no longer responds to the
keepalives, the Concentrator drops the connection, preventing hung connections that could
clutter up the Concentrator.
Tunnel TypeYou can select either LAN-to-LAN or Remote Access as the tunnel type.
Group LockChecking this eld forces the user to be a member of this group when
authenticating to the Concentrator.
AuthenticationThis eld selects the method of user authentication to use. The available
options are as follows:
NoneNo user authentication occurs. Use this with L2TP over IPSec.
RADIUSUses an external RADIUS server for authentication.
RADIUS with ExpiryUses an external RADIUS server for authentication.
Applied to allow Microsoft as the Client-Vendor to get support for the Microsoft
Vendor-Specic Attributes (VSA).
NT DomainUses an external Windows NT Domain system for user
authentication.
SDIUses an external RSA Security, Inc. SecureID system for user authentication.
Internal (option selected)Uses the internal VPN Concentrator authentication
server for user authentication.
325
Finally, to permit users to authenticate to the VPN Concentrator, you must create users. Figure
5-13 displays the user conguration page.
Figure 5-13
In Figure 5-13, the user gschauwe and a password (hidden) are congured. The user is then
assigned to the group you previously made (vpngroup12). You must then click the Apply button
to make the changes take effect. Now that the VPN Concentrator is ready to terminate VPN IPSec
tunnels, you simply need to enable the clients on the end workstations, namely by conguring the
326
VPN Client. The next section covers the end-station client conguration using the Cisco Secure
VPN Client.
NOTE To be a real expert, rather than just pass the written exam, you are encouraged to
research more details on the Cisco VPN Concentrator at http://www.cisco.com/security/ and in
Chapter 8 of this book.
Internal IP addresses, primary and secondary Windows Internet Name Service (WINS), and
Domain Name System (DNS)
The latest revisions of the mode conguration and extended authentication IKE extensions
Once the application is installed on the operating system platform, you then start the VPN Client
by clicking Start > Programs > Cisco Systems VPN Client > VPN Dialer.
Note for Version 4.x the path is Start > Programs > Cisco Systems VPN Client > VPN Client.
For Microsoft Windows platforms, this brings you to the screen shown in Figure 5-14.
Figure 5-14
327
Figure 5-14 displays a blank connection; by clicking the New button, you are presented with
congurable options. Figure 5-15 displays the rst of these options.
Figure 5-15
The IP address you enter in Figure 5-15 is that of the publicly routable address. In this scenario,
that IP address is 131.108.1.2 (see Figure 5-9).
Finally, you need to dene the groups. Figure 5-16 congures the VPN Group (vpngroup12) to
match the setting congured on the VPN Concentrator (see Figure 5-10).
328
Figure 5-16
For completeness, you should also read about the Cisco VPN Hardware Client. Details can be
found at http://cisco.com/en/US/products/hw/vpndevc/ps2030/products_conguration_
example09186a0080094cf8.shtml. The VPN Hardware Client is a feature available to the PIX
Firewalls and is used to create an IPSec tunnel with a VPN 3000 Concentrator. This is a task you
will surely be asked to complete in the CCIE Security lab exam.
Figure 5-17
329
Intranet
VPN
Intrusion
Protection
URL
Filter
Firewall
WAN Router
and Switch
SSL
Internet
Security
Expert
Cisco IOS Security Router configured for VPN + Intrusion Prevention + URL Filter + WAN Router + LAN Switch
Security Device Manager (SDM)
Cisco SDM is currently shipping in Cisco IOS and on the Cisco 1800, 2800, and 3800 Series
Integrated Service Routers (ISR). Cisco SDM is also available with rewall appliances such as the
PIX Firewall (PIX version is called the PIX Device Manager [PDM]). The ISR platforms are
implemented only on Cisco hardware, and no other vendor in the marketplace today can match the
same functionality. SDM is also supported on legacy platforms such as the 1700 and 3600/3700
series routers.
NOTE You can certainly expect that CCIE Security lab candidates will soon be conguring
routers such as the ISR 3800 instead of the legacy 2600 and 3700 routers in place today.
Cisco SDM is an enhancing tool for both network and security administrators. Cisco SDM is
available at http://www.cisco.com/pcgi-bin/tablebuild.pl/sdm. SDM 2.0 is currently the most
recent version; 2.1 is due for release in 2004.
SDM provides embedded services management of routing and switching, security, and QoS.
SDM is web-based and ships on all new routers.
330
By simply typing in the IP address of the Cisco IOSenabled router, the administrator will be
presented with the SDM home page (administrators will use https://ip-address with their web
client).
The SDM home page displays a typical router, such as the popular 1721, the DRAM memory size
(64 MB), total Flash (16 MB), and SDM version, to name a few of the most critical details of this
particular router.
SDM provides a number of excellent features:
1-Step Router LockdownSecuring devices allowing ease of use to ensure devices are not
compromised.
1-Step VPN and FirewallIncluding tools for expert users such as an ACL editor and VPN
tunnel quality monitoring
The Security Audit option, for example, provides details on conguration problems and
suggestions to x security deciencies. With a single click, the network security manager can
control Telnet and SSH access within the Security Audit.
The following is a description of the major SDM Wizard Mode options:
FirewallTwo types of rewall wizards are simple inside/outside or more complex inside/
outside/DMZ with multiple interfaces.
VPNThree types of wizards to create a secure site-to-site VPN, Easy VPN, and GRE tunnel
with IPSec.
Security AuditPerform a router security audit and get easy instructions on how to lock
down the insecure features found.
331
SDM is a core application loaded in Cisco IOS and needs to be loaded into the system Flash to
allow security managers to quickly install routers as well.
You are encouraged to view more details at Cisco.com. At the time of writing this book, Cisco
announced SDM version 2.1 for the year ending 2004. More details on SDM can be found as
follows:
332
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of
this chapters key concepts. If you are already comfortable with the topics in this chapter and
decided to skip most of the Foundation Topics material, the Foundation Summary will help
you recall a few details. If you just read the Foundation Topics section, this review should help
further solidify some key facts. If you are doing your nal preparation before the exam, the
Foundation Summary offers a convenient and quick nal review.
The following list summarizes the features of Cisco Secure for NT Windows:
Supports centralization of AAA access for all users, including routers and rewalls.
Can support a number of network access servers and is limited purely by load. The practical
limit for a single Cisco Secure ACS authenticating against all its databases, internal and
external, is 300,000 to 500,000 users.
Supports many different Cisco platforms, including access servers and routers.
Cisco Secure IDS Components
Table 5-2
Component
Meaning
High-speed device that analyzes the contents of data being transported across
a network and determines whether that trafc is authorized or unauthorized.
Unauthorized trafc includes ping requests from intruders.
The following summarizes the Cisco VPN/Security Management Solution (VMS) capabilities:
Manage VPNs
Manage rewalls
Monitor security
Foundation Summary
Table 5-3
Table 5-4
333
IDS Terminology
Term
Description
False positive
(benign trigger)
Occurs when the IDS reports certain benign activity as malicious, requiring
human intervention to diagnose the event.
False negative
Can occur when the IDS sensor does not detect and report a malicious
activity, but the system allows it to pass as nonintrusive behavior. This can be
catastrophic for network operation and therefore minimizing false negatives is
the highest priority.
True positive
The opposite of a false negative. In this case, an alarm has been correctly sent
in response to malicious activity. These alarms cause the most concern for a
network administrator.
True negative
Not an actual alarm but rather a situation in which the IDS in place does not
trigger an alarm for activity permitted within a network.
IDS Tuning
Step
Description
Analyze alarms, tune out false positives, and implement signature tuning (if needed)
334
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the
CCIE Security written exam and those topics presented in this chapter. This format should help
you assess your retention of the material. A strong understanding of the answers to these questions
will help you on the CCIE Security written exam. You can also look over the questions at the
beginning of the chapter again for further review. As an additional study aid, use the CD-ROM
provided with this book to take simulated exams, which draw from a database of over 500
multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
Dene the terms Cisco Secure IDS Sensor and IDS Device Manager and explain their uses.
2.
3.
What is the default username and password combination for a Cisco IDSM?
4.
What is the default username and password combination for a Cisco VPN 3000 Concentrator?
5.
What are three typical forms of attacks that are committed by unauthorized individuals?
6.
335
Scenario
PIX
IDS 2
Cisco IOS
Router
Public
Network
131.108.1.1/24
Hacker
IP Address
181.1.1.100/32
IDS 1
The security manager has e-mailed to you several les. The rst is TCPDUMP output details.
TCPDUMP is a powerful tool that allows you to sniff network packets and make some statistical
analysis out of those dumps. (The written exam has a few questions based on the output from this
program.) The manager also e-mailed to you log les taken from an IDS Sensor database and the
logging entries from the Cisco IOS router.
You receive these les from IDS 1 in Figure 5-18 and the Cisco WAN router and you are required
to provide details on what kind of attack this is and on what TCP/UDP ports are opened to the
outside world.
336
Example 5-1 displays the captured entries the security manager would like identied and what
ports are currently opened. Note that Example 5-1 only displays trafc from the Internet host
181.1.1.100 to the inside host 141.108.1.1 to simplify the display.
NOTE The signature is not shown but you can assume a customized signature ID. Also note
that Cisco IDS provides similar exported formats for viewing by security managers and
administrators.
Example 5-1
TCPDUMP Output
Time
>10:39:01
>10:39:02
>10:39:03
>10:39:04
>10:39:05
>10:39:06
>10:39:06
>10:39:06
>10:39:07
>10:39:02
>10:39:03
>10:39:04
Example 5-2 displays the suspicious activity requiring immediate forensic analysis for the host
with the IP address 131.108.1.1. The logging entries on the router are displayed in Example 5-2.
Example 5-2
Scenario Solutions
337
Scenario Answers
Scenario Solutions
Based on Example 5-1, you can clearly identify ports that are open and closed by the Acknowledgement number and agreed TCP windows sizes. When TCP negotiates a session, the rst
acknowledgement is typically a random value and an Acknowledgment of 1 is extremely
suspicious. Typically, window devices, for example, calculate a random number much higher than
1. When the window size is zero, that means the TCP window size parameter has not been
negotiated. In other words, the connection is not permitted. Example 5-3 displays port 53 as being
unauthorized or closed as the window size is 0.
Example 5-3
>10:39:01
Example 5-4 displays the open and active sessions as the window sizes have been negotiated and
there are active segments. TCP ports 80, 3178, and 3179 are opened by the rewall in this
organization and passed through the IDS.
Example 5-4
>10:39:02
>10:39:03
>10:39:04
Example 5-2 displays a single TCP fragment packet between the outside host with the IP address
181.1.1.100 to the inside routable address 131.108.1.1. This error message indicates a single fragmented TCP packet with the SYN and FIN ags set. This action is indicative that a reconnaissance
sweep of your network is in progress. This type of packet indicates an attempt to conceal the TCP
port sweep (port 53 in this case, DNS). This may be the prelude to a more serious attack. The
security engineer is well advised to immediately note the action and log into Cisco.com and search
for the recommended action. For example, you could perform the following actions:
Step 1
Note the Signature IDs. In Example 5-2, they are 3043 and 3050.
Step 2
Step 3
Go to http://www.cisco.com/pcgi-bin/front.x/ipsalerts/ipsalertsHome.pl or search
for the latest database of IPS signature IDs.
338
Step 4
Step 5
Locate the signature number following Sig:, 3043 in Example 5-2, in the error
message text for more information on the nature of the error and corrective actions
to perform.
The log message regarding the TCP half-open connections is another suspicious packet requiring
immediate attention. In this case the number of half-open TCP connections has exceeded the highwater mark. There are no known sources that would legitimately generate this trafc pattern, so it
is regarded as a form of attack. The recommended action in this case is to block the resource IP
address during the course of the investigation to ensure network resources are not depleted and
stop legitimate TCP session (that is valid data connections from valid users) becoming active. This
sort of attack can be considered a denial of service attack.
Hopefully this simple scenario has shown you the power of the details provided by IDS-enabled
devices, the ease of using these devices, and the powerful search engines available at Cisco.com.
The error messages are somewhat intuitive and if you come across a difcult question in the exam
make sure you apply a commonsense approach. Obviously you will not have Internet access
during the exam, so it is safe to assume Cisco will not test your knowledge of every obscure
signature or scenario out there, but some common examples are presented in this simple scenario.
Packet ltering
Firewalls
Content lters
Authentication technologies
Authorization technologies
CHAPTER
Security Technologies
This chapter covers some of todays most widely used technologies that enable network
administrators to ensure that sensitive data is secured from unauthorized sources.
Cisco security products are also covered, as are all the fundamental foundation topics you need
to understand to master the security CCIE Security written exam.
This chapter covers the following topics:
Packet Filtering, Proxies, NAT, and PATExplains packet ltering, proxies, and how to hide
addresses using Network Address Translation (NAT) and Port Address Translation (PAT).
Cisco PIX Firewall and Cisco IOS Firewall Feature SetCovers the Cisco PIX Firewall
and the Cisco IOS Firewall feature set available on Cisco routers. Includes information on
IOS authentication proxies.
Virtual Private NetworksExplains how a VPN enables IP trafc to travel securely over
a public TCP/IP network by encrypting all trafc from one network to another.
Cisco Security Agent and Host-Based IDSDescribes Cisco Security Agent (CSA), the
front-line defense in the Cisco self-healing strategy of defending networks.
342
2.
3.
Demilitarized zone
b.
Demitted zone
c.
d.
Domain name
When dening an extended access list, what TCP port numbers can you use?
a.
b.
0 to 65,000
c.
0 to 65,535
d.
1 to 65,534
e.
None of these
When dening an extended access list, what UDP port numbers can you use?
a.
b.
0 to 65,000
c.
0 to 65,535
d.
1 to 65,534
e.
None of these
4.
5.
6.
7.
8.
who
b.
whois
c.
nger
d.
ftp
e.
pop3
BGP
b.
echo
c.
domain
d.
discard
e.
RIP
f.
SNMP
For about how many translations does PAT (for a PIX Firewall) allow you to use one
IP address?
a.
32,000
b.
64,000
c.
96,000
d.
128,000
e.
256,000
Source port
b.
Destination port
c.
d.
None of these
b.
c.
Network translation
d.
343
344
9.
10.
11.
12.
1700
b.
1701
c.
2002
d.
1631
e.
1613
b.
c.
d.
b.
c.
By trafc that carries the source/destination IP address in the application data elds
d.
e.
f.
All of these
g.
When will the command overload, applied to NAT congurations, possibly break a network
application?
a.
Never
b.
c.
d.
e.
f.
All of these
13.
14.
15.
16.
17.
345
1, 2, 3
b.
3, 4, 5
c.
5, 6, 7
d.
7, 4, 3
e.
3, 4, 6
What is the main advantage of using NAT on a rewall or Cisco IOS router?
a.
b.
c.
d.
Decreases performance
e.
f.
All of these
When using the IOS NAT overload command, how many inside sessions can be translated?
a.
10,000
b.
20,000
c.
64,000
d.
65,534
e.
None
f.
What IOS command denes a pool of IP addresses for Network Address Translation (NAT)?
a.
ip nat inside
b.
ip nat outside
c.
ip nat pool
d.
e.
Protocol interchange
b.
c.
d.
346
18.
19.
20.
21.
22.
To dene how a PIX will route IP data, what is the correct syntax for a PIX?
a.
ip route
b.
route
c.
ip route enable
d.
default-network
If you congure NAT on a Cisco IOS router, what command is used to enable PAT?
a.
pat
b.
nat
c.
ip route
d.
overload
e.
extended
Cisco IOSbased NAT provides all of the following functions except one; which one?
a.
b.
c.
d.
PIX
b.
Switch
c.
IDS appliance
d.
e.
VPN Concentrator
f.
What extended IP access list will prevent the internal subnet 10.0.0.0/8 from being spoofed
on a Cisco IOSenabled router? (Assume permit statements are applied to allow legitimate
trafc.)
a.
b.
c.
d.
e.
None of these
23.
24.
25.
26.
27.
347
b.
c.
The alias command is used in NAT environments where one IP address is translated into
another.
d.
b.
c.
d.
e.
NAT translations
b.
c.
d.
No use
e.
NAT translations and to ensure that data is not sourced by the wrong sources
To create a simple VPN tunnel (unencrypted) between two sites, what must you do on a Cisco
router?
a.
b.
c.
d.
PIX Firewall software version 6.3 can support which of the following routing protocols?
(Choose the best three answers.)
a.
BGP
b.
OSPF
c.
RIP version 1
d.
RIP version 2
e.
EIGRP
348
28.
29.
30.
31.
To support OSPF on a PIX Firewall version 6.3capable rewall, what additional OSPF
authentication mechanisms are possible? (Choose the best two answers.)
a.
MD5
b.
Area
c.
Password
d.
RADIUS
e.
TACACS+
f.
Kerberos
conduit
b.
pix
c.
alias
d.
e.
f.
None of these
What PIX command is used on a PIX Firewall to view address mappings when NAT is
enabled?
a.
show nat
b.
show pat
c.
show late
d.
show xlate
e.
show ip nat
f.
show ip pat
g.
None of these
If a PIX Firewall is congured without a conduit or an access list, data from the inside
interface is dropped. In effect, the PIX Firewall is acting like which of the following? (Select
the best two answers.)
a.
Router
b.
Bridge
c.
d.
Bit bucket
e.
f.
None of these
32.
349
After viewing the PIX syslog with the command show logging, the following output is
discovered:
14:25:02 10.1.1.1 : %PIX-7-7100006: TCP request discarded from 6.3.62.119/
57000 to inside:10.1.1.1/www
Assuming the inside interface on the PIX is congured for the IP address 10.1.1.1/24, which
of the following answers best describes what might be going on in the network?
33.
34.
35.
a.
b.
IP addresses on the inside have all launched an attack against the PIX outside address.
c.
A host on the inside has launched a denial of service (DoS) attack generating random
source addresses aimed at the PIX inside interface.
d.
Several zombie hosts have been activated on the outside of the PIX and are trying to
crash the PIX HTTP server.
e.
A host on the outside has been compromised and is attempting to log onto the PIX
HTTP server.
Which of the following statements best describes Cisco Threat Response (CTR)?
a.
CTR reads IDS alarms and performs automated forensics on hosts or servers that may
have been compromised.
b.
CTR logs into real devices and searches for log entries.
c.
CTR determines if network IDS alarms are valid or invalid by using Telnet.
d.
CTR is an inline device that does deep packet inspection looking for attacks on Cisco
network devices such as routers and switches.
e.
b.
CSA uses a set of predened rules to protect host-based systems such as PCs or servers.
c.
d.
e.
CSA is a passive device and does little besides stop the IP stream.
Which of the following describes the default rules a host version of the Cisco Security Agent
accomplishes? (Choose the best three answers.)
a.
b.
c.
d.
e.
350
36.
37.
38.
39.
b.
c.
Layer 7 authentication
d.
e.
VLAN assignment
f.
b.
c.
d.
e.
f.
None of these
Windows
b.
UNIX
c.
Macintosh
d.
Printers
e.
PDAs
How does anomaly-based intrusion detection recognize that a network attack is in progress?
a.
b.
The IDS normalizes network trafc and sends alarms when sampled trafc falls out of
that norm.
c.
Protocol adherence rules are established by the administrator and any deviation from
that is agged as a potential attack.
d.
351
Foundation Topics
DMZ Design
Perimeter or
Edge Router
Bastion Hosts
FTP Server, HTTP Server,
Proxy Servers
Internet
DMZ
Firewalls
Private
Network
352
Figure 6-1 displays a typical perimeter network in which the DMZ is separated by a rewall.
Firewalls are network devices such as Cisco Private Internet Exchange (PIX) Firewall, discussed
later in this chapter. Firewalls are designed to protect the internal (or private) parts of a network
from the public domain. Firewalls can operate at several levels of the OSI model, namely the
application layer (7), network layer (3), and transport layer (4). Another popular design option is
to congure the DMZ on a third interface of the rewall so that the rewall can protect both the
DMZ servers and the internal network.
The aim of all rewalls is to accomplish the following:
Serve as a trafc pointThe trafc or choke point from inside and outside the network must
pass through the trafc point.
Provide invisibilityEnsures that the private network is invisible to the outside world.
As shown in Figure 6-1, the perimeter router sits between the DMZ and the public domain.
Typically, a high-performance router or routers will be located here, performing various duties,
including the following:
Run static or dynamic routing protocols; Cisco PIX release 6.3 is no longer limited to RIP and
static routing but now supports OSPF. PIX Firewall software version 6.3 is now capable of
supporting RIP versions 1 and 2 along with OSPF.
NOTE Proxy servers are designed to shield internal devices from outside intruders by
replacing the internal hosts IP addresses with its own IP address. Most new vendors (supplying
routers) now allow routers to act as proxy servers. Proxy servers have scalability and speed
issues, because all packets must be examined and IP headers must be modied for packet
delivery.
353
Firewalls and perimeter routers have the additional function of packet ltering. A packet lter is a
device that inspects all incoming and outgoing packets based on IP source address, destination IP
address, and protocol type, such as TCP or UDP. Based on congurable options, the lter decides
whether to reject trafc or allow trafc to pass through the device.
Table 6-1 summarizes the main functions of a perimeter and rewall router.
Table 6-1
Method
Sniffer or snooping
capabilities
Packet ltering
Cisco IOS routers can lter TCP or UDP protocol types. Example 6-1 displays the variety of TCP
services that you can lter on a Cisco IOS router using extended access lists.
Example 6-1
Port number
bgp
chargen
cmd
daytime
Daytime (13)
discard
Discard (9)
domain
echo
Echo (7)
exec
continues
354
Example 6-1
Finger (79)
ftp
ftp-data
gopher
Gopher (70)
hostname
ident
irc
klogin
kshell
login
lpd
nntp
pim-auto-rp
pop2
pop3
smtp
sunrpc
syslog
Syslog (514)
tacacs
talk
Talk (517)
telnet
Telnet (23)
time
Time (37)
uucp
whois
Nicname (43)
www
Example 6-2 displays the extended access list when ltering services based on the UDP protocol
suite of services.
Example 6-2
Port number
biff
bootpc
bootps
discard
Discard (9)
dnsix
domain
echo
Echo (7)
isakmp
mobile-ip
nameserver
netbios-dgm
netbios-ns
netbios-ss
Example 6-2
355
pim-auto-rp
rip
snmp
snmptrap
sunrpc
syslog
tacacs
talk
Talk (517)
tftp
time
Time (37)
who
xdmcp
Examples 6-1 and 6-2 clearly indicate that a network administrator has exibility when designing
perimeter security based on particular port numbers, as dened in RFC 1700.
The growth of the Internet and increased ease of information transfer has also meant a
proliferation of network hacking tools. Whisker, Nmap and strobe are perfect examples of this
fact. A simple search on the Internet reveals many more tools. Firewalls are your rst line of
defense but should not be your last.
Intrusion detection systems (IDSs) are the next level of security now being added to secure IP
networks, providing even greater awareness of IP packet ow through a network. IDSs are covered
later in this chapter. The next section introduces basic NAT and PAT.
356
NOTE PAT uses unique source port numbers on the inside global IP address to distinguish
between translations. Because the port number is encoded in 16 bits, the total number of ports
could theoretically be as high as 65,536 per IP address. PAT will attempt to preserve the original
source port. If this source port is already allocated, PAT will attempt to nd the rst available
port number starting from the beginning of the appropriate port group, 0511, 5121023, or
102465535. If there is still no port available from the appropriate group and more than one IP
address is congured, PAT will move to the next IP address and try to allocate the original source
port again. This continues until it runs out of available ports and IP addresses. (From http://
www.cisco.com/warp/public/cc/pd/iosw/ioft/ionetn/prodlit/1195_pp.htm.)
NAT is dened in RFC 1631, the text of which can be read at http://www.ietf.org/rfc/rfc1631.txt.
Cisco devices started supporting NAT in Cisco IOS versions 11.2 and higher. NAT basically provides
the capability to retain your networks original IP addressing scheme while translating that scheme
into a valid Internet IP address to ensure that intruders never view your private address.
NOTE Cisco IOS 12.0 and higher support full NAT functionality in all images. Version 11.2
and higher need Plus image for a NAT feature set.
NAT changes the Layer 3 address when the packet is sent out to the Internet. This is a function no
other protocol will do (that is, alter the Layer 3 source address).
For your review and to fully prepare you for the exam, Table 6-2 explains some of the terminology
used in a NAT environment.
Table 6-2
NAT Terminology
Term
Meaning
An IP address that is assigned to a host on the internal network; that is, the
logical address that is not being advertised to the Internet. A local
administrator generally assigns this address. This address is not a legitimate
Internet address.
Inside global
address
Outside local
address
Outside global
address
Figure 6-2 displays a typical scenario where a private address space is deployed that requires
Internet access. The Class A 10.0.0.0/8 address is not routable in the Internet.
Figure 6-2
357
Outside Network
131.108.1.1/24
10.99.34.0/24
E0
NAT Table
Inside Address
10.99.34.1
10.99.34.2
... so on
Outside Address
131.108.1.1
131.108.1.2
... and so on
R2
Internet
S0
The users in Figure 6-2 are congured with the inside local addresses ranging from 10.99.34.1/24
to 10.99.34.254/24. To allow Internet access, NAT (PAT could also be congured if only one IP
address was allocated by InterNIC) is congured on Router R1 to permit the inside local addresses
access to the Internet. Advantages of using NAT include the following:
You can use unregistered address space and NAT to the Internet.
You can use both NAT and PAT on the same router.
The InterNIC is an Internet authority that is assigned the task of allocating IP address space to the
public. For example, Figure 6-2 assumes that the InterNIC assigned the address space 210.1.1.0/
24 for use.
358
Some multimedia-intensive applications do not support NAT, especially when the data
stream inbound is different from the outbound path (for example, in multicast
environments).
any lo g
Notice that the keyword log is applied so that a security administrator can monitor spoofed
addresses as well. The log statement does have an impact on the CPU of the router because it
causes all packets to be process switched, so use the command with caution.
359
Step 2
Step 3
Step 4
Step 5
Dene the addresses that are allowed to access the Internet with the following IOS
command:
ip nat inside source list access-list-number pool pool-name
For a more specic illustration, congure NAT on Router R1. In Figure 6-2, the NAT pool name
is going to be CCIE. (You can use any name you want.) Assume that the InterNIC has assigned to
you the Class C address of 210.1.1.0/24.
Your Internet service provider (ISP) has also supplied you with the unique address 131.108.1.0/30
(this address will be the NAT address 131.108.1.1 or 131.108.1.2) to use on your serial connection.
Example 6-3 provides a sample NAT conguration for this setup.
Example 6-3
hostname R1
ip nat pool CCIE 210.1.1.1 210.1.1.254 netmask 255. 255.255.0
ip nat inside source 1 poo l CCIE
interface ethernet0
ip address 10.99.34.1 255 .255.255.0
ip nat inside
interface ser ial 0
ip address 131.108.1 .1 255.255.255.252
ip add ress 210.1.1.1 255.255.25 5.0 secondary
ip nat outside
access-list 1 permit 10.99.34.0 0.0.0 .255
360
It is assumed that you have an IP routing protocol to advertise the IP networks shown in the sample,
which are 131.108.1.0/30 and 210.1.1.0/24, to the remote ISP router through R1s serial 0 interface.
The conguration shown in Example 6-3 translates the inside addresses 10.99.34.0/24 into
globally unique addresses ranging from 210.1.1.1/24 to 210.1.1.254.
Monitoring NAT Operations with show Commands
To monitor the operation of NAT, you can use the following commands:
show ip nat translation [v erbose]
show ip nat statis tics
The show ip nat translation command displays the current active transactions. The show ip nat
statistics command displays NAT statistics, such as how many translations are currently taking place.
There are four different versions of NAT translations:
361
A PIX Firewall permits a connection-based security policy. For example, you might allow Telnet
sessions from inside your network to be initiated from within your network but not allow them to
be initiated into your network from outside your network.
The PIX Firewalls popularity stems from the fact that it is dedicated solely to security. A router
is still required to connect to WANs, such as the Internet. Some companies use PIX Firewalls for
internal use only where they might have sensitive networks, such as a payroll or human resources
department.
Figure 6-3 shows a typical network scenario in which a PIX Firewall is implemented between an
inside network and an outside network.
Although optional, it is recommended that you install the Cisco IOS Firewall software on the router
directly connected to the Internet. The Cisco IOS Firewall feature set is discussed later in this
chapter. Be aware that there are performance ramications when enabling the Firewall feature sets.
Each connection through a PIX Firewall requires memory. You can support up to 7500 connections
with 16 MB of RAM installed on a PIX Firewall; 32 MB of memory can support up to 25,000
connections; 256 MB can support up to 280,000 connections; and 1 GB can support up to 500,000
connections.
DMZs usually exist as part of a network that the Internet community or general public can access,
such as a web, FTP, or SMTP server. For example, FTP servers allow external users to access public
les, such as Cisco IOS Software les, which are available online at ftp.cisco.com. Your remaining
servers are protected by the rewall typically with a third rewall interface called the DMZ.
362
Figure 6-3
Router
Outbound
Connections
OK
Inside
PIX
Firewall
No Direct
Inbound
Connections
Perimeter
Internet Attached
Router
Outside
Protected Servers
Server 1
Protected Clients
Server 2
Internet Accessible
Server
BASTION Hosts
The PIX Firewall logic is engineered around the Adaptive Security Algorithm (ASA). Every
inbound packet is checked against the ASA and against connection state information in memory.
This stateful approach to security is regarded in the industry as being far more secure than a
stateless packet-screening approach.
Examples of the stateful approach to security include the following:
No packets can traverse the PIX Firewall without a connection and state.
Outbound connections or states are allowed, except those specically denied by ACLs. An
outbound connection is one where the originator, or client, is on an interface with higher
security than that of the interface on which the receiver, or server, resides. The highestsecurity interface is always the inside interface (value 100), and the lowest is the outside
interface (value 0). Any perimeter interfaces can have security levels between the inside and
outside values (for example, 50).
Inbound connections or states are denied, except those specically allowed. An inbound
connection or state is one where the originator, or client, is on an interface with lower security
than that of the interface/network on which the receiver, or server, resides. You can apply
multiple exceptions to a single xlate (translation). This lets you permit access from an
arbitrary machine, network, or any host on the Internet to the host dened by the xlate.
363
All Internet Control Message Protocol (ICMP) packets are denied unless specically
permitted. ICMP packets to the PIX Firewall itself are allowed unless explicitly denied by an
ICMP access control entry.
All attempts to circumvent the previous rules are dropped and a message is sent to syslog.
When an outbound packet arrives at a PIX Firewall higher-security-level interface (security levels
can be viewed with the show nameif command; by default, the outside interface has a security
level set to 0, or untrusted, and the inside interface is set to 100, or trusted), the PIX Firewall
checks whether the packet is valid based on the ASA, and whether previous packets have come
from that host. If not, the packet is for a new connection, and the PIX Firewall creates a translation
slot in its state table for the connection. The information that the PIX Firewall stores in the
translation slot includes the inside IP address and a globally unique IP address assigned by NAT,
PAT, or identity (which uses the inside address as the outside address). The PIX Firewall then
changes the packets source IP address to the globally unique address, modies the checksum and
other elds as required, and forwards the packet to the lower-security-level interface.
When an inbound packet arrives at an external interface such as the outside interface, it must rst
pass the PIX Firewall ASA criteria. If the packet passes the security tests, the PIX Firewall
removes the destination NAT IP address, and the internal IP address is inserted in its place. The
packet is forwarded to the protected interface.
NOTE The PIX Firewall supports NAT, which provides a globally unique address for each
inside host, and PAT, which shares a single globally unique address for up to 64,000
simultaneously accessing inside hosts. The following is a list of current models that Cisco
supports (not required knowledge for the examination):
PIX 501
PIX 506/506E
PIX 515/515E
PIX 520
PIX 525
PIX 535
Figure 6-4 displays a sample PIX Firewall, which is used in the current CCIE Security lab exam.
PIX Firewall devices are based on the Intel Pentium processor, which is basically a PC with Ciscoinstalled PIX Firewall software.
364
Figure 6-4
Rear View
Front View
Power
Switch
Perimeter
Router
E0
131.108.1.2/24
PIX Interfaces E0
Outside (Security Level 0)
131.108.1.1/24
DMZ
E0
PIX Firewall
E1
PIX Interfaces E1
Inside (Security Level 100)
201.201.201.1 255.255.255.0
Name the inside and outside interfaces and assign the security levels (in global
conguration mode):
nameif hardware_id if_name security_level vlan_id
365
The nameif command lets you assign a name to an interface. You can use
this command to assign interface names if you have more than two network
interface circuit boards in your PIX Firewall. The rst two interfaces have
the default names inside and outside. The inside interface has default
security level 100, and the outside interface has default security level 0.
Table 6-3 describes the PIX Firewall command nameif as documented on
the Cisco Documentation CD-ROM.
Table 6-3
Description
hardware_id
The hardware name for the network interface that species the interfaces slot
location on the PIX Firewall motherboard. Interface boards are numbered from
the leftmost slot nearest the power supply as slot 0. The internal network
interface must be in slot 1. The lowest security_level external interface board is
in slot 0, and the next lowest security_level external interface board is in slot 2.
if_name
security_level
Either 0 for the outside network or 100 for the inside network. Perimeter
interfaces can use any number between 1 and 99. By default, the PIX Firewall
sets the security level for the inside interface to security100, and the outside
interface to security0. The rst perimeter interface is initially set to security10,
the second to security15, the third to security20, and the fourth to security25.
Check the latest Cisco IOS bulletins for the number of hardware interfaces
supported per PIX Firewall.
vlan_id
The VLAN identier; for example, vlan10, vlan20, etc. The VLAN identier is
congured with the interface command.
Step 2
Identify the hardware interfaces, speed, and duplex type installed with the following
interface command:
interface hardware_id [hardware_speed] [shutdown]
Table 6-4 denes and describes the options for the interface command, as
documented on the Cisco Documentation CD-ROM.
366
Table 6-4
Description
hardware_id
Identies the network interface type. Possible values are ethernet0, ethernet1
to ethernetn, or gb-ethernetn, depending on how many network interfaces are
in the PIX Firewall.
hardware_speed
shutdown
Disables an interface.
Step 3
Table 6-5 denes the options and meaning of the interface command.
Table 6-5
interface Command
Option
Description
if_name
ip_address
netmask
Step 4
367
Description
if_name
nat_id
local_ip
Internal network IP address to be translated. You can use 0.0.0.0 to allow all
hosts to start outbound connections. You can abbreviate 0.0.0.0 local_ip as 0.
netmask
Network mask for local_ip. You can use 0.0.0.0 to allow all outbound
connections to translate using IP addresses from the global pool.
max_conns
The maximum TCP connections permitted from the interface you specify.
em_limit
norandomseq
Do not randomize the TCP packets sequence number. Use this option only if
another inline rewall is also randomizing sequence numbers and the result is
scrambling the data. Use of this option opens a security hole in the PIX
Firewall.
Step 5
368
The pool of addresses is typically assigned to you by the InterNIC or your ISP.
Table 6-7 denes the options of the global command, as documented on the
Cisco Documentation CD-ROM.
Table 6-7
Description
if_name
nat_id
A positive number shared with the nat command that groups the nat and global
command statements together. The valid ID numbers can be any positive number up
to 2,147,483,647.
global_ip
One or more global IP addresses that the PIX Firewall shares among its
connections.
If the external network is connected to the Internet, each global IP address must be
registered with the InterNIC. You can specify a range of IP addresses by separating
the addresses with a dash (-).
You can create a PAT global command statement by specifying a single IP address.
You can have more than one PAT global command statement per interface. A PAT
can support up to 64,000 xlate objects.
netmask
global_mask
The network mask for global_ip. If subnetting is in effect, use the subnet mask; for
example, 255.255.255.128. If you specify an address range that overlaps subnets,
global will not use the broadcast or network addresses in the pool of global
addresses. For example, if you use 255.255.255.224 and an address range of
209.165.201.1 to 209.165.201.30, the 209.165.201.31 broadcast address and the
209.165.201.0 network address will not be included in the pool of global addresses.
interface
Step 6
Table 6-8 denes the options of the route command, as documented on the Cisco Documentation
CD-ROM.
Table 6-8
369
Description
if_name
ip_address
The internal or external network IP address. Use 0.0.0.0 to specify a default route.
You can abbreviate the 0.0.0.0 IP address as 0.
netmask
gateway_ip
Specify the IP address of the gateway (the next-hop address for this route).
metric
Example 6-4 displays the full working conguration of the PIX Firewall shown in Figure 6-5. The
shaded portions of this display are conguration commands we have entered, and the nonshaded
portions are default congurations. One of the advantages of the PIX Firewall, like the Catalysts
Ethernet switch, is that you can view the full working and default conguration, unlike Cisco IOS
routers, for which the default conguration is not displayed.
Example 6-4
continues
370
Example 6-4
NOTE Note the order of preference for the PIX Firewall when NAT is enabled:
NAT 0 access list
Static NAT
Static PAT
Policy NAT
Regular NAT
371
Table 6-9 denes the options of the static command, as documented on the Cisco Documentation
CD-ROM.
Table 6-9
Description
internal_if_name
external_if_name
global_ip
local_ip
The local IP address from the inside network. The IP address on the highersecurity-level interface you are accessing.
netmask
network_mask
Pertains to both global_ip and local_ip. For host addresses, always use
255.255.255.255. For network addresses, use the appropriate class mask or
subnet mask; for example, for Class A networks, use 255.0.0.0. An example
subnet mask is 255.255.255.224.
max_conns
em_limit
norandomseq
Do not randomize the TCP/IP packets sequence number. Use this option
only if another inline rewall is also randomizing sequence numbers and
the result is scrambling the data. Use of this option opens a security hole in
the PIX Firewall.
201.201.201.1 0
The static command should be used in conjunction with either conduit or access-list. A conduit
command statement creates an exception to the PIX Firewall ASA mechanism by permitting
connections from one rewall network interface to access hosts on another.
372
NOTE If a conduit or access list is not congured on the PIX Firewall, then by default all
trafc will be dropped, resulting in the PIX Firewall acting like a black hole or bit bucket router.
By default, the PIX Firewall will drop all trafc unless congured otherwise.
The clear conduit command removes all conduit command statements from your conguration.
The conduit command syntax is dened as follows:
conduit {p
permit | deny} protocol global_ip global_mask [operator port [port]]
foreign_ip foreign_mask [operator port [port]]
Table 6-10 displays the options and command syntax for the conduit command, as documented
on the Cisco Documentation CD-ROM.
Table 6-10
Description
permit
deny
protocol
Species the transport protocol for the connection. Possible literal values are
icmp, tcp, udp, or an integer in the range 0 through 255, representing an IP
protocol number. Use ip to specify all transport protocols.
global_ip
global_mask
Network mask of global_ip. The global_mask is a 32-bit, four-part dotteddecimal address, such as 255.255.255.255. Use 0s in a part to indicate bit
positions to be ignored. Use subnetting, if required. If you use 0 for global_ip, use
0 for global_mask; otherwise, enter the global_mask appropriate to global_ip.
foreign_ip
An external IP address (host or network) that can access the global_ip. You can
specify 0.0.0.0 or 0 for any host. If both the foreign_ip and foreign_mask are
0.0.0.0 0.0.0.0, you can use the shorthand any option.
foreign_mask
Network mask of foreign_ip. The foreign_mask is a 32-bit, four-part dotteddecimal address, such as 255.255.255.255. Use 0s in a part to indicate bit
positions to be ignored. Use subnetting, if required.
operator
A comparison operand that lets you specify a port or a port range. Use without an
operator and port to indicate all ports. For example, conduit permit tcp any any.
By default, all ports are denied until explicitly permitted.
port
373
PIX Firewall software version 6.2 allows NAT of external source IP addresses for packets traveling
from the outside interface to the inside interface. All functionality available with traditional NAT,
such as xups, stateful failover, dynamic NAT, static NAT, and PAT, are available bidirectionally
in this release.
The alias command translates one address into another. The alias command is used when
registered addresses have been used in a private network and access is required to the registered
address space on the Internet. Consider the following example: the inside network contains the IP
subnet address 64.236.16.0/24. Assume this belongs to the website at www.cnn.com.
When inside clients try to access www.cnn.com, the packets do not go to the rewall because the
client thinks 64.236.16.0/24 is on the local inside network. To correct this, a net alias is created as
follows with the alias command:
alias (inside) 64.236.16.0 131.108.2.0 255.255.255. 0
When the inside network client 64.236.16.0 connects to www.cnn.com, the DNS response from
an external DNS server to the internal clients query would be altered by the PIX Firewall to be
131.108.2.1-254/24.
NOTE The alias command is replaced in newer versions with a dns keyword in static and nat
commands.
Use
ca
clear xlate
show xlate
Display NAT translations. The show xlate command displays the contents
of only the translation slots.
crypto dynamic-map
failover [active]
Use the failover command without an argument after you connect the
optional failover cable between your primary rewall and a secondary
rewall.
xup protocol
The xup protocol commands let you view, change, enable, or disable
the use of a service or protocol through the PIX Firewall.
continues
374
Table 6-11
Use
kill
telnet ip_address
[netmask] [if_name]
Specify the permitted host devices for PIX Firewall console access via
Telnet.
FACILITY identies the message facility. PIX is the facility code for messages generated by the
PIX Firewall.
SEVERITY reects the severity of the condition described by the message. The lower the number,
the more serious the condition. There are eight dened severity levels:
375
The severity levels do not apply for syslog messages sent to the console, monitor, or buffer.
Example 6-5 displays a few serious log messages that require urgent action from the security team
within an organization.
Example 6-5
The rst shaded line in Example 6-5 is that of the PIX buffer and the second shaded line is being
read from a syslog server.
Example 6-5 displays two log messages of interestnamely IPSec message 10.10.10.10 and the
more serious log message stating that an inside source address 86.3.2.10 is trying to illegally send
a TCP request to an inside interface on the PIX Firewall congured with the IP address 10.1.1.1
using HTTP or the World Wide Web.
Typically, the log messages are informative and easily deciphered. You can see some of the
thousands of possible log outputs at http://www.cisco.com/en/US/partner/products/sw/secursw/
ps2120/products_system_message_guide_book09186a00801582a9.html. Note that the version of
PIX Firewall is not critical for the written exam but it is critical for the lab exam. Hence the link
is placed here for your lab exam preparation only. Prior to taking the lab exam, review some of the
more severe levels for version 6.3 on the PIX Firewall software.
376
Easy-to-use web-based interface for managing PIX Firewalls remotely; using the web-based
interface is not a suggested practice by Cisco for medium to large networks.
Support for up to 10 Ethernet interfaces ranging from 10BASE-T, 10/100 Fast Ethernet to
Gigabit Ethernet.
Stateful rewall failover capability with synchronized connection information and product
congurations.
PAT further expands a companys address poolone IP address supports 64,000 hosts.
Support for high-performance URL ltering via integration with Websense-based URL
ltering solutions.
Mail Guard removes the need for an external mail relay server in the perimeter network.
Support for broad range of authentication methods via TACACS+, RADIUS, and Cisco
Access Control Server (ACS) integration.
Domain Name System (DNS) Guard transparently protects outbound name and address
lookups.
Java blocking eliminates potentially dangerous Java applets (not compressed or archived),
extending AAA capabilities.
Net Aliasing transparently merges overlapping networks with the same IP address space.
Integration with Cisco IDSs for shunning connections of known malicious IP addresses.
Simple Network Management Protocol (SNMP) and syslog for remote management.
377
Extended transparent application support (both with and without NAT enabled) includes the
following:
Sun Remote Procedure Call (RPC)
Microsoft networking client and server communication (NetBIOS over IP) using
NAT
Multimedia, including RealNetworks RealAudio, Xing Technologies
Streamworks, White Pines CuSeeMe, Vocal Tecs Internet Phone, VDOnets
VDOLive, Microsofts NetShow, VXtreme Web Theatre 2; and Intels Internet Video
Phone and Microsofts NetMeeting (based on H.323 standards)
Oracle SQL*Net client and server communication
VoIP/multimedia
Dynamic Host Conguration Protocol (DHCP) server support for Cisco IP Phones
Cisco also publishes loopholes found in PIX Firewall software, such as the PIX Mail Guard
feature, which was designed to limit SMTP messages but can be exploited by intruders. You can
nd the Cisco publications at http://www.cisco.com/en/US/partner/products/
products_security_advisories_listing.html.
NOTE When troubleshooting why certain applications such as SMTP mail or L2TP (TCP
1701) tunnels are not working, a good starting point is always to look at which TCP or UDP
ports are ltered by the PIX Firewall, because, by default, you must congure any TCP/UDP
ports you will permit through the PIX Firewall with the conduit or static translations
commands.
CCSP Self-Study: Cisco Secure PIX Firewall Advanced (CSPFA), 2nd Edition, by Behzad
Behtash (Cisco Press, ISBN 1587051494), is an excellent resource if you want to learn more
about the PIX Firewall.
378
NOTE The need to provide rewall functionally in existing router models led Cisco down a
path of enabling IOS to be security aware. Not many folks think of Cisco as a software company
but, in fact, it sells more software than hardware.
The Cisco IOS Firewall feature set consists of the following:
Context-Based Access Control (CBAC) provides to internal users secure, per-applicationbased access control for all trafc across perimeters, such as between private enterprise
networks and the Internet.
DoS detection and prevention defends and protects router resources from common attacks,
checking packet headers and dropping suspicious packets.
Audit trail details transactions, recording time stamp, source host, destination host, ports,
duration, and the total number of bytes transmitted.
Real-time alerts log alerts in case of DoS attacks or other precongured conditions.
You can use the Cisco IOS Firewall feature set to congure your Cisco IOS router as the following
bulleted points demonstrate:
An Internet rewall
A rewall between your companys network and your companys partners networks
For example, when a user authenticates from the Cisco IOS Firewall proxy, authentication is
completed by HTTP and access lists are downloaded from a AAA server to authorized or rejected
connections. The Cisco IOS Firewall feature set has many different applications for todays IP
networks.
CBAC provides secure, per-application access control across the network. CBAC is designed to
enhance security for TCP and UDP applications, and supports protocols such as H.323,
RealAudio, and SQL-based applications, to name a few.
CBAC can lter TCP/UDP packets based on application layer, transport layer, and network layer
protocol information. Trafc is inspected for sessions that originate on any given interface and also
inspect trafc owing through a rewall. CBAC can inspect FTP, TFTP, or SMTP trafc, but does
379
not inspect ICMP packet ows. Additionally, network administrators can debug network issues by
using ICMP without concern that possible intruders may enter the network. Cisco IOS Firewall
uses stateful inspection to trust ICMP messages that are generated within a private network and to
permit the associated ICMP replies.
CBAC can even manually open and close openings (congure conduits, for example) in the
rewall to test security in a network.
The following list provides samples of protocols supported by CBAC:
TFTP
SMTP
Java Blocking
Oracle SQL
RealAudio
H.323
FTP
StreamWorks
VDOLive
The other major benets of the Cisco IOS Firewall feature set include the following:
Integrated solutions and no need for a PIX Firewall for investments already made in Cisco
IOS routers.
Low cost.
Cisco IOS Firewall feature-enabled routers should always maintain the same secure polices
described in Chapter 7, Network Security Policies, Vulnerabilities, and Protection, such as
password encryption and disabling nonessential services such as HTTP or DHCP.
380
2.
3.
4.
5.
6.
7.
8.
Example 6-6 shows a router named R1 with two Ethernet interfaces, one dened as the inside
interface (Ethernet0) and the other dened as the outside interface (Ethernet1). For this example,
CBAC is being congured to inspect Real-Time Streaming Protocol (RTSP) and H.323 protocol
trafc inbound from the protected network on a router with two Ethernet interfaces. Interface
Ethernet0 is the protected network, and interface Ethernet1 is the unprotected network. The
security policy for the protected site uses ACLs to inspect TCP/UDP protocol trafc. Inbound
access for specic protocol trafc is provided through dynamic access lists, which are generated
according to CBAC inspection rules.
Example 6-6
eq telnet
eq
syslog
ACL 199 permits TCP and UDP trafc from any source or destination, while denying specic
ICMP trafc and permitting ICMP trace route and unreachable messages. The nal deny
statement is not required but is included for explicitnessthe nal entry in any ACL is an implicit
denial of all IP trafc. Example 6-6 denes access-list 199 on Router R1, which has two Ethernet
interfaces: Ethernet0 and Ethernet1.
381
ACL 199 is applied inbound at interface Ethernet 1 to block all access (beside permitting Telnet,
ICMP traceroute, and ICMP unreachables) from the unprotected network to the protected
network. Example 6-7 congures the inbound ACL on R1.
Example 6-7
An inspection rule is created for users that covers two protocols: RTSP and H.323. Example 6-8
congures R1 to inspect RTSP and H.323 trafc.
Example 6-8
Inspected Trafc
The inspection rule is applied inbound at interface Ethernet1 to inspect trafc from users on the
protected network. When CBAC detects multimedia trafc from the protected network, CBAC
creates dynamic entries in access-list 199 to allow return trafc for multimedia sessions.
Example 6-9 congures the R1 unprotected network to inspect trafc on interface Ethernet0.
Example 6-9
Debugging output (refer to the Cisco Documentation CD-ROM for full details)
After you complete the inspection of trafc, you can turn off CBAC with the global IOS command
no ip inspect. The Cisco IOS Firewall feature set also supports AAA, TACACS+, and Kerberos
authentication protocols. Port to Application Mapping (PAM) allows you to customize TCP or
382
UDP port numbers for network services or applications. The information in the PAM table enables
CBAC-supported services to run on nonstandard ports.
NOTE Active audit and content lters are used with NetRanger and NetSonar (end of life)
products to allow administrators to decipher (read and analyze) or reply (to the conversation
between two devices) to networks when an intruder has accessed the network. CBAC is just
another useful tool in Cisco IOS that allows a quick audit of an IP network. CBAC inspects
trafc that travels through a rewall and can be used to discover and manage state information
for TCP/UDP sessions.
Protects privacy by ensuring that the data is not read, but it cant stop someone from
intercepting it. (If you cant read something, whats the use of that data?)
Assures the integrity of electronic communications by ensuring that they are not altered
during transmission.
Ensures that no party involved in an electronic transaction can deny involvement in the
transaction. (Collectively these last three bulleted points are known as nonrepudiation.)
Before you send data over the public Internet, you want to make sure that the data, no matter how
sensitive, wont be read by the wrong source. PKI enables data to be sent encrypted by use of a
public key, cryptography, and digital signatures.
Public key cryptography ensures the condentiality of sensitive information or messages using a
mathematical algorithm, or key, to scramble (encrypt) data, and a related mathematical key to
unscramble (decrypt) it. In public key cryptography, authorized users receive special encryption
software and a pair of keys, one an accessible public key, and the other a private key, which the
user must keep secret.
A digital signature standard (DSS) is an electronic identier comparable to a traditional, paperbased signatureit is unique and veriable, and only the signer can initiate it.
383
Before any communication can take place, both parties involved in the data communication must
obtain a digital certicate from a Certicate Authority (CA), a trusted third party responsible for
issuing digital certicates and managing them throughout their lifetime.
Consider the following example: a user named Simon wants to communicate with a user named
Sharon. Simon already has his digital certicate but Sharon has yet to obtain one. Sharon must
identify herself to the CA to obtain a certicate. This is analogous to a passport when you travel
internationally. When Sharon obtains her digital certicate, it contains a copy of her public key,
the certicates expiration date, and the CAs digital signature. Each of these details is public.
Sharon creates a private key, which is not shared with anyone. If Sharon wants to create an
asymmetric key pair, she would generate the pair, keep the private key locked via password, and
send the public key to the CA for its signature. Now that both parties have a DSS, they can
communicate and encrypt data using their public key, but they can decrypt only the data using their
respective private keys. Pretty Good Privacy (application layer tool) is an excellent example of this
type of communication. I suggest that you install the software (free demonstration version) and try
PKI for yourself. You can nd the free software at http://www.pgp.com.
384
VPN Model
Figure 6-6
Private
Address
Beta
VPN Tunnels
Remote
Site
Alpha
Remote
Site
Central Site
Private
Address
Remote
Site
Assume that you have a client who wants to create a VPN across your network. The clients main
network is attached via Alpha over the Internet IP cloud. The client has a group of employees in
its own IP space on the Ethernet interface. The client has a classless interdomain routing (CIDR)
block of 192.1.64.0/20 for the network attached to the Alpha router, and the CIDR block 141.108.32.0/
20 to the network attached to the Beta router. The network 131.108.1.0/30 is assigned between the
routers and is pingable.
Example 6-10 congures Alpha with a GRE tunnel pointing to the remote IP address 131.108.1.2/30
(Betas Serial IP address) and uses 131.108.1.5 for the loopback interface.
Example 6-10
hostname Alpha
!
interface L oopback0
ip address 131.1 08.1.5 255.255.255.255
! IP GRE tunnel configuratio n follows
interface Tunnel0
Description Non overlappin g subnet
ip address 192.1.63.1 255 .255.255.0
tunnel source Loopback0
tunnel destination 131.10 8.1.2
!
interface Ethernet0 /0
ip address 192.1.65.1 255.255.240.0
Example 6-10
385
!
interface Serial0
Descript ion Link to Beta via Inte rnet Cloud
ip address 131. 108.1.1 255.255.255.252
!
r outer ospf 1
network 192.1. 64.0.0 0.0.15.255 area 0
E nd
Example 6-11 congures Beta with a GRE tunnel pointing to the remote IP addresses 131.108.1.1/30
and 131.108.1.6/32 for loopback use.
Example 6-11
hostname Beta
!
interface Lo opback0
ip address 131.1 08.1.6 255.255.255.255
! IP GRE tunnel configuration follows
interface Tunnel0
ip address 192.1.63.2 255 .255.255.0
tunnel source Loopback0
tunnel destination 131.10 8.1.1
!
interface Ethernet0 /0
ip address 141.108.32. 1 255.255.240.0
!
router os pf 1
network 192.1.64.0 0.0 .15.255 area 0
interface S erial0
Description Link to Alpha via Internet Cloud
ip address 131.108.1.2 255 .255.255.252
!
End
The IP GRE tunnel is now congured between the routers Alpha and Beta. While using public
address space for the source and destination of the VPN tunnel, the reserved CIDR block
192.1.64.0/20 will not be advertised or routable over the public domain. The private trafc can
now ow between both hub site and remote site securely.
The next section introduces another new objective of the CCIE Security blueprint, namely network
IDS, including anomalies, signatures, passive, and inline.
386
SignatureA set of conditions that, when met, indicates some type of intrusion event.
Stateful pattern matchingA far more sophisticated method of searching for certain
patterns is stateful pattern matchingbased analysis. Instead of looking at only one packet,
this method looks at the actual ow of packets between two end systems.
These methods have their pros and cons. To date, the Cisco strategy for NIDS is to blend the use
of pattern matching, stateful pattern matching, protocol decodes, and heuristic-based signatures.
387
CSA is not dependent upon signatures and does not require updates to stop the latest viruses
or worms.
Figure 6-7 displays how CSA intercepts system calls to the operating system kernel.
Figure 6-7 displays the CSA architecture model, whereby the Management Center for Cisco
Security Agents (CSA MC) allows the administrator to divide network hosts into groups by
function and security requirements. The CSA software is installed on the client PC and continually
monitors local system activity and ensures proper analysis is made of the end workstation. The
administrative workstation ensures that all communication to the client is secured by using the
SSL protocol. CSA is supported on Windows- and UNIX-based platforms.
388
Figure 6-7
SSL
Connection
CSA Client
Kernel
Alerts
Calls Made to System
for Allocated Resource
Application
As a HIPS application, CSA provides host intrusion prevention, distributed rewall capabilities,
malicious mobile code protection, operating system integrity assurance, and audit log consolidation.
CSA relies on analyzing all types of behavior rather than on signature matching. Typically that is
what antivirus tools rely on. Hence, any unknown behavior is denied automatically.
For example, Code Red and SQL Slammer worms have penetrated many systems, resulting in
network outages, as widely reported in the press. Traditional defense mechanisms have proven to
be insufcient against these worms. CSA would have stopped these worms from malicious activity
by denying the application access to any resources on the host and terminating the program
immediately.
Typically a new worm tries to accomplish an attack with a ve-staged approach:
1.
Probe
2.
Penetrate
3.
Persist
4.
Propagate
5.
Paralyze
The types of attacks that can be stopped by CSA are numerous. The following points demonstrate
how CSA responds to the stages and what countermeasures it uses:
389
PersistCSA prevents new le creation, modication of existing les, and register trap
doors.
PropagateCSA prevents mail clients from sending out e-mails to propagate the attack, web
connections, FTP, and infecting le shares.
ParalyzeCSA does not permit deletion or modication of les and prevents drilling of
security holes (opening new doors to provide an opening into your network or device).
Figure 6-8 displays a client PC running CSA. The agent runs in the background and cannot be
suspended or terminated unless permitted to do so by the CSA management station.
Figure 6-8
When a suspicious activity occurs, a balloon message or pop-up window appears on the client and
requests action, if it is not already dened on the management station. Figure 6-9 displays a
suspicious activity for which a message appears.
390
Figure 6-9
Figure 6-10
391
Figure 6-10 displays CSA in action after a suspicious application is launched by the client host
(the balloon message is displayed by right-clicking the CSA icon in the system tray). If the action
required is suspicious, the end user should deny the request, at which time CSA will ensure that
the application is terminated. CSA will not permit the same application to run again and sends an
alert to the host management station for action by your security team. A log message is also saved
locally.
Cisco training has a very good course on HIPS named Securing Hosts by Using CSA. Go to
Cisco.com and search by the course name for more details. This is a good course for those
interested in deploying this tool across a large or medium IP network.
Cisco has recently released Cisco Trust Agent (CTA) as part of its self-defending network strategy.
CTA allows Network Admission Control (NAC) to determine if CSA or antivirus software is
installed and current, and can determine current OS version and patch levels. For more details on
CTA and Cisco self-defending solutions, go to http://www.cisco.com/security/.
2.
3.
The end goal of CTR is to be able to classify alarms coming into a destination device or system
and validate them based on operating system types, patch levels, and actual log les on the end
systems.
392
CTR ensures that your network is constantly monitored and that threats are immediately reported.
This ensures that your signicant investment in IDS is enhanced.
Ensuring that only real-time, valid threats are investigated means that the network infrastructure
can be fully protected from most forms of attacks in an efcient manner. The best way to describe
the CTR tool is to say that CTR reads IDS alarms and performs automated forensics on hosts or
servers that may have been compromised.
For more details on CTR, visit http://www.cisco.com/en/US/partner/products/sw/secursw/
ps5054/index.html or search on the keywords Cisco Threat Response at Cisco.com.
Internet Security Systems RealSecureCTR has been tested with RealSecure versions 6.5
and 7.0
You can access the CTR GUI from any computer in your environment; CTR uses an SSL
connection under Microsoft Internet Explorer. For example, to access the CTR server with an IP
address of 192.168.100.100, simply type this URL in your Explorer address box:
https://192.168.100.100
HTTPS species that your application should use SSL.
With the need for greater security between devices and switches, the IEEE committee came up
with a new technology, 802.1X authentication.
393
over LAN (EAPOL) trafc. After successful authentication, normal trafc can pass through the
switch port. The primary purpose of 802.1X is to permit Layer 3 connectivity, that is, IP
connectivity. 802.1X is initiated only when a device is connected to a switch port, and can also be
used in a wireless network through an access point.
Figure 6-11 displays a typical scenario whereby a user has connected a device such as a PC to an
available switch port.
Figure 6-11
Authentication
Required
Workstations
802.1X
Access Granted
or Denied
Radius
Authentication
Server
Figure 6-11 displays the various functions carried out by each device. The client workstation
initially requests access to the LAN. The client is enabled for 802.1X. For example, Microsoft
Windows XP has support for 802.1X. Simply congure your network card for 802.1X support
using the operating systems instructions.
The Cisco IOSbased switch is also enabled for 802.1X through IOS software. The switch then
responds to the request of the client to join the LAN.
The RADIUS authentication server actually performs the authentication of the end workstation or
client. The authentication server validates the identity of the client and noties the switch whether
or not the client is authorized to access the LAN and switch services. This means the switch
becomes the transparent proxy by sending all frames to the RADIUS server and back from the
RADIUS server to the workstation. RADIUS (with Extensible Authentication Protocol [EAP]
extensions) is the protocol used to authenticate the client. Because the switch acts as the proxy, the
authentication service is transparent to the client. (The client is referred to as the supplicant in the
802.1X documentation.)
The Cisco IOSbased switch (also called the authenticator and back-end authenticator) controls
the physical access to the network based on the authentication status of the client. The switch acts
and veries information between the workstation and the RADIUS server.
394
Unauthorized 802.1XIf a client device does not support 802.1X authentication, the port is
left unauthorized.
802.1X enabledIf a client is enabled for 802.1X but the switch port is not congured for
802.1X support, the client initiates but will not receive a reply. The client then sends packets,
assuming that the authorization was granted.
802.1X is still new to the IP community, and the uptake has been rather slow, but it is more
common in North America. The rest of the world is trying to catch up.
Foundation Summary
395
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of this
chapters key concepts. If you are already comfortable with the topics in this chapter and decided
to skip most of the Foundation Topics material, the Foundation Summary will help you recall
a few details. If you just read the Foundation Topics section, this review should help further
solidify some key facts. If you are doing your nal preparation before the exam, the Foundation
Summary offers a convenient and quick nal review.
Table 6-12
Table 6-13
Method
Sniffer or snooping
capabilities
Control unauthorized
access
Use AAA and Cisco Secure ACS. Also, use access-list ltering and PIX
Firewall.
Control inbound
connections
Control outbound
connections
Allow only valid IP addresses to the outside world and lter remaining
illegal addresses and outbound service requests.
Packet ltering
Use predened access lists that control the transmission of packets from
any given interface, control vty lines and access, and ensure that routing
updates are authenticated.
Description
Congure the inside interface with the IOS ip nat inside command.
Congure the outside interface with the IOS ip nat outside command.
Dene the addresses allowed to access the Internet with the following IOS command:
ip nat inside source list access-list-number pool pool-name
396
Table 6-14
Table 6-15
Table 6-16
Description
Dene NAT/PAT.
Dene statics or static/access lists (for outside networks to access inside hosts or
networks).
Use
ca
clear xlate
show xlate
Display NAT translations. The show xlate command displays the contents
of only the translation slots.
crypto dynamicmap
failover [active]
Use the failover command without an argument after you connect the
optional failover cable between your primary rewall and a secondary
rewall.
xup protocol
kill
Terminate a Telnet session. Telnet sessions to the PIX must be enabled and
are sent as clear text.
telnet ip_address
[netmask] [if_name]
Specify the internal host for PIX Firewall console access through Telnet.
Foundation Summary
Table 6-17
397
Function
CBAC
Table 6-18
Java blocking
Audit trail
Real-time alerts
Firewall
An Internet rewall.
PIX Syslog
Level
Function
EmergencySystem unusable
CriticalCritical condition
ErrorError condition
WarningWarning condition
398
Table 6-19
Table 6-20
Description
Signature
A set of conditions that, when met, indicates some type of intrusion event.
Pattern matching
Stateful pattern
matching
Protocol decode
based analysis
Heuristic-based
analysis
Anomaly-based
analysis
Mitigated by CSA
Probe
Penetrate
Persist
CSA prevents new le creation, modication of existing les, and register trap doors.
Propagate
CSA prevents mail clients from sending out e-mails to propagate the attack, web
connections, FTP, and infecting le shares.
Paralyze
CSA does not permit deletion or modication of les and prevents drilling of security
holes (opening new doors to provide an opening into your network or device).
Q&A
399
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the
CCIE Security written exam and those topics presented in this chapter. This format should help
you assess your retention of the material. A strong understanding of the answers to these questions
will help you on the CCIE Security written exam. You can also look over the questions at the
beginning of the chapter again for further review. As an additional study aid, use the CD-ROM
provided with this book to take simulated exams, which draw from a database of over 500
multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
3.
Extended access lists lter the services of what two main transport layer protocols?
4.
Ident
b.
FTP
c.
pop3
d.
pop2
e.
echo
5.
Name ve UDP services that can be ltered with an extended access list.
6.
7.
8.
What does the IOS command ip nat inside source list accomplish?
9.
What are the four possible NAT translations on a Cisco IOS router?
10.
How many connections can be translated with a PIX Firewall for the following RAM
congurations: 16 MB, 32 MB, and 256 MB?
11.
When the alias command is applied to a PIX Firewall, what does it accomplish?
12.
What security features does the Cisco IOS Firewall feature set allow a network administrator
to accomplish?
400
13.
14.
15.
16.
17.
401
Scenario
402
Scenario Answer
Scenario Solution
Cisco PIX Firewalls need to be enabled for NAT for any nonregistered IP address spaces such as
the addresses listed in RFC1918. In particular, the Class A 10.0.0.0/8 is not routable in the Internet,
so you must use NAT to permit access, or you could re-address your entire network, which clearly
is not an exercise you will do often. Even if you re-addressed your entire network, you would still
need to congure nat, nat 0, nat 0 acl, or statics on the rewall to permit IP trafc.
The following command will congure the PIX Firewall for NAT, on the inside addresses:
nat
Before you can access the Internet, you must also congure the PIX Firewall for routing
(remember, the PIX Firewall is not as intelligent as a router until version 6.3, where OSPF is
supported); RIP can be congured by the network administrator, and you must route IP data with
the command shown here:
route outside 0.0.0.0 0.0. 0. 131.018.1.2
This command installs a default route where IP datagrams will be sent, typically, the perimeter
router or ISP router.
Standards BodiesIETF
Vulnerability Discussions
CHAPTER
Intrusion Detection System (IDS)Describes how an IDS (Cisco IDS, in particular) can
be implemented to help deter intruders from gaining access to secure data, including details
on how to prevent back doors and protocol weaknesses.
Protecting Cisco IOS from IntrusionPresents some of the standard congurations that
should be considered for every Cisco IOSenabled router connected to the Internet to avoid
intruders gaining access to unauthorized material.
406
If you can answer most or all of these questions, you might want to skim the Foundation Topics
section and return to it later, as necessary. Review the Foundation Summary section and answer
the questions at the end of the chapter to ensure that you have a strong grasp of the material covered.
If you already intend to read the entire chapter, you do not necessarily need to answer these
questions now. If you nd these assessment questions difcult, read through the entire
Foundation Topics section and review it until you feel comfortable with your ability to answer
all of these questions and the Q & A questions at the end of the chapter.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
3.
4.
A remote user tries logging into a remote network but fails after three additional tries and is
disconnected. What useful information should the network administrator gather? (Select the
best two answers.)
a.
Username
b.
Invalid password
c.
Invalid username
d.
Valid username
If a remote user Telnets to a router but accidentally types the incorrect password or username,
which of the following events is not required by the security administrator in this
organization? (Select the best two answers.)
a.
Invalid password
b.
Invalid username
c.
Access denied
d.
Authorization failure
e.
Authentication failure
What is the rst step that should be implemented in securing any network?
a.
b.
c.
d.
e.
b.
5.
6.
7.
8.
9.
c.
Stateful rewalls ensure that all trafc returning from a router originated inside the
network, unless a static policy on the rewall permits otherwise.
d.
e.
407
What primary security method can be designed and deployed to secure and protect any IP
network after an attack has been documented?
a.
Security policy
b.
IP policy
c.
Countermeasures
d.
Measurement
e.
Logging passwords
A security administrator notices that a log le stored on a local router has increased in size
from 32 kb to 64 kb in a matter of seconds. What should the network administrator do?
a.
b.
c.
Log the event as suspicious and notify the incident response team.
d.
b.
c.
d.
e.
Who can use network scanners and probes? (Select the best two answers.)
a.
Intruders
b.
Security managers
c.
End users
d.
b.
c.
d.
408
10.
11.
12.
13.
14.
ICMP
b.
DoS
c.
Telnet/Kerberos attack
d.
When an intruder sends a large amount of ICMP echo (ping) trafc using IP broadcasts, this
type of DoS attack is known as what?
a.
Bastion
b.
Land.C
c.
Man-in-the-middle
d.
Smurf
e.
Ping of death
Assuming two devices are running IPSec over the Internet, what form of attack is likely to
compromise any data sent over the Internet?
a.
Ping of death
b.
Smurf
c.
Land.C
d.
Man-in-the-middle
e.
Birthday attack
What kind of attack sends a large number of ICMP echo request packets with the intent of
overowing the input buffers of the destination machine and causing it to crash?
a.
Ping of death
b.
Smurf
c.
Land.C
d.
Man-in-the-middle
e.
Birthday attack
DoS attack
b.
c.
d.
15.
16.
17.
18.
409
b.
c.
d.
e.
If a network manager believes that a host has been compromised, on a router or host device,
and wishes to have the Certicate Authority certicate revoked, how can the security team
accomplish this?
a.
b.
Contact the Certicate Authority administrator and be prepared to change the secret
password.
c.
d.
Do nothing, because the client software takes decisive action by rebooting the router.
e.
f.
What is the best mechanism against sniffer-type programs that try to determine the network
passwords between hosts and clients? (Select, at most, three answers.)
a.
Hard-coded passwords
b.
IPSec
c.
One-time passwords
d.
Kerberos or SSH
b.
c.
d.
Trojan horses ensure a device can be compromised for audit trails after a hacker has
gained access to a host
410
19.
20.
21.
22.
Which of the following are traditional defense-in-depth security options? (Select the best two
answers.)
a.
b.
c.
d.
Use of authentication
e.
To stop spam e-mail from overwhelming an e-mail server, what step can you take?
a.
b.
Nothing, because spam e-mail is too difcult to stop to be worth the effort.
c.
Install an intrusion detection system that has a signature for spam e-mail.
d.
e.
f.
b.
By setting the ag bits in all TCP packets with SYN/FIN bits set to 0
c.
d.
e.
f.
Smurf attack
Interface
E0
Cable4/0
E0
E0
E0
What address do you suspect might be involved in launching an attack of some form? (Select
the best two answers.)
a.
10.1.135.11
b.
10.1.30.106
c.
10.1.30.108
d.
10.1.30.109
23.
24.
411
Which of the following describes an attack that falsies a broadcast ICMP echo request and
may include a primary and secondary victim?
a.
None of these
b.
Man-in-the-middle
c.
Land.C
d.
A home attack
e.
A smurf attack
What are the common drawbacks of antivirus software such as Norton AntiVirus? (Select the
best two answers.)
a.
The software is difcult to keep up to date when new viruses are released.
b.
c.
d.
412
Foundation Topics
Inherent technology weaknessesAll network devices and operating systems have inherent
vulnerabilities.
Outside/inside intrudersUnfortunately, you must assume that there are internal and
external people who want to exploit your network resources and retrieve sensitive data.
Every IP network architecture should be based on a sound security policy that is designed to
address all of these weaknesses and threats. This sound security policy must be in place before
remote access to the network is allowed. Network vulnerabilities must be constantly sought out,
found, and addressed, because they dene points in the network that are potential security weak
points (or loopholes) that can be exploited by intruders or hackers.
Technologies such as TCP/IP, which is an open and dened standard, allow intruders to devise
programs that send IP packets looking for responses and intruders can act on them. Countermeasures can be designed and deployed to secure and protect a network.
Intruders are typically individuals who have a broad skill set. Intruders may be skilled in coding
programs in Java, UNIX, DOS, C, and C++. Their knowledge of TCP/IP may be exceptional, and
they may be have extensive experience in using the Internet to search for security loopholes.
Sometimes, the biggest security threat comes from within an organization, particularly disgruntled
former employees who may have access to usernames and passwords.
413
An intruders motivation may be based on any number of reasons, which makes any network a
possible target:
Cash prot
Revenge
Vandalism
Cyber terrorism
414
CERT/CC works with the Internet community to facilitate responses to incidents involving the
Internet and the hosts that are attacked. CERT/CC is designed to take proactive steps to ensure that
future attacks and vulnerabilities are communicated to the entire Internet community. CERT/CC
also conducts research aimed at improving the security of existing systems.
CERT/CC also helped technology managers with Y2K compliance and with various well-known
viruses, such as the Melissa virus. CERT/CC does not focus on the intruders themselves, or on the
arrest of individuals responsible for causing havoc; rather, it ensures that vulnerabilities and
loopholes are closed as soon as possible. CERT/CC does not maintain any security standards
(these are left for RFCs); also, it does not provide any protocols to help network administrators.
CERT/CC has relationships with various other organizations, such as law enforcement and
Internet security experts, and with the general public, so that any information gathered by the
teams involved in stiing attacks is communicated quickly.
Examples of intruders actually overcoming network security include the famous Barclay Bank
attack in July 2001, where the companys home page was defaced. The New York Times website
was altered in September 1998. In February 2000, Yahoo also came under attack. In response to
attacks like these and the increased concern brought about by them, Cisco Systems decided to
release a new CCIE Security certication.
Cisco also provides a website (for the Cisco Product Security Incident Response Team) where
customers can report any security concerns regarding aws in Cisco IOS products:
http://www.cisco.com/en/US/products/products_security_advisories_listing.html
You can also e-mail the Cisco Product Security Incident Response Team directly for emergency
issues, at security-alert@cisco.com, and for nonemergencies, at psirt@cisco.com.
NOTE Social engineering is a widely used term that refers to the act of tricking or coercing
employees into providing information, such as usernames, mail user identications, and even
passwords. First-level phone-support personnel typically are the employees who are called by
intruders, pretending to work for the company, to gain valuable information. The following URL
takes you to the 2004 E-Crime Watch Survey, which details the level of electronic crime. It is
an excellent document you can give to upper management to show how important security
should be regarded in any organization connected to the Internet:
http://www.cert.org/archive/pdf/2004eCrimeWatchSummary.pdf
In 1998, CERT/CC handled 4,942 incidents involving intruders. In 2001, CERT/CC handled over
52,000 incidents resulting is 2,437 incident reports. In 2004, through the month of November,
there were over 2,680 incidents reported in a single month.
415
If you have never heard of CERT/CC, now is the time to read more and ensure that you are alerted
to vulnerabilities. For more details on CERT/CC, visit http://www.cert.org. CERT/CC claims that
over 95 percent of intrusions can be stopped with countermeasures and monitoring tools in place.
2.
Determine the magnitude of the incident (hosts affected and how many).
3.
Assess the damage (for example, determine if public servers have been modied).
4.
5.
6.
7.
8.
Restore congurations.
9.
10.
11.
12.
13.
Test functionality.
14.
15.
16.
17.
After this data has been collected in relation to the incident discovered by the security administrators,
the incident response team determines whether there is enough trace data to track the intruders.
The actual data you discover might be only a small part of the entire puzzle. For example, initially,
you might have only a log le or notice that a log le size increased or decreased during the incident.
416
The data should be sent to upper management, to the operations groups within an organization, to
all affected sites, and to organizations such as CERT/CC. Organizations such as Cisco or
Microsoft typically do not release a statement to the press detailing any attacks, the recent IOS
code thefts are an excellent example.
After the information ows to all parts of an organization, the incident response team restores
programs and data from the vendor-supplied media and backup device storage media. The data
restored needs to be securely congured (such as routers; see the example in Protecting Cisco
IOS from Intrusion, later in this chapter), which includes installing all relevant patches for all
application-based programs.
Finally, the incident response team prepares a report and provides it to the law enforcement
organization if prosecution is required. More details on Cisco incident response teams can be
viewed at
http://www.cisco.com/en/US/netsol/ns340/ns394/ns171/
networking_solutions_audience_business_benet09186a008010e5cb.html
Internet Newsgroups
Another important body for both network administrators and intruders themselves is Internet
newsgroups. Newsgroups are mailing list-type forums where individuals share ideas and past
incidents to keep current with the latest security concerns and protection policies. As a network
administrator, you must be aware of both standards and topics that intruders are discussing.
The following mailing lists and newsgroups are CERT/CC recommended:
NTBugtraqA moderated forum created to invite the free and open discussion of Windows
NT security exploits and bugs. To subscribe, send an e-mail message to
listserv@listserv.ntbugtraq.ntadvice.com with subscribe ntbugtraq rstname lastname in
the body of the message.
VIRUS-LA moderated mailing list with a focus on computer virus issues. To be added to
the mailing list, send an e-mail message to listserv@lehigh.edu.
417
alt.securityLists computer security issues and other security issues, such as car locks and
alarm systems
comp.risksModerated forum on the risks to the public in computers and related systems
NOTE The following sites also contain a great wealth of information. Although not security
specic, they can help you identify the mechanism used to inltrate technologies such as TCP/IP:
Internet Domain Survey (http://www.isc.org/ds/)Includes Host Count History and
pointers to other sources of Internet trend and growth information
Network intruders can capture, manipulate, and replay data. Intruders typically try to cause as
much damage to a network as possible by using the following methods:
418
Session hijackingDening himself with a valid IP address after a session has been
established to the real IP address, by spoong IP packets and manipulating the sequence
number in IP packets.
The following are some of the attack methods and types of attacks intruders use:
Compromises
Misconguration of protocols
Figure 7-1
419
Private Network
Host or
Bastion Hosts
R1
Vulnerable Cisco
IOS Router
Authorized
Users
Figure 7-1 displays a typical network scenario in which a router is connected to the Internet and
all users have access to hosts in a public domain. A bastion host is a computer or host, such as a
UNIX host, that plays a critical role in enforcing any organizations network security policy.
Because bastion hosts are directly exposed to untrusted and unknown networks, and thus the rst
line of defense in the network, they are typically highly secured (including physically, in secure
computer rooms). Bastion hosts often provide services to Internet users, such as web services, and
provide public access systems, such as FTP or SMTP mail. Because these computers are likely to
be attacked, they are often referred to as sacricial hosts.
The intruder in Figure 7-1 attacks the authorized users and hosts (or bastion hosts) behind a router
by using a number of methods, including the following:
Ping of deathAttack that sends an improperly large Internet Control Message Protocol (ICMP)
echo request packet with the intent of overowing the input buffers of the destination machine
and causing it to crash. The IP header eld is set to 1, the last fragment bit is set, and the data
length is greater than 65,535, which is greater than the maximum allowable IP packet size.
TCP SYN ood attackDoS attack that randomly opens a number of TCP ports, ensuring
that network devices are using CPU cycles for bogus requests. By tying up valuable resources
on the remote host, the CPU is tied up with bogus requests, and legitimate users experience
poor network response or are denied access. This type of attack can make the host unusable.
420
E-mail attackDoS attack that sends a random number of e-mails to a host. E-mail attacks
try to ll an inbox with bogus e-mails, ensuring that the end user cannot send mail while
thousands (or an e-mail bomb) of e-mails are received. The most recent style of e-mail attack
is the e-mail bounce attack. This is achieved by sending a large attachment to a list of bogus
e-mail addresses and putting your victim in the Reply To eld using options in the mail client.
Helpful, high-capacity e-mail servers (such as AOL) return the attachment. Thus, you send
one copy out and the victim gets back one for every name on the Cc list.
DNS poisoningExploits the DNS server, causing the server to return a false IP address to
a domain name query.
UDP bombSends an illegal Length eld in the packet header, causing kernel panic and
crash. This is an old attack but attackers do upgrade their own attack tools.
Distributed denial-of-service (DDoS) attackDoS attack that the attacker runs on multiple
hosts. The attacker rst compromises vulnerable hosts using various tools and techniques.
Then, the actual DOS attack on a target is run from the pool of all the compromised hosts.
Attack via dialup (out of band)Using any form of dialup access exposes your network to
attackers, because dialup connections are allocated an IP address, thus making your network
vulnerable. Although less common these days, because the Internet has expanded so
dramatically, attack via dialup is still a cause for concern if the connection is not secured
correctly. Even the most basic step, turning off the modem when not in use, is a valid security
option. Other forms of security include using RSA tokens and certicates.
Land.C attackA program designed to send TCP SYN packets (TCP SYN is used in the
TCP connection phase) that specify the targets host address as both source and destination.
421
NOTE Some of the attacks in this list are old and are described here as examples only. Ensure
that you check the http://www.cert.org website for the latest style of attacks reported.
DoS attacks are designed to send trafc to host systems so that they cannot respond to legitimate
trafc by overwhelming the end device through a number of incomplete and illegal connections
or requests. DoS attacks send more trafc than is possible to process and can send excessive mail
requests, excessive UDP packets, and excessive ICMP pings with very large data packet sizes to
render a remote host unusable.
Many other known and unknown attack methods and terms exist. Here are a few more you should
be aware of for the written exam:
Spoof attackThe attacker creates IP packets with an address obtained (or spoofed) from a
legitimate source. This attack is powerful in situations where a router connects to the Internet
with one or more internal addresses. The real solution to this form of attack is to track down
the source device and stop the attack. The spoofed address is actually a valid address for the
network. RFC 1918/2827 should be implemented to avoid this style of attack.
Smurf attackNamed after its exploit program, the smurf attack is one of the most recent
in the category of network-level attacks against hosts. In this attack, an intruder sends a large
amount of ICMP echo (ping) trafc to IP broadcast addresses, which all have a victims
spoofed source address. For more recent details on this form of attack and many others, go to
http://www.cert.org/advisories/.
Smurf attacks include a primary and secondary victim and are extremely damaging
to any IP network. Smurf attacks result in a large number of broadcast ICMP
packets, and if routers are congured to forward, broadcasts can result in a degraded
network and poor performance between the primary and secondary device. A quick
solution is to disable ip-directed broadcasts. This command is enabled by default
in Cisco IOS 12.1 and higher.
Man-in-the-middle attackAn attack in which an attacker is able to read and modify at will
messages between two parties without either party knowing that the link between them has
been compromised. The attacker must be able to observe and intercept messages going
between the two victims. Man-in-the-middle attacks are particularly problematic for devices
in the public domain running cryptography. An attacker may create mischief and compromise
the integrity of data owing between two trusted devices.
Birthday attackClass of brute-force attacks. It gets its name from the surprising fact that
the probability that two or more people in a group of 23 share the same birthday is greater
than 50 percent; such a result is called a birthday paradox. The attacker presents what appears
422
to be a trusted source for signing. After the device has signed, the attacker takes the signature
and attaches it to the fraudulent contract. This signature then proves that the trusted and
compromised host signed the fraudulent contract.
Network-based IDS (NIDS)Examines or sniffs every packet owing across the network
and generates an alarm upon detection of a network attack signature.
Chapter 6, Security Technologies, denes some of the network prevention and host intrusion
detection mechanisms that you can use in an IP network, namely Cisco Intrusion Prevention and
Cisco Security Agent.
Cisco IDS delivers a comprehensive, pervasive security solution for combating unauthorized
intrusions, malicious Internet worms, and bandwidth and e-business application attacks.
Recently, Cisco announced a number of new products to support IDS:
Cisco Security Agent (CSA)Analyzes behavior rather than relying on signature matching.
This ensures that tasks are checked against the system-based policies before the system kernel
is used, thus stopping worms and viruses from spreading. CSA is covered in detail in Chapter 6.
Cisco IDS 4250 Appliance SensorRaises the performance bar for high-throughput gigabit
protection in a performance-upgradeable IDS chassis.
423
NOTE In addition to the Cisco IDS 4200 series of IDS appliances, Cisco also has the
following IDS sensors:
Cisco IOS with IPS (Intrusion Prevention Systems) feature set for routers
PIX Firewall with version 6.x with built-in IDS sensor; Version 7.x will be
available in 2005
Cisco IDS Host sensor for Windows, Solaris OS, desktops, and web servers, such
as IIS and Apache
You are not expected to know these details for the written exam; they are presented here for
completeness only.
Each Cisco IDS sensor can be congured to support a number of different signatures. A signature
engine is a component of the Cisco IDS sensor that is designed to support many signatures in a
certain category. An engine is composed of a parser and an inspector. Each engine has a set of legal
parameters that have allowable ranges, or sets of values. Exploit signatures are an identiable
pattern of attack detected by your network device, such as a Cisco IDS Network sensor.
Table 7-1 lists and describes the signature engines available with Cisco IDS Version 4.1.
Table 7-1
ATOMIC.ICMP
ATOMIC.IPOPTIONS
ATOMIC.L3.IP
ATOMIC.TCP
ATOMIC.UDP
FLOOD.HOST.ICMP
FLOOD.HOST.UDP
FLOOD.NET
OTHER
424
Table 7-1
SERVICE.FTP
SERVICE.GENERIC
SERVICE.HTTP
SERVICE.IDENT
SERVICE.MSSQL
SERVICE.NTP
SERVICE.RPC
SERVICE.SMB
SERVICE.SMTP
SERVICE.SNMP
SERVICE.SSH
SERVICE.SYSLOG
Processes syslogs.
STATE.STRING.CISCO
LOGIN
STATE.STRING.LPR
FORMATSTRING
STRING.ICMP
STRING.TCP
STRING.UDP
SWEEP.HOST.ICMP
SWEEP.HOST.TCP
SWEEP.MULTI
SWEEP.OTHER.TCP
SWEEP.PORT.TCP
SWEEP.PORT.UDP
An IDS can be used, for example, to detect spam e-mail and still allow regular e-mail. Most ISPs
do not detect or remove spam e-mail, so it is up to the security administrator to ensure that spam
e-mail is not permitted or used as a DoS attack.
425
WWW
Host B
Host A
.1
R1
131.108.255.0/24
.2
R2
Performs Firewall
Function
The Nagle algorithm helps alleviate the small tcp packet problem in TCP.
Example 7-1 congures the Router R1 to enable the Nagle algorithm dened in RFC 896.
Example 7-1
service nagle
service tcp-k eepalives-in
service tcp-k eepalives-out
426
no service udp-small-serve rs
no service tcp-small-se rvers
By default, the TCP servers for Echo, Discard, Chargen, and Daytime services are disabled.
When the minor TCP/IP servers are disabled, access to the Echo, Discard, Chargen, and Daytime
ports causes the Cisco IOS software to send a TCP reset packet to the sender and discard the
original incoming packet. When the commands in Example 7-2 are entered, they do not display
the IOS commands just entered when you view the conguration, because the default is to disable
TCP/UDP servers.
NOTE When a Cisco IOS router is congured to disable the UDP small servers, access to
Echo, Discard, and Chargen ports enable the router to send ICMP port-unreachable messages to
the source device, and the incoming packet is discarded. It is up to the source station to act on
the ICMP port-unreachable messages. In other words, if this is from an unauthorized host, you
will be sending information to the same device.
427
service password-encryptio n
enable secret 5 $1$CNqo$ C4bT4/zR.iJF0YEpqMhPF/
ena ble password 7 13061E0108 03
This ensures that if anyone (intruder or insider) views the conguration le, the passwords are
hidden. Then, dene the secret password, because it is hidden using a stronger authentication
(MD5) than the enable password.
Example 7-4 congures R1 to disable DHCP, which is enabled by default.
Example 7-4
Disable DHCP
no service dhcp
Cisco has enabled routers to act as DHCP servers to clients by default. This is not a necessary
service to have running, so it should be disabled to stop any intruder from receiving a valid IP
address.
Example 7-5 enables R1 to log any debug output and dene each entry with a timestamp.
Example 7-5
Make sure that the routers clock is set to the correct time, via NTP or manual entry with the clock
set command. This allows you to look at the log after any incident has occurred. Also, because you
are logging to a remote host or hosts and locally to the buffer, you can disable the debug output to
the console port so that messages do not overwhelm the router. You are logging to three different
remote hosts. You can also buffer and output the log le for viewing at a time favorable to the
network administrator.
You can enable a Cisco IOS router to log messages with the command logging on. The command
logging buffered enables the router to store logged messages, such as conguration to a local le
428
stored in NVRAM, for later viewing. To view a logging message buffered to memory, use the
show logging command. Note that trap debug level logging to three different hosts can
signicantly increase the load on a routers CPU. You may limit logging to one or two hosts or
only when troubleshooting. For the purposes of this example, assume that the highest level is used.
Example 7-6 congures R1 with the service sequence command.
Example 7-6
service sequence-numbers
The service category is quite useful. Essentially, enabling it means that your syslog entries will be
numbered to ensure that they are not tampered with. R1 is congured for TACACS via the remote
host 131.108.1.1.
Example 7-7 congures R1 for AAA.
Example 7-7
AAA Conguration
Example 7-7 congures R1 for AAA authentication, if in the event TACACS+ fails to use local
authentication with the command username cisco password cisco.
By default, Cisco IOS software permits a number of default TCP/IP services. Example 7-8
disables some common services.
Example 7-8
no ip http server
no ip fin ger
no service pad
no ip so urce-route
no ip bootp se rver
429
Example 7-8 disables R1 for an HTTP server. The nger command service allows remote users
to view the output (equivalent to the show users [wide] command). When ip nger is congured,
the router responds to a telnet a.b.c.d nger command from a remote host by immediately
displaying the output of the show users command and then closing the connection. You should
turn this service off. The service pad command enables all packets to be assembled or disassembled
between packet assembler/disassembler (PAD) devices and access servers. The command no ip
source-route causes the system to discard any IP datagram containing a source-route option. When
you disable the BOOTP server, access to the BOOTP ports causes the Cisco IOS software to send an
ICMP port unreachable message to the sender and discard the original incoming packet. If the Cisco
router is enabled for helper addresses, then BOOTP requests will now fail, so you might need to leave
this command enabled if you are sending DHCP requests to another server.
Example 7-9 enables TCP intercept.
Example 7-9
TCP Intercept
TCP intercept helps prevent SYN ood attacks by intercepting and validating TCP connection
requests. In intercept mode, the TCP intercept software intercepts TCP SYN packets from clients
to servers that match an extended access list. The router responds; if it is a valid connection, the
devices are allowed to communicate.
The low and high commands identify when TCP intercept should deactivate or activate (TCP
aggressive mode).
In this case, the Cisco IOS command ip tcp intercept one-minute high 5000 denes the number
of connection requests (5000) received in the minute before the Cisco IOS software enters
aggressive mode. The Cisco IOS command ip tcp intercept one-minute low 1800 denes the
number of connection requests (1800) below which the software leaves aggressive mode.
Example 7-10 congures R1 to dump the routers memory contents in case of a router crash.
Example 7-10
430
It is important to be able to look at the reasons a router crashed, especially a router that provides
a security wall to the outside world. Core dumps can be given to Cisco personnel who in turn can
decipher the main reason the router crashed. The Cisco IOS command exception core-le securer01-core-dump sets the lename generated when the router actually crashes. The Cisco IOS
command exception protocol ftp denes the protocol used to send the memory dump. The Cisco
IOS command exception dump 3.3.3.3 denes the remote host where the le will be copied; in
this case, the le will be copied via FTP to remote host 3.3.3.3. Cisco Systems TAC engineers will
use the memory dump to try to decipher why the router crashed.
Example 7-11 shows R1 congured for some common parameters for packets sent to unknown
destinations and networks that do not exist. Cisco Discover Protocol (CDP) is also disabled, to
stop other Cisco devices from discovering details about this router.
Example 7-11
interface Ethernet0
ip address 3.3.3.3 255.255.255.255
no ip redirects
no ip unreachables
ip verify unicast reverse-path
no cdp enable
no ip proxy-arp
no ip mask-reply
interface null0
no ip unreachables
ip route 131.0.0.0 255.0.0.0 null0
The Cisco IOS command no ip redirects disables the Cisco router from sending ICMP redirect
messages to a devices source from the same interface.
The Cisco IOS command no ip unreachables disables the router from sending ICMP unreachable
messages for packets it is not congured for. The ip route command ensures that packets received
for the network 131.10.0.0/12 are thrown away and not acted on. This can stop a routing loop and
an intruder trying to spoof (pretend) to belong to network 131.10.0.0/12.
The ip verify unicast reverse-path command helps mitigate problems caused by the introduction
of malformed or forged (spoofed) IP source addresses into a network by discarding IP packets that
lack a veriable IP source address.
431
The no ip proxy-arp command disables proxy ARP on the interface. Proxy ARP is a technique in
which one host, usually a router, answers ARP requests intended for another machine. Attackers
can exploit this by sending a large number of proxy ARP requests, pretending to be a real host by
assuming or faking its identity. Disabling proxy ARP prevents the router from accepting
responsibility for routing packets to the real destination. Proxy ARP, when used correctly, can
help machines on a subnet reach remote subnets without conguring routing or a default gateway.
Typically, this issue is resolved by DHCP or statically congured gateways, so you can disable this
option on all Cisco IOSenabled devices. Proxy ARP is dened in RFC 1027.
Disabling mask replies, with the command no ip mask-reply, ensures that the Cisco IOS software
does not respond to ICMP mask requests by not allowing ICMP mask reply messages.
Loopback interfaces are the source of log messages. Loopbacks are often used for routing
protocols, as well, because a logical interface does not go down and is reliable. Assign an IP
address that uniquely identies this router. Then, congure and activate the null0 interface as a
place to send unknown destination packets. This becomes the trap for packets; they can route in
but they cant route out if an intruder is spoong networks from valid IP networks.
The congurations shown in Examples 7-1 through 7-11 are just some of the techniques you can
use to ensure that vulnerable routers are secure. Just imagine all the routers in the Internet that do
not contain this level of security, and you will be aware of the challenges faced in the day-to-day
running of the World Wide Web and the reasons why organizations like CERT/CC are an
invaluable resource.
Sometimes even the most basic security can help an organization mitigate a virus. For example,
assume that your company uses 135.15.0.0/16 as its network. In that case, any trafc from the
outside (Internet) with a 135.15.0.0/16 address must be bogus unless initiated from inside of the
network; similarly, any trafc from inside with an address other than 135.15.0.0 would be bogus.
These should be logged. In the case of repeat offenders inside, the systems are either being used
by a hacker or, more likely, have been infected with a worm that spoofs source addresses.
For more details on improving security on Cisco devices, visit http://www.cisco.com/warp/public/
707/21.html.
432
Foundation Summary
The Foundation Summary is a condensed collection of material for a convenient review of this
chapters key concepts. If you are already comfortable with the topics in this chapter and decided
to skip most of the Foundation Topics material, the Foundation Summary will help you recall
a few details. If you just read the Foundation Topics section, this review should help further
solidify some key facts. If you are doing your nal preparation before the exam, the Foundation
Summary offers a convenient and quick nal review.
Table 7-2
Table 7-3
Meaning
Inherent technology
weaknesses
Conguration weaknesses
Outside/inside intruders
Intruder/Hacker Motivations
Intruder/Hacker
Motivation
Explanation
Cash prot
Revenge
Vandalism
Hacktivism
For a challenge
Curiosity
Cyber terrorism
Foundation Summary
Table 7-4
Table 7-5
433
Description
Determine the magnitude of the incident (hosts affected and how many).
Assess the damage (for example, determine if public servers have been modied).
Restore congurations.
10
11
12
13
Test functionality.
14
15
16
17
Network Attacks*
Attack
Meaning
Ping of death
Sends an improperly large ICMP echo request packet with the intent of
overowing the destination machines input buffers and causing it to
crash. The IP header eld is set to 1, the last fragment bit is set, and the
data length is greater than 65,535, greater than the maximum allowable IP
packet size.
DoS attack that randomly opens a number of TCP ports, ensuring that
network devices are using CPU cycles for bogus requests and denying
other legitimate users access.
Teardrop
Land.C attack
A program designed to send TCP SYN packets (TCP SYN is used in the
TCP connection phase) that specify the targets host address as both
source and destination. This program can use TCP port 113 or 139
(source/destination), which can also cause a system to stop functioning.
continues
434
Table 7-5
Meaning
DNS poisoning
Exploits the DNS server, causing the server to return a false IP address to
a domain name query.
UDP bomb
Sends illegal Length eld in the packet header, causing kernel panic and
crash.
E-mail attack
CPU-intensive attack
Chargen attack
Distributed DoS
DoS attack that is run by multiple hosts. The attacker rst compromises
vulnerable hosts by using various tools and techniques. Then, the actual
DoS attack on a target is run from the pool of all these compromised
hosts.
*Note that there are constantly new attacks created. To keep up date, visit http://www.cert.org/advisories.
Table 7-6
Meaning
service nagle
service password-encryption
Enables the router to log any debug output and dene each
entry with a timestamp.
no ip redirects
no cdp enable
Q&A
435
Q&A
The Q & A questions are designed to help you assess your readiness for the topics covered on the
CCIE Security written exam and those topics presented in this chapter. This format should help
you assess your retention of the material. A strong understanding of the answers to these questions
will help you on the CCIE Security written exam. You can also look over the questions at the
beginning of the chapter again for further review. As an additional study aid, use the CD-ROM
provided with this book to take simulated exams, which draw from a database of over 500
multiple-choice questions.
Answers to these questions can be found in Appendix A, Answers to Quiz Questions.
1.
2.
What is the function of the CERT/CC organization, and what are its primary objectives?
3.
4.
5.
6.
7.
8.
9.
10.
11.
What does the following Cisco IOS code accomplish on a Cisco IOS router?
no service udp-small-servers
no service tcp-small-servers
12.
What is the secret password for the following Cisco IOS conguration?
enable secret %$@$%&^$@*$^*@$^*
enable pass cisco
13.
436
Scenario
Internet Connection
Ethernet 0/1
131.108.101.1/24
131.108.100.5/24
Host A
.1
R1
Ethernet 0/0
131.108.100.1/24
131.108.255.0/24
ICMP/TCP/UDP attack!
Administrator is not sure?
131.108.200.5/24
Host B
.2
R2
Ethernet 0/0
131.108.200.1/24
In this scenario, a Cisco IOS router is subjected to ICMP, TCP, or UDP IP packets. The network
administrator is not sure of what type but notices the log le that is buffered to Router R2 has just
increased from 1 MB to 2.5 MB in less than 5 seconds. What can be done to characterize the trafc
and detect the type of denial-of-service attack?
Scenario Solutions
437
Scenario Answers
Scenario Solutions
The network administrator can quickly congure an extended access list permitting all ICMP,
UDP, or TCP, as shown in Example 7-12, applying the access list to the inbound interface on R2,
Serial0/0. (The conguration is truncated to focus on the critical conguration.)
Example 7-12
Hostname R2
!
interface Seri al0/0
ip address 131.108. 255.2 255.255.255.0
ip access-group 100 in
!
ac cess-list 100 permit icmp any any log-input
access- list 100 permit tcp any a ny log-input
access-list 10 0 permit udp any any log- input
!
End
To determine the trafc type, access list 100 allows ICMP, UDP, and TCP inbound on Serial0/0.
Logging is also enabled with the keyword log-input. Assuming that the DoS attack is taking place,
by viewing the access list 100 with the command show ip access-list 100, you can get an idea
which protocol type is being used. The displays in Example 7-13 are taken from R2 while the DoS
attack is taking place. The command show ip access-list 100 is entered a few times on R2 to view
the statistics and crucial bits of data that enable you to verify the source of the attack and the method,
whether it is ICMP, TCP, or UDP. Logging has been enabled, so the display in Example 7-13 describes
what packet matches have been made and incremented each time a packet match is made on access
list 100.
NOTE When enabling the keyword log or log-input on an ACL, you must be aware of the
impact on the CPU and how to view the entries. For example, an IP packet matching the ACL
will be counted in the ACL log as well as the syslog buffer and to a syslog server if present.
Typically, this is a troubleshooting scenario impacting your network, so it is safe to assume that
once the administrator determines the root cause, the log-input keyword will be removed to
ensure that CPU resources on the router are not impacted indenitely.
438
Example 7-13
Example 7-13 clearly shows that ICMP packets are increasing at an alarming rate. This indicates
that an intruder could be attempting a Smurf attack (by sending a large number of ICMP requests).
Now that you have identied the protocol type, you can take steps to stop ICMP packets from
being sent to R2, by conguring the access list 100 on R1s outbound interface to R2, as displayed
in Example 7-14.
Example 7-14
Hostname R1
!
interface Seri al0/0
ip address 131.108. 255.2 255.255.255.0
ip access-group 100 out
!
a ccess-list 100 deny icmp any any log-input
access-l ist 100 permit tcp any an y log-input
access-list 100 permit udp any any log-i nput
!
End
Scenario Solutions
439
You can also congure R1 from the inbound Internet connection with the same access list denying
ICMP inbound requests. The log-input optional command is applied so that you can monitor
trafc matching the ICMP, TCP, or UDP frame formats. This will help you to identify the root
cause. Note that all Internet routers should have ACLs already congured securely, permitting
only trafc to and from the Internet. This scenario is aimed at showing you the power of Cisco IOS
ACLs. Adding the log command can severely impact a routers performance, so care should
always be taken. Consult the Cisco Technical Support or Cisco documentation for more details.
This scenario is a simple one that clearly demonstrates the power of extended access lists and the
simplest use of show commands that can be deployed in any midsize or large IP network to
quickly identify and prevent some DoS attacks.
CHAPTER
442
this lab with a score of 80 points or more, you are well on your way to achieving your end goal
after reading this book.
Each major task is given a point value, with no partial credit possible. This is as close as you will
come to the real lab without having to actually sit in the lab and pay the lab fee of over U.S.$1,000.
This sample lab is presented in sections. A solution appears following each section. At the end of
this sample CCIE Security lab (after the nal congurations), I provide you with some additional
sample CCIE Security questions to demonstrate other possible topics. No solutions are provided,
so you can research and attempt to answer them on your own as you would if you were sitting in
the real CCIE Security lab.
At the end of the main lab section, the nal congurations are presented for your reference. If you
have any questions on this lab, e-mail me at henry.benjamin@optusnet.com, and I will try to help
clarify any questions you might have.
NOTE This lab draws together much of the content covered throughout this book. Keep in
mind that there is not always one right or wrong way to accomplish many of the tasks presented
here, but you should follow the parameters that are stipulated. You should also modify the tasks
to make them even harder so that you are prepared for the worst-case scenario in the real lab.
443
NOTE As of July, 2004, the hardware types you can expect to see in the real CCIE Security
lab exam, as documented by Cisco, are as follows:
2600 series routers
PIX Firewall
VPN Concentrators
IDS sensors
Because Cisco IOS can be driven by various different platforms, you can simulate the real
environment in this lab scenario even if you cannot match exactly the Cisco-recommended
devices used in this lab. Simply substitute as best as you can a Cisco IOSenabled device with
the Security and VPN software feature set, especially in terms of routers and switches presented
in this chapter. There is no VPN Concentrator in this sample lab because the conguration of
this device is relatively easy compared to the IOS security features on the router, PIX, and the
IDS.
444
The end goal of any CCIE lab is a working solution, although you might be restricted by certain
parameters. Candidates often ask me how best to prepare for the CCIE Security lab exam. My
answer is to practice and congure every feature available and then practice some more. Of course,
not every feature will be tested, and you are encouraged to read the most up-to-date information
at http://www.cisco.com/en/US/learning/le3/ccie/security/index.html for the latest information
regarding the CCIE Security certication. In particular, always look for new details on new Cisco
IOS technologies and hardware.
NOTE The CCIE Security lab doesnt require you to congure any Token Ring devices or
Token Ring interfaces, nor any non-IP protocols, such as IPX or DLSW.
Effective November 4, 2002, CCIE labs worldwide employ Catalyst 3550 with Cisco IOS v12.1
using the Enhanced Multilayer Image.
Port-VLAN assignments
IGP routing
BGP
This section is preserved, however, to allow readers to appreciate the level of expertise required in
this most difcult CCIE certication track.
445
Static and default routes are not permitted unless directly stated in a task. This includes
oating static routes.
Use the DLCIs provided in the Frame Relay diagram (presented shortly).
All routers and switches should be able to ping any interface using the optimal routing path.
Do not congure any authentication or authorization on any console or aux ports unless
specied.
Full access to the two AAA servers from your workstation is permitted. The user ID is admin,
and the password is cisco.
Some conguration tasks are now precongured in the Security lab exam. In this sample lab, these
tasks are still outlined for practice, but are given a zero point value to indicate that in the real Cisco
Security exam you can expect these features to be preloaded for you.
446
NOTE In the actual CCIE Security lab, beginning October 1, 2004, the equipment in the rack
assigned to you is physically cabled and should not be tampered with. Router host names, basic
IP addressing, no exec-timeout, and passwords on the con, aux, and vty lines have been
precongured. The Catalyst has a precongured prompt and enable passwords. All precongured passwords are cisco and should not be changed unless explicitly stated in a question.
Figure 8-1 displays the topology of the routed network.
Figure 8-1
Lab Topology
fast0/0
144.254.4.1/26
BRI0/0
144.254.7.1/30
R3
S0/0
144.254.3.3/28
ACS
Server
Frame
Relay
ISDN
Fa0/1
144.254.6.1/29
144.254.5.9/27
R2
S0/0
144.254.3.2/28
BRI0/0
144.254.7.2/30
S0/0
144.254.3.1/28
R5
Fa0/0
144.254.5.2/27
E0/0
144.254.5.1/27
E0/0
144.254.1.1/30
S0/1
144.254.2.1/30
R1
R4
S0/1
144.254.2.2/30
Frame
Relay
Fa0/0
9.1.1.2/24
S0
PIX 1
Inside
144.254.1.2/30
Outside
9.1.1.1/24
E0/0
144.254.4.2/26
ISP Router
WWW or
Internet
Loopback Address
R1 - 144.254.151.1
R2 - 144.254.152.1
R3 - 144.254.153.1
R4 - 144.254.154.1
R5 - 144.254.155.1
Figure 8-2
S0/0
403
304
402
R3
S0/1
S0/0
411
R4
114
S0/1
204
S0/0
R2
Table 8-1 displays the IP address assignment for the network topology in Figure 8-1.
Table 8-1
IP Address Assignment
Router Interface
IP Address
R1 E0/0
144.254.1.1/30
R1 S0/1
144.254.2.1/30
R2 E0/0
144.254.4.2/26
R2 S0/0
144.254.3.2/28
R3 Fast0/0
144.254.4.1/26
R3 S0/0
144.254.3.3/28
R3 BRI0/0
144.254.7.1/30
R4 E0/0
144.254.5.1/27
R4 S0/0
144.254.3.1/28
R4 S0/1
144.254.2.2/30
R5 FaEth0/0
144.254.5.2/27
R5 FaEth0/1
144.254.6.1/29
R5 BRI0/0
144.254.7.2/30
PIX inside
144.254.1.2/30
PIX outside
9.1.1.1/24
9.1.1.2/24
R1
447
448
Each router, R1R5, is to be congured for a loopback interface. Table 8-2 displays the IP address
assignment for each router.
Loopback IP Address Assignment
Table 8-2
Router
Loopback IP Address
R1
144.254.151.1/24
R2
144.254.152.1/24
R3
144.254.153.1/24
R4
144.254.154.1/24
R5
144.254.155.1/24
After you complete your IGP conrmation, you must be able to ping or telnet to each router
loopback from any given router.
NOTE Because of recent changes to the CCIE Security exam, the candidate is not required to
congure IP addressing. However, the subject is presented here to ensure that potential CCIE
candidates have a good understanding of IP address spaces and subnetting. Quickly perform a
spot check on all of your routers to ensure that the CCIE Security exam documentation matches
what is congured on your CCIE lab rack.
Disable the break command on R1 so that R1 will not permit an intruder to issue a break
command and perform password recovery. (Hint: Change the conguration register to
0x2002.)
Example 8-1
449
Line 1 16
After allowing for reverse Telnet (you could also apply the transport input telnet command,
which permits Telnet only) on the async lines, dene the reverse Telnet name and TCP port
number. Line 1 uses TCP port 2001, line 2 TCP port 2002, and so on.
R2 is connected to Line 2, TCP port 2002, so the IOS command is as follows:
ip host R2 2002 local-ip- address
The local IP address must be an active interface, so choose the loopback IP address. If the local IP
address is assigned to a LAN or WAN interface and that interface happens to fail, your reverse
Telnet connection will not work. R1 is assigned the loopback address 144.254.151.1/24. The full
conguration for R1 is displayed in Example 8-2. The PIX is connected to line 15, or TCP port
2015; the Ethernet switch is on line 8, or TCP port 2008 on the local router, R1. Example 8-2
congures R2 for local name lookup.
Example 8-2
Reverse Telnet to R2 on R1
R2
R1>R
Trying 144.254.151.1 2002 ... Open
User Access Verification
Password: cisco
R2>
450
You must use static Frame Relay maps for IP and disable Frame Relay inverse ARP. (Hint:
Use no frame-relay inverse-arp on all frame-enabled interfaces.)
For the connection between R1 and R4, you are not permitted the keyword broadcast when
mapping IP between the R1/R4 Frame Relay link.
Assume that RIP or IGRP will be congured over this link sometime in the next month. You
are permitted to use any IOS command to accomplish this task. (Hint: Use the keyword
broadcast.)
Assign a subnet to each link from your Class B range, as described in Table 8-1.
Use LMI type ANSI only. You can rely on auto-sensing the LMI type on all routers.
All router interface types are set to DTE. The Frame Relay switch interface type is DCE.
Ensure that you can also ping the local and remote IP interfaces from each router congured
for Frame Relay.
Table 8-1 displays the IP address assignments for the Frame Relay network in Figure 8-1.
Users in VLAN_D are sending large IP packets across the Frame Relay circuit. The Frame Relay
provider has asked you to set the discard eligibility when any IP packets larger than 768 bytes are
sent to R4 across the Frame Relay connection.
(Hint: Set the discard eligibility, DE, bit to packets greater than 768 bytes on R2/R3.)
451
interface Serial0/1
ip add ress 144.254.2.1 255.255. 255.252
encapsulation frame-relay
ip split-horizon
frame-relay map ip 144.25 4.2.1 114
frame-relay map ip 144.25 4.2.2 114
frame-relay int erface-dlci 114
no frame-relay inverse-arp
interface Serial0/1
ip add ress 144.254.2.2 255.255. 255.252
encapsulation frame-relay
ip split-horizon
! Note two map statements so exe c users can ping local and remote IP addresses
frame-relay map ip 144.25 4.2.1 411
frame-relay map ip 144.25 4.2.2 411
452
R4 is congured for Frame Relay encapsulation for interface Serial0/1 and Frame Relay map
statements for the local and remote IP addresses. Frame Relay inverse ARP is disabled with the
no frame-relay inverse-arp command.
Example 8-6 conrms IP connectivity between R1 and R4, and that there are only static Frame
Relay circuits.
Connectivity Between R1 and R4
Example 8-6
R1#
As requested by the lab parameters, both local and remote IP connectivity are active. Subinterfaces
have not been used either.
Example 8-7 conrms the interface statistics on R1 and the LMI type setting at ANSI; because of
LMI auto-sense, you do not need to dene the LMI type explicitly.
Example 8-7
111797, LMI stat recvd 111798, LMI upd recvd 0, DTE LMI up
Example 8-7
453
DCD=up
DSR=up
DTR=up
RTS=up
CTS=up
Example 8-7 conrms the interface state as active (Serial0/1 is up, line protocol is up) and that the
LMI type is set to ANSI (LMI type is ANSI). The physical state, signals DCD/DSR/DTR/RTS/
CTS, indicates that the interface is operational at Layer 1 of the OSI model.
The same conguration steps are completed on the remaining routers. In this case, you are not
restricted with Frame Relay static map statements. Use the keyword broadcast with remote IP
addresses so that routing protocols, such as OSPF, can establish neighbor adjacencies.
Example 8-8 displays the Frame Relay conguration for R2.
Example 8-8
interface Serial0/0
ip add ress 144.254.3.2 255.255. 255.240
encapsulation fra me-relay
ip split-horizon
frame-relay map ip 144.25 4.3.1 204 broadcast
frame -relay map ip 144.254.3.2 204 broadcast
frame-rela y map ip 144.254.3.3 204 b roadcast
frame-relay inte rface-dlci 204
no frame-r elay inverse-arp
R2 has three Frame Relay map statements: one is to remote Router R4, another to remote Router
R3, and one to the local IP address on R2 itself. Also, in this conguration, the LMI type is
manually set.
454
interface Serial0/0
ip add ress 144.254.3.3 255.255. 255.240
encapsulation fra me-relay
ip split-horizon
frame-relay map ip 144.25 4.3.1 304 broadcast
frame -relay map ip 144.254.3.2 304 broadcast
frame-rela y map ip 144.254.3.3 304 b roadcast
frame-relay inte rface-dlci 304
no frame-relay inverse-arp
R3 is congured for Frame Relay, and the three map statements to maintain connectivity to R4,
R2, and the local IP address are assigned to Serial0/0. R2 and R3 have been congured for split
horizon in case a distance vector protocol is deployed in the future.
R4 is the hub router between R2 and R3. Because a subinterface is not permitted, you must dene
the two local DLCIs, 402 and 403. By default, when Frame Relay is enabled on a main Cisco IOS
interface, split horizon is disabled. Because R4 is connected to R2 and R3, R4 must send information it receives from R2 to R3 and from R3 to R2. If a distance vector protocol is used, you must
leave split horizon disabled. Because R2 and R3 have split horizon enabled, you will not have a
routing loop because both R2 and R3 will reject any networks advertised by R4 that are local (as
split horizon is enabled and the main purpose is to reject networks advertised by a local router). In
this lab, OSPF is congured between R4, R2, and R3, and you do not need to be concerned about
split horizon; it is added here to bring to your attention the possibility of routing loops when
distance vector routing protocols, such as RIP, are used in Frame Relay networks.
Example 8-10 displays the Frame Relay working conguration on R4.
Example 8-10
interface Serial0/0
ip add ress 144.254.3.1 255.255. 255.240
encapsulation fra me-relay
frame-relay map ip 144.254.3.1 402 broadca st
frame-relay map ip 144 .254.3.2 402 broadcast
fr ame-relay map ip 144.254. 3.3 403 broadcast
frame-re lay interface-dlci 402
fr ame-relay interface-dlci 403
no frame-relay invers e-arp
frame-relay lmi-type ansi
no ip split-horizon
455
Now that R2, R3, and R4 have been congured for Frame Relay, ensure that IP connectivity is
enabled by pinging all the interfaces on each router.
Example 8-11 displays a successful ping request on R4 to R2 and R3, as well as the local interface
on R4.
Example 8-11
R4#
456
NOTE In Cisco IOS 12.2T and higher, the Frame Relay DE group functionality is being
replaced by the Modular QoS CLI (MQC) DE marking functionality. For information about the
MQC commands that are used to congure Frame Relay DE marking, refer to the Cisco IOS
Quality of Service Conguration Guide and Cisco IOS Quality of Service Command
Reference.
Example 8-12
DE Set on R2 and R3
Routers R3 and R5 are connected to an ISDN service with the switch type dened as basic5ess. R3 connects to number plan 7775010 and R5 connects to number plan 7775020.
Routers R1 through R5 are connected to the Catalyst Ethernet switch (Catalyst 3350 series
switch) as follows:
Interface
Switch-1
R1 E0/0
Fa0/1
R2 E0/0
Fa0/2
R3 Fa0/0
Fa0/3
R4 E0/0
Fa0/4
R5 Fa0/0
Fa0/5
R5 Fa0/1
Fa0/6
PIX inside
Fa0/7
PIX outside
Fa0/8
Backbone 1
Not in use
Backbone 2
Not in use
Fa0/11
Fa0/12
457
No solution is provided on the physical setup. In the lab, all physical connections are precabled;
this section is provided for readers who have access to real Cisco equipment and want to practice.
VLAN 6, named VLAN_E, is connected to the PIX outside interface and to the ISP managed
router.
Ensure that the IDS is also in the correct VLANs for the snifng and control interfaces.
Using VLAN_D (VLAN 5), congure the management interface sc0 with the address 144.254.4.3/26.
Ensure that all devices in your network can ping the switch even if R2 or R3 is down.
Make sure the switch is congured in the VTP domain, SecCCIE.
The switch will never be permitted to create any more VLANS, so ensure that after you set up
these VLANs, only a VTP server conguration change will allow VLAN additions to this switch.
Ensure that the only routers that can telnet to the switch are the loopback IP interfaces on R1
through R5 and the directly attached networks on R2 and R3.
Catalyst Ethernet Switch Setup I Solution
Creating VLANs on a Catalyst 3550 switch requires the VTP domain name to be set up rst.
Example 8-13 congures the Catalyst 3550 in the VTP domain, SecCCIE, and mode server. You
must enable new VLANs.
Example 8-13
configuration terminal
switch#c
Enter configuration commands, one per line.
server
transparent
458
Now that the switch is enabled for VTP and VLAN creation, you can create the ve VLANs.
Example 8-14 congures the switch for the ve VLANs in global conguration mode.
Example 8-14
VLAN Creation
configuration terminal
switch#c
Enter configuration commands, one per line.
configure terminal
switch#c
Enter configuration commands, one per line. End with CNTL/Z.
v lan
switch(config)#v
vlan 2
switch(config)#v
name VLAN_A
switch(config-vlan)#n
vlan 3
switch(config-vlan)#v
name VLAN_B
switch(config-vlan)#n
vlan 4
switch(config-vlan)#v
name VLAN_C
switch(config-vlan)#n
vlan 5
switch(config-vlan)#v
name VLAN_D
switch(config-vlan)#n
vlan 6
switch(config-vlan)#v
name VLAN_E
switch(config-vlan)#n
e xit
switch(config-vlan)#e
switch(config)#
config terminal
switch#c
After you create all the VLANs, you must disable VLAN creation by conguring the switch as a
VTP client only. The central switch in the network (VTP server) creates and deletes VLANs, as
required in the future.
Example 8-15 disables local VLAN creation on the Catalyst switch.
Example 8-15
configuration terminal
switch#c
Enter configuration commands, one per line.
server
transparent
The Catalyst 3550 command, switchport, congures port assignments for each VLAN. Notice
that each Fast Ethernet interface is given a description for completeness, which helps you to
troubleshoot in the future.
Example 8-16 congures the VLAN assignment on the Ethernet switch.
459
interface FastEthernet0/1
D escription connection to R1 Ethernet 0/0
! The foll owing commands assign the VLAN
switchport mode a
swi tchport access vlan 2
! Th e following command assig ns the port as an access port, layer 2.
switchport
switchport mode access
!
in terface FastEthernet0/2
De scription connection to R 2 Fast Ethernet 0/0
switch port switchport access vl an 5
switchport mode acc ess
!
interface FastEthernet 0/3
Description connection to R3 Fast Ethernet 0/0
s witchport
switchport acce ss vlan 5
switchport mode access
!
interface FastEthe rnet0/4
Description conne ction to R4 Ethernet 0/0
s witchport switchport acce ss vlan 3
switchport mode access
!
interface FastEthe rnet0/5
Description connec tion to R5 Fast Ethernet 0/0
switchport
switchport access vlan 3
switchport mode access
!
interface Fas tEthernet0/6
Description c onnection to R5 Ethernet 0 /1
switchport
switchport access vlan 4
switchport mode access
!
interface Fas tEthernet0/7
Description co nnection to PIX inside
sw itchport
switchport acces s vlan 2
switchport mode access
!
interface FastEther net0/8
Description connect ion to PIX outside
switch port
switchport access vl an 6
switchport mode acces s
continues
460
Example 8-16
Congure the management interface (VLAN 5) on the Catalyst switch with the following Catalyst
command:
set interface sc0 [vlan] [ip_addr [netmask [b
broadcast]]] interface VLAN (tag)
interface Vlan5
Example 8-18 conrms the IP address assignment and correct VLAN to all interfaces. Notice the
12 Fast Ethernet ports and two Gigabit interfaces.
Example 8-18
IP-Address
OK?
Method
Status
Vlan1
unassigned
YES
unset
Protocol
Vlan5
144.254.4.3
YES
manual
up
up
FastEthernet0/1
unassigned
YES
unset
up
up
FastEthernet0/2
unassigned
YES
unset
up
up
FastEthernet0/3
unassigned
YES
unset
up
up
FastEthernet0/4
unassigned
YES
unset
up
up
FastEthernet0/5
unassigned
YES
unset
up
up
FastEthernet0/6
unassigned
YES
unset
up
up
FastEthernet0/7
unassigned
YES
unset
up
up
FastEthernet0/8
unassigned
YES
unset
up
up
FastEthernet0/9
unassigned
YES
unset
down
down
FastEthernet0/10
unassigned
YES
unset
down
down
FastEthernet0/11
unassigned
YES
unset
up
up
FastEthernet0/12
unassigned
YES
unset
up
up
GigabitEthernet0/1
unassigned
YES
unset
down
GigabitEthernet0/2
unassigned
YES
unset
down
down
down
461
Example 8-18 also conrms connectivity to all the routers, PIX, and IDS server as the line protocol
state for those interfaces is UP.
You can ping the management interface (VLAN 5) and the local routers (R2/R3) to ensure
connectivity to the rest of the network; you must also enable a default route. The Catalyst switch
on VLAN_D is connected to R2 and R3, so you can provide two default gateways, one through
R2 and another through R3; in case of network failure, the switch will still be managed either by
R2 or R3.
Example 8-19 configures a default gateway point to R2 and R3 Ethernet address and also displays
a successful ping request to R2 and R3.
Example 8-19
Example 8-20 conrms the default routes (via the preferred route of 144.254.4.2) with the Catalyst
command show ip route.
Example 8-20
show ip route
Switch1#s
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 144.254.4.2 to network 0.0.0.0
144.254.0.0/24 is subnetted, 1 subnets
C
S*
Notice in Example 8-20 that only the active default route is shaded.
The nal conguration request is to permit only the VLAN_D users and the assigned loopbacks
on R1 through R5. To complete this on a Catalyst switch, you need to enable a vty line access
inbound list, which denes what IP addresses are permitted access to the management interface
via the vty lines.
462
Example 8-21 displays the conguration required to ensure that only the loopbacks from R1R5
are permitted access.
Example 8-21
login
Example 8-21 congures an access list numbered 5 with the only source permitted IP addresses
dened as the loopbacks of routers R1R5 and VLAN_D.
Example 8-22 conrms the permitted networks and hosts with the Catalyst command show ip
permit.
Example 8-22
Mask
----------------
----------------
144.254.4.0
255.255.255.192
144.254.151.1
144.254.152.1
144.254.153.1
144.254.154.1
144.254.155.1
Denied IP Address
Type
-----------------
------------------
------
144.254.2.1
09/30/02,15:13:44
Telnet
C5K> (enable)
The default mask on the loopback is actually 255.255.255.255, but it is not displayed in Example 8-22.
463
Example 8-23 displays a successful telnet from R2 to the VLAN 5 management interface or the
Catalyst SC0 interface. Notice the requirement to dene the source interface as the R2 loopback
address.
Example 8-23
Example 8-24 displays an unsuccessful telnet when the source interface is not dened on the
Catalyst 3550.
Example 8-24
telnet 144.254.4.3
R1#t
Trying 144.254.4.3 ... Open
Access not permitted. Closing connection...
[Connection to 144.254.4.3 closed by foreign host]
R1#
Ensure that all of your interfaces are secure and that, if a secure breach occurs, the network
administrator should take the strictest action possible.
Set the Ethernet ports 0/18 to forward data immediately after a device is plugged in or
activated.
Set all interfaces such that unnecessary broadcast trafc will be suppressed once the switch
has anything over 50 percent of total trafc.
interface fastethernet0/1
Switch(config)#i
464
The following is the IOS command to take immediate action once a breach occurs:
protect | restrict | shutdown }
Router(config-if)# switchport port-security violation {p
Example 8-26 congures the Catalyst 3550 switch for port security on all enabled interfaces and
sets the action as shutdown if a violation does occur. Notice the use of the range command to
simplify the conrmation tasks.
Example 8-26
config terminal
switch#c
interface range FastEthern et0/1 12
switch(config)#i
switch(config-if-range)# switchport port-security
Finally, the last task required is to suppress broadcast trafc once trafc exceeds 50 percent. Once
again we will use the range command to set the interfaces to stop sending broadcast trafc once
a limit of 50 percent (broadcast trafc, that is) has been reached.
Example 8-27 congures the Catalyst 3550 for broadcast trafc to 50 percent.
Example 8-27
config terminal
switch#c
interface range FastEthern et0/1 12
switch(config)#i
465
Example 8-28 congures Router R2 for IP host lookup for all routers, including itself.
Example 8-28
ip host Command on R2
configure terminal
R2#c
Enter configuration commands, one per line.
ip host r5 144.254.155.1
R2(config)#i
ip host r4 144.254.154.1
R2(config)#i
ip host r3 144.254.153.1
R2(config)#i
ip host r2 144.254.152.1
R2(config)#i
ip host r1 144.254.151.1
R2(config)#i
Example 8-29 disables DNS lookups for the remote DNS server.
Example 8-29
no ip domain-lookup on R2
no ip domain-lookup
R2(config)#n
The same commands are installed on R1, R3, R4, and R5. See the full working conguration at
the end of this chapter.
This completes the physical setup for this sample lab. You can now start conguring IP network
routing on the PIX followed by the routers.
466
Example 8-30
Example 8-31 conrms the IP address conguration with the PIX command show interface (note
that version 6.3 displays a little differently).
Example 8-31
PIX1#
467
To enable RIPv2 on the PIX, enter the following command on the PIX:
rip inside passive version 2 authentication md5 secret-key key-id
Example 8-32 congures the PIX Firewall for RIPv2 and MD5 authentication. Two static routes
are congured, also pointing to network 144.254.0.0/8 and the Internet.
Example 8-32
The MD5 password is set to ccie. The second conguration line supplies a default RIP route to R1.
The nal two commands enable static routes for the internal network and the Internet through
144.254.1.1 and 9.1.1.2, respectively.
You must now congure Router R1 for RIP authentication.
Example 8-33 congures a key chain named cisco, and the MD5 password is ccie. RIP is enabled
on the Ethernet0/0 interface connecting to the inside interface on the PIX Firewall.
Example 8-33
Hostname R1
key chain cisco
key 1
key-string ccie
in terface Ethernet0/0
ip ri p authentication mode md5
To enable inside hosts to ping and telnet to the PIX, allow ICMP and Telnet to the PIX on the inside
interface only. By default, the PIX will not permit ICMP and Telnet to any interface.
Example 8-34 permits ICMP and Telnet from the inside hosts.
Example 8-34
Example 8-35 permits R1 to telnet to the PIX with the telnet command.
Example 8-35
telnet
468
Example 8-36 displays the Telnet request from R1 to the PIX Firewall; the enable password has
not been set, so you simply press Return.
Example 8-36
telnet 144.254.1.2
R1#t
Trying 144.254.1.2 ... Open
PIX passwd: cisco
Welcome to the PIX firewall
Copyright
PIX1#
The telnet command is used on the PIX to enable which hosts are permitted to telnet to the PIX.
By default, inside hosts do not require IPSec to remotely manage the PIX, but outside hosts do. In
earlier versions of PIX code, it was possible to telnet only from an inside interface. By default, the
Telnet password is set to cisco. You may also, of course, use SSH rather than Telnet.
All outside hosts (hosts that are untrusted, such as Internet devices) need to be congured for
IPSec to the PIX to enter the management console by Telnet. Telnet through IPSec is only required
on the outside interface. In a real-life network, however, SSH should be used on the outside
interface instead.
To enable NAT on all inside hosts on the PIX, the following command is rst required on the PIX:
nat (inside) 1 0.0.0.0 0.0 .0.0 0 0
469
The nat command associates a network with a pool of global IP addresses. The following is the
full PIX OS syntax:
nat [(if_name)] nat_id local_ip [netmask [max_conns [em_limit]]] [n
norandomseq ]
nat [(if_name)] 0 access-list acl_name
nat [(if_name)] 0 local_ip [netmask [max_conns [em_limit]]] [n
norandomseq ]
no nat [[(if_name)] nat_id local_ip [netmask [max_conns [em_limit]]]]
norandomseq ]
[n
no nat [(if_name)] 0 access-list acl_name
Table 8-3 summarizes the available options with the nat command.
Table 8-3
Description
if_name
nat_id
All nat command statements with the same nat_id are in the same NAT group.
Use nat_id in the global command statement; for example:
nat (inside) 1 0 0
global (outside) 1 10.1.1.0 10.1.1.254 netmask 255.255.255.224
This example associates the nat command with the global command by nat_id.
nat_id is an arbitrary positive number between 0 and 2 billion. This number can
be the same as the ID used with the outbound and apply commands.
Specify 0 with IP addresses and netmasks to identify internal networks that desire
only outbound identity address translation. Specify 0 with the access-list option
to specify trafc that should be exempted from NAT.
access-list
local_ip
Internal network IP address to be translated. You can use 0.0.0.0 to allow all hosts
to start outbound connections. The 0.0.0.0 local_ip can be abbreviated as 0.
netmask
Network mask for local_ip. You can use 0.0.0.0 to allow all outbound connections
to translate with IP addresses from the global pool.
max_conns
The maximum TCP connections permitted from the interface you specify.
em_limit
norandomseq
Do not randomize the TCP packets sequence number. Use this option only if
another inline rewall is also randomizing sequence numbers and the result is
scrambling the data. Use of this option opens a security hole in the PIX Firewall.
470
See the following Cisco.com page for more details on how NAT/PAT can be congured on a Cisco PIX:
www.cisco.com/univercd/cc/td/doc/product/iaabu/pix/pix_sw/index.htm
More PIX tasks appear later in this CCIE Security self-study lab.
Make sure that you can see distributed RIP routes throughout your topology and that the
OSPF cost metric is set to 1000 for all RIP routes redistributed from R1.
Enable RIP on R1
router rip
version 2
redis tribute eigrp 333 metric 5
passive-interface Serial0 /1
network 144.254.0.0
no auto-summary
R1 is congured for RIPv2 only; notice that only Serial0/1 (link to R4 through EIGRP) is congured
in a passive state where no RIP route will be sent to R4, as this link resides in EIGRP only.
471
Example 8-38 congures MD5 authentication between R1 and the PIX Firewall.
Example 8-38
interface Ethernet0/0
ip ri p authentication mode md5
Example 8-39 conrms RIP connectivity (show ip route rip command) between the PIX and R1.
Notice the default route supplied by the PIX.
Example 8-39
R1#
Example 8-39 displays a default RIP route via 144.254.1.2 on the PIX inside interface.
EIGRP Configuration (5 of 18 Points)
Congure EIGRP between R1 and R4 Frame Relay connections only:
Redistribute the EIGRP routes into the OSPF domain with a varying OSPF cost metric.
Congure the above loopbacks to be in EIGRP domain 333. Ensure that all routers in your network
can ping these loopbacks.
EIGRP Configuration Solution
EIGRP is to be enabled on the link between R1 and R4 only, so you must make all other interfaces
passive. The real problem here, though, is the fact that you are not permitted to use the Frame
Relay broadcast keyword when mapping IP across the Frame Relay cloud. EIGRP sends updates
as broadcasts, so even if you enable EIGRP on the serial link, no updates will be sent, because
472
broadcasts have been disabled. Remember that by default a Cisco router interface drops all
broadcast frames. To enable EIGRP to maintain a neighbor relationship in this scenario, you can
tunnel EIGRP over an IP GRE tunnel.
Example 8-40 congures R1 for EIGRP and an IP GRE tunnel to obtain EIGRP neighbors to R4.
Example 8-40
Hostname R1
interface Tunne l0
ip unnumbered Serial0/ 1
tunnel source Serial0/1
tunnel destination 144.2 54.2.2
router eigrp 333
pa ssive-interface Ethernet0 /0
network 144.254.0.0
network 131.108.0.0
eig rp log-neighbor-changes
no auto-summary
Example 8-41 congures R4 for EIGRP and the IP GRE tunnel to obtain EIGRP neighbors to R1.
Example 8-41
Hostname R4
interface Tunne l0
ip unnumbered Serial0 /1
tunnel source Serial0/1
tunnel destination 144.2 54.2.1
router eigrp 333
pass ive-interface Ethernet0/0
passive-interface Serial 0/0
passive-interface Loo pback0
network 144.254.0.0
network 131.108.0.0
eigrp log-neighbor-changes
Example 8-42 conrms the EIGRP relationship over the newly created tunnel interface.
Example 8-42
Address
144.254.2.2
Interface
Tu0
Hold Uptime
SRTT
(sec)
(ms)
12 1w6d
15
RTO
Seq Type
Cnt Num
5000
155
Example 8-42
473
R1#
show ip eigrp neighbors
R4#s
IP-EIGRP neighbors for process 333
H
Address
Interface
144.254.2.1
Tu0
Hold Uptime
SRTT
(sec)
(ms)
13 1w6d
62
RTO
Seq Type
Cnt Num
5000
165
R4#
To enable authentication of EIGRP packets, use the following ip authentication key-chain eigrp
interface conguration command:
ip authentication key-chain eigrp as-number key-chain
To specify the type of authentication used in EIGRP packets, use the following ip authentication
mode eigrp interface conguration command:
ip authentication mode eigrp as-number md5
Example 8-43 congures R1 with a new key chain and EIGRP authentication. First, the key chain
is dened, and then the authentication is applied to the interface tunnel 0, not the serial link,
because the EIGRP neighbors are established over the tunnel interface and not the nonbroadcast
serial interface.
Example 8-43
EIGRP Authentication on R1
key chain
R1(config)#k
WORD
Key-chain name
key ?
R1(config)#k
chain
Key-chain management
config-key
name of key-chain
continues
474
Example 8-43
<cr>
R4 EIGRP Authentication
key-string ccie
interface Tunnel0
R4(config-keychain-key)#i
R4(config-if)# ip unnumbered Serial0/1
R4(config-if)# ip authentication mode eigrp 333 md5
Address
144.254.2.2
Interface
Tu0
Hold Uptime
SRTT
(sec)
(ms)
10 00:00:36
687
RTO
Seq Type
Cnt Num
5000
161
R1#
The nal section requires three additional loopbacks congured on R1 and redistribution into
OSPF. Example 8-46 enables the three additional loopbacks on R1.
Example 8-46
Loopback Addition on R1
interface Loopback1
ip add ress 131.108.1.1 255.255. 255.0
!
interface Loopback2
ip address 131.108.2.1 2 55.255.255.0
!
interface Loo pback3
ip address 131.10 8.3.1 255.255.255.0
router eigrp 333
network 131.108.0.0
475
Notice in Example 8-46 that the networks (the three loopbacks) are placed into EIGRP AS 333.
Example 8-47 enables R4 to redistribute the EIGRP routes into OSPF with a metric type 1, or
varying metric type.
Example 8-47
router ospf 1
R4 is congured to redistribute the EIGRP networks with a cost metric of 100, metric type E1, and
the keyword subnets allows the subnetted routes (131.108.0.0 and 144.254.0.0) to be injected into
the OSPF domain.
You will conrm IP routing connectivity after all IGP routing protocols are congured.
OSPF Configuration (7 of 18 Points)
Congure OSPF, as described in Figure 8-3. Do not create any nonspecied OSPF areas. There
are two OSPF backbones.
Figure 8-3
Fast0/0
R3
3
33
ISDN
ea
Ar
S0/0
Area 0
Area 0
Area 5
Frame
Relay
Fas0/1
Fa0/0
E0/0
S0/0
R5
S0/0
E0/0
Area 4
R4
R2
476
For loopback interfaces, place the interfaces in the appropriate OSPF area already assigned to the
router. For Example, R4 resides in areas 0 and 4; place R4 Loopback 0 in area 0, and so forth.
When applying an inverse mask, apply the following on all interfaces congured in OSPF, 0.0.0.0:
Congure the OSPF backbone over the Frame Relay network between the three Routers R2,
R3, and R4.
Ensure that all OSPF routes are redistributed and reachable in the RIP and EIGRP domains.
Make sure that the OSPF backbone in the Frame-Relay cloud is authenticated using the
strongest authentication possible.
Ensure that the ISDN link is active only if OSPF neighbors are lost between R3 and R4. Do
not use the backup command or dialer-watch commands to accomplish this task. Only IP
trafc is permitted across the ISDN link. See the "Basic ISDN Conguration" section before
completing the ISDN setup.
Ensure that the router ID of all OSPF-enabled routers is the loopback address. Do not assume
that this will be the case, but make sure that no matter what IP address is assigned, the router
ID is set to Loopback 0.
Advertise the loopbacks as 24-bit subnets; do not use the command redistributed connected
to accomplish this task.
Set the dead interval between the R2 and R4 link to 100 seconds. Do not use the ip ospf deadinterval command to accomplish this task.
The Ethernet connection between R5 and R4 has been experiencing packet loss. Congure the
OSPF process such that the neighbor relationship between R4 and R5 will remain established if at
least one OSPF Hello packet is received every 60 seconds.
477
OSPF security is a concern on VLAN B. Congure the strongest form of OSPF security on VLAN
B so that someone with a packet tracer cannot read OSPF packet exchanges between R4 and R5.
OSPF Configuration Solution
The rst challenge of any OSPF design is the need for all areas to be connected to area 0 or the
backbone. In Figure 8-3, there are two backbones, but the ISDN link is used only if R3 loses OSPF
neighbor connectivity to R5. Area 5 is not connected to the backbone under normal OSPF
operation. (In other words, you need a virtual link between area 5 and area 0.)
Start by enabling OSPF on Router R2 followed by R3, R4, and R5.
Example 8-48 congures OSPF on R2.
Example 8-48
Enabling OSPF on R2
Hostname R2
interface Loopb ack0
ip address 144.254.1 52.1 255.255.255.0
ip osp f network point-to-point
i nterface Ethernet0/0
ip ad dress 144.254.4.2 255.255 .255.192
ip ospf priority 0
ip ospf hello-interval 20
interfa ce Serial0/0
ip address 1 44.254.3.2 255.255.255.24 0
ip ospf message-digest-ke y 1 md5 cisco
ip ospf auth entication message-digest
ip ospf hello-interval 25
! Four times this value g ive 100 sec
ip ospf prio rity 0
router ospf 1
route r-id 144.254.152.1
log-ad jacency-changes
area 0 aut hentication message-diges t
network 144.254.3.2 0.0 .0.0 area 0
network 144.2 54.4.2 0.0.0.0 area 333
As per requirements in the question, the network mask applied to all interfaces in OSPF is 0.0.0.0,
or exact match, which means you must also supply the actual IP address. The loopback interface
is congured for point-to-point so the interface is advertised as a /24 subnet and not a stub host (/
32) by default. R2 serial link to R4 is congured for MD5 authentication, and the OSPF priority
is set to 0 so that R4 is the designated router. MD5 is the strongest authentication mechanism
available to OSPF. R2 priority on Ethernet 0/0 is also set to 0 so that R2 will never be the DR on
478
any LAN or WAN segment. R2 router ID is manually set to the loopback interface. The dead
interval needs to be set to 100 seconds, but the use of the ip ospf dead-interval command is not
allowed. Because, by default, the dead interval is four times the Hello interval, set the Hello
interval to 25 seconds. This will make the dead interval 100 seconds. The command ip ospf hellointerval accomplishes this. In any exam, you should always think outside the square for questions
such as this one, if you are familiar with how each routing protocol is designed.
Also, R4 and R3 require the same command, as R2, R3, and R4 are part of the same nonbroadcast
network. All OSPF routers require the same change of the Hello interval to 25 seconds. The same
applies to OSPF authentication, as R2, R3, and R4 reside in area 0, and OSPF requires all routers
in the same area congured for authentication to be enabled with the secret key. (In this case, MD5
encrypts or hashes the password ccie.) Similarly, you are asked to change the Hello interface on
the R2 segment to 20 seconds; this requires R3 to be changed, as well, so that OSPF neighbor
adjacency is maintained. OSPF will not become adjacent if the Hello intervals are not the same.
Example 8-49 enables OSPF on Router R3.
Example 8-49
Hostname R3
interface Loopb ack0
ip address 144.254.1 53.1 255.255.255.0
ip osp f network point-to-point
!
interface fastethernet0/0
i p ospf hello-interval 20
i nterface Serial0/0
ip add ress 144.254.3.3 255.255. 255.240
ip ospf message-dig est-key 1 md5 cisco
ip osp f authentication message- digest
ip ospf hello-inter val 25
ip ospf priority 0
router ospf 1
router-id 1 44.254.153.1
area 0 auth entication message-digest
network 144.254.3.3 0.0.0. 0 area 0
network 144.254. 4.1 0.0.0.0 area 333
netwo rk 144.254.7.1 0.0.0.0 ar ea 0
network 144.254.153.1 0.0.0.0 area 0
log-adjacency-changes
The OSPF conguration for the ISDN BRI is covered in the next ISDN section. R3 requires the
loopback interface advertised as /24 and the manual router ID set up to the Loopback 0 interface.
479
R4 OSPF Conguration
Hostname R4
!
inter face Loopback0
ip address 144.254.154.1 255.255.25 5.0
ip ospf network point -to-point
!
!
interface Ether net 0/0
ip ospf hello-inte rval 60
interface Serial0/ 0
ip address 144.254.3.1 255.255.255.240
encapsulat ion frame-relay
ip ospf m essage-digest-key 1 md5 c isco
ip ospf authenticatio n message-digest
ip ospf h ello-interval 25
ip ospf priority 255
!
!
router eigr p 333
redistribute ospf 1 metric 1544 20000 255 1 1 500
router ospf 1
router- id 144.254.154.1
log-adj acency-changes
area 0 authe ntication message-digest
ar ea 4 virtual-link 144.254 .155.1 authentication mes sage-digest
area 4 virtual -link 144.254.155.1 messag e-digest-key 1 md5 cisco
redistribute eigrp 333 me tric 100 metric-type 1 su bnets
network 144.254.3.1 0.0.0.0 area 0
network 14 4.254.5.1 0.0.0.0 area 4
network 144.254.154.1 0.0 .0.0 area 0
neighbor 144.2 54.3.3
neighbor 144.254.3.2
Example 8-50 displays the fact that R4 is the DR to R2/R3, and because you are not permitted to
change the network type in the core Frame Relay backbone network, you must congure OSPF
for neighbors using the neighbor command. R4 also redistributes EIGRP routes into OSPF. R4
Ethernet0/0 segment has an OSPF Hello interval set to 60 seconds so that only one Hello packet
every minute is sufcient to maintain OSPF adjacencies to R5, as requested by the question. The
virtual link between R4 and R5 is required so that area 5 is visible to the backbone when the ISDN
link is not in operation.
480
SPF Conguration on R5
Hostname R5
interface Loopb ack0
ip address 144.254.1 55.1 255.255.255.0
ip osp f network point-to-point
!
interface FastEthernet0/0
ip ospf hello-interval 60
ip ospf authentication-me ssage-digest
ip ospf messa ge-digest-key 1 md5 cisco
!
!
interface FastEthernet0/ 1
ip address 144.254.6.1 255.255.255.248
!
!
router o spf 1
router-id 144.254.15 5.1
area 0 authentication message-digest
area 4 virt ual-link 144.254.154.1 au thentication message-diges t
area 4 virtual-link 144. 254.154.1 message-digest- key 1 md5 cisco
network 14 4.254.5.2 0.0.0.0 area 4
n etwork 144.254.6.1 0.0.0. 0 area 5
network 144.254. 7.2 0.0.0.0 area 0
R5 is congured for a virtual link over transit area 4. Notice that good OSPF design always sets
the router ID so that virtual links can be congured by network administrators, knowing that a
failure of any physical interface will not bring down a virtual link. Area 0 on R5 is congured for
authentication because the core Frame Relay network between R2, R3, and R4 in area 0 is
congured for authentication; in particular, R3 will not become adjacent because R3 is part of the
core backbone where MD5 authentication is congured. IP redistribution is used to route between
different routing domains.
Now that all IGP routing protocols are completed and redistribution is enabled, ensure that there
is IP connectivity between all routers by viewing the IP routing tables and pinging all loopback
interfaces from Router R4.
481
show ip route on R4
show ip route
R4#s
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, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route
Gateway of last resort is 144.254.2.1 to network 0.0.0.0
144.254.0.0/16 is variably subnetted, 12 subnets, 5 masks
O IA
O IA
R4#
R4 has OSPF, EIGRP, and connected routes to all parts of the network. By pinging all the loopback
interfaces from any given router, you can be sure that IP routing is congured correctly. Notice
that the EIGRP routes from R1 are learned over the tunnel interface. A default router is advertised
by the PIX to the World Wide Web.
Example 8-53 pings all the remote loopbacks from R4 to ensure IP connectivity.
Example 8-53
ping 144.254.151.1
R4#p
Type escape sequence to abort.
continues
482
Example 8-53
R4#
Example 8-54 pings all the remote loopbacks from R1 to ensure IP connectivity.
Example 8-54
ping 144.254.151.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.151.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
ping 144.254.152.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.152.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/11/12 ms
ping 144.254.153.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.153.1, timeout is 2 seconds:
Example 8-54
483
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/12 ms
ping 144.254.154.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.154.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/7/8 ms
ping 144.254.155.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.155.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/7/8 ms
R1#
Now, test IP connectivity from R2, but use host names you congured earlier. Example 8-55 pings
the remote and local loopbacks from R2.
Example 8-55
ping r1
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.151.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/10/12 ms
ping r2
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.152.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
ping r3
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.153.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 8/9/12 ms
ping r4
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.154.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/5/8 ms
ping r5
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.155.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/5/8 ms
R2#
484
Example 8-56 conrms OSPF neighbor adjacencies between R4 and R2 and R4 and R5.
Example 8-56
State
Dead Time
Address
Interface
144.254.153.1
Pri
0
FULL/DROTHER
00:01:17
144.254.3.3
Serial0/0
144.254.152.1
FULL/DROTHER
00:01:22
144.254.3.2
Serial0/0
144.254.155.1
FULL/DR
00:03:47
144.254.5.2
Ethernet0/0
R4#
This completes the IP routing requirement. In a typical CCIE Security lab, you are expected to
have this sort of network active in a short period (less than 4 hours is ideal). At this stage, no
security technologies have been extensively covered except for routing algorithmbased
authentication with RIP, OSPF, and EIGRP. The remainder of this CCIE Security self-study lab
concentrates on security topics and some miscellaneous IOS features, such as DHCP and ISDN.
ISDN numbering:
R3: 7775010
R5: 7775020
Ensure that only R3 can call R5, and R3 should never challenge R5 for a username or
password pairing.
If trafc exceeds more than 65 percent, the second ISDN B channel will be used. (Hint:
Enable ppp multilink.)
If there is an error rate of 20 percent or higher, the interface on R3 should show only a DOWN
status when the command show interface bri0/0 is displayed. (Hint: Use the ppp quality
command.)
R5 cannot call R3 under any circumstance. If R3 OSPF adjacency goes down, make sure that
the ISDN link is operational and that all OSPF routing is accomplished through the ISDN
link. Use ospf demand circuit and not static or dialer-watch statements.
485
When the ISDN is active, all routers must be able to ping and telnet the local ISDN interfaces
on R3 and R5.
Ensure that OSPF neighbors are not keeping the ISDN call active unless the neighbor over the
Frame-Relay link is not adjacent. (Hint: Apply the no peer neighbor-route IOS command on
R3 and R5.)
Use the command show isdn status to conrm when any ISDN calls are activated or
deactivated.
Hostname R3
!
username R5 pa ssword 0 cisco
!
isdn switc h-type basic-5ess
interfac e BRI0/0
description 7775 010
ip address 144.254.7. 1 255.255.255.252
encapsul ation ppp
ip ospf message- digest-key 1 md5 cisco
ip ospf authentication messag e-digest
ip ospf demand-ci rcuit
ip ospf network poin t-to-point
ppp quality 80
dialer map ip 144.254.7.2 name R5 broadcast 777502 0
dialer load-threshold 1 65 either
no peer neighbor -route
dialer-group 1
isdn switch-type basic-5ess
pp p authentication chap cal lin
ppp multilink
!Global c ommand below permits IP tr affic only
In Example 8-57, R3 is congured for OSPF demand circuit. Only when OSPF is adjacent to R3
and R4 is down, will R3 make an outgoing ISDN call to R5. IP data is permitted to cross the ISDN
486
link via the dialer group command. OSPF authentication is enabled because area 0 requires all
interfaces congured for authentication to have authentication congured and enabled with the
correct secret key. PPP CHAP authentication is used because CHAP encrypts all passwords with
MD5. The ppp quality command ensures that if error rates on the interface are reaching 20
percent (80 percent or less is good trafc), the interface will be brought down. This is a specic
IOS command.
Example 8-58 enables R5 to receive the call.
Example 8-58
R5 ISDN Conguration
hostname R5
!
username R3 pa ssword 0 cisco
!
interface BRI0/0
description 777502 0
ip address 144.254.7.2 255.255.255.252
encapsula tion ppp
ip ospf authentic ation message-digest
ip os pf message-digest-key 1 m d5 cisco
dialer load-thres hold 165 either
dialer ma p ip 144.254.7.1 name R3 broadcast
ip ospf network point-to-point
dialer-grou p 1
isdn switch-type basi c-5ess
no peer neighbor-r oute
ppp authentication c hap callin
ppp multilink
!
R5 cannot make an outgoing call because the dial map statement contains no valid ISDN number.
The ppp multilink command is enabled so that two B channels can be active when R3 outbound
trafc reaches 65 percent or more. The ppp authentication chap callin command checks only for
R3 username and password, and ensures that R3 does not challenge R5 for a username or password. Notice that R5 is not congured for OSPF demand circuit because R3 makes the outgoing
call, and, to obtain OSPF adjacency, only the remote edge router needs to have demand circuit
enabled.
487
Example 8-59 displays the OSPF exchange when the Frame-Relay link is not active or when the
OSPF dead interval expires between R3 and R4.
Example 8-59
ISDN Call on R3
show debug
R3#s
Dial on demand:
Dial on demand events debugging is on
IP routing:
OSPF adjacency events debugging is on
OSPF events debugging is on
3w6d: OSPF: 144.254.153.1 address 144.254.3.3 on Serial0/0 is dead, state DOWN
3w6d: OSPF: Neighbor change Event on interface Serial0/0
3w6d: OSPF: DR/BDR election on Serial0/0
3w6d: OSPF: Elect BDR 0.0.0.0
3w6d: OSPF: Elect DR 144.254.154.1
3w6d:
BDR: none
DR: none
BDR: none
488
Example 8-59 displays the debug output when an ISDN call is made to R5 after OSPF neighbor
adjacencies between R3 and R4 are terminated. The debug output shows that the neighbor
adjacency state to R4 failing and an outgoing call to R3 being made followed by a successful
OSPF adjacency.
Example 8-60 conrms OSPF neighbor adjacency to R5 and the fact that IP routing is now over
the ISDN interface BRI0/O.
Example 8-60
Pri
State
144.254.155.1
FULL/
Dead Time
144.254.152.1
FULL/DROTHER
00:01:19
Address
Interface
144.254.7.2
BRI0/0
144.254.4.2
FastEthernet0/
0
show ip route ospf
R3#s
144.254.0.0/16 is variably subnetted, 12 subnets, 5 masks
O IA
O IA
O E1
O E1
O IA
O E1
O E1
O E1
O E1
R3#
Finally, ensure that when ISDN is active, the ISDN subnet, 144.254.7.0/30, is reachable from all
parts of the network.
Example 8-61 conrms the subnet in the routing table on the furthest router from R3, namely R1.
Example 8-61
show ip route on R1
show ip route
R1#s
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
Example 8-61
D EX
D EX
D EX
D EX
D EX
R*
Example 8-62 displays a successful ping request from R1 to R3 BRI0/0 and R5 BRI0/0.
Example 8-62
ping 144.254.7.1
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.7.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/38/40 ms
ping 144.254.7.2
R1#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.7.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/6/8 ms
R1#
489
490
NOTE The show isdn status IOS command details if any calls are active. R3 must have a call
active only when the Frame-Relay connection to R4 is not routing IP.
The following display is taken when the Frame-Relay link is operational:
R3#show isdn status
Global ISDN Switchtype = basic-5ess
ISDN BRI0/0 interface
dsl 0, interface ISDN Switchtype = basic-5ess
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 64, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
0 Active Layer 3 Call(s)
Active dsl 0 CCBs = 0
The Free Channel Mask: 0x80000003
Total Allocated ISDN CCBs = 0
R3#
Currently, there are no Layer 3 calls. When the ISDN interface is operational, you should see,
at most, two calls. The following display is taken when one ISDN B channel is active:
R3#show isdn status
Global ISDN Switchtype = basic-5ess
ISDN BRI0/0 interface
dsl 0, interface ISDN Switchtype = basic-5ess
Layer 1 Status:
ACTIVE
Layer 2 Status:
TEI = 64, Ces = 1, SAPI = 0, State = MULTIPLE_FRAME_ESTABLISHED
Layer 3 Status:
1 Active Layer 3 Call(s)
CCB:callid=803F, sapi=0, ces=1, B-chan=1, calltype=DATA
Active dsl 0 CCBs = 1
The Free Channel Mask: 0x80000002
Total Allocated ISDN CCBs = 1
R3#
You should also use show commands in any CCIE lab to make sure you have satised the
questions, as just seen, in the case of ensuring ISDN is active only when a failure occurs.
The IP addresses pool ranges from 144.254.4.0/26 shared between R2 and R3.
491
The predened addresses 144.254.4.1, 144.254.4.2, and 144.254.4.3 are never allocated to
DHCP clients.
You can assume that you have Windows XP clients only and support more than one gateway if any
one router fails.
DHCP Configuration Solution
VLAN_D contains the subnet 144.254.4.0/26 with the allocated IP addresses, one each to R2 E0/0,
R3 Fast0/0, and the Catalyst 3550 management interface. You must ensure that any DHCP servers
(R2, in this case) do not allocate these three preassigned address.
Example 8-63 congures R2 for DHCP pool allocation.
Example 8-63
DHCP Conguration on R2
lease infinite
R2 provides the DNS domain name and two default gateways. Notice that the lease is enabled to
be used forever by DHCP clients with the IOS command lease innite. If R2 fails, all DHCP clients
with existing IP addresses will route through Router R3 with the default gateway 144.254.4.1.
492
Do not use any WAN IP interfaces for IBGP sessions, because your network is prone to
failures across the Frame Relay cloud.
Congure R4 as the route reector and ensure that remote routers peer to R4 only.
The IBGP connection between R2 and R4 must use MD5 authentication to authenticate the
IBGP peer.
As long as there is IP connectivity in your network, ensure that BGP is active in all routers.
Using the network command only, make sure only the loopback interfaces on Routers R1
through R5 are advertised by BGP to the route reector, R4. Ensure that each router has a
corresponding BGP table entry for all loopbacks.
Ensure that all routers have BGP routing entries in their respective BGP tables.
NOTE R4s BGP table (not IP routing table) should look like this:
R4#show ip bgp
BGP table version is 11, local router ID is 144.254.154.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
*>i144.254.151.0/24
*>i144.254.152.0/24
*>i144.254.153.0/24
*> 144.254.154.0/24
Next Hop
144.254.151.1
144.254.152.1
144.254.153.1
0.0.0.0
493
WAN failure (in particular for R3), the BGP session would be inactive, so it is better to use the
loopback.
Example 8-64
IBGP Conguration on R4
R4 is congured as the route reector to four remote routers in AS 333. Notice that MD5
authentication is enabled between R4 and R2, as stated in the question criteria. The network
command is used to inject Loopback 0 on R4 into the BGP routing table.
Example 8-65 enables IBGP on R2 with MD5 authentication to R4.
Example 8-65
IBGP Conguration on R2
R2 is congured as an IBGP peer to R4 with MD5 authentication to ensure that the IBGP session
is authenticated. The network command is used to inject the loopback of R2 into the BGP table.
Example 8-66 conrms the BGP table on R2 with the command show ip bgp.
Example 8-66
show ip bgp on R2
show ip bgp
R2#s
BGP table version is 22, local router ID is 144.254.152.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
continues
494
Example 8-66
Next Hop
*>i144.254.151.0/24 144.254.151.1
100
0 i
*>i144.254.153.0/24 144.254.153.1
100
0 i
*>i144.254.154.0/24 144.254.154.1
100
0 i
*>i144.254.155.0/24 144.254.155.1
100
0 i
32768 i
R2#
Example 8-67 conrms the BGP table on R4 with the command show ip bgp.
show ip bgp on R4
Example 8-67
show ip bgp
R4#s
BGP table version is 14, local router ID is 144.254.154.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Network
Next Hop
*>i144.254.151.0/24 144.254.151.1
100
0 i
*>i144.254.152.0/24 144.254.152.1
100
0 i
*>i144.254.153.0/24 144.254.153.1
100
*>i144.254.155.0/24 144.254.155.1
0 i
32768 i
100
0 i
R4#
Example 8-68 conrms the IBGP on R4, as established with the summary BGP command show
ip bgp summary.
Example 8-68
144.254.151.1
333
14192
14204
14
0 1w2d
144.254.152.1
333
14191
14202
14
0 1w2d
144.254.153.1
333
14189
14198
14
0 1w2d
144.254.155.1
333
14189
14199
14
0 1w2d
R4#
AS MsgRcvd MsgSent
TblVer
State/PfxRcd
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
495
Five networks are installed in the BGP table, one local (next hop 0.0.0.0) and four remote (next
hops for R1, R2, R3, and R5 loopback IP addresses).
NOTE For more examples of CCIE questions on BGP, refer to Appendix C for a sample
Routing and Switching lab endorsed by the CCIE content management team.
You will notice that the Routing and Switching topics presented in the rst half of this lab are
valued at approximately half of the points (56 points). The next section is based on Security
features and is also valued at approximately half of the points (44 points). As you can see, a
candidate weak in Routing and Switching but procient in Security features or vice versa will
still likely fail because a total of 80 points is needed to pass.
Apply the access list on the outbound interface on R5s Fast Ethernet link to R4.
Conrm access to the network after applying the access list. (Hint: Use at most four lines of access
list conguration.)
State how you can review any access violations.
496
The inverse mask, 0.0.64.255, means the rst two octets (129 and 57) must match, followed by
either 140 or 204, and you do not care about the last octet (255 or all 111111111).
The same principle of binary bit notation is followed with the second pair of networks:
11100001 (225 in decimal)
11000001 (161 in decimal)
01000000 (64 in decimal)
Example 8-70 congures the second access list line code to encompass the two networks,
225.133.29.0/24 and 161.133.29.0/24, with one line of IOS code.
Example 8-70
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
497
The nal two conditions are met with a deny statement for all networks on 182.133.0.0/16 and an
implicit permit on all other networks. Example 8-71 displays the nal two IOS coded lines.
Example 8-71
The log keyword ensures that any packets matching the access list are logged and available for
further investigation when required. Ensure that all other legitimate IP data, such as OSPF routing
updates, is encompassed in the last statement by implicitly allowing all other trafc.
Finally, apply the access list to the outbound interface on R5. Example 8-72 applies the access
number 100 on the outbound interface to R5.
Example 8-72
Telnet to R5 and review the access list log. You should see the number of access list violations that
were entered as a result of the failed access.
To view access list violations, use the IOS command show ip access-list 100.
498
R1 is congured with TCP Intercept mode. Example 8-73 enables R1 for TCP Intercept mode.
Example 8-73
TCP Intercept on R1
Example 8-74 displays the output of a sample show tcp intercept connections EXEC command.
Example 8-74
Server
State
Create
172.19.160.17:58190
10.1.1.30:23
SYNRCVD
00:00:09 00:00:05 I
Timeout
Mode
172.19.160.17:57934
10.1.1.30:23
SYNRCVD
00:00:09 00:00:05 I
Server
State
Create
Established:
Client
171.69.232.23:1045
10.1.1.30:23
ESTAB
Timeout
Mode
00:00:08 23:59:54 I
Description
Incomplete
Rows of information under Incomplete indicate connections that are not yet
established.
Client
Server
State
Create
Timeout
Mode
Iintercept mode.
Wwatch mode.
Established:
Timeout
Hours:minutes:seconds until the connection will time out, unless the software sees
a FIN exchange, in which case this indicates the hours:minutes:seconds until the
FIN or RESET timeout.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
499
Table 8-5 displays other useful TCP Intercept conguration and monitoring commands.
Table 8-5
Description
exit
R5(config-if)#e
Example 8-76 congures and denes the extended access list named web-trafc.
Example 8-76
An IP protocol number
ahp
eigrp
esp
continues
500
Example 8-76
gre
icmp
igmp
igrp
ip
ipinip
IP in IP tunneling
nos
ospf
pcp
pim
tcp
udp
After you select the TCP option (HTTP runs over TCP port 80), you are presented with the time
range options. Example 8-77 congures R5 to set a time range for World Wide Web access.
Example 8-77
dscp
eq
established
fin
fragments
gt
log
log-input
lt
neq
precedence
psh
range
rst
syn
time-range
Specify a time-range
tos
urg
<cr>
deny tcp any eq any 80 tim e-range ?
R5(config-ext-nacl)#d
WORD
WORD
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
501
Finally, the time-range global conguration command denes specic times of the day and week.
Example 8-78 enables the time-range command on R5.
time-range Command on R5
Example 8-78
time-range
R5(config)#t
web-timing
?
R5(config-time-range)#?
Time range configuration commands:
absolute
default
exit
no
periodic
periodic weekdays
R5(config-time-range)#p
7:00 to 17:00
access-list 100 ?
R3(config)#a
deny
dynamic
permit
remark
permit
timeout
permit
502
After the access list is dened, you must apply the access list to the vty lines on R3.
After the ACL is dened, you must apply the ACL to the interface, followed by the auto command
under vty lines on R3. Example 8-80 displays applying the ACL to the interface and the vty line
conguration.
Example 8-80
Vty Conguration
line vty 0 4
R3(config)#l
autocommand ?
R3(config-line)#a
LINE
no-suppress-linenumber
<cr>
autocommand access-enable-after-ping
R3(config-line)#a
host timeout 5
ping 144.254.4.1
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.4.1, timeout is 2 seconds:
U.U.U
The ping requests are not permitted because a successful Telnet connection is required before
ICMP pings are permitted.
Example 8-82 telnets from R2 to R3, passes authentication, and is automatically dropped out by R3.
Example 8-82
Telnet from R2 to R1
telnet 144.254.4.1
R2#t
Trying 144.254.4.1 ... Open
User Access Verification
Password: cisco
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
503
ping 144.254.4.1
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
ping 144.254.4.1
R2#p
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 144.254.4.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
R2#
To monitor the access violations, use the IOS command show ip access-list 100.
Example 8-84 displays the accesses and violations on R3.
Example 8-84
show ip access-lists
R3#s
Extended IP access list 100
Dynamic blockping permit icmp host 144.254.4.2 host 144.254.4.1
permit icmp host 144.254.4.2 host 144.254.4.1 (30 matches) (time left 269)
deny icmp host 144.254.4.2 host 144.254.4.1 echo (8 matches)
permit ip any any (260 matches)
R3#
Allow all TCP and UDP trafc initiated on the inside from network 144.254.5.0 to access the
Internet. ICMP trafc will also be allowed from the same network. Other networks (inside)
must be denied. For trafc initiated on the outside, allow everyone to access only HTTP to
host 144.254.5.3.
504
only when the connection is initiated from within the network you want to protect. CBAC can
inspect trafc for sessions that originate from either side of the rewall, and CBAC can be used
for intranet, extranet, and Internet perimeters of your network.
To congure CBAC, perform the following tasks:
R5 Outbound Connections
ip access-group 101 in
R5(config-if)#i
ip access-group 102 in
R5(config-if)#i
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
505
Use SHA to calculate the hashes on the actual packet payloads in ESP.
Ensure that all IP data between the R2, R3, and R4 is encrypted using IPSec (over the Frame
Relay network only). (Hint: Apply the crypto map to the Serial links only and not to the ISDN
link.)
506
IKE Conguration on R4
Message Digest 5
sha
hash md5
R4(config-isakmp)#h
authentication ?
R4(config-isakmp)#a
pre-share
Pre-Shared Key
rsa-encr
Rivest-Shamir-Adleman Encryption
rsa-sig
Rivest-Shamir-Adleman Signature
authentication pre-share
R4(config-isakmp)#a
pre-shared key
hostname
<cr>
crypto isakmp key CCiE add ress 144.254.3.2
R4(config)#c
The preshared key value (password) is CCiE, and the peer address of the remote IPSec peer is
144.254.3.2 (R2) and 144.254.3.3 (R3).
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
507
Example 8-89 denes the transform set, which indicates to use transport mode and SHA and ESP
encapsulation.
Example 8-89
AH-HMAC-MD5 transform
ah-sha-hmac
AH-HMAC-SHA transform
comp-lzs
esp-des
esp-md5-hmac
esp-null
esp-sha-hmac
<cr>
crypto ipsec transform-set anyname1 esp-des ?
R4(config)#c
ah-md5-hmac
AH-HMAC-MD5 transform
ah-sha-hmac
AH-HMAC-SHA transform
comp-lzs
esp-md5-hmac
esp-sha-hmac
<cr>
crypto ipsec transform-set anyname1 esp-des esp-sha -hmac
R4(config)#c
mode ?
R4(cfg-crypto-trans)#m
transport
tunnel
mode transport
R4(cfg-crypto-trans)#m
The transform set command denes an acceptable combination of security protocols and
algorithms; this example applies ESP-DES (ESP with the 56-bit DES encryption algorithm) and
ESP with the SHA (HMAC variant) authentication algorithm.
You need to dene the crypto map and the access list to encompass the networks you want to
encrypt. On R4 only, the network 144.254.3.0/28 is encrypted. Example 8-90 congures R4 with
a crypto map and access list 150.
Example 8-90
508
Access list 150 ensures that all IP data is encrypted from R4 to R2 and R3.
Finally, on R4, you must apply the crypto map to the physical interface Serial0/0 on R4. Example
8-91 applies the crypto map to Serial0/0 on R4.
Example 8-91
config terminal
R4#c
Enter configuration commands, one per line.
interface serial0/0
R4(config)#i
R2 IPSec Conguration
R3 IPSec Conguration
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
509
Example 8-93
!
To display the status of all crypto engine active connections, use the IOS command show crypto
engine connections active.
Example 8-94 displays the current active crypto connections on R4.
show crypto engine connections active on R4
Example 8-94
IP-Address
State
Algorithm
Encrypt
Decrypt
3 <none>
<none>
set
HMAC_MD5+DES_56_CB
6 Serial0/0
144.254.3.1
set
HMAC_MD5+DES_56_CB
7 Serial0/0
144.254.3.1
set
HMAC_MD5+DES_56_CB
2008 Serial0/0
144.254.3.1
set
HMAC_SHA+DES_56_CB
27531
2009 Serial0/0
144.254.3.1
set
HMAC_SHA+DES_56_CB
27529
2010 Serial0/0
144.254.3.1
set
HMAC_SHA+DES_56_CB
988
2011 Serial0/0
144.254.3.1
set
HMAC_SHA+DES_56_CB
1243
Encrypt
Decrypt
R4#
Example 8-95
IP-Address
State
Algorithm
<none>
set
HMAC_MD5+DES_56_CB
2006 Serial0/0
144.254.3.2
set
HMAC_SHA+DES_56_CB
71250
2007 Serial0/0
144.254.3.2
set
HMAC_SHA+DES_56_CB
60250
1 <none>
R2#
510
Example 8-96
show crypto
R3#s
ID Interface
IP-Address
State
Algorithm
<none>
set
HMAC_MD5+DES_56_CB
2006 Serial0/0
144.254.3.3
set
HMAC_SHA+DES_56_CB
1243
2007 Serial0/0
144.254.3.3
set
HMAC_SHA+DES_56_CB
988
2 <none>
Encrypt
Decrypt
R3#
The preceding examples conrm that R2, R3, and R4 maintain an IPSec connection.
There are a number of Cisco IOS show commands when monitoring IPSec. Here are a few
examples.
To view the parameters for each Internet Key Exchange policy, use the show crypto isakmp
policy EXEC command.
Example 8-97 displays the sample output when issued on R4.
Example 8-97
hash algorithm:
Message Digest 5
authentication method:
Pre-Shared Key
Diffie-Hellman group:
#1 (768 bit)
lifetime:
hash algorithm:
authentication method:
Rivest-Shamir-Adleman Signature
Diffie-Hellman group:
#1 (768 bit)
lifetime:
R4#
To view the crypto map conguration, use the show crypto map EXEC command.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
511
Example 8-98 displays a sample output of the command show crypto map when applied to R2.
Example 8-98
Serial0/0
You can also verify the crypto map conguration by viewing the conguration with the command
show running-cong. Example 8-99 displays congured crypto map congurations when
viewing the running conguration.
Example 8-99
Hostname R2
!
crypto map any name 1 ipsec-isakmp
se t peer 144.254.3.1
set se curity-association lifeti me seconds 300
set transfo rm-set anyname1onR2
Refer to Chapter 4, Security Protocols, or the following URL for more crypto commands:
www.cisco.com/univercd/cc/td/doc/product/software/ios122/122cgcr/fsecur_r/psencr/
index.htm
512
Assign a host name and a domain name. This is required so that an RSA key is
generated. The PIX commands are as follows:
hostname PIX1
domain-name cisco.com
Step 2
Step 3
Dene the hosts that are permitted access with the following PIX command:
ssh ip_address [netmask] [interface_name]
Step 4
Example 8-100 congures the PIX Firewall for SSH connections from VLAN_D or network
144.254.4.0/26. To set a timeout value, use the PIX command ssh timeout seconds, in this case
2 minutes or 120 seconds.
Example 8-100
hostname PIX1
Pixfirewall(config)#h
domain-name cisco.com
PIX1(config)#d
ca generate rsa key 2048
PIX1(config)#c
ssh 144.254.4.0 255.255.25 5.192 inside
PIX1(config)#s
For the outside interface, enable all informational signatures but drop the packet, and send a
message to the syslog server. Attack signatures should be enabled on both the outside and
inside interface. More specically, for the outside interface, drop the packet, send a syslog
message, and generate TCP resets in both directions.
For the inside interface, drop the packet and send an alert to the syslog server.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
513
audit
audit
audit
audit
audit
audit
attack [a
action [a
alarm] [d
drop] [r
reset]]
info [a
action [a
alarm] [d
drop] [r
reset]]
interface if_name audit_name
name audit_name attack [a
action [a
alarm] [d
drop] [r
reset]]
name audit_name info [a
action [a
alarm] [d
drop] [r
reset]]
signature signature_number disable
Description
audit attack
audit info
audit interface
audit name
audit signature
action actions
audit_name
Audit policy name viewed with the show ip audit name command.
signature_number
Example 8-101 enables the PIX for IDS conguration matching the conditions outlined in the task.
Example 8-101
514
Table 8-7 displays the available show commands that monitor IDS on a Cisco PIX Firewall.
Table 8-7
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
515
Example 8-102 congures Router R2 for local-based authentication for users from VLAN_D only.
Example 8-102
show running
R2#s
hostname R2
aaa new-model
aaa authentication login default local
enable password cisco
!
username Erik access-class 1 password 0 Erik
ip subnet-zero
!
!
access-list 1 permit 144.254.4.0
!
R2#
Example 8-103 displays the debug output when an EXEC user on Router R2 telnets to Router R3.
Example 8-103
continues
516
Example 8-103
R2#
NOTE When using this form of authentication, usernames and passwords are sent in plain
text (Massimo, in this example).
R2 Message Banner
hostname R2
!
aaa new-model
aaa authentication passwor d-prompt "Enter your pass word within 15 seconds:"
aaa authentication login d efault local
enable passwo rd cisco
!
username gert pa ssword 0 gert
Example 8-105 displays the message banner when a PRIV user on R3 telnets to R2.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Example 8-105
517
Telnet from R3 to R2
telnet 144.254.4.2
R3#t
Trying 144.254.4.2 ... Open
R2>
Example 8-106 displays the debug output once the Telnet connection is made to R2. Notice that
you have 15 seconds to enter a valid password; otherwise, the Telnet connection is closed.
Example 8-106
debug tacacs ?
R2#d
events
<cr>
debug tacacs events
R2#d
TACACS+ events debugging is on
debug tacacs
R1#d
TACACS access control debugging is on
debug aaa authentication
R2#d
AAA Authentication debugging is on
show debugging
R2#s
General OS:
TACACS access control debugging is on
TACACS+ events debugging is on
AAA Authentication debugging is on
R2#
R2#
Oct 11 16:40:44: AAA: parse name=tty130 idb type=-1 tty=-1
Oct 11 16:40:44: AAA: name=tty130 flags=0x11 type=5 shelf=0 slot=0 adapter=0 por
t=130 channel=0
Oct 11 16:40:44: AAA/MEMORY: create_user (0x62C7BDA8) user= ruser= port=tty
130 rem_addr=144.254.4.3 authen_type=ASCII service=LOGIN priv=1
Oct 11 16:40:44: AAA/AUTHEN/START (1269435710): port=tty130 list= action=LOGIN
service=LOGIN
Oct 11 16:40:44: AAA/AUTHEN/START (1269435710): using "default" list
Oct 11 16:40:44: AAA/AUTHEN/START (1269435710): Method=LOCAL
Oct 11 16:40:44: AAA/AUTHEN (1269435710): status = GETUSER
Oct 11 16:40:48: AAA/AUTHEN/CONT (1269435710): continue_login (user=(undef))
Oct 11 16:40:48: AAA/AUTHEN (1269435710): status = GETUSER
Oct 11 16:40:48: AAA/AUTHEN/CONT (1269435710): Method=LOCAL
Oct 11 16:40:48: AAA/AUTHEN (1269435710): status = GETPASS
continues
518
Example 8-106
local
Then, the vty lines on R2 must be congured for authentication with the following IOS command:
line vty 0 4
login authentication name
hostname R2
aaa new-model
aaa authentication login d efault group tacacs+ loca l
enable password cisco
!
!
tacacs-server host 144.254 .6.2
tacacs-server key ccie
end
Example 8-108 displays a successful login attempt when an EXEC user telnets from R3 to R2.
Example 8-108
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Example 8-108
R2#
519
520
Example 8-108 displays a successful login attempt. Notice that TCP packets are exchanged
because TACACS+ runs over TCP.
Figure 8-4 displays the ACS conguration for AAA and TACACS+. ACS is an intuitive software
application.
Figure 8-4
Figure 8-4 displays the creation of a remote username named Gert and password creation.
Figure 8-5 displays the ACS network conguration that allows Router R2 (IP address
144.254.152.1) to use the TACACS+ server daemon.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-5
521
522
hostname R3
!
aaa new-model
aaa authentication usernam e-prompt "Enter your name :"
aaa authentication login r adius group radius local
e nable password cisco
!
user name Gert password 0 gert
ip subnet-zero
!
<snip>
!
radius-server host 144.254 .6.2 auth-port 1645 acct- port 1646
radius-server retransmit 3
radius-server key ccie
line vty 0 4
R3 must rst be enabled for AAA and for the RADIUS server and RADIUS key.
Example 8-110 shows sample debug displays when a successful login attempt is made to R3. R2
is used to telnet to R3.
Example 8-110
Telnet from R2 to R3
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Example 8-110
523
2d23h: AAA: name=tty66 flags=0x11 type=5 shelf=0 slot=0 adapter=0 port=66 channe
l=0
2d23h: AAA/MEMORY: create_user (0x8271FE78) user= ruser= port=tty66 rem_ad
dr=144.254.4.2 authen_type=ASCII service=LOGIN priv=1
2d23h: AAA/AUTHEN/START (503012338): port=tty66 list=radius action=LOGIN ser
vice=LOGIN
2d23h: AAA/AUTHEN/START (503012338): found list radius
2d23h: AAA/AUTHEN/START (503012338): Method=radius (radius)
2d23h: AAA/AUTHEN (503012338): status = GETUSER
2d23h: AAA/AUTHEN/CONT (503012338): continue_login (user=(undef))
2d23h: AAA/AUTHEN (503012338): status = GETUSER
2d23h: AAA/AUTHEN (503012338): Method=radius (radius)
2d23h: AAA/AUTHEN (503012338): status = GETPASS
2d23h: AAA/AUTHEN/CONT (503012338): continue_login (user=Gert)
2d23h: AAA/AUTHEN (503012338): status = GETPASS
2d23h: AAA/AUTHEN (503012338): Method=radius (radius)
2d23h: RADIUS: ustruct sharecount=1
2d23h: RADIUS: Initial Transmit tty66 id 2 144.254.6.2:1645, Access-Request, l
en 76
2d23h:
Attribute 4 6 96640115
2d23h:
Attribute 5 6 00000042
2d23h:
Attribute 61 6 00000005
2d23h:
Attribute 1 6 47657274
2d23h:
Attribute 31 14 3135302E
2d23h:
Attribute 2 18 74DEA58C
The successful user in Example 8-110 was authenticated by the RADIUS (ACS server) server.
Figure 8-6 displays the username creation on the ACS server.
524
Figure 8-6
Figure 8-7 displays enabling RADIUS on the ACS server so that Router R3 can authenticate users.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-7
525
526
Figure 8-8
IDS Conguration
The following list outlines key details to answer the lab exam questions:
Ensure that only the subnet 144.254.6.0/29 can manage the IDS device.
Change the custom signature 50000 to trigger a severity level of high when a Telnet session
tries to change the password on any device. (By default, the IDS snifng interface is shut
down. You need to un-shut the interface to receive the spanned trafc.)
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
527
Figure 8-9 displays the menu-driven welcome screen. Notice that the section labeled You Are
Here advises you that your current screen location is the setting Device>Sensor Setup.
By clicking Network, you can conrm the IP address. Figure 8-10 conrms the correct IP address
as 144.254.5.3/24.
528
Figure 8-10
Click Allowed Hosts to enter the permitted subnet 144.254.6.0/29 to manage the IDS, as Figure
8-11 conrms.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-11
529
Finally, you need to create a custom IDS signature to monitor any IP packets that are changing the
passwords on the network.
To create a custom signature, click the Conguration tab. Click Signature Conguration Mode
> Signature Wizard on the left menu bar. Figure 8-12 displays the screen when creating a
customized signature.
530
Figure 8-12
The next eight gures display the simple procedure of creating a signature by following the
intuitive steps the wizard walks you through.
Figure 8-13 displays the welcome screen when creating customized signatures. Click Start the
Wizard.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-13
531
532
Figure 8-14
Figure 8-14 requires no changes; simply click the Next button to display the features available.
Figure 8-15 congures the IDS signature numbered 50000 and a random signature name of
STRING.TCP.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-15
533
Figure 8-16 displays the conguration to alert administrators whenever the word password is
shown in any Telnet connection. Cisco routers, for example, use the command enable password
for setting the enable password, which will trigger an alert in this case.
534
Figure 8-16
Figure 8-17 congures the severity level to high as required by this lab.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-17
535
536
Figure 8-18
Notice that the Wizard Tasks box on the left tracks your progress through the wizard as you
advance through the screens. Advance through the next two screens to complete the nal steps of
the wizard. Figure 8-19 and Figure 8-20 conrm the wizard completion.
CCIE Security Self-Study Lab Part II: Advanced Security Design (4 Hours)
Figure 8-19
537
538
Figure 8-20
Note that you must congure the switch port on the PIX inside interface to span (monitor or
mirror) so that the IDS device can check all trafc. This completes the sample Security lab.
Final Configurations
Finally, all lab components have been completed. For your reference, here are the full working
conguration les of all routers, the Catalyst 3550 switch, and the PIX Firewall. Please note that
these congurations are a guide, and you might have found other correct solutions, as well. It is
the end goal of every CCIE lab to provide a working solution, be it on routing, switching, security,
or voice.
Example 8-111 displays the full working conguration for R1.
Example 8-111
Final Configurations
Example 8-111
539
continues
540
Example 8-111
Final Configurations
Example 8-111
541
!
ip classless
no i p http server
!
access-list 100 permit ip any 144.25 4.1.0 0.0.0.3
!
line 1 16
tr ansport input telnet
!
line con 0
exec-timeout 0 0
pa ssword cisco
login
transp ort input telnet
line aux 0
exec-timeout 0 0
passwo rd cisco
login
transport i nput telnet
line vty 0 4
e xec-timeout 0 0
password cisco
login local
transpor t input telnet
!
end
version 12.1
service timest amps debug uptime
service timestamps log uptime
no s ervice password-encryptio n
!
hostname R2
!
aaa new-mode l
username Erik access-cla ss 1 password 0 Erik
usern ame gert password 0 gert
a aa authentication login de fault local
aaa authentica tion password-prompt "Ent er your password within 1 5 seconds:"
aaa authenticat ion login default group t acacs+ local
enable passwo rd cisco
ip subnet-zero
no ip finger
continues
542
Example 8-112
no ip domain-lookup
ip host r1 144.254.151.1
ip host r2 144.254.152.1
ip host r 3 144.254.153.1
ip host r4 144.254.154.1
ip host r5 1 44.254.155.1
ip dhcp exclu ded-address 144.254.4.1
i p dhcp excluded-address 14 4.254.4.2
ip dhcp excluded- address 144.254.4.3
!
ip dh cp pool ccie
network 14 4.254.4.0 255.255.255.192
domain-name cisco.com
default-router 144.254.4 .1 144.254.4.2
lease i nfinite
ip audit notify lo g
ip audit po max-events 1 00
frame-relay de-list 5 pr otocol ip gt 768
crypto is akmp policy 1
hash md5
au thentication pre-share
cryp to isakmp key CCiE addres s 144.254.3.1
crypto ipsec transform-set anyname1on R2 esp-des esp-sha-hmac
m ode transport
crypto map a nyname 1 ipsec-isakmp
set peer 144.254.3.1
set security-association lifet ime seconds 300
set trans form-set anyname1onR2
ma tch address 150
!
call rsvp -sync
cns event-service ser ver
interface Loopback0
ip address 144.254.152.1 25 5.255.255.0
ip ospf netwo rk point-to-point
!
interfac e FastEthernet0/0
ip addr ess 144.254.4.2 255.255.2 55.192
ip ospf hello-inte rval 20
ip ospf priority 0
half-duplex
!
interface Se rial0/0
ip address 144.25 4.3.2 255.255.255.240
enc apsulation frame-relay
ip o spf authentication messag e-digest-key 1 md5 cisco
ip ospf authentication-ke y cisco
Final Configurations
Example 8-112
543
ip ospf hello-interval 25
ip ospf priority 0
frame- relay map ip 144.254.3.1 204 broadcast
frame-relay map ip 144.254.3.2 204 br oadcast
frame-relay map i p 144.254.3.3 204 broadca st
frame-relay interface- dlci 204
no frame-relay in verse-arp
frame-relay lm i-type ansi
crypto map any name
!
!
router ospf 1
route r-id 144.254.152.1
log-adj acency-changes
ip ospf mes sage-digest-key 1 md5 cis co
ip ospf message-digest- key 1 md5 cisco
network 1 44.254.3.2 0.0.0.0 area 0
network 144.254.4.2 0.0. 0.0 area 333
network 144. 254.152.1 0.0.0.0 area 0
!
r outer bgp 333
no synchron ization
bgp log-neighbor- changes
network 144.254.1 52.0 mask 255.255.255.0
ne ighbor 144.254.154.1 remo te-as 333
neighbor 144.25 4.154.1 password cisco
ne ighbor 144.254.154.1 updat e-source Loopback0
!
ip cla ssless
no ip http server
ac cess-list 1 permit 144.25 4.4.0
access-list 150 permi t ip any any
tacacs-server host 144.254
tacacs-serve r key ccie
dial-peer cor c ustom
line con 0
exec-timeo ut 0 0
password cisco
log in
transport input telnet
line aux 0
exec-timeout 0 0
password cisco
login
tr ansport input telnet
continues
544
Example 8-112
line vty 0 4
exec-timeout 0 0
password cisco
login
transport input telnet
!
end
!
version 12.1
service times tamps debug uptime
service timestamps log uptime
no service password-encrypti on
hostname R3
logging rate- limit console 10 except e rrors
enable password cisc o
username Gert password 0 gert
username R5 password 0 cisco
ip subnet-zero
aaa new-model
aaa authenticati on username-prompt "Enter your name:"
aaa authentica tion login radius group r adius local
no ip finger
no ip domain-lookup
ip host r5 144.254.155.1
ip host r4 144.254.154.1
ip host r3 144.254.153.1
ip host r2 1 44.254.152.1
ip host r1 14 4.254.151.1
ip audit notify log
ip audit po max-event s 100
frame-relay de-list 5 protocol ip gt 768
crypt o isakmp policy 1
hash md5
authentication pre-share
crypto isakmp key CCiE ad dress 144.254.3.1
crypto i psec transform-set anyname 1onR3 esp-des esp-sha-hma c
mode transport
crypto m ap anyname 1 ipsec-isakmp
set peer 144.254.3.1
s et security-association l ifetime seconds 300
set t ransform-set anyname1onR3
match address 150
Final Configurations
Example 8-113
545
continues
546
Example 8-113
log-adjacency-changes
ip ospf message-digest-key 1 md5 cisco
ip ospf messag e-digest-key 1 md5 cisco
network 144.254.3.3 0.0.0 .0 area 0
network 144.254 .4.1 0.0.0.0 area 333
net work 144.254.4.2 0.0.0.0 area 333
network 144.254.7 .1 0.0.0.0 area 0
network 144.254.153.1 0.0.0.0 ar ea 0
!
router bgp 333
no sy nchronization
bgp log-neig hbor-changes
network 144. 254.153.0 mask 255.255.25 5.0
neighbor 144.254.154. 1 remote-as 333
neighbor 1 44.254.154.1 update-sourc e Loopback0
!
ip classless
n o ip http server
!
access-l ist 100 dynamic blockping timeout 5 permit icmp hos t 144.254.4.2 host 14
4.25 4.4.1
access-list 100 deny
Final Configurations
Example 8-113
547
end
!
version 12.1
service times tamps debug uptime
service timestamps log uptime
no service password-encrypti on
hostname R4
logging rate- limit console 10 except e rrors
enable password cisc o
ip subnet-zero
no ip fing er
no ip domain-lookup
ip ho st r1 144.254.151.1
ip hos t r2 144.254.152.1
ip host r3 144.254.153.1
ip host r4 144.254.154.1
ip host r5 144.254.155.1
ip audit no tify log
ip audit po max- events 100
crypto isakmp po licy 1
hash md5
authentica tion pre-share
crypto isak mp key CCiE address 144.2 54.3.2
crypto isakmp key C CiE address 144.254.3.3
cry pto ipsec transform-set a nyname1 esp-des esp-sha-h mac
mode transport
crypto map anyname 1 ipsec-isakm p
set peer 144.254.3.2
set peer 144.254.3.3
set security-association lif etime seconds 300
set tran sform-set anyname1
match address 150
key chain eig rp
key 1
key-string ccie
call rsvp-sync
cns event-se rvice server
!
interface Lo opback0
continues
548
Example 8-114
Final Configurations
Example 8-114
549
no auto-summary
no eigrp log-neighbor-changes
!
rout er ospf 1
router-id 144.2 54.154.1
log-adjacency-ch anges
ip ospf message-dige st-key 1 md5 cisco
ip os pf message-digest-key 1 m d5 cisco
area 4 virtual-l ink 144.254.155.1
redistri bute eigrp 333 metric 100 metric-type 1 subnets
ne twork 144.254.3.1 0.0.0.0 area 0
network 144.254.5. 1 0.0.0.0 area 4
network 144.254.154.1 0.0.0.0 are a 0
neighbor 144.254.3.3
neighbor 144.254.3.2
!
route r bgp 333
no synchronizat ion
bgp log-neighbor-chan ges
network 144.254.154.0 mask 255.255.255.0
neighb or 144.254.151.1 remote-a s 333
neighbor 144.254.15 1.1 update-source Loopbac k0
neighbor 144.254.151.1 route-reflector-client
ne ighbor 144.254.152.1 remo te-as 333
neighbor 144.25 4.152.1 password cisco
nei ghbor 144.254.152.1 updat e-source Loopback0
neighb or 144.254.152.1 route-re flector-client
neighbor 14 4.254.153.1 remote-as 333
neighbor 144.254.153.1 u pdate-source Loopback0
ne ighbor 144.254.153.1 route -reflector-client
neighbo r 144.254.155.1 remote-as 333
neighbor 144.254.155 .1 update-source Loopback0
neighbor 144.254.155.1 r oute-reflector-client
!
ip classless
no ip http serve r
access-list 150 permit ip any any
dial-peer cor cus tom
!
line con 0
exec-time out 0 0
password cisco
log in
transport input tel net
line aux 0
continues
550
Example 8-114
exec-timeout 0 0
password cisco
login
transport in put telnet
line vty 0 4
ex ec-timeout 0 0
password c isco
login
transport input telnet
!
end
version 12.1
service times tamps debug uptime
service timestamps log uptime
no s ervice password-encryptio n
hostname R5
logging rate-l imit console 10 except er rors
enable password cisco
username R5 password 0 ci sco
username R3 password 0 cisco
ip subnet-zero
no ip finger
no ip domain-lookup
ip host r5 144.254.155.1
i p host r4 144.254.154.1
ip host r3 144.254.153.1
ip h ost r2 144.254.152.1
ip au dit notify log
ip audit po max-events 100
isdn switch -type basic-5ess
interface Loopback0
ip address 144 .254.155.1 255.255.255.0
ip ospf network point-to-p oint
interface FastEtherne t0/0
ip address 144.254.5 .2 255.255.255.224
ip acc ess-group 100 out
ip ospf hello-interval 60
duplex auto
speed auto
!
!
interfac e BRI0/0
Final Configurations
Example 8-115
551
description 7775020
ip ad dress 144.254.7.2 255.255 .255.252
encapsulation pp p
ip ospf authentication m essage-digest-key 1 md5 ci sco
ip ospf authenticatio n-key cisco
Ciscodialer lo ad-threshold 165 either
d ialer map ip 144.254.7.1 n ame R3 broadcast
dialer- group 1
isdn switch-type b asic-5ess
no peer neighbo r-route
ppp authentication chap callin
ppp multilin k
!
interface Fast Ethernet0/1
ip address 14 4.254.6.1 255.255.255.248
ip access-group 101 in
i p access-group web-traffi c out
ip inspect OUTBOUND in
duplex auto
speed auto
!
interface Serial0/1
no ip address
shutdown
!
router ospf 1
router-id 144.254. 155.1
log-adjacency-change s
ip ospf message-digest- key 1 md5 cisco
ip ospf m essage-digest-key 1 md5 c isco
area 4 virtual-link 144.254.154.1
network 144 .254.5.2 0.0.0.0 area 4
n etwork 144.254.6.1 0.0.0. 0 area 5
network 144.254.7 .2 0.0.0.0 area 0
network 144.254.155.1 0.0.0.0 ar ea 4
!
router bgp 333
no sy nchronization
bgp log-neig hbor-changes
network 144. 254.155.0 mask 255.255.25 5.0
neighbor 144.254.154. 1 remote-as 333
!
ip classle ss
no ip http server
ip acc ess-list extended web-tra ffic
continues
552
Example 8-115
deny
end
Example 8-116 displays the full working conguration for the PIX Firewall.
Example 8-116
Final Configurations
Example 8-116
553
logging on
no logging times tamp
no logging standby
no logging console
no logging monitor
no logging buffer ed
no logging trap
no loggi ng history
logging facility 20
logging queue 512
inter face ethernet0 auto
interf ace ethernet1 auto
icmp per mit any inside
mtu outside 1500
mtu inside 1500
ip ad dress outside 9.1.1.1 255 .255.255.0
ip address insi de 144.254.1.2 255.255.25 5.252
ip audit name Attack- inside attack action alar m reset
ip audit name Infor mation-inside info action alarm drop
ip audit name Attack-outside attack act ion alarm drop
ip audit int erface outside Attack-ins ide
ip audit interface ins ide Information-inside
ip audit interface inside Att ack-outside
ip audit info action alarm
ip audit atta ck action alarm
no failove r
failover timeout 0:00:00
f ailover poll 15
failover i p address outside 0.0.0.0
failover ip address insid e 0.0.0.0
arp timeout 14400
nat (inside) 1 0.0.0.0 0. 0.0.0 0 0
rip outside pass ive version 1
rip inside p assive version 2 authentic ation md5 ccie 1
rip insid e default version 2 authe ntication md5 ccie 1
route outside 0.0.0.0 0.0.0.0 9 .1.1.2
route inside 144.25 4.0.0 255.255.0.0 144.254 .1.1
timeout xlate 3:00:00
timeout conn 1:00:00 half- closed 0:10:00 udp 0:02:0 0 rpc 0:10:00 h323 0:05:0 0 si
p 0:30:00 sip_media 0 :02:00
timeout uauth 0:05:0 0 absolute
aaa-server TACA CS+ protocol tacacs+
aaa- server RADIUS protocol ra dius
no snmp-server locati on
no snmp-server contact
s nmp-server community publ ic
no snmp-server enable t raps
continues
554
Example 8-116
floodguard enable
no sysopt route dnat
isakmp identit y hostname
telnet 144.254. 1.1 255.255.255.255 insid e
telnet timeout 5
ssh timeo ut 5
terminal width 80
Cry ptochecksum:7827bfd3d2885 989e9a789c8c9a4c6d6
: end
Example 8-117 displays the full working conguration for the Catalyst 3550 switch conguration.
Example 8-117
!
version 12.1
no service pa d
service timestamps debu g uptime
service timestamps log uptime
no service pas sword-encryption
!
hostname switch
!
enable password ci sco
!
ip subnet-zero
ip rou ting
spanning-tree extend s ystem-id
!
!
interface FastEt hernet0/1
Description conn ection to R1 Ethernet 0/0
!The following commands a ssigns the VLAN
switchport access vlan 2
switchport mode access
switchport p ort-security
switchport p ort-security violation shu tdown
storm-control broad cast level 50.00
duplex F ull
!
interface FastEtherne t0/2
Description connection to R2 Fast Ethernet 0/0
switchport access vlan 5
switchport mode access
sw itchport port-security
Final Configurations
Example 8-117
555
continues
556
Example 8-117
interface FastEthernet0/8
D escription connection to PIX outside
switchport ac cess vlan 6
switchport mo de access
switchport port- security
switchport port- security violation shutdo wn
storm-control broadcas t level 50.00
! Note interf aces 9 and 10 not used he re
interface FastEthernet 0/9
no ip address
shutdown
s witchport port-security
sw itchport port-security vi olation shutdown
storm-co ntrol broadcast level 50. 00
!
interface FastEthernet 0/10
no ip address
shutdown
switchport port-security
switchport port-security violation shutdown
storm- control broadcast level 5 0.00
!
interface FastEther net0/11
Description connect ion IDS control
switchport access vlan 3
switchport mode access
switchport p ort-security
switchport p ort-security violation shu tdown
storm-control broad cast level 50.00
interface FastEthernet0/12
Descript ion connection to IDS snif fing
switchport access vl an 2
switchport mode acc ess
switchport port-securi ty
switchport port-securit y violation shutdown
stor m-control broadcast level 50.00
!
interface GigabitE thernet0/1
no ip address
i nterface GigabitEthernet0 /2
Example 8-117
557
no ip address
!
interface V lan1
no ip address
!
interf ace Vlan5
ip address 144. 254.4.3 255.255.255.192
!
!
ip classless
ip route 0.0.0 .0 0.0.0.0 144.254.4.2
ip route 0.0.0.0 0.0.0.0 144 .254.4.1 100
no ip http se rver
!
!
access-list 5 permit 144.254.151.1
access-lis t 5 permit 144.254.152.2
ac cess-list 5 permit 144.25 4.153.3
access-list 5 permi t 144.254.154.4
access-lis t 5 permit 144.254.155.5
a ccess-list 5 permit 144.2 54.4.0 0.0.0.64
!
line vty 0 4
access-class 5 in
pass word cisco
login
line vty 5 15
access-class 5 in
pa ssword cisco
login
end
NOTE The routers in this network were Cisco 2600 and 3600 series. The switch was a Cisco
Catalyst 3550 switch. In theory, you can use any Cisco IOS router, switch, IDS, and PIX
Firewall. You can easily replace your lab switch with any switch running native IOS. For
example, a 3750 or 6506 works if you are lucky enough to have one in your test lab.
558
In every CCIE lab exam that I have attempted, and I have been through many of them, I have found
that a candidate must be capable of addressing topics they have not congured or studied prior to
the lab; in essence, you must be prepared to use the Documentation CD-ROM to help you past the
topics you are not comfortable with. So in keeping with the high level of difculty of any CCIE
exam, here are some bonus advanced questions with an indicative point score you could expect in
any CCIE lab exam. (These points do not count toward the main lab already presented.) Research
them and try to implement solutions. Ensure that you read the question carefully, because they
have some hidden traps representative of most CCIE lab exams. Enjoy them!
Conclusion
Ensure that World Wide Web and FTP trafc is permitted both ways.
ICMP is permitted one way only. Assume R2 sends the ping request.
Telnet sessions are permitted only from outside to hosts on VLAN 5, and only for an
employee with the username of henrytripleccie. This access should not remain in place
indenitely.
559
Conclusion
You should be able to complete this CCIE Security self-study lab within 8 hours. The difculty
level presented here is the very minimum of what you can expect in any CCIE lab exam. Focus
your attention on time management and your ability to congure a number of IOS features
quickly. If you can complete this lab successfully, modify the tasks and try again. Change the IP
routing algorithm, for example, or congure the PIX for IPSec termination from the Internet.
Make sure you are familiar with Cisco ACS and are comfortable with TACACS+ and RADIUS,
IDS devices, and VPN Concentrators. Ensure that you stay informed about changes made to the
lab blueprint; typically, recent new IOS enhancements are incorporated in CCIE lab exams within
6 months.
You should plan for 10-20 percent of any lab exam to really test your skill set. If you are not
experienced enough and you cannot condently complete this lab, consider taking more time to
study before investing your hard-earned money.
Your ability to complete any design scenario is what will ensure that you are a master of CCIE,
rather than someone who has just passed an 8-hour exam. In todays environment, being a CCIE
might not be marketable enough. Demonstrating to a prospective employer your skills of
designing any network topology in any network condition will ensure that you are ahead of the
rest.
Best of luck to you in your endeavors to become a CCIE Security expert and beyond. When you
do pass the exam, please e-mail me at henry.benjamin@optusnet.com so that I, too, can share in
your great accomplishment.
APPENDIX
Which layer of the OSI model is responsible for converting frames into bits and bits into
frames?
Answer: e. Data link
The data link layer performs bit conversion to pass to the MAC sublayer.
2.
3.
4.
5.
562
6.
7.
8.
9.
10.
Which of the following is not a required step to enable Fast EtherChannel (FEC)?
Answer: a. Ensure that all ports share the same speed at 10 Mbps.
FEC uses full-duplex Fast Ethernet (100 Mbps) links.
11.
12.
13.
Chapter 1
14.
563
An incoming frame on a Layer 2 switch is received on port 10/1 on a Catalyst 5000. If the
destination address is known through port 10/2, what happens?
Answer: b. The frame is sent via port 10/2.
The destination MAC address has already been discovered through port 10/2, so the frame
will be sent only to the known port or slot 10, port 2.
15.
Which of the following are the four possible states of spanning tree?
Answer: d. Listening, learning, blocking, forwarding
16.
17.
18.
19.
How many subnets are possible in VLSM if the Class C address 131.108.255.0 is used with
the subnet mask 255.255.255.252 in the fourth octet eld? (Allow for subnet zero.)
Answer: h. 64
26 = 64. This allows for subnet zero. If subnet zero is not permitted, then 62 subnets would be
available.
20.
How many hosts are available when a /26 subnet mask is used?
Answer: b. 62
26 2 = 64 2 = 62.
564
21.
22.
You require an IP network to support, at most, 62 hosts. What subnet mask will accomplish
this requirement?
Answer: d. 255.255.255.192
62 hosts require 62 + 2 = 64 addresses. This IP Network needs 6 bits borrowed from the
subnet mask. In binary, that number is 11000000.
23.
Which of the following are multicast addresses? (Choose all that apply.)
Answers: a. 224.0.0.5
b. 2240.0.6
224.0.0.5 and 224.0.0.6 are multicast addresses.
24.
25.
What is the source TCP port number when a Telnet session is created by a PC to a Cisco
router?
Answer: b. A value higher than 1024
The source TCP port is a random number above 1024 (102565535); the destination port is 23.
26.
27.
If two Cisco routers are congured for HSRP and one router has a default priority of 100 and
the other 99, which router assumes the role of active router?
Answer: b. The router with a higher priority.
Chapter 1
28.
565
What is the preferred path to 131.108.254.0/24? (Choose the best two answers.)
Answers: a. Via Serial0/0
b. Via Serial0/1
OSPF is chosen because of the lower administrative distance of 110 compared to RIPs 120.
Notice the OSPF load balancing between Serial 0/0 and Serial 0/1. RIP has also dynamically
discovered the same routers over two paths, but because the AD is higher or less trusted,
OSPF will be the preferred routing path. If, for example, the serial interfaces S0/1 and S0/0
fail, then the remaining path will be Serial 1/0 and Serial 1/1 or via RIP. (The written
examination always advises you how many answers to select. Practice on the CD provided.)
29.
30.
31.
32.
566
33.
34.
In what eld or elds does the IP checksum calculate the checksum value?
Answer: c. Header only
The IP checksum calculation covers only the IP header.
35.
The TCP header checksum ensures integrity of what data in the TCP segment?
Answer: c. The data and header.
The TCP checksum calculation covers the TCP header and data.
36.
37.
38.
Place the following steps in the correct order for PPP callback, as specied in RFC 1570.
1. A PC user (client) connects to the Cisco access server.
2. The Cisco IOS Software validates callback rules for this user/line and disconnects the caller
for callback.
3. PPP authentication is performed.
4. Callback process is negotiated in the PPP Link Control Protocol (LCP) phase.
5. The Cisco access server dials the client.
Answer: d. 1, 5, 4, 3, 2
RFC 1570 dictates how PPP callback is to be followed. For more information, refer to http://
www.cse.ohio-state.edu/cgi-bin/rfc/rfc1570.html.
Chapter 1
39.
567
What hardware port is typically designed to connect a Cisco router for modem access?
Answer: c. The auxiliary port
The auxiliary port on Cisco routers can be used for modem access. The console port can also
be used but, typically, the auxiliary port is applied for remote access or dialup access for
network failures.
40.
The AS5300 series router can support which of the following incoming connections?
Answer: d. All of these
The AS5300 series router can support both digital (ISDN) and analog connections, and also
supports voice trafc.
41.
42.
What UDP port range is used between Cisco IP Phones when a call is in progress?
Answer: e. 1638432767
IP phones communicate via UDP, and the range is 1638432767, not 1638432766.
43.
What two methods are commonly used to secure Voice over IP? (Choose two answers.)
Answers: a. Access lists
b. IDSs
The SAFE blueprint for voice networks denes access lists and IDSs as the two most crucial
features that should be used when deploying VoIP.
568
44.
Which of the following can be used by attackers to gain access to WLANs? (Select three
answers.)
Answers: b. Audit the MAC address
d. Exploit aws in the operating system
e. Use a sniffer tool with a wireless adapter
Auditing MAC addresses, exploiting operating system aws, and using sniffer tools are
todays most common ways to access WLANs. Service Set Identier (SSIDs) alone cannot
access the network, nor can calling the Technical Assistance Center (TAC).
45.
Which of the following is not a method used to secure a wireless network? (Select the best
three answers.)
Answers: a. Deploy WEP with a static key only
d. Disable MAC authentication
e. Nothing, wireless is inherently secure
Answer: The question clearly asks for methods that are not secure. Deploying a static WEP
key is very insecure, disabling MAC authentication can lead to rogue devices becoming
associated with the access points, and doing nothing is very insecure.
Q&A
1.
2.
Application
Presentation
Session
Transport
Network
Data link
Physical
What layer of the OSI model is responsible for ensuring that IP packets are routed from one
location to another?
Answer: The network layer is primarily responsible for routing IP packets from one destination
to another.
Chapter 1
3.
569
What mechanism is used in Ethernet to guarantee packet delivery over the wire?
Answer: Carrier Sense Multiple Access/Collision Detection (CSMA/CD) is the Ethernet
mechanism used to ensure that when devices detect collisions, other devices on the segment
are sent a jam signal. CSMA/CD ensures that when collisions occur, other devices (such as
PCs or routers) back off (do not transmit) for a specied period of time. When a device
receives a jam signal, it will wait a random amount of time to retransmit. This lowers the
chance of another collision. All devices that detect a jam signal can transmit up to 16 times
before sending an error message to the application layer.
4.
5.
What Catalyst command displays the bridging or CAM table on a Cisco 3550 series switch?
Answer: The command is
show mac-address-table dynamic [address mac_addr | interface type slot/port |
protocol protocol | Vlan vlan_id]
ListeningThe port has received data from the interface and will listen for frames. In
this state, the bridge only receives data and does not forward any frames to the interface
or to other ports.
LearningThe bridge still discards incoming frames. The source address associated
with the port is added to the CAM table. BPDUs are sent and received.
BlockingThe port has been through the learning and listening states and, because this
particular port is a dual path to the root bridge, the port is blocked to maintain a loop-free
topology.
The order of spanning tree states is listening, then learning, and, nally, forwarding or
blocking. Typically, each state takes around 15 seconds on Cisco Catalyst switches.
570
7.
Fast EtherChannel (FEC) allows what to occur between Cisco Catalyst switches?
Answer: FEC is a Cisco method that bundles 100-Mbps Fast Ethernet ports into a logical link
between Cisco Catalyst switches, such as the Catalyst 5000 or 6000 series switches.
Up to four ports can be bundled together to scale bandwidth up to 800 Mbps.
8.
Does an IP packet include a known and common eld that guarantees data delivery? If so,
what is this eld?
Answer: The IP frame format has no setting that guarantees packet delivery, so IP is termed
connectionless. The error check is performed on the IP header elds only, not on the data in
the packet.
9.
10.
Given the address 131.108.1.56/24, what are the subnet and broadcast addresses? How many
hosts can reside on this network?
Answer: The subnet address is 131.108.1.0 and the broadcast address is 131.108.1.255. The
number of hosts is dened by the formula 28 2= 256 2 = 254.
11.
How many hosts can reside when the subnet mask applied to the network 131.108.1.0 is
255.255.255.128 (or 131.108.1.0/25)?
Answer: The number of hosts is 27 2 = 128 2 = 126.
12.
RIPv2
OSPF
IS-IS
EIGRP
BGP4
Chapter 1
13.
571
14.
15.
Telnet
What Cisco IOS command displays the IP ARP table on a Cisco IOS router?
Answer: The Cisco IOS command is show ip arp. This command displays IP ARP entries
only. The Cisco IOS command show arp displays all ARP entries for all protocols in use.
16.
Cisco IOS routers use what mechanism to determine the routing selection policy for remote
networks if more than one routing protocol is running?
Answer: Cisco IOS routers use administrative distance, which denes a set number for every
routing protocol in use. The lower the AD, the more trustworthy the network. For example, a
static route (AD is 1) is preferred to an OSPF (AD is 110) discovered route. A static route
pointing to a directly connected interface, for example, via Ethernet0, has an AD set to 0, the
same as a directly connected interface even though a static route is enabled.
17.
What is the administrative distance for OSPF, RIP, and external EIGRP?
Answer: The AD for OSPF is 110, for RIP is 120, and for external EIGRP is 170 (internal
EIGRP is 90).
572
18.
Name ve characteristics of distance vector routing protocols and provide two examples of
routing protocols classied as distance vector.
Answer: Distance vector characteristics and example protocols are as follows:
19.
Periodic updates
Periodic updates are sent at a set interval; for IP RIP, this interval is
30 seconds.
Broadcast updates
Triggered updates
Split horizon
This method stops routing loops. Updates are not sent out an
outgoing interface from which the route was received. This also
saves bandwidth.
For RIP, the limit is 15, and for IGRP its 255.
Algorithm
Examples
IP RIP runs over what protocol and port number when sending packets to neighboring
routers?
Answer: IP RIP runs over UDP port number 520 when sending packets to neighboring
routers.
20.
21.
22.
Chapter 1
23.
573
24.
If OSPF is congured for one area, what area assignment should be used?
Answer: Good OSPF design denes area 0, or the backbone, as the core area, and area 0
should always be used. If the OSPF network resides in one area only, theoretically, any area
assignment is possible.
25.
26.
What Cisco IOS command disables an interface from participating in the election of an OSPF
DR/BDR router?
Answer: To disable an interface on a Cisco router when electing a DR, the Cisco IOS
command is ip ospf priority 0. The router with the highest priority (range is between 0 and
255) will be elected the DR.
27.
On an Ethernet broadcast network, a DR suddenly reboots. When the router recovers and
discovers neighboring OSPF routers, will it be the designated router once more?
Answer: Once the router fails, the backup DR (BDR) assumes the functions of the DR and
another OSPF router (if it exists) is elected the BDR. After the failed router recovers,
neighboring OSPF Hello packets will advise that a DR/BDR already exists and there is no
need to assume the functions of DR or BDR until another election process is initiated.
28.
What Layer 4 protocol does BGP use to guarantee routing updates, and what destination port
number is used?
Answer: BGP4 uses TCP and the destination port number is 179.
29.
574
30 B channels and a 64-kbps D channel, depending on the country. In North America and
Japan, a PRI service consists of 23 B channels for a total bit rate of up to 1.544 Mbps. In Asia
and Australia, a PRI delivers 30 B-channels and one 64-kbps D channel, delivering a total bit
rate of 2.048 Mbps.
30.
What are the three phases that occur in any PPP session?
Answer: The following are the three phases that occur in any PPP session:
31.
Link establishmentLink Control Protocol (LCP) packets are sent to congure and
test the link.
Network layersIn this phase, NCP packets determine which protocols will be used
across the PPP link. An interesting aspect of PPP is that each protocol (IP, IPX, and so
on) supported in this phase is documented in a separate RFC that discusses how it
operates over PPP.
32.
33.
34.
Chapter 2
35.
575
What is the best method you can easily deploy to protect CCMs from unauthorized access?
Answer: Cisco IOS access lists and intrusion detection systems are the main tools used to
secure VoIP networks.
36.
Chapter 2
Do I Know This Already?
1.
2.
3.
What Cisco IOS command will stop a Cisco router from querying a DNS server when an
invalid Cisco IOS command is entered at the EXEC or PRIV prompt?
Answer: a. no ip domain-lookup
To disable DNS query lookup, the Cisco IOS command in global conguration mode is no ip
domain-lookup.
4.
What does the following Cisco IOS global conguration mode line accomplish?
ip host SimonisaCCIE 131.108.1.1 131.108.1.2
576
6.
What Cisco IOS command will copy a Cisco IOS image from the current system ash to a
TFTP server?
Answer: b. copy ash tftp
To copy a Cisco IOS image from the routers to system ash, the correct Cisco IOS command
is copy ash tftp.
7.
Suppose a client calls and advises you that an FTP data transaction is not allowing the client
to view the hosts directory structure. What are the most likely causes of the problem?
(Choose all that apply.)
Answers: b. The clients FTP data port is not connected.
e. An access list is stopping port 20 from detailing the directory list.
The FTP data port is used to view the directory and could be blocked because of an access list
or a fault with the clients software when establishing the FTP 20 connection.
8.
9.
Chapter 2
10.
577
11.
12.
13.
14.
15.
578
16.
17.
Which of the following protocols can be authenticated? (Select the best four answers.)
Answers: a. Telnet
b. HTTP
c. HTTPs
f. FTP
Telnet, HTTP, HTTPs, and FTP require the user to enter a username and password pair to gain
access to restricted hosts. Spanning tree is a Layer 2 mechanism with no authentication
mechanism, and TFTP has no username/password pair requirement.
18.
What is the community string value when the following Cisco IOS commands are entered in
global conguration mode?
snmp-server community publiC RO
snmp-server enable traps config
snmp-server host 131.108.255.254 isdn
Answer: c. publiC
The community string is dened by command snmp-server community community string,
which, in this case, is set to publiC. The community string is case sensitive.
19.
20.
21.
What TCP port number will an SNMP inform acknowledgment packet be sent to?
Answer: f. None of these
SNMP inform acknowledgments are sent over UDP (not TCP) port number 161.
Chapter 2
22.
579
To restrict SNMP managers from the source network 131.108.1.0/30, what Cisco IOS
command is required?
Answer: c.
snmp-server community SimonisCool ro 4
access-list 4 permit 131.108.1.0 0.0.0.3
The SNMP server community name must be dened with the following command:
snmp-server community string ro access-list-number
The access list number denition must follow (in this case, number 4). The access list range
is between 1 and 99 only.
23.
24.
When enabling Cisco IOS SSH on a Cisco IOS router, which of the following is not a required
step?
Answer: c. Generate a secret and enable password.
Cisco IOS does not require a secret and enable password when enabling SSH; the DNS name
and the hostname and transport commands are mandatory. SSH requires a crypto Cisco IOS
image loaded on the router. You must also congure a username/password pair locally.
25.
What Cisco IOS command will enable a SSH client session with the username cisco,
encryption 3DES, and target IP address 10.1.1.1/24?
Answer: a. Simon#ssh c 3des l cisco 10.1.1.1
The Cisco IOS SSH client command syntax is
ssh [-l userid] [-c {d
des | 3des}] [-o numberofpasswordprompts n] [-p portnum]
{ipaddr | hostname} [command]
26.
SSH provides a security mechanism but lacks one certain feature. What feature is that?
Answer: c. Each transmission requires authentication
SSH provides a secure private channel for all messages. The end client to server is fact
authenticated and an integrity check is made. The only limiting factor is that not every
individual transmission is authenticatedjust the initial request after a simple handshake
using a secret key for data encryption.
580
27.
What protocol allows network administrators to monitor IDS sensors and what two protocols
can be used?
Answer: a. RDEP and HTTP/SSL
Remote Data Exchange Protocol (RDEP) allows the operator to monitor the network IDS
sensors in place and communicate via a protocol named RDEP. RDEP uses HTTP and SSL
to pass Extensible Markup Language (XML) documents over an encrypted session, between
the sensor and the external system. If the session is encrypted, then only SSL can be used.
Q&A
1.
According to RFC 1700, what is the well-known TCP/UDP port used by DNS?
Answer: RFC 1700 denes the well-known ports for the whole TCP/IP protocol suite. For
DNS, the well-known port for TCP/UDP is number 53. Typically, however, applications
today deploy UDP port 53 only.
2.
3.
What is the correct Cisco IOS syntax to specify local host mapping on a Cisco router?
Answer: Local host mappings to IP addresses are accomplished using the following Cisco
IOS command:
ip host name [tcp-port-number] ip-address1 [ip-address2...ip-address8]
5.
Chapter 2
6.
581
7.
What well-known ports do Secure Sockets Layer (SSL) and Secure Shell (SSH) use?
Answer: SSL uses well-known port number 443. Secure Shell uses well-known TCP port 22.
8.
Dene SNMP and give an example of how SNMP traps can be used to identify problems with
Cisco IOS routers.
Answer: Simple Network Management Protocol (SNMP) is an application layer protocol
that is used to manage IP devices. SNMP is part of the TCP/IP application layer suite. SNMP
enables network administrators to view and change network parameters and monitor
connections locally and remotely. Cisco routers can be congured to send SNMP traps to
network management system stations to alert administrators. For example, SNMP traps may
indicate a router with low memory or high CPU usage.
9.
10.
11.
Which TCP/UDP port numbers are dened for use by the Network Time Protocol (NTP)?
Answer: NTP can use TCP and UDP port number 123. UDP is common in todays networks.
12.
When dening a stratum value on a Cisco router, what is the range and what value is closest
to an atomic clock?
Answer: The stratum value ranges from 1 to 15. The value 1 represents an atomic clock,
which is the most accurate clock available. The default stratum value on Cisco routers is 8.
13.
582
14.
What is the difference between an SNMP inform request and an SNMP trap?
Answer: The major difference between a trap and an inform request is that an SNMP agent
(when ending a trap) has no way of knowing if an SNMP trap was received by the SNMP
manager. On the other hand, an SNMP inform request packet is sent continually until the
sending SNMP manager receives an SNMP acknowledgment.
15.
16.
What is the SNMP read-write community string for the following router conguration?
snmp-server community simon ro
snmp-server community Simon rw
Answer: The read-write community string is set to Simon. The read-only community
attribute is set to simon. The community string is case sensitive.
17.
Before you can TFTP a le from a Cisco router to a UNIX- or Windows-based system, what
is the rst step you must take after enabling the TFTP server daemon on either platform?
Answer: On a UNIX server where the TFTP server daemon is installed, the le to be copied
must have the appropriate access rights. In UNIX, the touch command allows a TFTP
request. In other words, to copy a le from a Cisco IOS router to a UNIX host, the le must
already exist on the host. For a Windows-based platform, the software must be congured to
permit le creation on the Windows-based le system. Typically, however, the applications
do not have le access rights as UNIX does.
18.
What Cisco IOS command can be implemented to restrict SNMP access to certain networks
by applying access-lists? Can you apply standard, extended, or both to these access lists?
Answer: The Cisco IOS command is as follows:
snmp-server community string [view view-name] [ro |rw ] [number]
You can only apply a standard access list with this command.
number refers to a standard access list, ranging from 1 to 99 only, that denes the remote hosts
or subnets that are permitted SNMP access. The correct SNMP community string must also
be correctly congured on the SNMP manger and agent to allow SNMP communication.
Chapter 2
19.
583
20.
Can you use your Internet browser to congure a Cisco router? If so, how?
Answer: Yes. To view the routers home page, use a web browser pointed to http://a.b.c.d,
where a.b.c.d is the IP address of your router or access server. If a name has been set, use
http://router-name, and use the DNS server to resolve the IP address.
To enable HTTP on a Cisco router, use the Cisco IOS command ip http in global
conguration mode.
21.
Suppose that a network administrator denes a Cisco router to allow HTTP requests but
forgets to add the authentication commands. What is the default username and password
pairing that allows HTTP requests on the default TCP port 80? Can you predene another
TCP port for HTTP access other than port 80?
Answer: By default Cisco IOS routers congured for HTTP access use the routers local host
name as the username and use the enable or secret password as the password.
The Cisco IOS command ip http [0-65535] allows the network administrator to dene a port
number other than 80, which is the default setting.
22.
What are the four steps to enable Cisco IOS SSH for a SSH server?
Answer: The following are the four steps required to enable SSH support on a Cisco IOS
router:
1. Congure the hostname command.
2. Congure the DNS domain.
3. Generate the public RSA key to be used.
4. Enable SSH transport support for the vtys. SSH transport is enabled by default. A
username/password pair should be enabled locally or on a AAA server to enable users to
actually gain SSH access to the router. Remember, SSH is not new; it is simply that Cisco
IOS now supports SSH access. Cisco IOS SSH is Cisco marketing terminology only and
not a new feature. SSH has been around for years.
584
Chapter 3
Do I Know This Already?
1.
2.
The network administrator has forgotten the enable password, and all passwords are
encrypted. What should the network administrator do to recover the password without losing
the current conguration?
Answer: c. Reboot the router, press the Break key after the reload, and enter ROM mode and
change the conguration register.
3.
Answer: b. Simon.
4.
If the conguration register is set to 0x2101, where is the IOS image booted from?
Answer: d. ROM
5.
What IOS command will copy the running conguration to a TFTP server?
Answer: c. copy running-cong tftp
6.
What debug command allows an administrator to debug only packets from the network
131.108.0.0/16?
Answer: d.
debug ip packet 1
access-list 1 permit 131.108.0.0 0.0.255.255
7.
After entering debug ip packet, no messages appear on your Telnet session. What is the likely
cause?
Answer: c. The terminal monitor command is required.
8.
To change the conguration register to 0x2141, what is the correct IOS command?
Answer: e. cong-register 0x2141
9.
Chapter 3
10.
585
11.
When a Telnet user tries to establish a remote Telnet session to this router, what will happen?
Answer: b. The Telnet user will enter EXEC mode immediately.
13.
0 1
cisco
2 4
ciSco
When a third Telnet session is established to a remote router with the preceding conguration,
what will happen?
Answer: b. You will be prompted for the login password, which is set to ciSco.
14.
Which of the following access lists will deny any IP packets sourced from network
131.108.1.0/24 and destined for network 131.108.2.0/24 and permit all other IP-based trafc?
Answer: d.
access-list 100 deny ip 131.108.1.0 0.0.0.255 131.108.2.0 0.0.0.255
access-list 100 permit ip any any
15.
Which of the following secure protocols are available to manage Cisco IOS software?
(Choose the best three answers.)
Answers: b. SSH
c. HTTPS
e. IPSec-ESP
586
16.
What types of attacks can intruders use to enable them to attack VLANs on a Layer 2 switched
network?
Answer: f. All of these
17.
18.
19.
20.
21.
When preparing a security policy, what are the three core requirements?
Answers: b. Create acceptable-usage policy statements.
c. Conduct a risk analysis.
d. Establish a security team structure.
22.
An administrator notices a routers CPU utilization has jumped from 2 percent to 100 percent,
and that a CCIE engineer was debugging. What IOS command can the network administrator
enter to stop all debugging output to the console and vty lines without affecting users on the
connected router?
Answer: b. undebug all
Q&A
1.
2.
Chapter 3
3.
587
Answer: The IOS command to display the System Flash is show ash.
4.
What conguration register enables a Cisco router to ignore the startup conguration?
Answer: 0x2142 sets the IOS image to ignore the conguration stored in NVRAM; typically,
this conguration register is used for password recovery.
5.
To copy the startup conguration to the running conguration, what IOS command or
commands are used?
Answer: The copy startup-cong running-cong command is used to copy the startup
conguration to the running conguration.
6.
What is the range for standard access lists and for extended IP access lists on Cisco IOS
routers?
Answer: Standard IP access lists range from 1 through 99 and 1300 through 1999. Extended
access lists range from 100 through 199 and 2000 through 2699.
7.
8.
How do you disable all debug commands currently enabled on a Cisco router, assuming you
are not sure what debug commands are enabled?
Answer: You use the undebug all (or u all in shorthand) command to disable all debug
commands currently enabled. You can also use the [no] debug specic-debug-enabled
commands for each specic debug that has been enabled. To quickly disable all debug
commands, undebug all is typically used.
9.
What must you be very careful of when enabling any form of debugging on a Cisco router?
Answer: You should make the debug command as specic as possible and ensure that you
enable the output to the console (if disabled) and vty lines with the IOS command terminal
monitor; this command is entered in privileged EXEC mode only. By default, Cisco IOS
sends all debug output to the console port.
588
The CPU on Cisco routers gives the highest priority to debugging output. For this reason,
debugging commands should be turned on only for troubleshooting specic problems or
during troubleshooting sessions with technical support personnel. Excessive debugging
output can render the router inoperable.
Try to use the most specic debug command possible, to reduce the load on the CPU.
10.
What are the required steps when performing password recovery on a Cisco router?
Answer: The password recovery steps are as follows:
Step
Description
Press the Break key (for Windows 2000, press Control-Break) to enter into boot ROM
mode. The Control-Break key sequence must be entered within 60 seconds of the router
restarting after a power cycle. Other terminal applications will have their own sequence, so
make sure that you consult the help les.
After you are in ROM mode, change the conguration register value to ignore the startup
conguration le that is stored in NVRAM. Use the o/r 0x2142 command (2500 series
routers). For Cisco IOS 12.2T (2600 models and higher) or later, the command is confreg
0x2142.
After the router has nished booting up (you will be prompted to enter the setup dialog
answer no or press Control-c to abort the setup dialog) without its startup conguration,
look at the show startup-cong command output. If the password is encrypted, move to
Step 6, which requires you to enter enabled mode (type enable and you will not be
required to enter any password) and copy the startup conguration to the running
conguration with the copy startup-cong running-cong command. Then, change the
password. If the password is not encrypted and the enable secret command is not used,
simply document the plain-text password and go to Step 8.
Because the router currently has no conguration in RAM, you can enter enabled mode by
simply typing enable (no password is required). Copy the startup conguration to RAM
with the IOS command copy startup-cong running-cong.
Change the conguration register to 0x2102 (default) with the global IOS command
cong-register 0x2102. Note that this IOS command is automatically saved and there is
no need to write changes to NVRAM when modifying the conguration register even
though the IOS will prompt you to save when you do perform a reload.
After saving the conguration, you can optionally reload the router.
10
Check the new password if it is not encrypted. If the password is encrypted, simply enter
enabled mode and verify your password.
Chapter 3
11.
589
Answer: Passwords are case sensitive, so the password is CiscO. If the secret password was
set, you would not be able to read the password in clear text because Cisco IOS hashes the
password using the MD5 encryption algorithm, as in the following example:
enable secret 5 $1$Aiy2$GGSCYdG57PdRiNg/.D.XI.
13.
14.
VLAN hopping
DHCP starvation
What IOS command enables port security for the interface FastEthernet0/1? The MAC
address of the end station is 00-DE-AD-CC-EE-00. Ensure that the port is shut down if a
violation occurs for more than one MAC address.
Answer: The following IOS congurations are required:
interface fastethernet0/1
Router(config)#i
Router(config-if)# switchport port-security
Router(config-if)# switchport port-security maximum 1
Router(config-if)# switchport port-security violation shutdown
Router(config-if)# switchport port-security MAC-address 00-DE-AD-CC-EE-00
15.
590
16.
Prior to implementing a security policy, what three common steps should you accomplish?
Answer: Prior to implementing a security policy, you must do the following:
Create usage policy statementsOutline user roles and functions within the
organization.
Conduct a risk analysisIdentify the risks to your current network, resources, and data
devices.
Chapter 4
Do I Know This Already?
1.
What are the three components of AAA? (Choose the best three answers.)
Answer: AAA is used for authentication, authorization, and accounting.
2.
a.
Accounting
b.
Authorization
c.
Authentication
What Cisco IOS command must be issued to start AAA on a Cisco router?
Answer: The aaa new-model command starts AAA.
d.
3.
aaa new-model
4.
Can you congure RADIUS and TACACS+ to be used on the same router?
Answer: d. Yes, provided you have different list names applied to different interfaces.
You cannot apply the same list names and interfaces must be different.
Chapter 4
5.
591
How do you launch ACS remotely to a Windows 2000 device? (The remote IP address is
10.1.1.1 and the client is Internet Explorer.)
Answer: c. Type 10.1.1.1:2002.
You can manage a remote ACS server on port 2002.
6.
What RADIUS attribute is used by vendors and not predened by RFC 2138?
Answer: f. 26
Attribute 26 is a vendor-specic attribute. Cisco uses vendor ID 9.
7.
8.
When a RADIUS server identies the wrong password entered by the remote user, what
packet type is sent?
Answer: f. ACCESS-REJECT
RADIUS sends an access-reject error if the password entered is invalid.
9.
10.
What is the RADIUS key for the following conguration? If this conguration is not valid,
why isnt it? (Assume that this conguration is pasted into Notepad and not on an active
router.)
aaa authentication login use-radius group radius local
aaa authentication ppp user-radius if-needed group radius
aaa authorization exec default group radius
aaa authorization network default group radius
radius-server 3.3.3.3
radius-server key IlovemyMum
Answer: c. This conguration will not work because the command aaa new-model is
missing.
Because aaa new-model is not congured, this is not a valid conguration and no requests
will be sent to the RADIUS server.
592
11.
What versions of TACACS does Cisco IOS support? (Select the best three answers.)
Answers: a. TACACS+
b. TACACS
c. Extended TACACS
There is no Cisco Extended TACACS+ support.
13.
14.
What is the predened RADIUS server key for the following conguration?
radius-server host 3.3.3.3
radius-server key CCIEsrock
Answer: e. CCIEsrock
The key is case sensitive and is dened by the IOS command radius-server key CCIEsrock.
15.
Chapter 4
16.
593
17.
18.
What is the number of bits used with a standard DES encryption key?
Answer: a. 56 bits
DES applies a 56-bit key. The documented time taken to discover the 56-bit key is 7 hours on
a Pentium III computer, so DES is not a common encryption algorithm used in todays
networks.
19.
20.
In IPSec, what encapsulation protocol encrypts only the data and not the IP header?
Answer: a. ESP
ESP encrypts only the data, not the IP header.
21.
22.
594
23.
24.
25.
26.
27.
Certicate Enrollment Protocol (CEP) runs over what TCP port number? (Choose the best
two answers.)
Answers: a. Same as HTTP
b. Port 80
CEP uses the same port as HTTP, port 80.
28.
Which of the following are new features aimed at increasing wireless security? (Choose the
best four answers.)
Answers: a. TKIP
c. EAP
d. PEAP
e. MIC
Extensible Authentication Protocol (EAP), Protected EAP (PEAP), Message Integrity Check
(MIC), and Temporal Key Integrity Protocol (TKIP) are new features aimed at increasing
wireless security.
Chapter 4
595
EAP, along with PEAP, enables the dynamic selection of the authentication mechanism at
authentication time based on information transmitted in THE ACCESS-REQUEST. PPP also
supports EAP during the link establishment phase.
TKIP defends against an attack on WEP in which the intruder uses an unencrypted segment
called the initialization vector (IV) in encrypted packets to calculate the WEP key.
MIC is applied to detect forgeries such as bit ipping and altering packet source and
destination.
Q&A
1.
Dene the AAA model and a typical application on a Cisco IOS router.
Answer: Authentication, authorization, and accounting (pronounced triple A) provides
security to Cisco IOS routers and network devices beyond the simple user authentication
available on IOS devices.
AAA provides a method to identify which users are logged into a router and each users
authority level. AAA also provides the capability to monitor user activity and provide
accounting information.
Typically, AAA is used to authenticate and authorize Cisco IOS commands, and provides
accounting information to the network administrator.
2.
Can you allow a remote user authorization before the user is authenticated with AAA?
Answer: Before authorization occurs, the remote user must be authenticated. Cisco IOS
routers allow you to congure AAA authorization, but no access will be permitted until the
remote user is authenticated.
3.
What IOS command is required when enabling AAA for the rst time?
Answer: aaa new-model must be entered globally before additional IOS commands are
entered.
4.
What is the privilege level of the following user? Assume AAA is not congured.
R2>
Answer: The privilege level ranges from 0 to 15 (the higher the level, the more commands
are available). Because the user is not in PRIV EXEC mode, the default privilege level for an
EXEC user is 1. Only basic show commands are available in privilege level 1.
show priv
R2>s
Current privilege level is 1
596
5.
Dene four possible RADIUS responses when authenticating the user through a RADIUS
server.
Answer: The four possible responses are as follows:
6.
Attribute Type 2Password (denes the password; passwords are encrypted using
MD5)
Attribute Type 4NAS IP address (denes the NAS servers IP address; only used in
access-request packets)
Attribute Type 5NAS port (not UDP port number; indicates that the NASs physical
port number ranges from 0 to 65535)
Chapter 4
7.
597
What protocols does RADIUS use when sending messages between the server and client?
Answer: RADIUS transports through UDP destination port number 1812/1813.
8.
What predened destination UDP port number is RADIUS accounting information sent to?
Answer: UDP port 1813 (legacy 1646). For RADIUS accounting is 1813.
9.
What does the following Cisco IOS software command accomplish on a Cisco IOS router?
aaa authentication ppp user-radius if-needed group radius
Answer: The aaa authentication ppp user-radius if-needed group radius command
congures the Cisco IOS software to use RADIUS authentication for lines using PPP with
CHAP or PAP, if the user has not already been authenticated. If the EXEC facility has
authenticated the user, RADIUS authentication is not performed. User-radius is the name of
the method list that denes RADIUS as the if-needed authentication method.
10.
What is the RADIUS server IP address and key for the following conguration?
radius-server host 3.3.3.3
radius-server key GuitarsrocKthisplaneT
Answer: The radius-server host command denes the RADIUS server hosts IP address.
The IP address is 3.3.3.3.
The radius-server key command denes the shared secret text string between the NAS and
the RADIUS server host. The key is case sensitive, like all passwords on Cisco IOS devices,
so the key is dened as GuitarsrocKthisplaneT.
598
11.
12.
13.
What are the four possible packet types from a TACACS+ server when a user attempts to
authenticate a Telnet session to a Cisco router congured for AAA, for example?
Answer: The four packets types are as follows:
14.
ACCEPTThe user is authenticated and service can begin. If the NAS is congured to
require authorization, authorization begins at this time.
REJECTThe user has failed to authenticate. The user may be denied further access or
may be prompted to retry the login sequence, depending on the TACACS+ daemon.
ERRORAn error occurred at some time during authentication. This can be either at
the daemon or in the network connection between the daemon and the NAS. If an
ERROR response is received, the NAS typically tries to use an alternative method for
authenticating the user.
What is the signicance of the sequence number in the TACACS+ frame format?
Answer: The sequence number is the number of the current packet ow for the current
session. The sequence number starts with 1 and each subsequent packet increments by one.
The client sends only odd numbers. TACACS+ servers send only even numbers.
15.
Answer: The aaa authentication command denes a method list, default, to be used on
serial interfaces running PPP. The keyword default means that PPP authentication is applied
by default to all interfaces. The if-needed keyword means that if the user has already authenticated through the EXEC login procedure, PPP authentication is not necessary and can be
skipped. If authentication is needed, the keyword group tacacs+ means that authentication
will be done through TACACS+. If TACACS+ returns an ERROR during authentication, the
keyword local indicates that authentication will be attempted using the local database on the
NAS.
Chapter 4
16.
599
17.
18.
RADIUS
TACACS+
Packet delivery
UDP
TCP
Packet encryption
AAA support
Multiprotocol
support
None.
Router
management
What are the three most common threats from intruders that network administrators face?
Answer: The most common attacks are as follows:
19.
Theft of dataWhen intruders use sniffers, for example, to capture data over the
network and steal that information for later use.
600
20.
21.
Transport modeProtects payload of the original IP datagram; typically used for endto-end sessions.
22.
Chapter 5
Do I Know This Already?
1.
2.
Cisco Secure ACS supports what two security protocols? (Choose the best two answers.)
Answers: a. RADIUS
c. TACACS+
Cisco Secure ACS supports RADIUS and TACACS+ (Cisco intellectual property).
3.
Chapter 5
4.
601
5.
6.
All but which of the following is a Cisco VPN model currently supported by Cisco?
Answer: a. 3001
The VPN 3001 was never a valid model number from Cisco.
7.
All but which of the following is part of the Cisco SAFE Blueprint for IDS tuning?
Answer: g. Remove the PIX Firewall.
Removing the PIX Firewall is not part of the IDS tuning strategy.
8.
What application layer protocol does a security manager use when using the Cisco Security
Device Manager (SDM) application?
Answer: d. SSL
SDM connects to devices through Secure Sockets Layer (SSL) and SSHv2 (in SDM version
2.0), which are secure and encrypted.
9.
What is the default username and password combination for a Catalyst 6500 ISDM-2
module(not the IDS 4.0)?
Answer: d. cisco/cisco
The default username and password are both set to cisco.
10.
What is the default username and password combination for a VPN 3000 Concentrator?
Answer: b. admin/admin
The default username and password combination for the VPN 3000 Concentrator is admin/
admin.
602
Q&A
1.
Dene the terms Cisco Secure IDS Sensor and IDS Device Manager and explain their uses.
Answer: Cisco Secure IDS has two components:
2.
Cisco Secure IDS SensorHigh-speed device that analyzes the content of data being
transported across a network and determines whether that trafc is authorized or
unauthorized. Unauthorized trafc includes ping requests from intruders. Trafc that is
detected from unauthorized sources is sent directly to the Cisco IDS Device Manager,
and the intruder is removed from the network (optional and set by network
administrator).
3.
What is the default username and password combination for a Cisco IDSM?
Answer: The default username and password combination for a Cisco IDSM is cisco/cisco.
4.
What is the default username and password combination for a Cisco VPN 3000 Concentrator?
Answer: The default username and password combination for a Cisco VPN 3000
Concentrator is admin/admin.
5.
What are three typical forms of attacks that are committed by unauthorized individuals?
Answer: The three forms of common attacks are:
6.
Reconnaissance attacks
Access attacks
Chapter 6
603
Chapter 6
Do I Know This Already?
1.
2.
When dening an extended access list, what TCP port numbers can you use?
Answer: c. 0 to 65,535
TCP port numbers from 0 to 65,535 can be used when dening an extended access list;
devices such as PCs go from 1023 to 65535.
3.
When dening an extended access list, what UDP port numbers can you use?
Answer: c. 0 to 65,535
UDP port numbers from 0 to 65,535 can be used when dening an extended access list.
4.
5.
6.
About how many translations does PAT (for a PIX Firewall) allow you to use for one IP
address?
Answer: b. 64,000
Port Address Translation (PAT) occurs when the local port number is modied, allowing more
than one host the ability to share one public address, for example. The port number in a TCP
frame can be numbered from 0 to 65,535, so 64,000 is closest to the actual number of allowed
translations.
604
7.
8.
9.
10.
11.
12.
When will the command overload, applied to NAT congurations, possibly break a network
application?
Answer: e. With some multimedia applications
NAT does not work well with some multimedia applications that send local and remote port
details in the data stream.
13.
Chapter 6
14.
605
What is the main advantage of using NAT on a rewall or Cisco IOS router?
Answer: b. Enables RFC 1918based privately dened IP addresses to be congured and
enables access to the Internet
The primary reason to use NAT is for Internet access and to hide internal IP addresses. RFC
1918 is based on privately dened IP addresses and enables access to the Internet by using
NAT/PAT. It can also be used when one organization is merged with another in case the IP
subnet address space is the same.
15.
When using the IOS NAT overload command, how many inside sessions can be translated?
Answer: c. 64,000
16.
What IOS command denes a pool of IP addresses for Network Address Translation (NAT)?
Answer: c. ip nat pool
To dene a pool of IP addresses for NAT, use the ip nat pool command in global conguration
mode. The ip nat pool command denes the actual registered IP addresses.
17.
18.
To dene how a PIX will route IP data, what is the correct syntax for a PIX?
Answer: b. route
A PIX can run RIP or be congured for static routing; a default route is typically required so
that end-user data can be sent to the Internet, for example.
19.
If you congure NAT on an Cisco IOS router, what command is used to enable PAT?
Answer: d. overload
The overload command enables the router to use one global address for many local addresses.
When overloading is congured, the TCP or UDP port number of each inside host
distinguishes between the multiple conversations using the same local IP address.
20.
Cisco IOSbased NAT provides all of the following functions except one; which one?
Answer: b. It can be traced or viewed by an outside address
Cisco IOSbased NAT does not permit an inside host to be traced from an Internet or outside
address.
606
22.
What extended IP access list will prevent the internal subnet 10.0.0.0/8 from being spoofed
on a Cisco IOSenabled router? (Assume permit statements are applied to allow legitimate
trafc.)
Answer: d. access-list 100 ip deny 10.0.0.0 0.0.0.255 0.0.0.0 any
The correct command to deny the 10.0.0.0/8 is access-list 100 ip deny 10.0.0.0 0.0.0.255
0.0.0.0 any. Of course, you must also apply the ACL to the interface.
23.
24.
25.
26.
To create a simple VPN tunnel (unencrypted) between two sites, what must you do on a Cisco
router?
Answer: a. Create a GRE tunnel
A simple VPN tunnel requires a generic routing encapsulation (GRE) tunnel between two
Cisco routers.
Chapter 6
27.
607
PIX Firewall software version 6.3 can support which of the following routing protocols?
(Choose the best three answers.)
Answers: b. OSPF
c. RIP version 1
d. RIP version 2
PIX Firewall software version 6.3 is now capable of supporting RIP versions 1 and 2 along
with OSPF.
28.
To support OSPF on a PIX Firewall version 6.3capable rewall, what additional OSPF
authentication mechanisms are possible? (Choose the best two answers.)
Answers: a. MD5
c. Password
OSPF can be tightened with secure options by enabling MD5 password authentications.
OSPF will not become an adjacent neighbor with a device congured in the wrong area, but
this cannot be regarded as an authentication mechanism. However, this can be viewed as a
light security option as well. This is a very tricky question. RADIUS and the two other
security application protocols cannot be used to secure OSPF.
29.
30.
What PIX command is used on a PIX Firewall to view address mappings when NAT is
enabled?
Answer: d. show xlate
31.
If a PIX Firewall is congured without a conduit or an access list, data from the inside
interface is dropped. In effect, the PIX Firewall is acting like which of the following? (Select
the best two answers.)
Answers: d. Bit bucket
e. Black hole router
If there are no conduits/access lists, then any data from the outside interface will be dropped
or thrown away, resulting in the PIX Firewall acting as a bit bucket or black hole router. A bit
bucket is commonly referred to as a router throwing out bits or bytes. A black hole router is
the same thing!
608
32.
After viewing the PIX syslog with the command show logging, the following output is
discovered:
14:25:02 10.1.1.1 : %PIX-7-7100006: TCP request discarded from 6.3.62.119/57000
to inside:10.1.1.1/www
Assuming the inside interface on the PIX is congured for the IP address 10.1.1.1/24, which
of the following answers best describes what might be going on in the network?
Answer: c. A host on the inside has launched a denial of service (DoS) attack generating
random source addresses aimed at the PIX inside interface.
Severity level 7 is a debug message, and this particular message indicates an inside host is
launching a random DoS attack aimed at the inside interface 10.1.1.1 using HTTP or the
World Wide Web.
33.
Which of the following statements best describes Cisco Threat Response (CTR)?
Answer: a. CTR reads IDS alarms and performs automated forensics on hosts or servers that
may have been compromised.
Cisco Threat Response technology provides an automated, just-in-time, around-the-clock,
real-time analysis of each targeted host to determine whether a compromise has occurred and
to determine how to address it quickly. Additionally, CTR reads IDS alarms and performs
automated tasks.
34.
35.
Which of the following describes the default rules a host version of the Cisco Security Agent
accomplishes? (Choose the best three answers.)
Answers: a. Prevents writing to the system directory.
b. Stops unauthorized systems from initiating network connections to the CSAprotected host.
e. Prevents updates to the system registry.
36.
Chapter 6
37.
609
38.
39.
How does anomaly-based intrusion detection recognize that a network attack is in progress?
Answer: b. The IDS normalizes network trafc and sends alarms when sampled trafc falls
out of that norm.
Anomaly-based IDS checks network trafc for patterns falling outside normal packet
structures.
Q&A
1.
2.
Typically the DMZ is a third interface on a rewall containing the inside and outside interface
also.
3.
Extended access lists lter the services of what two main transport layer protocols?
Answer: Extended access lists lter both TCP and UDP transport layer services.
610
4.
Ident
b.
FTP
c.
pop3
d.
pop2
e.
echo
Answer: Echo is part of the UDP protocol suite. Ident, FTP, and pop2/pop3 are TCP services.
5.
Name ve UDP services that can be ltered with an extended access list.
Answer: Cisco IOS can lter a number of UDP services, including the following:
discardDiscard (9)
echoEcho (7)
Chapter 6
6.
talkTalk (517)
timeTime (37)
611
7.
8.
What does the IOS command ip nat inside source list accomplish?
Answer: It denes the addresses that will be allowed to access the Internet. This command
enables NAT of the inside source addresses. The list keyword helps dene the access list to
be used for determining the source addresses.
9.
What are the four possible NAT translations on a Cisco IOS router?
Answer: The four NAT translation versions are as follows:
612
10.
How many connections can be translated with a PIX Firewall for the following RAM
congurations: 16 MB, 32 MB, and 256 MB?
Answer: You can support up to 7500 connections with 16 MB, 25,000 connections with 32
MB, and 280,000 connections with 256 MB.
11.
When the alias command is applied to a PIX Firewall, what does it accomplish?
Answer: The alias command translates one address into another, and is used for translating
unregistered IP addresses in a NAT environment. The PIX Firewall software version 6.2 and
above allows NAT of external source IP addresses for packets traveling from the outside
interface to the inside interface. All functionality available with traditional NAT, such as
xups, stateful failover, dynamic NAT, static NAT, and PAT, are available bidirectionally in
this release.
12.
What security features does the Cisco IOS Firewall feature set allow a network administrator
to accomplish?
Answer: The Cisco IOS Firewall feature set consists of the following:
13.
Context-based Access Control (CBAC)Provides to internal users secure, perapplication-based access control for all trafc across perimeters, such as between private
enterprise networks and the Internet.
DoS detection and preventionDefends and protects router resources against common
attacks, by checking packet headers and dropping suspicious packets.
Audit trailDetails transactions, recording time stamp, source host, destination host,
ports, duration, and total number of bytes transmitted.
14.
Chapter 6
613
16.
17.
PropagateCSA prevents mail clients from sending out e-mails to propagate the attack,
web connections, FTP, and infecting le shares.
ParalyzeCSA does not permit deletion or modication of les and prevents drilling
of security holes (opening new doors to provide an opening into your network or device).
Unauthorized 802.1XIf a client device does not support 802.1X authentication, the
port is left unauthorized.
802.1X enabledIf a client is enabled for 802.1X but the switch port is not congured
for 802.1X support, the client initiates but will not receive a reply. The client then sends
packets, assuming that the authorization was granted.
614
Chapter 7
Do I Know This Already?
1.
A remote user tries logging into a remote network but fails after three additional tries and is
disconnected. What useful information should the network administrator gather? (Select the
best two answers.)
Answers: b. Invalid password
c. Invalid username
The network administrator needs the invalid username (because it is not an allowable
username) and the invalid password used, to determine whether the intruder is using a textbased algorithm to generate usernames and passwords.
2.
If a remote user Telnets to a router but accidentally types the incorrect password or username,
which of the following events is not required by the security administrator in this
organization? (Select the best two answers.)
Answers: a. Invalid password
b. Invalid username
A security administrator does not want to receive details on valid users accidentally entering
incorrect passwords but rather is more concerned with access denied messages, authorization
failures, and authentication failures generated by the logon attempts of unauthorized users. A
large number of retries would also raise a concern for any security manager, for both valid
users and invalid users.
3.
What is the rst step that should be implemented in securing any network?
Answer: d. Dene a security policy.
The rst step in securing any network must be to dene the security policy.
4.
Chapter 7
615
establish a new connection, or is just an unauthorized packet. Note that stateful connections
not only apply to TCP but also t stateless rewalls that have the ability to check for the TCP
SYN/ACK bits. The established keyword on extended lists does just that, but ACLs on
routers are still considered stateless. DNS inquiries (UDP based, of course) are one of the
main reasons stateful rewalls are so popular. When a user makes an outgoing inquiry, the
stateless rewall can create a temporary incoming rule that allows DNS replies from the DNS
server being queried, to the user who made the request, on the ephemeral port that the user
chooses.
5.
What primary security method can be designed and deployed to secure and protect any IP
network after an attack has been documented?
Answer: c. Countermeasures
Countermeasures should be in place in every IP network. Examples of countermeasures are
to back up sensitive data and application software and apply all the required patches.
6.
A security administrator notices that a log le stored on a local router has increased in size
from 32 kb to 64 kb in a matter of seconds. What should the network administrator do?
Answer: c. Log the event as suspicious and notify the incident response team.
Any log le that increases (more data to view) or decreases (for example, cleared by the
intruder to hide his actions) should be regarded as suspicious activity.
7.
8.
Who can use network scanners and probes? (Select the best two answers.)
Answers: a. Intruders
b. Security managers
Network scanners are used by intruders just as network administrators use them.
9.
616
10.
11.
When an intruder sends a large amount of ICMP echo (ping) trafc using IP broadcasts, this
type of DoS attack is known as what?
Answer: d. Smurf
A Smurf attack sends a large amount of ICMP or ping requests via a broadcast address,
ensuring that all devices on the remote network respond and enabling the intruder to list the
IP address that is connected to the network for further DOS-based attacks.
12.
Assuming two devices are running IPSec over the Internet, what form of attack is likely to
compromise any data sent over the Internet?
Answer: d. Man-in-the-middle
The man-in-the-middle attack can manipulate routing tables and have data re-sent to the
wrong destination, thus compromising data. The end result is loss of data connectivity. All of
the answers can result in data loss, but man-in-the-middle attack is the most correct answer.
13.
What kind of attack sends a large number of ICMP echo request packets with the intent of
overowing the input buffers of the destination machine and causing it to crash?
Answer: a. Ping of death
A ping of death sends a large number of ICMP echo request packets, causing the end device
to overow and possibly causing a remote server to stop functioning for legitimate requests.
14.
15.
Chapter 7
16.
617
If a network manager believes that a host has been compromised on a router or host device
and wishes to have the Certicate Authority certicate revoked, how can the security team
accomplish this?
Answer: b. Contact the Certicate Authority administrator and be prepared to change the
secret password.
If the CA certicate has been compromised, because the CA entity issues digital certicates
and vouches for the binding between the data items in a certicate (for example, between a
router and a PC), the CA certicate must be invalidated and a new CA certicate must be
created. This is typically achieved by two administrators using a new secret password. The
security manager or administrator contacts the CA administrator and has it revoke the
certicate. A new public/private key pair is generated and then a new certicate is requested
based on the new keys. This allows the hosts to be secured once more.
17.
What is the best mechanism against sniffer-type programs that try to determine the network
passwords between hosts and clients? (Select at most three answers.)
Answers: b. IPSec
c. One-time passwords
d. Kerberos or SSH
Sniffer password programs are useless if IPSec is in use, because the data is completely
encrypted. One-time passwords ensure that even if an intruder does compromise the
password, it will be invalid because it can be used only once. Finally, SSH and Kerberos are
secure protocols and do not send data as clear text, as do applications such as Telnet and POP
e-mail. One aspect of this exams blueprint is that even though Kerberos is removed, it may
still appear on the exam.
18.
618
19.
Which of the following are traditional defense-in-depth security options? (Select the best two
answers.)
Answers: d. Use of authentication
e. Implementing a perimeter defense
Traditional defense-in-depth security measures typically include the use of authentication and
perimeter defenses such as rewalls and routers with Cisco IOSbased security measures in
place.
20.
To stop spam e-mail from overwhelming an e-mail server, what step can you take?
Answer: c. Install an intrusion detection system that has a signature for spam e-mail.
Spam e-mail can be controlled with an IDS server.
21.
22.
Interface
E0
Cable4/0
E0
E0
E0
What address do you suspect might be involved in launching an attack of some form? (Select
the best two answers.)
Answers: b. 10.1.30.106
c. 10.1.30.108
In the Age column in the show arp output, anything locally connected to the router is
indicated with the . The two entries 10.1.30.106 and 10.1.30.108 are not locally connected
devices, and the Age time set to such a high number of minutes indicates a high level of
activity that should be considered suspicious.
Chapter 7
23.
619
Which of the following describes an attack that falsies a broadcast ICMP echo request and
may include a primary and secondary victim?
Answer: e. A smurf attack
A smurf attack is one in which an intruder sends to an IP broadcast address (or addresses) a
large number of ICMP echo (ping) requests, all of which have a victims spoofed source
address.
24.
What are the common drawbacks of antivirus software such as Norton AntiVirus? (Select the
best two answers.)
Answers: a. The software is difcult to keep up to date when new viruses are released.
d. Attackers frequently re-code their programs to bypass antivirus systems.
Antivirus software is still a rst form of defense but lacks basic update capability when new
worms are created and cannot be easily reprogrammed when new forms of viruses are
released by attackers.
Q&A
1.
2.
Outside/inside intrudersThere are always internal and external people who want to
exploit network resources and retrieve sensitive data.
What is the function of the CERT/CC organization, and what are its primary objectives?
Answer: The CERT Coordination Center (CERT/CC) is a center of Internet security
expertise, located at the Software Engineering Institute, a U.S. federally-funded research and
development center operated by Carnegie Mellon University. CERT/CC provides information
that helps you to protect your networks from potential problems, react to current problems,
and predict and prepare for future problems. Its work involves handling computer security
incidents and vulnerabilities, publishing security alerts, researching long-term changes in
networked systems, developing security information, and even providing training to help you
620
improve security. CERT/CC does not concern itself with the identity and location of the
intruder, but instead tries to restore and prevent similar attacks in the future. CERT/CC is
regarded as the industry leader in security concerns.
3.
Description
Determine the magnitude of the incident (hosts affected and how many).
Assess the damage (for example, determine if public servers have been modied).
Step
Description
Restore congurations.
10
11
12
13
Test functionality.
14
15
16
17
Answer: The CCIE Security candidate is not expected to memorize these tasks but should
have knowledge of the general points considered when an incident report is complied.
Chapter 7
4.
621
5.
Session hijackingThe intruder denes himself with a valid IP address after a session
has been established to the real IP address, by spoong IP packets and manipulating the
sequence number in an IP packet.
ReroutingPackets from one source are routed to an intruder source. Routing updates
are altered to send IP packets to an incorrect destination, allowing the intruder to read and
use the IP data inappropriately.
Malicious code.
6.
7.
8.
622
9.
10.
11.
What does the following Cisco IOS code accomplish on a Cisco IOS router?
no service udp-small-servers
no service tcp-small-servers
Answer: These commands disable the minor TCP/UDP servers. When the minor TCP/UDP
servers are disabled, access to the Echo, Discard, Chargen, and Daytime ports causes the
Cisco IOS software to send a TCP Reset packet (only with the tcp-small-servers command)
to the sender and discard the original incoming packet. When these commands are entered in
global conguration mode, they do not display when you view the conguration (show
running-cong or write terminal) because the default is to disable TCP/UDP small servers.
Unlike Cisco switches, Cisco IOS software does not display default conguration.
12.
What is the secret password for the following Cisco IOS conguration?
enable secret %$@$%&^$@*$^*@$^*
enable pass cisco
Answer: Secret passwords are encrypted using the MD5 hashing algorithm, so you cannot
decipher the secret password, which overrides the enable password.
13.
APPENDIX
A new CCIE Design lab is in the pipeline and will be a more innovative approach to testing by
Cisco in the future.
This discussion concentrates on the CCIE Security certication. The CCIE Security exam is one
that you should consider tackling, especially in todays climate of Internet rewall frailty and
demand for security experts.
626
NOTE
Four CCIE tracks have been retired: ISP Dial, SNA, Design (will be re-released in a new
format), and WAN Switching.
A 2-hour, computer-based written exam (#350-018) consisting of 100 questions. The pass
mark is approximately 70 percent, but varies according to statistics and could oat between
65 and 75 percent. This book is designed to help prepare you for this written exam.
An 8-hour lab exam. The passing score is set at 80 percent. Historically, the lab exam was a
full 2-day lab; that changed October 1, 2001. All CCIE lab exam versions are monitored
closely and adapted where necessary to conform to the CCIE program standards, which are
not publicly available. This book contains supplemental material intended to help you prepare
for the lab exam, but does not focus on it.
Security Protocols
Application Protocols
General Networking
Security Technologies
Security General
Cisco General
627
If you do not receive a passing score, compare your results with the table showing the CCIE
Security written exam blueprint in this books introduction to identify the areas you need to
concentrate on for your next attempt.
You will also be given the passing mark, your score, and your grade. The grade is either a pass or fail.
The exam is similar to other Cisco certication exams, albeit it is a little more difcult because it
has many more in-depth questions. You can view ve sample questions from the exam at the
following location:
http://www.cisco.com/en/US/learning/le3/ccie/security/sample_questions.html
The CCIE Security written exam requires test-taking skills that many of us learned in high school
or college. This section is a refresher for many and important for all.
The rst thing to focus on is time management during the test. The CCIE exam allows 120 minutes
to complete the test. You have 100 questions, so if you allow 1 minute per question and 20 minutes
to review your answers, you will be doing well.
Some questions require more time, so you can mark and skip them if you want and complete them
later. Be sure, before moving on to the next question, that the application on the testing device
permits a review of questions; Cisco can change this at any time.
Remember that a wrong answer incurs no extra penalty, so answer all the questions. Another
advantage of marking difcult questions and returning to them at the end is that often the answer
for a previously asked question will appear in a later question. I have also found that, at times, when
I cant remember an answer that I should know, my memory is later refreshed by another question.
Remember to just mark questions that you cant answer and come back to them at the end.
Read every question and all the possible answers carefully. The CCIE Security written exam has
many questions that are designed to be tricky, so they require careful examination of the syntax.
Many of the questions refer to exact commands required to implement a function on a router. It is
important to know the different syntax and to recognize small differences in commands. This book
has similarly formatted questions in each chapter and in the sample questions on the CD-ROM.
Go through these questions, study areas of weakness, and go through the questions again to ensure
your understanding of a subject.
Make sure you read every answer before choosing one. One answer might sound great; however,
another answer could be more correct than the rst. The fact that on these exams one answer can
be more or less correct than another is a concept you should keep in mind when taking any Cisco
628
exam. In addition, saying questions out loud or writing them down on your scrap paper might help
you understand the question easier than viewing it on a computer screen.
NOTE Occasionally, Cisco announces a beta trial for the written exams, and if you book the
test, you pay only a small fee compared to the standard fee of approximately U.S.$350. The
following link has more information:
http://www.cisco.com/en/US/learning/le3/ccie/announcements/index.html
Decoding Ambiguity
Cisco exams have a reputation for including questions that can be difcult to interpret, confusing,
or ambiguous. In my experience with numerous exams, consider this reputation to be completely
justied. The Cisco exams are deliberately tough.
The only way to beat Cisco at its own game is to be prepared. Youll discover that many exam
questions test your knowledge of things that are not directly related to the issue that a question
raises. This means that the answers you must choose fromeven incorrect onesare just as much
a part of the skill assessment as the question itself. If you dont know something about most
aspects of the CCIE Security written exam topics, you might not be able to eliminate obvious
wrong answers. In other words, the more you know about Cisco IOS Software and securing Cisco
internetworks, the easier it will be for you to tell a right answer from a wrong one.
Questions often give away their answers, but you have to be Sherlock Holmes to see the clues.
Often, subtle hints appear in the question text in such a way that they seem almost irrelevant to the
situation. You must realize that each question is a test unto itself, and you must inspect and
successfully navigate each question to pass the exam. Look for small clues, such as access list
modications, problem isolation specics (such as which layers of the OSI model are not
functioning correctly), and invalid Cisco IOS commands. Little things like these can point to the
right answer if properly understood; if missed, they can leave you facing a blind guess.
Another trick is to watch out for keywords, such as not or choose the best; these words will dene
the required answer. If you miss keywords, your answer will be correct in your mind but might not
be the correct answer. Read questions out loud or write them down to ensure that you identify
keywords and fully understand what the question is asking.
For questions requiring more than one answer, be sure to view how many answers are required and
remove the obvious choices before making your selection. These questions are frequently
ambiguous, and you need to be on your guard.
629
Another common difculty with certication exams is vocabulary. Be sure to brush up on the key
internetworking terms presented in this guide. You may also want to read through the Terms and
Acronyms on the following Cisco.com web page:
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ita/index.htm
The test questions appear in random order, and many elements or issues that receive mention in
one question might also crop up in other questions. It is not uncommon to nd that an incorrect
answer to one question is the correct answer to another, or vice versa. Take the time to read every
answer to each question, even if you recognize the correct answer to a question immediately.
Because you are taking a xed-length test, you can revisit any question as many times as you like.
If you are uncertain of the answer to a question, check the box that is provided to mark it for easy
return later on. You should also mark questions you think might offer information that you can use
to answer other questions. Candidates usually mark between 25 and 50 percent of the questions
on exams. The testing software is designed to let you mark every question if you choose; use this
framework to your advantage. Everything you want to see again should be marked; the testing
software can help you return to marked questions quickly and easily. Be sure to check out the latest
updates from Cisco, because policies like these can change; see the following URL for more details:
http://www.cisco.com/en/US/learning/le3/ccie/announcements/index.html
The best method to pass any Cisco written exam is to take a three-phase approach. In your rst
pass, go through each question and answer the questions that you are condent you know and
mark the remaining questions. After you complete the 100 questions, review all of your marked
questions.
On your second pass, survey more thoroughly the questions that you marked and begin to answer
them systematically and consistently. Try to eliminate the choices that are way off base and make
an educated guess for the remaining choices. Continue to mark and ignore the questions for which
you have no clue. On your third pass, attack the remaining questions; by then, you might be able
to make a more educated guess based on clues in the context of other questions you already
answered.
If you have time, you can go back and check all your answers. Experience has shown me that my
rst reaction to a question is typically the best choice unless I see a glaring mistake upon
reexamination.
630
as many times as you like until you are comfortable with the test format and your knowledge level.
Try to identify subject areas where you are weak and use this book and other resources to study
those areas more.
Give yourself 120 minutes to take the practice exam, keep yourself on the honor system, and dont
look at text in the book or jump ahead to the answer key. When your time is up or you nish the
questions, go back and review your correct and incorrect answers. You learn more by making
mistakes in a simulation than from the real exam, which provides little feedback on incorrect
answers. Study your incorrect answers very carefully. Practice the three-phase approach described
in the preceding section (or, if you have your own strategy, practice it a few times) before
attempting the real exam.
I have attempted to estimate the number of questions that are taken from each subject area to give
you an idea of where to focus the majority of your time. Each chapter contains a weighted number
of questions to match those on the exam, and similarly, the CD-ROM simulation exams are
weighted, as well. For example, approximately 50 percent of the CD-ROM questions are based on
Routing and Switching topics, and the remaining 50 percent are on Security topics, to mimic the
questions on the real exam. The percentage of questions you get for any topic will vary. The
passing score will also vary. If you concentrate on the questions and think clearly, you will not
need to worry about the passing score.
Knowing how to recognize correct answers is good, but understanding why incorrect answers are
wrong can be equally valuable.
I cannot stress enough how helpful getting hands-on experience with Cisco routers and switches
is to passing not only the written exam, but also the more difcult lab exam. Using a small test bed
with two Cisco routers and a PC is the best way to learn and reinforce your theoretical knowledge.
I strongly recommend it even for the written exam, which, in turn, aids your preparation for the
lab exam.
Cisco provides, with every shipment of Cisco hardware (for example a Cisco 3845 IOS router), a
Cisco Documentation CD with a wealth of information that you can implement on test equipment.
The documentation CD is a great study tool. It is provided for the laboratory exam, not the written
exam. Understanding how a protocol works is only half your goal; you need to appreciate how
Cisco routers and switches operate when a certain protocol is activated with Cisco IOS software.
Talk to all of your colleagues or friends who attempted the written exam and nd out what they
studied to help them. Of course, all who have taken the exam are bound by the nondisclosure
agreement, so you cannot share specic details about exam content, but you can share study tips
and habits.
631
You Passed!
Passing the CCIE Security exam means that you are ready to take the lab exam. Within 48 to 72
hours, Cisco will be notied of your result. There is no need to fax your result, as was previously
required. To set a lab exam date, visit the following Cisco.com page and select the location and
exam date you prefer:
http://www.cisco.com/en/US/learning/le3/ccie/security/scheduling_lab_exam.html
The lab exam is popular, and you might need to wait a month or more for an opening. Some
locations have a waiting list of 6 months or more. For example, the Sydney, Australia CCIE lab is
generally not fully booked, and you might get a seat at a time of your choice; in Brussels, Belgium,
you might need to wait 6 months. Make sure you agree to a testing date that you feel comfortable
with, and leave yourself plenty of time to study for the rigorous lab exam. After passing the written
test, you have 18 months to pass the lab exam, so, if necessary, you can study for a few months
632
before taking it. After each lab attempt, you have an additional 12 months to pass the lab, you can
have up to 3 years to pass the lab if you happen to fail the lab exam more than once. See http://
www.cisco.com/en/US/learning/le3/ccie/policies/index.html for more details.
You Failed
If you fail the CCIE Security written exam, dont worry about the result. You can still take
advantage of the situation. While the test is fresh in your mind, jot down problem areas on a
notepad (the sooner you make notes for yourself the better). Try to remember questions you felt
less comfortable with and study those areas before taking the exam again.
The CCIE Security written exam is not an easy exam to pass. In fact, this exam ranks among the
toughest networking exams in todays certication market. If you really want to be a CCIE, a rstattempt failure should not discourage you. A failed attempt should encourage you to invest in some
serious study time so that you can pass on your next attempt. A number of candidates have noted
that the second attempt is much easier than the rst. Remember that the reason Cisco Systems
makes the written exam hard is to ensure that you are fully prepared for the challenging lab exam.
Thats it for pointers. Next are some frequently asked questions about the written exam, followed
by some bonus information on the lab exam.
2.
3.
4.
633
5.
6.
7.
8.
9.
Passing the written exam is the easier part of the CCIE Security certication journey. For the lab
exam, your life needs to change dramatically, and you need to study on routers full time for at least
3 to 6 months. The good news is that the format of the lab exam has changed from 2 full days to
1 day. You are no longer required to troubleshoot a network (regarded as the true method to test a
634
CCIEs ability to restore a network back to full IP connectivity); you are now required to congure
more advanced features in a set number of Cisco IOS, PIX, and Catalyst devices. For example,
basic Frame Relay, VLAN, VTP, and ATM congurations are now precongured for the candidate.
This allows the examiners to test more advanced security features rather than basic routing and
switching congurations. This also differentiates from the content of the routing and switching lab.
For details on what is congured or precongured, visit http://www.cisco.com/en/US/learning/
le3/ccie/security/lab_exam_blueprint.html.
Upon entering the lab room, you will already have precongured router and switch host names
and IP addressing, and the enable password and login commands will be set on all devices to cisco.
After you pass the written exam, you are eligible to sit for the lab exam. You can book your lab
exam online as mentioned previously.
The lab exam contains the following devices:
Catalyst 3550 series switches running Cisco IOS Software Version 12.1EA
VPN concentrators
IDS sensors
Software versions are constantly updated. Be sure to verify revision levels at the following URL:
http://www.cisco.com/en/US/learning/le3/ccie/security/preparing_lab_exam.html
You should expect the CCIE lab exams to mirror the general deployment releases by Cisco.
635
Make sure you practice with and understand these devices. Practice conguring almost every
Cisco IOS feature and fully understand what each Cisco IOS command actually enables, rather
than just relying on limited experience with certain commands. Anyone can congure a Cisco
router, but the ability to understand the full consequence of any Cisco IOS command is crucial to
the CCIE Security lab exam.
2.
Beijing, PRC
Brussels, Belgium
Sydney, Australia
4.
5.
636
or bad. Candidates can receive free lab attempts for valid excuses or lab inconsistency and
human errors. For the price of U.S.$1250 plus taxes, you want to make sure you have been
given every opportunity to pass.
6.
7.
8.
9.
10.
11.
12.
637
Where can I nd out more about CCIE and the different certication tracks?
The following URL provides information about the CCIE tracks:
http://www.cisco.com/en/US/learning/le3/ccie/index.html
13.
14.
APPENDIX
640
The end goal of any CCIE lab is a working solution. However, you might be restricted in the way
in which you provide a working solution, as you discover in this sample CCIE R&S lab.
Candidates who prepare for the lab often ask me what is the best way to prepare. My answer to
them is to practice conguring every feature available, and then practice some more. Of course,
not every feature will be tested on the lab exam. You are encouraged to read the most up-to-date
information about Cisco exams and certications at
http://www.cisco.com/en/US/learning/le3/ccie/index.html
You must be able to provide a working solution quickly and adhere to the guidelines stated in the
question. A good analogy is a driving test; imagine youre asked to drive down a 100-mile road
that is perfectly straight, but instead of going down the road the way you think is best, a sign every
100 feet indicates an action you must take. The exam designer does not always ask for the best
solution or your favorite solution, but might ask you to solve the problem in a very specic way.
For this reason, you must have a broad knowledge of all Cisco IOS features. The lab exam is
designed to discover if you are capable of conguring more challenging and difcult scenarios.
The CCIE lab changed format on October 1, 2001. The lab changed from a 2-day lab to a 1-day
lab, which means that a candidate is no longer required to sit for a separate troubleshooting section
but must congure a network in 8 hours. One of the most critical skills in the new format is time
management. Troubleshooting is still regarded as a fundamental skill in todays most critical IP
networks.
The R&S lab contains the following hardware and Cisco IOS revisions:
Catalyst 3550 series switches running Cisco IOS Software Version 12.1EA
Cisco IOS Software Version 12.2T became eligible for testing on August 1, 2004
IPv6 features in 12.2T become eligible for testing on January 1, 2005. Expect to be tested only
lightly, though, on new advanced topics.
To ensure the maximum possiblity of success, endeavor to install 12.2T on all of your lab
routers and read the release notes on 12.2T, which can be found at the following URL:
http://www.cisco.com/en/US/products/sw/iosswrel/ps1839/
prod_release_notes_list.html
641
As the candidate, you should be aware of the new features in the Cisco IOS software, because
you may be asked to congure some of these new features in the lab.
NOTE Token Ring switching and legacy routing protocols, such as IPX and IGRP, are no
longer tested in the CCIE R&S lab exam. DLSw+ over Ethernet remains a core test topic.
For more details on the CCIE R&S lab content blueprint, visit:
http://www.cisco.com/en/US/learning/le3/ccie/rs/lab_exam_blueprint.html
Each task in this sample CCIE R&S lab examination includes a recommendation for the amount
of time that you should allocate to complete the task. This lab is designed to be completed within
8 hours. A designation of No Time in the section heading means that in the real CCIE lab, that
particular section has already been completed for you. For example, this sample lab asks you to
physically cable the network; no time allocation is provided because in the real CCIE lab, the
physical cabling is already completed for you.
This sample labs goal is a working IP network according to the set design criteria.
Figure C-1 displays the sample topology with nine Cisco IOS routers and the logical topology.
Figure C-1
E0
E0
R1
R2
S0
BRI0
S0
ISDN
S0
S1
ATM1/0
S1
Frame
Relay
E0
ATM
S0
S1
R6
E0
ISP2
S3
E0
ISP2
R8
R7
S1
R5
Frame
Relay
S2
R4
Frame
Relay
E0
S2
S0
S0
E0
S2
Frame
Relay
Frame
Relay
BRI0
S2
ISP1
R3
R9
642
Figure C-2 displays the Frame Relay connections between the Cisco routers.
Frame Relay DLCI Assignment
Figure C-2
R2
R3
S0
504
S0
333
504
503
503
R4
S0
803
S0
R7
S0
R8
S2
S2
S1
S1
506
505
S1
518
516
815
504
502
615
S1
S0
S0
R5
R6
R9 is a Catalyst 6509 switch with a Multilayer Switch Feature Card (MSFC) module
installed.
643
Table C-1
A Frame Relay switch connects all serial links between routers. Use only the indicated DLCIs
in Figure C-2 and disable Frame Relay inverse ARP for IP only.
Routers R1 and R4 are connected to an ISDN service with the switch type dened as basic5ess. R1 connects to number plan 0298017705 and R4 connects to number plan 0296307050.
Routers R1 through R9 are connected to the Catalyst Ethernet switch (Catalyst 6509 series
switch), according to Table C-1.
Ethernet Interface Connections to the 6509
Router
Catalyst Port
R1 Ethernet 0
3/1
R2 Ethernet 0
3/2
R3 Ethernet 0
3/3
R4 Ethernet 0
3/4
R5 Ethernet 0
3/5
R6 Ethernet 0
3/6
R7 Ethernet 0
3/7
R8 Ethernet 0
3/8
R9 Ethernet 0 (6509)
VLAN 6
644
Using VLAN_A, congure the management interface sc0 with the address 131.108.0.2/25. Ensure
that all devices in your network can Telnet to the switch even if R1 or R2 is down.
Make sure the switch is congured in the VTP domain Cisc0_vTp and the switch can create and
delete VLANs in the future.
For the connections to Routers R5 and R8, ensure that you have MAC-layer authentication
enabled, 802.1x.
Ensure that the switch never becomes the root bridge on VLAN_D.
Ensure that the switch has the best possible chance of becoming the root bridge in VLAN_E.
Set all the Ethernet ports to forward data immediately after a device is plugged in or activated.
Ensure that any IP phones installed or connected to Card 3 are supplied inline power.
Ensure that the switches get a clock source from R1 using NTP.
Make sure the only MAC address permitted to access the switch on port 3/23 is the MAC
address 2010-2010-2010 or 4000-0000-4000.
645
Warn all Telnet clients that any unauthorized access is not permitted by displaying a
warning message when any Telnet session is activated to the SC0 interface only.
If any ports become disabled because of hardware errors, ensure that the switch automatically
enables the affected ports after 10 minutes.
Model
Sub Status
1000BaseX Supervisor
15
no
48
10/100BaseTX Ethernet
WS-X6348-RJ-45
yes ok
1000BaseX Ethernet
WS-X6408-GBIC
no
Mod Module-Name
WS-X6K-SUP1A-2GE
yes ok
ok
ok
Serial-Num
SAD0413022N
15
SAD041501U6
SAD041501U6
SAD04270A8A
SAD03479837
Mod MAC-Address(es)
1
Hw
Fw
Sw
5.3(1)
5.5(4)
00-30-96-33-21-7c to 00-30-96-33-21-7d
00-d0-01-b0-4c-00 to 00-d0-01-b0-4f-ff
15
12.1(1)E,
12.1(1)E,
5.3(1)
5.5(4)
4.2(0.24)V 5.5(4)
Mod Sub-Type
Sub-Model
Sub-Serial
L3 Switching Engine
WS-F6K-PFC
SAD04150DYL 1.1
Sub-Hw
WS-F6K-VPWR
646
Using the information displayed in Example C-1, congure the MSFC for IP routing in VLAN 6
only using RIPv2 only.
Do not route between any other interfaces.
Use the Class B subnetted IP addresses 131.108.0.0 to 131.108.255.255 to design your network.
You must use this address space for all addresses unless specied in a particular question. Read
the entire task before designing your IP address space.
After your IP address space and IP routing is completed, it must be possible to reach all of your
routers and switches. Set the enable password for all routers and switches to cisco.
Congure IP addresses on your remaining interfaces.
Use a subnet with the least number of hosts for the ISDN link.
Use a 29-bit mask for all Frame Relay connections running classless IP routing protocols.
Use a 24-bit mask for all Frame Relay connections running classful IP routing protocols.
Assign each router a 24-bit subnet to be used by the loopback address. It must be possible to
ping and Telnet from any one router using the loopback address. This means that all loopback
addresses must be routable to every device within your network.
Congure local IP host addresses on each router so that an exec or privilege user can type the
router name to ping or Telnet without having to type the full IP address.
647
You have to use static maps for each protocol. No dynamic mapping is permitted.
Use the most efcient subnetwork for IP addresses on the Frame Relay cloud.
Use LMI-type Cisco only and do not rely on auto-sensing the LMI type on any routers. All
router interface types are DTE. The Frame Relay port type is DCE.
Do not use the keyword broadcast for the Frame Relay link between R6 and R7 when
mapping IP.
Make sure you can also ping the local interface from each router congured for Frame Relay.
One PVC is congured between your Router R9 and the remote ATM router. Your end of the
PVC is VPI = 0 and VCI = 100.
You must be able to ping the remote ATM router address of 192.1.7.2/24.
648
Make sure you can see distributed RIPv2 routes throughout your topology.
Make sure you can see distributed IS-IS routes throughout your topology as type 1 OSPF
routes.
Congure EIGRP in domain 333 between the serial link on R7 to R8, R3 to R8, and VLAN 3.
Summarize as much as possible to reduce the redistributed routes into OSPF, but make sure
all routes appear in the IS-IS and RIP domains.
Redistribute the EIGRP routes into the OSPF domain with a cost metric of 1000 seen on all
OSPF routers.
Ensure that R3 never sends any updates across the Ethernet (E0) segment.
Congure the OSPF backbone over the Frame Relay network between Routers R2, R4, and R7.
649
Make sure all OSPF routes are redistributed and reachable in the IS-IS, RIP, and EIGRP
domains.
Ensure that the OSPF backbone in the Frame Relay cloud is authenticated.
Ensure that the router ID of all OSPF-enabled routers is the loopback address.
Ensure that all loopbacks appear as /24-bit networks on all IP routing tables. Do not use the
redistribute connected command on any router to accomplish this.
Make sure area 0.0.0.40 is congured so that excessive CPU resources are not consumed on
Router R4. You can assume that no other areas or routers are attached to this segment.
ISDN numbering:
R1: 0298017705
R4: 0296307050
Use PPP encapsulation for one B channel, HDLC on the second, and the strongest
authentication available where applicable.
650
Never bring up more than one B channel, to ensure that costs are kept to a minimum; you can
use the interface congured with PPP for this purpose.
When the Frame Relay link is restored, bring down the ISDN link after 25 minutes.
When the ISDN link is active, all routers must be able to ping and Telnet the local ISDN
interfaces on R1 and R4.
VLANs 2, 5, and 6 should have DLSw congured to allow SNA devices to communicate
between each other.
Do not enable DLSw on R9, but allow any future segments connected to R9 reachability to
VLAN 2 only.
Make sure all routers peer to R1 and that only in a network failure will DLSw+ circuits
terminate on R2 or R5.
DLSw+ peers should be active only when user-based trafc (SNA/NetBIOS) is sent or
received.
Congure a lter that blocks NetBIOS packets with destination name SimonisaCCIE from
leaving R5. Permit all other NetBIOS trafc starting with the name Simonis?***.
Ensure that remote DLSw+ peers do not send too many queries for the destination MAC
address 0200.0200.0200 on VLAN 6 or VLAN 2.
Be sure the only SAPs enabled on R3 are null SAPs and SAP 08.
651
Do not use any WAN IP interfaces for IBGP sessions, because your network is prone to
failures across the Frame Relay cloud.
Congure R5 and R8 as route reectors and ensure that all IP trafc has a preferred path that
is via Router R5.
652
As long as your network has IP connectivity, ensure that BGP is active in all routers.
Using the network command only, advertise all networks to route reectors R5 and R3.
ISP1 and ISP2 are advertising the full Internet routing table.
The only route accepted is a default route and routes of the form 110.100.0.0 to
121.110.255.255.
Set all routes in the range 110.100.0.0 to 121.110.255.255 with the following attributes:
BGP origin is set to IGP.
Prepend the AS paths 1000, 999, and 100.
Set the weight to 1000 for all even networks and 2000 for all odd networks.
653
654
Conclusion
You should be able to complete the sample CCIE Routing and Switching lab in this appendix
within 8 hours. The difculty level presented here is similar to what you can expect in any CCIE
lab examination; in fact, the difculty level here might be higher. Focus your attention on time
management and the ability to congure a set number of Cisco IOS features very quickly. If you
complete this lab successfully, try it again by modifying the questions and changing the IP routing
algorithm. For example, congure multipoint Frame Relay connections or subinterfaces across the
Frame Relay network in Figure C-2; try PPP over an ISDN connection.
Be familiar with Cisco IOS 12.2T. Also, be up to date with the latest features tested in the
examination. Most candidates are intimidated by the recent CCIE content changes. You must have
an overall conceptual view of all Cisco IOS features, because Cisco cannot possibly test all the
more advanced features of all the content. Nor are there complex hardware models present in the
lab. New content typically tests only the overall concepts. You must be able to competently search
the Cisco Documentation CD, nd any feature you need to congure, and quickly appreciate the
use of any Cisco IOS command. Typically, a portion of any CCIE exam will be unknown to you,
so you must be able to search the CD documentation provided in every lab quickly.
The ability to complete any design scenario efciently, correctly, and per the given parameters
ensures that you are a master of CCIE.
APPENDIX
Static and default routes are not permitted unless directly stated in a question. This includes
oating static routes (static routes with a dened administrative distance) and static routes
to Null0
Routes generated by any routing protocol are permitted; if you are unsure, ask the
instructor.
All router host names; basic IP addressing; and passwords on the console, auxiliary, and
virtual terminal lines have been precongured.
The Catalyst 3550 switch has precongured prompt and enable passwords. All
precongured passwords are cisco and should not be changed unless explicitly stated in a
question.
If you are unsure about a question, ask the instructor. The instructor may or may not answer
your question.
Each router is assigned a loopback address of the form 133.33.YY.YY/24, where YY is the
router number. For example, for R1 the loopback address is 133.33.1.1/24, for R2 the
loopback is 133.33.2.2/24, and so forth.
658
If any given router requires secondary addressing, you are permitted to congure this address.
However, the question may or may not specically identify this feature.
Figure D-1 displays the sample four-router CCIE lab topology with Routers R1 through R4. The
core of the network is connected to Frame Relay, with ISDN providing a backup mechanism
between R2 and R3. You are required to congure the routers in Figure D-1 along with a Catalyst
3550 switch (not shown).
Figure D-1
Frame
Relay
Vlan_B
5.1/27
R2
S0/0
35.3/27
R3
Backbone 1
E0/0
23.3/28
25.5/27
35.5/27
E0/0
E0/0
23.2/28
Vlan_E
150.100.200.250/24
ISDN
BRIO
5.1/?
S0/0 6.1/24
Frame
S0/0 6.2/24
Vlan_D
150.100.100.250/24
E0/0
Vlan_C
4.1/28
R4
Backbone 2
E0/1
6.6/24
Vlan_D
A major difference between this lab and the one in Appendix C is that a point-scoring system is in
place rather than time allocation. There are 100 points available for these exercises. For questions
with a 0 point value, the feature is assumed knowledge and is typically precongured and not
required in the real exam. However, I have purposely included these here to ensure that you are
100 percent ready for anything and ensure that you have the basic competencies required for any
future CCIE.
This lab ensures that you have the best of both worlds by combining an approved CCIE lab
(Appendix C, Sample CCIE Routing and Switching Lab I) with a lab written by a former CCIE
proctor (this appendix). There are no solutions provided; this is a request of the CCIE department
of Cisco for any CCIE sample labs. E-mail me at henry.benjamin@optusnet.com.au if you have
any questions. The aim of the lab is to provide a working solution.
659
2.
3.
Your network is already physically patched. Construct your network, as shown in Figure D-1.
Congure the following characteristics for the topology in Figure D-1:
A Frame Relay switch connects all serial links between routers. Use only the indicated DLCIs
in Figure D-2 and disable Frame Relay inverse ARP for IP only.
Routers R2 and R3 are connected to an ISDN service with the switch type dened as basic5ess. R2 connects to number plan 0298017705 and R3 connects to number plan 0296307050.
Routers R1 through R4 are connected to the Catalyst Ethernet switch (Catalyst 3550 series
switch), according to Table D-1.
660
Figure D-2
S0/0
324
423
S0/0
R3
R4
224
S0/0
R2
Table 8-1
Router
R1 Ethernet 0/0
0/1
R2 Ethernet 0/0
0/2
R3 Ethernet 0/0
0/3
R4 Ethernet 0/0
0/4
Backbone segment 1
0/10
Backbone segment 2
0/11
Using VLAN_A, congure the management interface sc0 with the address 133.33.0.2/25. Ensure
that all devices in your network can Telnet to the switch even if R1 or R2 is down. (Note that you
may need to congure an additional IP address to accomplish this task.)
Make sure the switch is congured in the VTP domain Cisc01_vTp and that the switch can create
and delete VLANs in the future.
661
Ensure that the switch never becomes the root bridge on VLAN_A.
Congure the switch to be a VTP client once all VLANs have been created.
Set the maximum spanning-tree age on VLAN_B to 15 seconds, the forward delay to 10
seconds, and the hello interval to 3 seconds for this instance of spanning tree only. Do not
modify any other VLANs on the 3550.
Ensure that the switch will be elected the root bridge for VLAN 1. Set all ports that are active
with a broadcast control limit of 55 percent.
In the future, IP phones will be connected to ports 15 and 16. Ensure that QoS is congured
correctly so that RTP signal and data will be marked with CoS values 3 and 5; any devices
attached to the phone must be marked with a CoS value of 1.
Warn all Telnet clients that any unauthorized access is not permitted by displaying a
warning message when any Telnet session is activated to the SC0 interface only.
If any ports become disabled because of hardware errors, ensure that the switch automatically
enables the affected ports after 10 minutes.
Use the Class B subnetted IP addresses 133.33.0.0 to 133.33.255.255 to design your network. You
must use this address space for all addresses unless specied in a particular question. Read the
entire task before designing your IP address space.
After your IP address space and IP routing are completed, it must be possible to reach all of your
routers and switches. Set the enable password for all routers and switches to cisco.
Congure IP addresses on your remaining interfaces.
662
Use a subnet with the least number of hosts for the ISDN link.
Use a 25-bit mask for all Frame Relay connections running classless IP routing protocols.
Assign each router a 24-bit subnet to be used by the loopback address. It must be possible to
ping and Telnet from any one router using the loopback address.
Congure local IP host addresses on each router so that an exec or privileged user can type
the router name to ping or Telnet without having to type the full IP address.
You have to use static maps for each protocol. No dynamic mapping is permitted.
Use LMI-type Cisco only and do not rely on auto-sensing the LMI type on any routers. All
router interface types are DTE. The Frame Relay port type is DCE.
Do not use the keyword broadcast for the Frame Relay link between R3 and R4 when
mapping IP. (Hint: use a tunnel interface for routing IP across this cloud.)
Make sure that you can also ping the local interface from each router congured for Frame
Relay.
663
Backbone segment 2 is running RIPv2 only. There is no RIPv2 password. You should be
seeing routes of the form 199.168.32.0/16 from BB2.
Redistribute the odd RIP routes into the IGP network from backbone segment 2.
Make sure that you can see distributed RIP routes throughout your topology and that the
OSPF cost metric is set to 1000 for all RIP routes redistributed.
Summarize as much as possible to reduce the redistributed routes into OSPF, but make sure
all routes appear to all routers.
Redistribute the EIGRP routes into the OSPF domain with a cost metric of 1000 seen on all
OSPF routers.
Congure the OSPF backbone over the Frame Relay network between Routers R1, R2, and R3.
The link between R1 and R2 resides in area 4 (note that this VLAN also runs EIGRP).
The loopbacks on R1, R2, and R3 can reside in the most appropriate area. Do not congure
any network in area 0 unless required.
Make sure all OSPF routes are redistributed and reachable in the RIPv2 and EIGRP domains.
Ensure that the OSPF backbone in the Frame Relay cloud is authenticated.
664
Ensure that the router ID of all OSPF-enabled routers is the loopback address.
Ensure that all loopbacks appear as /24-bit networks on all IP routing tables. Do not use the
redistribute connected command on any router to accomplish this.
Ensure that any rogue devices running multicast OSPF do not impact any router resources.
ISDN numbering:
R2: 0298017705
R3: 0296307050
When R2s S0/0 goes down, R2 should place an outgoing call to R3.
Use PPP encapsulation and the strongest authentication available for the rst B channel and
HDLC on the second B channel.
To ensure that costs are kept to a minimum, never bring up more than one B channel unless
trafc exceeds 59 percent.
When the Frame Relay link is restored, bring down the ISDN link after 25 minutes.
When the ISDN link is active, all routers must be able to ping and Telnet the local ISDN
interfaces on R2 and R3.
665
Do not use any WAN IP interfaces for IBGP sessions, because your network is prone to
failures across the Frame Relay cloud.
As long as there is IP connectivity in your network, ensure that BGP is active in all routers.
Using the network command only, advertise all networks to route reector R3.
666
Congure EBGP between R4 and the external lab router on backbone segment 2.
Permit only the registered address space as dened in the appropriate RFC as allowed
networks from any EBGP-dened routers.
QoS conguration
DHCP allocation on R4
Firewall trafc
NetBIOS lter
Your provider will mark any trafc in excess of 128 kbps as discard eligible.
667
Users on VLAN 2 are using the network to download large FTP les and also using Kazaa
for unauthorized data transfer. Congure the Ethernet interfaces on R1 and R2 so that the
following conditions are met:
All FTP data trafc is allocated 10 percent of total bandwidth.
All FTP control trafc is allocated 5 percent of total bandwidth.
All non-FTP network trafc is allocated only 1 percent of total bandwidth.
Any assumptions that are made must be outlined on R3. Use the description
command to outline your assumptions.
Congure the core Frame Relay network (R1/R2 and R3) so that all trafc received with the IP
precedence critical must be given the highest priority. You may use priority queuing to accomplish
this task.
Ensure that the predened addresses 133.254.4.1, 133.254.4.2, and 133.254.4.3 are never
allocated to DHCP clients.
You can assume that you have only Windows XP clients and support more than one gateway.
Apply the access list on the outbound interface on R1s link to R3.
668
R4 should be able to ping the backbone router on backbone segment 2, but not vice versa.
Conclusion
669
Conclusion
You should be able to complete the sample CCIE Routing and Switching lab in this appendix
within 8 hours (this is the same allotted time for the real CCIE lab at Cisco). The difculty level
presented here is similar to what you can expect in any CCIE lab examination; in fact, the difculty
level here might be higher. Focus your attention on time management and the ability to congure
a set number of Cisco IOS features very quickly. If you complete this lab successfully, try it again
by modifying the questions and changing the IP routing algorithm. Together with Chapter 8,
CCIE Security Self-Study Lab, and Appendix C, Sample CCIE Routing and Switching Lab I,
you should now have a better understanding of the tasks you may be asked to undertake in a lab
exam. Hopefully, Chapter 8, Appendix C, and this appendix will help you gauge your level of
readiness. Because the real labs cost U.S.$1250 per attempt, these practice labs can be a valuable
tool. Good luck and please feel free to e-mail me at henry.benjamin@optusnet.com.au with any
questions, frustrations, or success stories.
INDEX
Symbols & Numerics
| (pipe), 182
3DES (Data Encryption Standard), 250
10Base2, 21, 91
10Base5, 21, 91
10BaseT, 21, 91
100BaseT, 21, 92
802.1Q, 26
802.11 networks, 88
1000 GE, 21, 92
A
AAA, 228229
accounting, 231232
authentication, 230
authorization, 230231
ABRs (Area Border Routers), 63
access lists, 353355
extended, 196198
IP packet debugging, 179180
standard, 190195
wildcard masks, 192
accessing Cisco routers, 187
accounting, 228, 231232
ACKs (acknowledgments), 58
ACS (Cisco Secure Access Control Server).
See Cisco Secure
Active Directory, 135
Active FTP, 116118
adaptive cut-through switching, 23
adjacencies, 62
administrative distances, 51
AES (Advanced Encryption Standard),
250251
B
bastion hosts, 419
BECN (backward explicit congestion
notication), 79
BGP (Border Gateway Protocol), 71
attributes, 7274
characteristics, 72
configuring, 7475
messages, 71
birthday attacks, 421
bit-ip attacks, 87
Blocking state (spanning tree), 24
bootstrap program, 159
BPDUs (Bridge Protocol Data Units), 24
BRI, 75
bridging, 22
port states, 24
transparent, 23
broadcast domains, 23
buffers, 157
C
calculating hosts per subnet, 3031
CAM tables, 22
overflow, 199200
overflow attacks, 201202
Catalyst 6500 Series Switch, IDSM-2, 312
CBAC (Content-Based Access Control), 378
audit trail messages, enabling, 505
configuring, 380382
CEP (Certicate Enrollment Protocol), 272
CERT/CC (Computer Emergency Response
Team Coordination Center), 413414
certication exam, objectives, 627
characteristics
of RIP, 52
of RIPv1, 52
of RIPv2, 53
chargen attacks, 420
CIDR (classless inter-domain routing), 32
Cisco 7200 routers, switching methods
website, 176
Cisco IDS, 422
RDEP, 138139
sensors, 423
Signature Engines, 423424
supported products, 422
672
Cisco IOS
DoS attacks
connection-oriented protocols, 16
TCP, 34
header format, 34
packets, 3435
Telnet requests, 3637
copy running-cong startup-cong
commands, 165
copy tftp ash command, 115
copying IOS images from TFTP servers, 115
core dumps, performing, 430
CPU, 158159
CPU-intensive attacks, 420
creating
command shortcuts, 175
extended access lists, 196198
standard access lists, 190195
VLANs, 23
crypto map entries, 266
cryptography
key exchange management, 264272
PKI, 382383
CSA (Cisco Security Agent), 422, 387
versus pattern-matching, 388
CSACS (Cisco Secure Access Control
Server), 239
CSMA/CD, 20
CSS (calling search spaces), 83
CTA (Cisco Trust Agent), 391
CTR (Cisco Threat Response), 391
IDS requirements, 392
IOS Authentication 802.1X, 392393
cut through switching, 23
D
Daemen, Joan, 250
DATA command (SMTP), 129
data encryption, 255257
3DES, 250
AES, 250251
DES, 248250
Diffie-Hellman, 252253
IPSec, 254
MD5, 251252
principles of, 247248
data link layer. See Layer 2 security
data manipulation, 417
673
674
double tagging
E
EAP (Extensible Authentication Protocol), 85,
272, 275276
EAP-TLS (Extensible Authentication
Protocol Transport Layer Security), 272,
275276
eBGP (external BGP), 74
EIGRP (Enhanced Interior Gateway Routing
Protocol), 5761
election process (DRs), disabling, 70
e-mail
attacks, 420
SMTP, 128129
enable passwords, setting, 188
enabling, 428429
HSRP, 43
Nagle algorithm, 426
PortFast on Cisco switches, 25
SSH support on Cisco routers,
136138
encapsulation, 19
HDLC, 76
LCP, 78
PPP, 77
encryption technologies, 246247
3DES, 250
AES, 250251
DES, 248250
Diffie-Hellman, 252253
IPSec, 254
AH, 257258
ESP, 255256
MD5, 251252
principles of, 247248
error messages, synchronous logging, 178
establishing Telnet connections, 187
Ethernet
CSMA/CD, 20
intefaces, states of, 173
media specification, 21, 92
spanning tree, 23
exam
FAQs, 633
objectives, 627
preparing for, 631
study tips, 625626
extended access lists, 196198
external links, 63
F
FAQs regarding exam, 632637
FC (feasibility condition), 58
feasible distance, 58
features
of RADIUS, 235
of TACACAS+ servers, 241
FEC (Fast EtherChannel), 2526
FECN (forward explicit congestion
notication), 79
elds, 3435, 50
ltering TCP services, 353355
rewalls, 352
Cisco IOS features, 377379
PIX, 361, 363373
Flags eld (TCP packets), 35
Flash memory, 157158
Forwarding state (spanning tree), 24
Frame Relay, 79
frames, 15
BPDUs, 24
framing, ISDN, 76
FTP, 4748
Active mode, 116118
Passive mode, 118
G
gateways, HSRP, 41
generating keepalive packets, 426
global command, options, 368
gratuitous ARP, 39
H
hashing algorithms, 251252
HDLC, 76
Hello packets
EIGRP, 58
OSPF, 62
heuristic-based signatures, 386
hiding secret passwords, 189
HIDS, comparing with NIDS, 305
hijacking, 418
holdtime, 58
host IDSs, 422
hosts per subnet, calculating, 3031
HSRP, 41
configuring, 4445
enabling, 43
status, viewing, 45
HTTP (Hypertext Transfer Protocol), 119
defining port number, 121
SSL, 121
user authentication, 120
hybrid routing protocols, EIGRP, 5758
configuration example, 5961
I
iBGP (internal BGP), 74
iCisco SDM (Security Device Manager), 330
ICMP, 4647
IDS Device Manager, 311
IDSs (intrusion detection systems), 303
anomoly-based, 305
Cisco IDS
Signature Engines, 423424
supported products, 422
Cisco Inline IDS, 311
NetRanger, 309
Director, 311
typical network placement, 309
network-based, 305306, 386
notification alarms, 303
placement, 305307
signature-based, 304
tuning, 307308
IETF (Internet Engineering Task Force), 29
web site, 417
IKE, 258259
configuring, 264272
phase I message types, 259260
phase II message types, 260264
images, 157
675
676
J-K
jam signals, 20
keepalive packets, generating, 426
L
L2F (Layer 2 Forwarding), 276277
L2TP (Layer 2 Tunneling Protocol), 276277
lab exam, 633635
FAQs, 635637
sample, 639664
Land.C attacks, 420
Layer 2 security, 15
CAM table overflow, 199202
DHCP starvation attacks, 207208
MAC spoofing attacks, 205207
STP manipulation attacks, 204
VLAN hopping, 202203
layers of OSI reference model
application layer, 18
data link layer, 15
network layer, 16, 2223, 2730
physical layer, 14
presentation layer, 1718
session layer, 17
transport layer, 17
LCP, 78
LDAP (Lightweight Directory Access
Protocol), 135
Learning state (spanning tree), 24
leases (DHCP), viewing, 40
link-state protocols, OSPF, 6170
media types, 65
Listening state (spanning tree), 24
LLC sublayer, 15
loading conguration les, 165
Local Preference attribute (BGP), 73
log les (PIX Firewall), troubleshooting,
374375
logging console debug command, 175
loopback interfaces, 431
M
MAC spoong attacks, 205207
MAC sublayer, 15
MAIL command (SMTP), 129
main mode (IKE), 259
man in the middle attacks, 421
managed devices, 124
manual keys, comparing with preshared
keys, 268
mask replies, disabling, 431
masquerading, 418
MD5 (Message Digest 5), 251252
MED attribute (BGP), 73
media specications of Ethernet, 21, 92
memory
NVRAM, 157
RAM, 157
ROM, 159160
System Flash, 157
method lists, 238
methods of attacks, 417
metrics, administrative distance, 51
MIBs, 123125
MIC (Message Integrity Check), 275
modes of IOS operation, 164
modifying conguration registers, 184
monitoring NAT, 360
motivation for attacks, 413
multicasting, 79
N
Nagle algorithm, preventing Cisco IOS from
attacks, 425426
Nagle, John, 426
name resolution, DNS, 110113
NAT (Network Address Translation), 355356
deploying, 357
Dynamic NAT, configuring, 359
monitoring, 360
operation on Cisco routers, 358
NCP, 78
pattern matching
NetRanger, 309
Director, 311
typical network placement, 309
network IDS, 422
network layer
bridging
BPDUs, 24
port states, BPDUs, 24
ICMP, 4647
IP, 27
address classes, 29
logical AND operation, 30
packets, 2728
subnets, 2930
spanning tree protocol, 23
subnetting, 3132
switching, 22
CAM tables, 22
cut through, 23
store and forward, 23
network layer (OSI model), 16
network management, SNMP, 122
community access strings, configuring on
Cisco routers, 122
configuring on Cisco routers, 125
examples of, 128
managed devices, 124
MIBs, 123125
notifications, 123126
network-based IDS systems, 305306, 386
newsgroups, reporting security breaches,
416417
Next Hop attribute (BGP), 73
NMSs (network management systems), 124
NOOP command (SMTP), 129
notication alarms, 303
notications (SNMP), 123126
NSSAs (Not-so-stubby areas), 65
NTP (Network Time Protocol), conguring
clock sources, 130132
NVRAM (nonvolatile RAM), 157
O
Origin attribute (BGP), 73
Originator ID attribute (BGP), 73
P
packet ltering, 353
CBAC, 378
conguring, 380382
extended access lists, 196198
standard access lists, 190195
packets
EIGRP, Hello, 58
IP
debugging, 179180
elds, 2829
rerouting, 418
TCP, 3435
partitioning System Flash, 157
Passive FTP, 118
passive IDS modules, 387
passwords
authentication, 230
method lists, 238
enable passwords, setting, 188
recovering, 182187
virtual terminal passwords, setting, 190
PAT (Port Address Translation), 355
path vector protocols, BGP, 7175
pattern matching, 386
677
678
Q
qualication exam
FAQs, 632633
preparing for, 629630
study tips, 626627
decoding ambiguity, 628629
QUIT command (SMTP), 129
R
RADIUS, 232
attributes, 234235
configuring, 236238
features, 235
security protocol support, 234
versus TACACAS+, 245246
RAM, 157
NVRAM, 157
System Flash, 157158
RARP, 39
RCPT command (SMTP), 129
RDEP (Remote Data Exchange Protocol),
138139
read command (SNMP), 125
recovering lost or unknown passwords,
182187
redundancy, HSRP, 4145
remote access VPDNs, 276277
configuring, 278281
remote router access, 187
reporting security breaches, Internet
newsgroups, 416417
rerouting packets, 418
resolving IP addresses to MAC addresses,
ARP, 3839
Rijmen, Vincent, 250
ROM (read-only memory), 159160
ROM boot mode (IOS), 164
root bridge elections, 24
root bridges, 24
router hardware
configuration registers, 160161
CPU, 158
interfaces, 163
NVRAM, 157
self-study lab
RAM, 157
ROM, 159160
System Flash, 157
routers, remote access, 187
routing protocols, 48
BGP, 71
attributes, 7274
conguring, 7475
messages, 71
default administrative distances, 51
EIGRP, 5758
example conguration, 5961
OSPF, 6163
example conguration, 6670
multiple area conguration, 6465
single area conguration, 6264
virtual links, 66
RIP, 5253
conguring, 5456
routing tables, viewing, 4850
RSET command (SMTP), 129
RTO (Retransmission Timeout), 58
S
sacricial hosts, 419
SAFE blueprints, security best practices,
208209
SAML command (SMTP), 129
sample lab. See self-study lab
SAs (security associations), 254259
saving conguration les, 165
sCSA ( Cisco Security Agent), 387
SDM (Security Device Manager), 328330
secret passwords, hiding, 189
security, 353, 380382
AAA, 228229
accounting, 231232
authentication, 230
authorization, 230231
Cisco IOS SSH, 135138
encryption technologies, 246247
3DES, 250
AES, 250251
DES, 248250
Dife-Hellman, 252253
IPSec, 254258
MD5, 251252
principles of, 247248
firewalls, 352
Cisco IOS features, 377379
HTTP, 119120
IKE
conguring, 264272
phase II, 264
NAT, 355356
conguring Dynamic NAT, 359
deploying, 357
monitoring, 360
operation on Cisco routers, 358
packet filtering, TCP services, 353355
PAT, 355
PIX, 361
commands, 371373
conguring, 364368
DMZs, 361
software features, 376377
stateful packet screening, 362363
static routing, 368369
PKI, 382383
RADIUS, 232
attributes, 234235
conguring, 236238
features, 235
security protocol support, 234
SSH, 133135
SSL, 121
TACACS+, 239
authentication, 240
authorization, 240241
conguring, 241244
features, 241
versus RADIUS, 245246
VPDNs, 276277
conguring, 278281
VPNs, 383
conguring, 385
security server protocols, 232
self-study lab
ACS configuration, 514524
advanced PIX configuration, 511514
BGP routing configuration, 491495
Catalyst Ethernet switch setup, 457464
DHCP configuration, 490
dynamic ACL/lock and key feature
configuration, 501502
final configurations, 538558
Frame Relay setup, 450456
679
680
self-study lab
successors (EIGRP), 58
summary links, 63
switching, enabling PortFast, 25
synchronous logging, 178
System Flash, 157158
system log, displaying, 173
T
TACACS+, 239
authentication, 240
authorization, 240241
configuring, 241244
features, 241
versus RADIUS, 245246
TCP, 34
ARP, 3839
DHCP, 40
FTP, 4748
header format, 34
HSRP, 41
conguring, 4445
enabling, 43
ICMP, 4647
packets, 3435
RARP, 39
services, filtering, 353355
Telnet, 3637, 47
TFTP, 4748
TCP half close, 37
TCP intercept, enabling, 429
TCP load distribution, 360
TCP SYN Flood attacks, 419
TCP three-way handshake, 37
TCP/IP
FTP protocol
Active mode, 116118
Passive mode, 118
vulnerabilities of, 417418
TCP/IP model, comparing with OSI reference
model, 18
teardrop attacks, 420
Telnet, 47
connections, establishing, 187
disabling login password, 113
requests, 3637
test characters (ping), 4647
U
UDP bombs, 420
undebug all command, 171
unknown passwords, recovering, 182187
UOS (Intrusion Prevention System), 311
user authentication, HTTP, 120
User EXEC mode (IOS), 164
V
versions of SNMP, 122
viewing
configuration register, 162
DHCP leases, 40
home pages, 119
HSRP status, 45
interfaces, 163
routing tables, 4850
startup config, 185
virtual terminal passwords, setting, 190
681
682
VLAN hopping
W
web sites
Cisco Product Security Incident Response
Team, 414
IETF, 417
Internet Domain Survey, 417
ISOC, 417
Weight attribute (BGP), 73
wildcard masks, 192
Windows Active Directory, 135
wireless networks, 8485
deploying, best practices, 8688
write command (SNMP), 125
write terminal command, 157