You are on page 1of 15

Cheat Sheet for Cisco Certified Network Associate Study Guide to Exam 640-507 (2nd Ed.

)
originally by Todd Lammle, published by Sybex; condensed May 2001 by Robert S. with gratitude to Shankar
“Good artists copy. Great artists steal.” – Pablo Picasso I try to avoid repeating myself, so you might have to read the whole booklet to
The best way to study something is to regurgitate it in one’s own words. When find a definition you need. When I introduce terms, I often show them in bold
I studied CCNA, I wrote this thing. I reduced 700 pages to a fourteen-page face type (but, then, I use bold face type for a lot of things).
booklet so I could carry it around, reviewing everywhere I went. To save space, I use the following conventions:
This document is color-coded, with all the IOS commands in violet arial narrow, - I refer to OSI layers as “L2,” “L3,” &c., instead of “data-link” and “network.”
for example. As I realize the minimal benefits of color when one prints on black - When I bother to show IOS prompts, I leave off the router names.
and white laser printers, I’ve tried to be sensible about my choices. I still suggest - I shorten bandwidth to BW, virtual circuit to VC, configuration file to CF, &c.
you print it in color, if possible. (Word Viewer wrongly italicizes my commands.) - The proper Latin plural of “status” is “stati” but I sometimes say “stats.”
In each chapter, Todd Lammle lists key terms with which you should be - “Et cetera” (or “etc.,” meaning “and so forth”) can also be written “&c.”
familiar before the exam. I haven’t tried to define every term but I have written I’ve borrowed from other sources, too, because I want as much of the exam here
them in blue, underlined in squiggles, so look at each and ask, “Can I define this?” as possible. I’ve tried to make it all self-evident. This booklet, alone, might be
An easier color code to spot is my grey shading. This indicates stuff Lammle, enough to pass the exam (everything on my exam is here) but that wasn’t my goal.
instructors, and some unreliable friends have told me is not likely to be on the Although Lammle’s $140 book isn’t perfect (his Frame Relay stuff has several
exam. Reading it might help your understanding but don’t sweat memorizing it. errors and omissions, for example, and the CD-ROMs are full of mistakes) but you
should still buy it and the network simulator software that comes with it.
Wiggly red lines to either side show text I’ve been strongly warned to study.
My exam was 75 minutes & 65 questions. Different exams have different
I’m more careful than Lammle to show correct prompts – I didn’t want to waste
passing scores, so your final score is MEANINGLESS. Buona Fortuna! R.S.
Cisco ly Yours,

space repeating config t and int s0 – so it’s up to you to notice the mode we’re in.

Contents: [Note: Chapters II & VI are paired.] IV – router configuration basics (pg 7) VIII – IPX (pg 10)
I – LANs, OSI model, Cisco model (pg 1) V – IP routing, RIP, IGRP (pg 8) IX – access lists (pg 11)
II – switches, Spanning Tree Protocol (pg 5) VI – VLANs, tagging, VLAN Trunk Protocol (pg 5) X – WANS, HDLC, PPP Frame Relay, ISDN (pg 12)
III – IP subnetting (pg 6) VII – boot-up & connectivity tools (pg 9) Appendix B – the Catalyst 1900 switch (pg 14)
CHAPTER I – INTERNETWORKING and the OPEN SYSTEMS INTERCONNECTION MODEL or “Please Do Not Throw Sausage Pizza Around.”
(5-7 questions on the OSI model; an unknown number on general networking)
This chart summarizes the ISO Open Systems Interconnection model, laid out in more detail hereafter. A layered model reduces complexity, permits the use of
standard interfaces, lets engineers make modular changes, lets different technologies inter-operate, accelerates evolution, and is easier to learn. Although all seven
layers could be on the exam, they’re not equally critical: You can answer the basic OSI layer questions by knowing enough to tell them apart. The real reason to study
layers 2 and 3, where switches and routers work, and L4, where many big protocols appear, is these descriptions form the foundation for much of the exam. If you
don’t grasp the L2 – L4 details of this chapter well enough to write them out from memory, you’re toast.

layer L1 L2 L3 L4 L5 L6 L7
mnemonic “Please Do Not Throw Sausage Pizza Around!”
name Physical Data-Link Network Transport Session Presentation Application
Destination Navigates the Truckers & Split-Second Pasting Parts & Pieces into
functional
Drop-boxes & National hiway Teamsters Sequencing Proper Products
mnemonic
Doorsteps Network
blasts frames nails packets wraps segments chops data into
Protocol Data
into bits into frames into packets segments data
Unit (PDU)
a conveyor a mailman a navigator a loading dock a dispatcher (or talk a newspaper editor a corporate executive
This layer is
belt finding a finding a town worker boxing a show host) compiling documents issuing instructions
analogous to...
mailbox shipment sequencing tasks
The Big Picture: sending and hardware logical (network) packing & shipping timing file formats giving orders
It’s all about... receiving bits addressing addressing
physical framing routing end-to-end dialog control encryption, compression, assorted application
key concepts
topology connections translation functions
puts bits on frames data for routes between provides flow control opens / closes demands transfers;
main network
the wire local network networks sessions IDs partners; final
operations
error resolution
hardware network addresses ports / sockets
This layer filters
(physical) / protocol #s
PDUs using…
addresses
deviceshubs switches routers gateways
The CISCO 3-LAYER where-you-should-spend-your-money MODEL - determines how best to handle requests
- security, filtering, firewalls
CORE LAYER
- queuing (print jobs, &c.)
- speed is critical
- transitions between routing protocols (including static routing)
- can affect all users
- definition of broadcast/multicast domains
- should be fault-tolerant and reliable
- no filtering, security slowdowns, or inter-VLAN routing ACCESS LAYER
- no workgroup access - a.k.a. the “desktop layer”
- could use FDDI, fast (100Mb) Ethernet, gigabit (1000Mb) Ethernet, or ATM - more specific security
- when improvements are necessary, upgrade; don’t expand - segmenting for more collision domains
- connectivity to distribution layer via 100Mbps links
DISTRIBUTION LAYER
- Dial on Demand Routing (DDR)
- routing
- Ethernet switching
- inter-VLAN routing
- static routing
- WAN access
- connect 10Mbps switches to workstations; 100Mbps switches to servers
- gatekeeper to the core layer
1
THE UPPER LAYERS: COMMAND & CONTROL THE MIDDLE LAYERS: SHIPPING & RECEIVING

L7 Application Layer
* DATA STREAMS (MESSAGES) *
It's all about GIVING ORDERS; the corporate executive; what you see on the
L4 Transport Layer – “Truckers & Teamsters”
* chops data into SEGMENTS *
It's all about PACKING & SHIPPING (either reliable TCP/SPX or unreliable
screen; interaction with the user; interaction between programs; UDP/IPX); the loading dock worker; data chopper & reassembler; creates and
communications launching. reads segments; asks, “Which port (which pipeline) do we stuff this into?” “Did
The highest level of the model. It defines the manner in which applications interact the packets get where they should?” “What belongs in this pipe?”
with the network, including database management, e-mail, and terminal-emulation Defines protocols for structuring messages and supervises the validity of the
programs. transmission by performing some error checking.

KEY CONCEPTS: file, print, message, database, and application services KEY CONCEPT: end-to-end connection

NETWORK OPERATIONS PERFORMED: NETWORK OPERATIONS PERFORMED:


- determining availability of communication partners and network resources - data segmentation and reassembly; multiplexing several streams onto one link
- coordinating partnerships between multiple applications - acknowledging packet receipt during connection-oriented transfers
- ultimate authority over data integrity and error recovery - re-sequencing of received packets following connectionless transfers
- flow control (buffering, source-quench messages, & windowing)
PROTOCOLS (network applications) FOUND AT THIS LAYER: - error checking & correction by counting segments & requesting retransmissions
- FTP (TCP - port 21) - ‘File Transfer Protocol’ full-featured, secure file - managing virtual circuits
management
- Telnet (UDP - port 23) - terminal emulator program; uses L3 IP and L4 TCP DISCRIMINATES BY:
- SMTP (TCP - port 25) - ‘Simple Mail Transfer Protocol’ e-mail sending - application port / socket numbers, by which a segment identifies which upper-
- DNS (UDP - port 53) - ‘Domain Name Service’ English-to-IP translation layer protocol will use its data (e.g. firewall filtering)
- HTTP (TCP - port 80) -‘HyperText Transfer Protocol’ World Wide Web
browsing PROTOCOLS (delivery control methods) FOUND AT THIS LAYER:
- POP3 (TCP) - ‘Post Office Protocol’ e-mail receiving - TCP - ‘Transmission Control Protocol’ reliable delivery boy creating
- X.400 - alternative e-mail management connection-oriented links
- NNTP - ‘Network News Transfer Protocol’ newsgroup post management - UDP - ‘User Datagram Protocol’ unreliable delivery boy using connectionless
- TFTP (UDP) - ‘Trivial File Transfer Protocol’ stripped-down file transfers transfers
- SNMP (TCP) - ‘Simple Network Management Protocol’ (“Are you O.K?”) - SPX - ‘Sequenced Packet eXchange’ connection management tools added to IPX
- IRC (TCP) – ‘Internet Relay Chat’ keyboard chat program for reliable, connection-oriented communication
- EDI - 'Electronic Data Interchange' for e-commerce transactions
TECHNOLOGIES:
- gateways

L6 Presentation Layer – “Pasting Parts & Pieces into


Proper Products” * DATA STREAMS *
It's all about FILE FORMATS; the newspaper editor; data on the hard disk;
There are 65,535 application ports in both TCP and UDP flavors. (Most
applications, however, only use one flavor or the other.) Here are a few ports:
presentation of data to the programs in binary format. TCP 6 L2TP 115
Defines the way in which data is formatted, presented, converted, and encoded. echo 7 NNTP (TCP) 119
UDP 17 NTP 123
KEY CONCEPTS:
FTP data (TCP) 20 NetBIOS file share (UDP) 137
- encryption
FTP control (TCP) 21 NetBIOS file share (UDP) 138
- compression
Telnet (UDP) 23 NetBIOS file share (TCP) 139
- translation between file formats (MIDI, MPEG, PICT, TIFF, JPEG, ASCII,
SMTP (TCP) 25 news 144
EBCDIC, &c.)
DNS (UDP) 53 SNMP 161
TFTP (UDP) 69 SNMP trap 162

L5 Session Layer – “Split-Second Sequencing”


* DATA STREAMS *
It's all about TIMING; the dispatcher / talk show host; organizes and directs
finger
HTTP (TCP)
POP2 (TCP)
79
80
109
-------------------------------------------
NetWare IP
HTTPS (TCP)
396
443
communication sessions; keeps data separate for different applications. POP3 (TCP) 110 RIP (UDP) 520
Coordinates communications and maintains the session for as long as it is needed, identification (TCP) 113 Doom (yes, the game) 666
performing security, logging, and administrative functions. Manages simplex,
half-duplex, and full-duplex modes. Ports below 1024 are called the “well known” ports and are assigned by the
Internet Assigned Numbers Authority (IANA). Of these, the ones from 1 to 254
KEY CONCEPT: dialog control are used by public applications and the ones from 255 to 1023 are used by
proprietary (‘saleable’) applications.
NETWORK OPERATIONS PERFORMED:
- opening, maintenance, and closure of sessions between devices / applications Ports 1024 and above are used as needed for addressing by the upper-layers or
- managing simplex, half-, and full-duplex modes TCP during sessions. Some examples:
- keeping data separate for different applications WINS - 1512
ICQ (UDP) - 4000
PROTOCOLS (for manipulating remote systems) FOUND AT THIS LAYER:
IRC (TCP) - 6660-6669, specifically 6667 [also: 7000, et seq. for very large
- NFS - ‘Network File System’ sharing between different file systems
chat servers]
- SQL - ‘Structured Query Language’ database sorting
ConSeal VPN (TCP) - 4995-4997
- RPC - ‘Remote Procedure Call’ for running a process on another machine
- ASP - ‘AppleTalk Session Protocol’
- X Window - remote UNIX GUI emulator
- NetBIOS - API giving programs consistent set of tools to call for network
functions
- NetBEUI - file sharing device driver for tiny Microsoft LANs (not routable)

2
- CDP - ‘Cisco Discovery Protocol’ investigation of neighbor devices
L3 Network Layer – “Navigates the National Highway
Network” * wraps segments into PACKETS (data or
route update) or DATAGRAMS *
- SNAP - ‘SubNetwork Architecture Protocol’ data transfer, connection
management, and QoS
- L2TP - ‘Layer 2 Tunneling Protocol’ frame disguising
It's all about LOGICAL ADDRESSING; the long-haul navigator finding a
town; “How do we get to that network from here?” TECHNOLOGIES:
Defines protocols for data routing to ensure that the information arrives at the - switches (fast, application-specific integrated circuit (ASIC) hardware-based)
correct destination node and manages communications errors. - bridges (slower, software-based)
- modems
KEY CONCEPT: routing - ISDN “clouds”
NETWORK OPERATIONS PERFORMED: - Ethernet frames
- logical / network identification - IPX frames (four varieties: Ethernet_II, 802.3, 802.2, & SNAP)
- routing / network navigation - Frame Relay frames (two varieties: Cisco & IETF)
- breaking up broadcast domains - Token Ring frames
- ATM (Asynchronous Transfer Mode) standard for cell-switched WANS
DISCRIMINATES BY: - DSL “modems”
- network (IP, IPX) addresses - cable “modems”
- ‘protocol numbers’ in IP packets identifying which L4 protocol the data is for
The TWO SUBLAYERS and THEIR SPECIFIC JOBS:
PROTOCOLS (for routing and navigation) FOUND AT THIS LAYER:
- IP - ‘Internet Protocol’ connectionless network addressing and routing
- IPX - ‘Internetwork Packet eXchange’ unreliable delivery boy using
L2a Logical Link Control (LLC) sublayer handles
L2 encapsulation
- defined by 802.2
connectionless transfers, NetWare's alternative to TCP/IP - framing
- AppleTalk - optional flow control
- X.25 - enables DTE use over DCE networks; precursor to Frame Relay - packet handling instructions
- ARP -‘Address Resolution Protocol’ (“What's the MAC address for this IP - control-bit sequencing
address?”)
- RARP -‘Reverse Address Resolution Protocol’ (“I am diskless workstation XXX;
What is my IP address?”) L2b Media Access Control (MAC) sublayer controls
access to the media
- defined by 802.3 & 802.5
- BootP - ‘Bootstrap Protocol’ (“I am diskless workstation YYY; What is my IP
address and what should I do first?”) - CSMA/CD
- DHCP - ‘Dynamic Host Configuration Protocol’ (“I’m new here; what is ALL - MAC (hardware) addresses
my IP information?”) - logical topology
- ICMP - ‘Internet Control-Message Protocol’ error-reporting, supporting: - line discipline
 PING - ‘Packet Internetwork Groper’ connectivity detector - ordered delivery of frames
 TraceRoute - traces packet paths using ICMP timeouts - optional flow control
 delivery of operational messages such as “Destination Unreachable,” “Buffer - error notification (not correction) in frames
Full,” and “Maximum Hop Count Reached” - Token Ring
- RIP - ‘Routing Information Protocol’ routing scheme - DQDB (Don’t worry; nobody knows what this is.)
- IGRP - ‘Interior Gateway Routing Protocol’ routing scheme for large,
SOME FRAME FIELDS of INTEREST:
heterogeneous networks
- FCS - ‘Frame Check Sequence’ field in Ethernet frame (holds the CRC value)
- OSPF - ‘Open, Shortest Path First’ routing scheme
- SSAP - ‘Source Service Access Point’ hardware address field
- EIGRP - ‘Enhanced Interior Gateway Protocol’ routing scheme
- DSAP - ‘Destination Service Access Point’ hardware address field
- BGP - ‘Border Gateway Protocol’ routing scheme
- IGMP - ‘Internet Group Management Protocol’ membership manager for
Those Wacky IEEE Specifications: It might help to list some big ones…
multicast groups
802.1: bridging, switching, VLANs, STP 802.3: CSMA/CD & the Ethernets
- RSVP - ‘Resource reSerVation Protocol’ bandwidth reserver
802.2: L2 framing; connection-oriented & 802.5: Token Ring media access
TECHNOLOGIES: connectionless operations
- routers (slower, software-based)
- layer 3 switches (faster, ASIC hardware-based)

THE LOWER LAYERS: HARDWARE MANAGEMENT


L1 Physical Layer
* blasts frames into BITS *
It's all about SENDING AND RECEIVING BITS; the conveyor belt.
Defines the mechanism for communicating with the transmission medium and

L2 Data-Link Layer – “Destination Drop-Boxes &


Doorsteps” * nails packets into FRAMES or CELLS *
It's all about HARDWARE ADDRESSING; the mailman finding a mailbox;
interface hardware: voltages, wire speeds (data rates), and connector pin-outs.

KEY CONCEPT: physical topology (baseband or broadband)


“Where, exactly, is this going?” “When, exactly, does it go?” PROTOCOLS (for bit sequencing) FOUND AT THIS LAYER:
Validates the integrity of the flow of data from one node to another by - RS-232, RS-449, and other serial line protocols
synchronizing blocks of data and controlling the flow of data. - V.32 and other CCITT modem protocols
KEY CONCEPT: framing NETWORK OPERATIONS PERFORMED:
- putting bits onto the transmission medium
NETWORK OPERATIONS PERFORMED:
- physical / hardware / MAC identification TECHNOLOGIES:
- framing data for transmission onto the local network segment - active (amplifying) hubs
- breaking up collision domains - passive hubs
- CRC (Cyclic Redundancy Check) error notification (not correction) - repeaters
- concentrators
DISCRIMINATES BY:
- network interface cards (NICs)
- hardware (MAC) addresses

PROTOCOLS (for transmission) FOUND AT THIS LAYER:


- 802.2 - defines connection-oriented & connectionless operations; L2 framing
- PPP - ‘Point-to-Point Protocol’ fake Ethernet over modem or serial link
- HDLC - ‘High-level Data Link Control’ (generic or Cisco) error correction
3
- The REST of CHAPTER ONE: Big Picture Networking – This quest for simplification also underlies layered architecture, writing complex
programs from simpler units assigned to the individual layers.
Of CSMA/CD and ETHERNET LANs
Some protocols are connectionless, meaning they send data over any available
Ethernet is a simple way of letting several computers talk on a network. It uses
path, expecting no reply or confirmation of receipt. Slower but far more reliable
a scheme called carrier sense, multiple access with collision detection or
are connection-oriented protocols establishing and reserving a specific virtual
CSMA/CD (which I like to pronounce KIZ-muh-cud). That means 1) each node
circuit with a partner before exchanging data. These expect acknowledgements for
or host (each PC) listens to the wire to see if anyone’s talking, 2) anyone can
their messages or use flow control (buffering; source-quench messages; and
transmit at any time without waiting for permission, and 3) if two devices transmit
windowing, whereby the responses of the receiving device control how much info
simultaneously (a “collision”), they back off for a while, then try again. Works
is transferred before an acknowledgement is required) to ensure they’re heard.
great – until you get a couple hundred chatty machines on the same wire. Their
Another result of the seven-layer model is the way jobs are sent between layers.
shared collision domain can get only so busy before network traffic bogs down
If L4 has chopped some data into segments hoping they’ll be understood by
because there’s no time to get a word in. Some other network schemes, like
another machine, it wouldn’t make sense for L3 to scribble network addresses like
Token Ring, solve this problem with rigidly fascist control over the wire. They
crazy all over those segments. Then, by the time L2 got done adding the specific
make everyone wait his turn, or they pass a ‘you-get-to-talk-now’ card (the
target’s physical address and L1 transmitted the result, those poor data segments
“token”) in a ring around the group. Ethernet is a bit more unruly but it’s cheap
would be a real mess to untangle. The better idea is encapsulation: We leave all
and popular, so we’re stuck with it.
segments alone, just encapsulate them in L3 packets. Then the packets are left
Luckily, Ethernet keeps improving. Standard Ethernet operates at 10Mbps and
untouched as they, in turn, are then encapsulated in L2 frames. And when at last
is called 10BaseT. Now we’ve added FastEthernet at 100Mbps and Gigabit
we blast the frames into bits at L1, we know the patterns of the upper layers are
Ethernet at 1000Mbps. One flavor of FastEthernet runs on high-quality category-5
intact in the bit stream. Bits, frames, packets, and segments, the units passed from
wires where it’s called 100BaseTX, another runs on optical fiber (100BaseFX) and
layer to layer, are called protocol data units (PDUs). When one frame type is
a third on bundles of cruddy category-3 or -4 telephone wire (100BaseT4).
hidden inside another, especially for security reasons, this is called tunneling.
“Base,” by the way, stands for baseband, meaning, “using only one frequency.”
If a lonely device using two wires in a cable can only transmit OR receive, it’s ADDRESSING: Flat and Lumpy Schemes
working in simplex mode. If it can use those same two wires to talk AND listen A device’s “hardware” or “physical” or MAC address is a built-in L2 address
but must take turns doing either, it is operating in half-duplex mode. Taking turns read by switches. Every device comes from its factory bearing a unique MAC
this way means only ½ the available BW can be used. A clever device that can address 48-bits long and written as 12 hexadecimal digits (each digit is 4 bits in
talk and listen at the same time through a four-wire cable is using collision-free size), like 00e0.1e5d.2782. The first six digits are a code for the manufacturer (in
full-duplex mode. A device using full-duplex must be attached to a switch (not a bigger words, an Organizationally Unique Identifier) and the last 6 are unique to
hub) and have its collision detection and loopback turned off. Wire quality has as the device. L2 frames are addressed with MAC addresses.
much to do with the available modes as does the sophistication of the devices. Network addresses, on the other hand, are logical (made-up) addresses read by
Any high-frequency signal can only go so far down a cable before it fades out. routers. L3 packets are addressed with Network addresses. There are several
Old 10Base5 runs up to 500m (the “5” means 500m) on big ugly coaxial cable network address schemes, such as IP or IPX. (Each L3 address only works for one
nicknamed thicknet. A slimmer coax called thinnet carries 10Base2 up to 185m. L3 protocol.) L2 and L3 addresses have nothing to do with each other.
Almost nobody uses either one these days. Today’s 10BaseT runs about 100m on So why assign L3 addresses when every device already has a MAC address?
4-wire, category-3-or-better, unshielded twisted-pair (UTP) cable connected with Because, while L2 addressing is “flat” with no address given any particular
small plastic Registered Jack (RJ)-45 connectors. 100BaseTX can go 100m, importance, L3 schemes use hierarchical addressing, letting devices be gathered
and 100BaseFX can go 412m at ½-duplex or 2km in full-duplex mode. A new into convenient groups we call “networks.” Packets can then be filtered by
device on a network checks to see the best speed and duplex mode it can use. network ‘area codes’ and routers can operate efficiently with only L3 knowledge,
When we connect a bunch of devices to an Ethernet hub, we’re just attaching blissfully ignorant of any L2 details. To work quickly, a router, stores and reads
all their wires together. The hub, its cables, and every device connected by them only network addresses; that’s as smart as it gets. And that’s why each interface
all sense each other’s state transitions (the voltage rises and drops making up on a router must attach to a different network: If two of its connections had the
digital messages), so each machine hears everything being said. They are all in the same network name, the router couldn’t choose (“route”) between them. Routers
same room, the same collision domain, remember? More on this in a moment. read the L3 addresses and get the packets to the right network on the Internet.
An Ethernet network, then, is a bit like a meeting hall. We’ve described the From there, switches have no trouble finding a few L2 MAC addresses in the small
wires or “media” Ethernet uses, like describing the room everyone meets in. It has meeting hall of a “flat” network segment.
to be clean and well built so everyone can find and hear everyone else. Think of LAN SEGMENTATION: Small Groups are Easier to Control
this when you study L1 of the OSI seven-layer cake. We’ve also seen how the If I want to send a message to 75 recipients I could direct it several ways. I
CSMA/CD rules-of-order apply in this room so people don’t interrupt each other. could send 75 individual messages, one network-wide broadcast, or even one
Those rules are in L2 in the OSI model. Also at L2 is the idea that everyone has a multicast to a group of 75 members. Such are the options with logical addressing,
seat with his name on it (a hardware address – more later about these). But people although there are good and bad points to each. Now we need machines that can
gather in a hall to do business and Ethernet has nothing to do with the business use this addressing power to decrease traffic.
discussed in this room, or in net-speak, the protocols. If you have several hundred PCs linked by a bunch of hubs, you have one huge
RJ-45 Pin-to-Pin Wiring Schemes (“Pinouts”) for 10BaseT or 100BaseT Ethernet: collision domain. But insert a bridge before each hub and you keep each hub
four-wire straight-through cable, your standard Ethernet cable from ever seeing traffic for the others. A bridge learns the L2 addresses of devices
- for connecting dissimilar devices: router to hub/switch; PC to hub/switch it feeds and if it gets a frame not belonging to any of them, it blocks the frame.
- each pin connects to its twin: What you’ve done is divide your big collision domain (your meeting hall) into
near end 1 2 3 6 smaller collision domains. The only non-broadcast traffic leaving any domain is
far end 1 2 3 6 traffic specifically intended for another. This improves both security (by keeping
four-wire cross-over cable private traffic private) and performance (by reducing collisions). Bridges are
- for connecting similar devices: router to router; PC to PC; hub to switch mostly obsolete now because adding a bunch more ports to a bridge gets you an
- the pair of pairs swap partners: even nicer device: a switch.
near end 1 2 3 6 A switch is just like a bridge with more ports. Each port forwards only frames
far end 3 6 1 2 addressed to the devices attached there, so the switch divides each port into its own
Eight-Wire, RJ-45 Pinout for Console (“Rollover”) Cable: collision domain with fewer members. Put a single device on each port if you like.
- for connecting a PC to the console port of a router A different problem is with broadcasts, which use a MAC address of all ones to
- an ascending sequence segues to a descending sequence: reach every machine in a network. Switches don’t stop broadcasts and can do
near end 1 2 3 4 5 6 7 8 nothing to break up broadcast domains. You need a router for that. Routers
far end 8 7 6 5 4 3 2 1 divide broadcast domains because they direct traffic between different L3 network
addresses and don’t (by default) transmit broadcasts. Routers can also
The OSI MODEL ENCAPSULATES for YOUR SINS, AMEN. filter packets by the protocols they use. Since separate VLANs must talk through
That OSI model is a way of charting the responsibilities of network components routers, VLANs, too, are said to divide broadcast domains. Whereas switches
so the people who design or operate them can enjoy some clarity. The model says, don’t alter the frames they sort, a router replaces the L2 source and destination
“everyone divide your tasks the same way and there will be less confusion.” addresses of each frame it handles. Neither switches nor routers change the L3
Those tasks are the jobs of networking protocols like IP and IPX, TCP and UDP, addresses of passing packets.
ARP and RIP. The important ones are found in my notes on each layer (pp 2 & 3).
[The terms WAN, CSU/DSU, DCE, DTE, ISDN, & BRI are in Chapter X.]
4
CHAPTER II – SWITCHING (15-20 questions, including VLANs) - Cisco offers VLAN Management Policy Server (VMPS) software as a MAC-
[Note: I’m told most of Cisco’s switches were designed by companies Cisco address-to-VLAN mapping database.
purchased, so their commands vary too widely to be exam-worthy. For this reason - There are two types of links (ports) in a switch fabric:
I haven’t much bothered to condense Lammle’s appendix B on switches. The - Access link ports are any ports connected to DTE devices (hosts). Each access
parts of the appendix suggested to me (VLANs and trunking) are on page 14.] port is a member of a VLAN, although a host using that port is unaware of this
because any VLAN info is stripped from arriving frames before they are delivered.
- Switching is ASIC (hardware) –based, as opposed to bridges (software).
Such hosts must go through L3 devices to communicate outside their VLANs.
- Otherwise, a switch is like a bridge with many more ports.
- Trunk link ports connect all (or only several) VLANs from switches to routers,
- A L3 “intelligent” switch is faster than a router and can sort by L3 addresses.
servers, or other switches. A device thus ‘trunked’ can be part of up to 1005
- Switches perform address learning by reading frames’ source addresses.
VLANs simultaneously, meaning a trunked server can be reached by many subnets
- They make forward-or-filter decisions whereby broadcasts (all 1s), multicasts
without the need to communicate through a L3 device. Trunk links have a default
(host address = all 1s), and frames for unknown destinations go out all ports.
membership in VLAN 1 if the link fails. By default, all possible VLANs are
- This breaks up collision domains by sending only needed frames out each port.
present on a trunked link between switches (unless manually removed by an
- BUT it does not break up broadcast domains because broadcasts go out all ports.
administrator) but trunk links going to routers or servers carry only VLAN 1.
- Switches practice loop avoidance to stop broadcast storms, duplicate frames, and
confusion in their filter tables caused by multiple paths. A trunked port can
carry all VLANs ISL ROUTER
- The key method for loop avoidance is Spanning Tree Protocol (STP) using
Switc h
Bridge Protocol Data Unit (BPDU) multicasts exchanged every 2 seconds. qqqqqqqqqqq
One ISL interface,
- STP (IEEE 802.1d) is a messy protocol that causes lots of delays and recalculates many VLANs E0
the entire tree every time the network configuration changes. VLAN 1 VLAN 2
- STP elects a root bridge based on its 8-Byte bridge ID (derived from its device
TAGGING FRAMES for TRIPS DOWN TRUNKS
priority and its MAC ID). Priorities are compared (32,768 is the default) and
- Frame tagging is a L2 means of identifying Ethernet frames by their VLAN
the lowest value wins. If tied, the lowest MAC address wins.
membership. Tagging assigns each frame a unique, user-defined VLAN ID or
- Root bridge decides ports settings on remaining devices: open (designated) or
‘color.’ Frames get tagged when they first go down a trunked link. Each switch
blocked (non-designated). Lowest cost ports leading back to the root bridge
in turn reads the tag and decides whether to send it out on another trunk port or out
are called “root ports” and become the path for communications with the root.
an access port to a host. Finally, as the frame leaves an access port, the tag is
- Designated ports are chosen by lowest cost path, using links’ accumulated BWs.
stripped off so the host won’t reject it as deformed.
- When network topology changes, all data stops for 50 seconds (“convergence
- Four VLAN trunk ID (tagging) methods are:
time”) while STP re-configures all ports. Port transitions go as follows:
1) ISL (Inter-Switch Link), a Cisco proprietary method using only Fast- or Gigabit
1. blocking
Ethernet. ISL can be used on switch ports, router interfaces, or server NICs. It
2. listening (exchanging BPDUs and checking for loops) – “forwarding delay”
offers low latency and full wire-speed operation in either half- or full-duplex
3. learning all MAC addresses – a period also called a “forwarding delay”
modes. It is an external tagging method in which the original frame is not altered
4. forwarding
but further encapsulated in a new tagging frame with a 26-Byte header and a 4-
THREE FRAME HANDLING MODES Byte FCS field at its end. These frames’ max size is 1,522 Bytes. Only ISL-aware
- cut-through: fastest possible; only destination header is checked (1st 13 Bytes) devices can read these frames; other devices reject Ethernet frames not 64 to 1,518
- FragmentFree: (default mode for Catalyst 1900 switches) reads 1st 64B Bytes long. An ISL tag is applied ONLY as a frame leaves a trunk port and
checking for collision damage before forwarding removed as the frame leaves an access port. ISL is the only method on the exam.
- store-and-forward: entire frame checked; rejected if too short (<64B) or long 2) IEEE 802.1q is an industry-standard tag that adds a field to the frame. This
(>1518B) or if it has a CRC failure; method with greatest “latency” (delay). method is required if sending frames from Cisco switches to another maker’s gear.
3) LAN Emulation (LANE) couples VLANs over ATM.
CHAPTER VI – VLANs (15-20 questions, including general switching) 4) 802.10 (FDDI) Cisco’s proprietary tag for FDDI; puts SAID field in L2 header
- We can divide a switch’s ports into subnetworks called virtual LANs (VLANs) - Newer Cisco Catalyst switches use a point-to-point protocol designed for 802.1q
organized by location, function, department, applications, or protocols. called Dynamic Trunking Protocol (DTP) to control trunks in ISL or 802.1q.
- WHY VLANs? Each VLAN is a small scalable network segment & a separate
broadcast domain. Broadcasts are an unpleasant fact of network life but dividing VLAN TRUNK PROTOCOL (which has nothing to do with trunking...)
broadcast domains this way improves security and performance by breaking up - VLAN Trunk Protocol is a misleading name for Cisco software that can add,
flat networks, in which every broadcast is seen by every device. VLANs can delete, and rename VLANs, and send the changes to the entire fabric. This gives
provide automated control of each port and its resources to simplify computer network-wide consistency, allows VLANs trunked over mixed media, permits
moves, adds, and changes and cut administrative costs. monitoring, dynamic reporting of added hosts, and plug-and-play VLAN addition.
- Hosts in different VLANs must communicate through a L3 device: a router with - First turn one switch into a VTP server. VTP servers sharing VLAN info must
an interface for each VLAN, an ISL-capable router (Series 2600 and up) that can use the same domain name. VTP is unneeded if all your devices share a VLAN.
speak to all VLANs through a single interface, or a route switch module (RSM) - VTP info moves between devices via trunk ports. (Maybe that’s where the name
installed in the backplane of a 5000-Series switch to support up to 1005 VLANs. comes from: VLAN Trunk-traveling Protocol?)
Cisco calls a FastEthernet interface + ISL routing “a router-on-a-stick.” - Switches advertise VTP management info and all known VLANs to their
- This router or other L3 device can provide inter-VLAN security. domains every 5 minutes or whenever a change is made to the domain. Each
advertisement carries a revision number assigned by the VTP server. When a
VLANs must switch sees an announcement with a higher revision number, it accepts the new
L3 DEVICE
communicate via a info and overwrites its old database.
Switc h
qqqqqqqqqqq
Layer 3 device. E0 E1 - You can add a password to control users’ adding switches to your VTP domain
but the same password must be used on every switch throughout the domain.
- The default mode for Catalyst switches is server mode. Only this mode allows a
unassigned switch to create, add, or delete VLANs or change VTP info in a VTP domain.
VLAN 1 VLAN 2 Here, one router interface goes to each VLAN
Changes made in server mode are advertised domain-wide.
- If the switch in the picture was a L3 switch, it could learn from the router to pass - A switch in client mode receives and acts on VTP info but cannot change it.
packets between VLANs to speed their trip (“route once/switch many” or ROSM). Before any of its ports can join a VLAN, a client must receive instructions from a
- VLAN numbers can range from 1 to 1004. server. Before installing a new server, first make it a client so it will be up-to-date.
- Users grouped by interest are called VLAN organizations. - You can set a switch to transparent mode so it will forward advertisements but
- A group of connected switches is called a switch fabric. not act upon them. A transparent switch can still add and delete VLANs from its
- Access controls can be established anywhere within the fabric. own, unshared database, as usual.
- Administrators create static VLANs by hand. These are stable and secure, as - You can turn on VTP pruning at a server to instruct all switches in a domain to
long as the network doesn’t change much. withhold unnecessary broadcasts from disinterested trunk links. Pruning is
- If all required host MAC addresses are entered into a database, switch software disabled by default on all switches. By default, only VLANs 2-1005 can prune.
can create dynamic VLANs based on applications, protocols or other factors. The VLAN 1 can never prune because it is an administrative VLAN.
software looks up each MAC address in a database and connects it accordingly,
even if the device moves around the network. Please see page 14, “APPENDIX B – The CATALYST 1900 SWITCH”

5
CHAPTER III – IP (5 questions) Note the hosts are the magic numbers minus 2 and “networks” is just “hosts”
[Note: I moved lists of the individual protocols to Chapter I with their associated upside-down. You might be asked how many hosts you have or, similarly, to mask
OSI layers. They aren’t nearly as important as subnetting. YOU MUST just enough bits to leave a range of X hosts. Class C numbers are in the table but
ABSOLUTELY KNOW HOW TO SUBNET QUICKLY FOR THE EXAM.] counting class A and B hosts can be painful. Our example segment had 16 values
in the 3rd octet, from 192 to 207, but each of those also represents from 0 to 255 in
IP ADDRESSING
the last octet, so we’re talking about 4,096 addresses, here. Each octet you jump to
An IP address is of 32 bits divided into four octets of 4 Bytes, each:
the left represents 256 times the octet to its right.
11111111. 11111111. 11111111. 11111111 (= 255.255.255.255 in decimal)
The first four bits show the class. Classes A, B, & C use the first; first two, and Put another way, because each number in the third octet, from 192 up to and
first three octets, respectively, as their network portion. The more network ID bits, including 207, is worth 256, we multiply 16 x 256 to find out how many addresses
the fewer bits remain for any host IDs, and vice-versa. exist in our range. The short answer is 4,096 but, because we can’t use the
network or broadcast addresses, we must subtract those two to see there are 4,094
first first network host
class notes possible hosts in our range. That’s your final answer. The simplified formula is
4 bits octet addresses addresses
(magic number x 256) – 2 but if you’re instead counting steps in the second octet,
0xxx 1-126 A 126 16,777,214 (127 reserved for
it’s (magic number x 65,536) – 2. Remember that for counting in class A.
10xx 128-191 B 16,384 65,534 loopback tests)
110x 192-223 C 2,097,152 254 If 4,096 hosts are still too many, you can go on masking right into the next
111x 224-239 D multicast multicast octet, say 172.18.250.202/27. The mask is now three bits into the fourth (and
1111 240-255 E reserved reserved final) octet. This is normally class C turf, so you have to pay attention to that 172
to know it’s still a class B. Our cheater’s table has no row for the 11 bits we’re
SUBNETTING now stealing, so just ignore the third octet and pretend we’re only stealing from the
Subnetting means masking-off a range of IP addresses into a smaller network fourth. Read the table for three stolen bits (from the fourth octet). Our mask is
segment to reduce its population. This scheme improves performance, allows 255.255.255.224, our magic number is 32, and, since we’re ignoring the third octet
better management, facilitates the use of expensive WAN links, and gives planet of the mask, we’re going to apply the magic number to the fourth octet. Our IP
Earth more network addresses to work with so we don’t run out as fast. A subnet address lands between the magic number multiples 172.18.250.192 (our network
mask of 1s is applied to the IP address to mark its network portion. Let’s say a address) and 172.18.250.224 (the next network address), meaning
huge corporation died and left us its entire class B network – but we only know 172.18.250.223 is our broadcast address; everything in between,
one address in it. Here is that address in both binary and easy-to-read decimal: 172.18.250.193 through 172.18.250.222, is our host range, with 30 addresses.
10101100.00010010.1111010.11001010 = 172.18.202.10
It’s a class B, so its network address is 172.18.0.0. Its node (or host) address is Some are harder than others, especially A or B addresses using a little more or a
202.10. The normal class B mask that says where one ends and the other begins is little less than full octets. Here are some you’re glad you don’t see everyday.
11111111.11111111.00000000.00000000 = 255.255.0.0, Watch how the net address and the next net address change as another bit is stolen.
right on the “dot” between the 2nd and 3rd octets, just like usual. Now, in every address 122.67.69.10 /15 122.67.69.10 /16 122.67.69.10 /17
network segment, the 1st address, the network address, is special; it’s the address mask 255.254.0.0 255.255.0.0 255.255.128.0
we route to. The last address before the next segment is special, too; it’s the class A A A
address we broadcast to. All the dull addresses in between? Those can be magic # 2 (in 2nd octet) 1 (in 2nd octet) 128 (in 3rd octet)
assigned to hosts. Here, our broadcast address is 172.18.255.255, meaning our net address 122.66.0.0 122.67.0.0 122.67.0.0
hosts run from 172.18.0.1 to 172.18.255.254. But we know not to put 65,534 host b/c address 122.67.255.255 122.67.255.255 122.67.127.255
computers in one Ethernet network! (See the above table.) Instead, we can subnet next NA 122.68.0.0 122.68.0.0 122.67.128.0
and carve out several smaller networks if we mask out (“steal”) an additional few address 122.67.69.10 /23 122.67.69.10 /24 122.67.69.10 /25
bits from the next, empty octet to the right. Let’s change our mask by stealing four mask 255.255.254.0 255.255.255.0 255.255.255.128
more juicy bits from the third octet: class A A A
11111111.11111111.11110000.00000000 = 255.255.240.0, our new mask, or magic # 2 (in 3rd octet) 1 (in 3rd octet) 128 (in 4th octet)
“240 in the 3rd octet,” for short. [Also, instead of writing out the address and its net address 122.67.68.0 122.67.69.0 122.67.69.0
entire mask, we can use a shorthand of 172.18.250.202/20 to say we’ve got a mask BC address 122.67.69.255 122.67.69.255 122.67.69.127
20-ones-long.] We calculate new addresses by applying a “magic number” to the next NA 122.67.70.0 122.67.70.0 122.67.69.128
mask octet. The magic number equals 256 minus the mask. A new segment starts address 172.67.69.10 /23 172.67.69.10 /24 172.67.69.10 /25
with every multiple of the magic number. mask 255.255.254.0 255.255.255.0 255.255.255.128
Our job now is to find the new network address, broadcast address and valid class B B B
host address range for our one machine at 172.18.202.10. The magic number for magic # 2 (in 3rd octet) 1 (in 3rd octet) 128 (in 4th octet)
rd rd
our .240 mask is 16. Our mask is in the 3 octet. So, as you count up the 3 octet net address 172.67.68.0 172.67.69.0 172.67.69.0
from ‘0’ to ‘255’ a new segment starts at every multiple of 16, from 16x0, onward: BC address 172.67.69.255 172.67.69.255 172.67.69.127
172.18.0.0, our first multiple, next NA 172.67.70.0 172.67.70.0 172.67.69.128
172.18.16.0, our second multiple, Startling lessons learned:
172.18.32.0, our third, - Just because the mask is /25 doesn’t mean it’s a class C address!
172.18.48.0 ...and so on. Each multiple is the first address of a different baby - Just because the mask is 255.255.255.0 doesn’t mean it’s a class C address!
subnet.* Which multiple are we in? Our 202.10 is between multiples - Class can only be determined by looking at the first octet!
172.18.192.0 and 172.18.208.0. The broadcast address for our segment is the - Just because an address ends in .0 doesn’t mean it’s a network address!
address right before 208.0, so it’s 172.18.207.255. The range of host addresses is - Just because an address ends in .255 doesn’t mean it’s a broadcast address!
every address between the network and the broadcast addresses, like so: - Not all network addresses end in .0!
172.18.192.0 is the network address, - Not all broadcast addresses end in .255!
172.18.192.1 to 172.18.207.254 is the host range, and - Don’t let anyone tell you, “.128 masks are always illegal!”
172.18.207.255 is the broadcast address, meaning - Without the address, the mask cannot tell you how many sub-networks you get!
172.18.250.202 is valid and not reserved or illegal. The end. - You may have to crunch the numbers to find out if a given host address is valid!
Those of us who can’t do math can cope somewhat by memorizing this table: And beware these strange rules:
stolen bits mask (binary) mask magic # hosts networks - *You’re can’t use first or last multiples. This keeps ‘classful’ routing protocols
1† 10000000 .128 128 126 0† (RIP or IGRP) from getting confused by masks that aren’t /8, /16, or /24. BUT…
2 11000000 .192 64 62 2 - You can waste less space by subnetting the first and last multiples even further
3 11100000 .224 32 30 6 with a variable-length subnet mask. Don’t use more than 2 VLSMs on a network.
4 11110000 .240 16 14 14 - 10.0.0.0, 172.16.0.0, 192.168.0.0 can be private networks if kept off the Internet.
5 11111000 .248 8 6 30 - †The following .128 (one bit) masks only become valid if you say ip subnet-zero
6 11111100 .252 4 2 62 For class A: 255.128.0.0; for B: 255.255.128.0; for C: 255.255.255.128. These
7‡ 11111110 .254 2 0‡ 126 let you create only two subnets and still use them both.
8‡ 11111111 .255 1 0‡ 254 - ‡You can’t steal either 7 or 8 bits from a class C address. You’d have no hosts!

6
CHAPTER IV – CONFIGURATION BASICS (10-15 questions) (config-line)# password bozo - sets the console port password
- To configure a router, connect its console port to the serial port of a PC with a also: (config-line)# exec-timeout <min> <sec> - sets session timeout; 0 0 = never
‘console’ cable and a DB9-to-RJ45 adapter. Set HyperTerminal to your COM also: (config-line)# logging synchronous - hold pop-up messages while typing
port at 9600 baud and turn on the router. (You can’t Telnet to a virgin router (config-line)# line aux 0 - port 0 is the only port available
until IP is set up, so for remote configuration use an AUX port & modem.) (config-line)# login
Setup Mode is entered either by typing the setup command or by typing erase (config-line)# password bozo - sets the auxiliary port password; aux is typically
startup-config and rebooting. The three Setup Mode options are: used for modems but can also be used as a console connection
1) Decline the initial config dialog, skip Setup, go to the Command-Line Interface. (config-line)# line vty 0 4 - VTY is usually lines 0-to-4; more with “Enterprise” IOS
2) Basic Management Setup allows enough connectivity for management, only. (config-line)# login
3) Extended Setup, with configuration options for each interface. The setup (config-line)# password bozo - sets the Telnet password; Telnet will not operate
sequence is: hostname, en secret, en password, VTY password, SNMP, L3 until this is set, unless you leave access open with line vty 0 4 then no login.
protocols, asynch (modem) lines, BRI interface, other interfaces [connector, (config-line)# exit
full- or half-duplex, IP address & mask], and review. You then have three final (config)# no service password-encryption - turns optional encryption off
options: CLI, start over, or save & exit. CTRL-c terminates setup mode. MESSAGE of the DAY BANNER Shown at every console, aux, or Telnet entry.
- In User Exec Mode type > en and a password to go to Privileged Exec Mode, (config)# banner motd <dc> Any character can be the delimiting character (DC) but
then one of these three options to enter Global Config Mode: the default is #. Pressing it ends the message, so it cannot be used in the text.
# config terminal brings up the running-config file in RAM - Other banners are exec, incoming, and login. To keep multiple banners on
# config memory brings up the startup-config file in NVRAM (= copy start run) separate lines, add an extra blank line before pressing the DC.
# config network gets a config file from a remote TFTP host (= copy tftp start)
INTERFACE CONFIGURATION
- If you use either of those last two, the machine swaps the file you requested into
(config)# interface serial 0 engages an interface & changes the prompt to (config-if)#.
RAM so you can work on it. This replaces your running CF, so be careful!
- 2500 Series routers have fixed configurations but 2600, 3600, 4000, and 7000
- From global config mode, you can visit several sub-modes, for example:
specify their interfaces with slots and port numbers: interface fastethernet 0/0.
(config)# interface s0 to work on an interface (with a (config-if)# prompt). From
- On 7000 or 7500-Series routers with “Versatile Interface Processor” (VIP) cards,
there, type (config-if)# interface s0.1 to make a subinterface [(config-subif)#].
define an interface by slot / port_adapter / port#, thus: interface ethernet 2/0/0.
(config)# line vty 0 4 to work on a line [the new prompt = (config-line)#].
(config-if)# media-type <100BaseX/MII> sets media type (normally auto-detected).
(config)# router rip to work on a routing protocol [prompt = (config-router)#].
(config-if)# no shutdown turns on an interface; (config-if)# shutdown turns it off
- In global config mode, commands are called “major” or “global.”
- Interfaces are shutdown by default.
- Commands from (config-xxxx)# prompts are called “subcommands.”
(config)# hostname Chicago labels the router. (The label is case-sensitive.)
IOS Commands to Move Up or Down Between Different Modes/Prompts
(NOTE: Chart developed in-part from simulator software; not confirmed with real routers!)
(config-if)# description Sales Department LAN labels the interface.
Mode: Prompt down: up: IP CONFIGURATION
enter/leave IOS: none ----- ----- ----- ----- ----- ----- ----- (config)# int e0 engages Ethernet interface 0.
user exec: return exit quit logout (config-if)# ip address 172.16.10.2 255.255.255.0 secondary configures IP.
> ----- ----- exit ----- quit ----- logout (The secondary command adds this info, rather than replacing an earlier IP set up.)
privileged exec: enable disable (config-if)# no shut turns on service to the interface.
# ----- ----- ----- ----- ----- ----- ----- SERIAL INTERFACE SPEED SETTINGS
global config: config t exit end ^z - Serial interfaces usually attach to a CSU/DSU that provides synch clocking. If
(config)# ----- ----- ----- end ----- ^z two DTE routers are directly attached (as in a lab), the one at the DCE end of the
interface: int e0 exit ^z cable must provide clocking. Use (config-if)# clock rate 64000 with the rate in bps.
(config-if)# ----- exit ----- ----- ----- - The default bandwidth label on an interface is set to 1544kbps (T1 speed).
subinterface: int e0.1 IGRP, EIGRP, OSPF, & other protocols read this label to calculate routes. (RIP
(config-subif)# ----- ----- ----- ignores it.) To set it, type (config-if)# bandwidth 64 where the rate is in kbps.
COMAND LINE CURSOR GYMNASTICS and HELP COMMANDS SAVING and VIEWING CONFIGURATIONS
CTRL-w - erases a word CTRL-u - erases a line - Saving your configuration copies the file “running-config” to NVRAM,
CTRL-a - moves to start of line CTRL-e - moves to end of line overwriting “startup-config.” Do this with copy running-config startup-config.
CTRL-f or → - moves fwd one character CTRL-b or ← - moves back a character - View the two files with sh run and sh start. (You can shorten the file names, if
ESC-f - moves forward one word ESC-b - moves back one word you like.) Note: Each file shows the IOS version in use when it was created.
CTRL-p or ↑ - recalls previous command CTRL-n or ↓ - steps forward to next - Erase CFs with erase run and erase start. (Boots to setup mode if no start file.)
in history buffer newer command in history buffer - A CF is an ASCII file and can be edited with any text editing program.
- You can also copy CFs to TFTP hosts. Use copy run tftp or copy start tftp to
TAB - completes partial commands CTRL-c - breaks off long data displays
CTRL-z - ends any configuration mode CTRL-SHIFT-6 - pauses some running make the backup and copy tftp run or copy tftp start to restore the desired file.
and returns to privileged exec mode processes (e.g. Telnet sessions) INTERFACE DIAGNOSTICS
- Ping an interface using a specific protocol with ping <protocol> <address>.
command ? - (with a space) gives all possible options to follow “command”
xxxxx? - (no space before the ?) gives all possible completions of the text “xxxxx” - Get the address of a neighbor with sh cdp neighbor detail.
- Telnet (the best tool to verify IP connectivity) telnet <address/hostname>. (The
sh history - shows last 10 (default value) commands
sh terminal - shows terminal configuration & size of command history buffer word “telnet” is understood if you just type the address or hostname.)
terminal history size <0-256> - resizes command history buffer # sh running-config tells interface stati, descriptions, &c.
sh version - shows IOS version, CF names and sources, hardware config, # sh interface e0 as above, plus tells if the interface is administratively down (using
Configuration Register code shutdown). Shows L2 & L3 addresses, encapsulation methods, collision stats,
Maximum Transmission Unit (1500 Bytes by default), BW label, keepalive
5 PASSWORDS – en secret, en password, console port, aux port, & Telnet frequency (must be same on both ends); & carrier detect/keepalive status, thus:
- Two passwords are available to enter the Privileged Exec (“enable”) Mode: Ethernet0 is up, line protocol is up. The first item shows L1 cable or interface
enable secret bozo - sets the encrypted enable password; this is the preferred one problems, the second item shows L2 mismatched keepalives, encapsulations, or
enable password bozo - sets the plain-text enable password; use as a last resort clock rates not set. I always call it the “L1/L2 up/down stats.” Possibilities are:
The two can’t be in effect simultaneously; if you try, the ‘secret’ takes precedence. up/up = operational down/down = interface problem
enable use-tacacs - sets enable password on several routers using TACACS server up/down = connection trouble administratively down/down = disabled
SETTING the OTHER PASSWORDS (& using OPTIONAL ENCRYPTION) - If the interface is administratively off, the remote end will say down and down.
- You can encrypt the 4 plain-text passwords so sh running-config won’t show ‘em: - You can reset the counters for the above command with # clear counters <int#>.
(config)# service password-encryption - turns optional encryption on # sh controllers s 0 shows info about the physical interface and type of serial cable
(config)# enable password bozo - sets the plain-text ‘enable’ password, just like we (DTE or DCE) attached. (Note the required space between the s and the 0.)
did above; this can be included in the encryption process if you desire sh <ip/ipx> interface shows L3 address, applied lists, L1/L2 status for all interfaces.
- Next, set the three “line” passwords, the ones used to connect to the router: sh <ip/ipx> interface brief just gives the status check with L1/L2 ups/downs.
(config)# line console 0 - port 0 is the only port available
(config-line)# login
7
CHAPTER V – IP ROUTING (6-10 questions) Holddowns are cleared early if a route update arrives with a better metric than
- The ability to route requires a knowledge of a destination address, of potential the dead route had.
routes to other networks and the best route to each, a learning relationship - Triggered updates are immediate, forced (instead of periodic) updates to
between neighboring routers, and a means to maintain and verify routing tables. routing tables made when things change. They reset holddown timers if
- Each interface on a router must attach to a different network. the timer expires, the router gets a processing task proportional to the
- Routers discard packets for unknown networks (if default routing is not enabled). number of links in the network (making the router effectively forget about
- Basic router set up (see Chapter IV) gives a hostname to the router, applies an IP the holddown), or a new update says network status has changed.
address (and clock rate, if needed) to each interface, and turns the interfaces on.
ROUTING INFORMATION PROTOCOL (RIP)
- If a network is unreachable, its entry is automatically dropped from the table.
- RIP is a D/V protocol sending a full table every 30 seconds.
- There are three types of routing: static, default, and dynamic:
- RIP has a long convergence time.
STATIC ROUTING - RIP uses only one metric: hop count, with a maximum hop count of 15.
 no CPU overhead  requires deeper understanding - AD = 120
 no network bandwidth  new routes must be added manually - RIP will load balance between up to 6 links of equal cost.
 administrator oversight of security  only workable on small networks - good for small networks but inefficient on large ones with slow WAN links or
- Syntax: ip route <dest_addr> <dest_mask> <next_hop> <admin_dist> permanent many routers
(config)# ip route 172.16.20.0 255.255.255.0 172.16.10.2 - turns on static routing - RIP v1 uses only classful routing, requiring all devices to use the same subnet
- next_hop could also be the exit_interface for a point-to-point link (on a WAN). because it doesn’t send subnet info in its updates.
- admin_distance (AD; 0-255) is a scale of trust in routing information, - RIP v2 does do classless routing but is not on the exam.
depending on its source. Some default ADs for various sources are: - RIP uses three timers:
connected interface 0 OSPF 110 - update timer: sets update frequency (default = 30 seconds)
static or default route 1 RIP 120 - invalid timer: sets time with no mention of route before route is declared
EIGRP 90 external EIGRP 170 invalid (default = 90 seconds)
IGRP 100 unknown 255 (will never be used) - flush timer: sets time after invalid status before the route is removed from the
- permanent keeps unreachable networks from being deleted from the table. table (default = 240 seconds) The flush delay is used to inform other routers
- Verifying static routes using # sh ip route shows the directly connected of the dead route’s impending removal.
networks and any remote networks the router knows and can reach. Directly - RIP is configured thus:
connected routes have a C beside them; static routes have an S and a note (config)# no ip route 172.16.20.0 255.255.255.0 172.16.10.2 - removes static routes;
similar to [1/3] that shows [AD / hops to the particular network]. static routes have an AD of 1, so RIP (AD = 120) would never do anything
(config)# router rip - enables RIP
DEFAULT ROUTING
(config-router)# network 172.16.0.0 - sets network to advertise (note: no mask!)
- Default routing is a variant of static routing used only on stub networks (routers
(config-router)# passive–interface s0 - sets interface to receive but not send updates
with only one port leading to another router). It replaces multiple static route
if you wish to limit RIP broadcast traffic
commands with a single instruction to send all packets for unknown destinations to
- Verifying RIP with # sh ip route again shows a table of info similar to static
the same default next hop (another router’s interface) or ‘gateway of last resort.’
routing, except with an R next to each dynamically acquired RIP table entry.
- similar to a static route entry but with wildcards (vs. network and mask info)
- 1st delete static route entries with no ip route 172.16.20.0 255.255.255.0 172.16.10.2 INTERIOR GATEWAY ROUTING PROTOCOL (IGRP)
- 2 nd add default entry: ip route 0.0.0.0 0.0.0.0 172.16.10.2 where 172.16.10.2 is the - IGRP is a Cisco proprietary D/V protocol designed as an improvement to RIP.
gateway of last resort. - IGRP has maximum hop count of 100 by default with a maximum setting of 255.
rd
- 3 , Cisco routers are classful, allowing protocols like RIP and IGRP to expect - AD = 100
only /8, /16, or /24 masks on each interface. Typing ip classless, however, - IGRP uses a composite metric of BW and delay by default but can also use
keeps packets from being discarded due to unrecognized destinations. Always reliability, load, and/or MTU (maximum transmission unit), if desired.
use this command with default routing, even though it will sometimes work - IGRP uses four timers: update = 90 seconds; invalid = 3 x update;
without it. (Classless routing is set by default in newer IOS releases.) flush = 7 x update; holddown = (3 x update) + 10 seconds
- Verifying dynamic routes with # sh ip route shows similar information as with - IGRP is configured thus:
static routes, except the several S entries have been replaced by one S* entry (config)# router igrp 10 - enables IGRP in AS number 10; all routers in an
indicating the default route “candidate.” autonomous system must be configured with the same AS # (1-65535)
(config-router)# network 172.16.0.0 - sets network to advertise (note: no mask!)
DYNAMIC ROUTING: RIP & IGRP DISTANCE VECTOR PROTOCOLS
- IGRP can load balance up to 6 unequal routes using this command to control the
- uses routing protocols to automatically update tables (at a cost of bandwidth)
balance between the lowest cost and the highest acceptable cost:
- two types: Interior Gateway Protocols and Exterior Gateway Protocols
(config-router)# variance <1-128> where the value is the metric variance multiplier
- IGPs are used within autonomous systems (AS; a set of networks under
- other commands to help control traffic distribution are:
common administration, sometimes called a domain).
(config-router)# traffic-share balanced meaning, “share over the routes in proportion
- EGPs are used between autonomous systems.
to their metrics,” and
- three classes of routing protocols (RIP and IGRP, only, are on the exam):
(config-router)# traffic-share min meaning, “share only among routes with the same,
1) distance vector (RIP/IGRP) uses hop counts [but see IGRP details, below].
lowest cost”
2) link state (OSPF) uses 3 tables: direct connections, topology, & routing;
- Verifying IGRP routes with # sh ip route again shows similar tables, now with an
gets a full view of the network (no rumors) by bandwidth analysis and
I for “IGRP” next to each dynamically acquired table entry and a note similar to
triggered updates, but is hard to set up and consumes much BW, itself.
[100/160360] which shows the [default IGRP AD / composite metric].
3) hybrid (EIGRP) uses bits of both
- Note: If RIP is accidentally left on, it will continue to consume BW and CPU
The INS and OUTS of DISTANCE VECTOR ROUTING (D/V) cycles, but never change a routing table because of its higher cost (AD = 120).
- passes complete tables between routers (“routing-by-rumor” vs. investigation)
ROUTING TABLE DIAGNOSTICS
- If dual routes exist to a network, the best is chosen by AD, then by other metrics.
sh ip route a table of routes to all directly connected or reachable remote networks.
- If two links have same hop count but different BW, you get pinhole congestion.
sh ip protocols shows settings: which routing protocol is in use, update frequency,
- Convergence occurs when all routers know the routes to all networks.
time to next update, timer settings, metric weights, max hops, load balancing,
- D/V tracks changes with periodic update broadcasts to all active interfaces. Slow
networks advertised, gateways found, and AD to each.
convergence means discrepancies can develop between routing tables and
sh protocols shows if routing is enabled, L1/L2 up/down stats, & L3 addresses.
reality, causing routing loops wherein rumor-fed routers endlessly pass around
sh run shows the configurations you ordered.
packets convinced their neighbors can reach a deceased link. Some cures:
debug ip rip shows routing updates as they come & go. If you’re Telnetting-in,
- Maximum hop counts: RIP permits 15 hops before a packet is discarded.
you must type terminal monitor to get these reports.
- Split horizon rules: routing info can’t be sent via the interface it arrived on.
debug ip igrp events summarizes IGRP info running on network, all requests and
- Route poisoning: dead routes are explicitly updated as being unreachable (16
responses, but NO INFO ABOUT INDIVIDUAL ROUTES.
hops away) and receiving routers send explicit poison reverse updates as
debug ip igrp transactions shows detailed contents of requests and responses,
confirmations because, hey, sometimes rumors just aren’t good enough.
including info about individual routes.
- Holddowns: delays that make routers ignore updates to keep them from
reinstating a dead route; improves stability by letting changes settle first.
8
CHAPTER VII – BOOT-UP & CONNECTIVITY TOOLS (unk # questions) - Turn on bit 6 by typing (config)# config-register 0x2142, then reload the router,
[or, on a 2500 Series router, > o to reach the option menu, then > o/r 0x2142, then I
ROUTER MEMORY COMPONENTS
for ‘initialize’
ROM (a.k.a. boot ROM) - instructions encoded on EPROM chips, including:
or, on a 2600 Series router, rommon 1> confreg 0x2142, then reset.]
- POST (power on self-test) - checks hardware for configuration and errors
- Decline to enter setup mode (asked because there is no startup-config in use).
- bootstrap sequence - instructions to initiate a start-up when the power comes on
- Enter privileged mode with > enable; copy the startup-config file (it’s still there
- ROM monitor - provides a user interface in the absence of any valid IOS image
in NVRAM, even though it wasn’t used) to the running-config file with copy
- Mini-IOS - called RxBOOT or bootloader by Cisco; will help router boot if no
start run; config t then set any passwords desired (enable secret bozo, &c.); save
real IOS is present; able to load a real IOS into flash and bring up an interface CF with copy start run; reset the CR with config-register 0x2102.
RAM (a.k.a. DRAM) - erased whenever shutdown; holds packet buffers, routing - Reload the router with # reload.
tables, functioning software and data, and the running-config file; some routers
can keep the IOS here. Examine the CF with sh running-config; RAM contents BACKING UP the IOS to a TFTP HOST
with sh memory, sh buffers, and sh stacks; programs with sh processes; CPU - By default, the IOS is stored in flash.
use with sh processes cpu. - First, copy the existing operating system to a tftp host.
flash - an EEPROM chip (keeps its memory when the router is off; can be erased [To make a router a TFTP host for storing flash images, type (config)# tftp server.]
or overwritten by special software commands); holds the Cisco Internetwork - Type # sh flash. The file’s name will be similar to c25000-js-l.112-18.bin. This
Operating System (IOS); Some routers protect the flash in read-only mode will also show any room available in flash for more file storage.
unless you boot from ROM. Examine the IOS with sh version or the size & - ping your intended remote host to ensure you have connectivity.
contents of the flash memory with sh flash. - Type # copy flash tftp. (Note: This displays the same info as the sh flash
NVRAM (non-volatile RAM) - also holds its memory when shut down; stores the command.) When asked, enter the IP address of the remote host, the source
startup-config file transferred to RAM at startup and the configuration filename, the destination filename, and confirm the copy. TFTF can only copy
register code for boot control. Examine the CR with sh version and the stored the file to the default directory on the host, so you need to set that up, first.
configuration file with sh startup-config. RESTORING / UPGRADING the IOS from a TFTP HOST
SELECTING an IOS for your NEXT BOOT [Note: This procedure forces a reboot and terminates any Telnet sessions.]
(config)# boot system flash <filename> - get IOS from flash; <filename> is optional - Put the desired source file in the default TFTP folder on the host.
(config)# boot system tftp <filename> <server_addr> - get IOS from a network file - Type # copy tftp flash. Confirm, enter the host IP address, source filename, and
(config)# boot system rom - use that Mini-IOS hiding in ROM destination filename, confirm the erasure of the flash (if there’s insufficient
- If you add all of these lines to your CF, the router will attempt each one in turn. room for both the new and old files or if this is a virgin flash), confirm again,
accept a backup of the running-config to the startup-config (if needs be), and
The ROUTER BOOT SEQUENCE confirm again. The router erases the flash, transfers the data, does a checksum
- To reboot the router, type > reload. verification, and reboots. Whew!
- The POST loads from ROM and checks health of the machine.
- The boot sequence is engaged to issue start up instructions. CISCO DISCOVERY PROTOCOL
- The IOS is loaded (from flash, by default); router now has an operating system. - CDP gathers info about the hardware and protocols on directly connected Cisco
- If a CF exists in NVRAM, it is loaded into RAM; otherwise setup mode starts. neighbor devices. It uses L2 SNAP multicasts.
- # sh cdp (on either routers or switches) shows your CDP timer (seconds between
CONFIGURATION REGISTER MATH your transmittals of CDP on all active interfaces; default = 60) and your CDP
- 16 binary bits / 4 hex digits; viewed with # sh version holdtime (seconds you’ll hold an incoming CDP packet; default = 180.)
- The CR is usually set to 0x2102. In binary that equals 0010–0001–0000–0010, - To set these, type (config)# cdp timer <seconds> or cdp holdtime <seconds>.
with bits 1, 8, & 13 turned on. Four bits at a time it reads “2 – 1 – 0 – 2.” - Routers run CDP by default. (config)# cdp run and no cdp run turn it on and off.
a 1 in this bit means... - There’s still no CDP on an interface until it’s enabled using (config-if)# cdp enable.
dec
0 0 1 0 0 0 0 1 0 0 0 0 0 0 1 0 bin
bit

hex
(Note: Bits that are normally on are shown in bold type.) - View neighbor info with # sh cdp neighbor. This lists the devices’ IDs, your
0 0x0001 interface connected to them, your remaining holdtimes for their last packets,
bits 0-3 control the bootfield (the source of the IOS):
what they do, what series they are, and their port or interface connected to you.
1 0x0002 0x0000; CR = xxx0: ROM monitor mode (no IOS)
- # sh cdp nei detail adds L3 addresses and IOS versions to the above. It’s identical
2

2 0x0004 0x0001; CR = xxx1: boot an IOS image from ROM


to # sh cdp entry *. Clear your table of neighbor data with # clear cdp table.
3 0x0008 0x0002 - 0x000F: use the IOS specified in NVRAM
- You can use Telnet to get CDP info from devices that aren’t your neighbors.
4 0x0010 [function unknown] - # sh cdp traffic counts the CDP packets you’ve sent and received and their errors.
5 0x0020 [function unknown] - # sh cdp interface lists all your interfaces’ L1/L2 up/down stats, encapsulations,
0

6 0x0040 0 = use CF from NVRAM; 1 = ignore NVRAM and cdp timer & holdtime settings. But if an interface has CDP disabled, it
7 0x0080 OEM bit enabled won’t even be mentioned!
8 0x0100 keyboard break disabled TELNET or VTY (Virtual TeletYpe)
9 0x0200 [function unknown] - Why VTY? Because the old Teletype abbreviation is “TTY.” Does that help?
1

10 0x0400 IP broadcast addresses use all zeros - Using Telnet tests connectivity through the entire IP stack. It’s your best test.
11 0x0800 - Telnet is preferable to debug, which can place extreme traffic loads on a router.
bits 11 & 12 control the console line speed - By default, before you can Telnet in to a device, its VTY password must be set.
12 0x1000
13 0x2000 boot the default ROM software if a network boot fails You can Telnet into (but not from) a 1900 Series switch but you must first set
2

its enable mode password level 15. This lets you get to the switch’s
14 0x4000 IP broadcast addresses use no network numbers
Management Console menus or command line. (You can ping from a 1900.)
15 0x8000 enable dialog messages and ignore NVRAM contents
- Launch Telnet from any Cisco or DOS prompt by typing telnet and either the
- Simplified: xxx0=ROM monitor mode, xxx1=IOS from ROM, xxx2=IOS from address or hostname to connect to. Also, any time you simply type a name or
flash, xx0x=use the CF in NVRAM, xx4x=skip the CF; Some CR examples: address into a router prompt, the Cisco IOS assumes you want to Telnet there.
2000 - RxBOOT diagnostics mode; use ‘b’ to continue booting - Close a session from the remote end’s prompt with exit. Do the same from your
2100 – force ROM monitor mode with rommon> prompt prompt with disconnect <connection_#/connection_name>.
2101 – boot IOS from ROM + NVRAM with router(boot)> (for upgrading flash) - To get back your own prompt without disconnecting, press CTRL-SHIFT-6, then x.
2102 – normal boot up (i.e. with IOS from flash + NVRAM) - # sh sessions lists current Telnet connections and their connection numbers with
(2102-210F – use the default boot filename specified in NVRAM) a * beside the most recently used. Press ENTER ENTER to go back to that one.
2141 – boot to ROM and skip the CF (for disaster recovery) - All the active consoles and ports on your router are shown with # sh users. (It’s
2142 – boot the IOS from flash but skip the CF (for password recovery) really more like ‘sh ports.’) Again, a * marks the user (port) of the current
- Change the CR with (config)# config-register <value>, then reboot terminal session. If you’re Telnetting out, your end will show all the hosts
you’re connected to. Run this command on the remote end (via Telnet) and
RESETTING PASSWORDS by TURNING ON BIT 6 for ACCESS: you’ll see all its incoming connections, yours included.
- Reboot; at the console port, interrupt the boot sequence within 30 seconds with a - Eject a guest with sh users to see his line number, then clear line <#> to toss him.
break command (CTRL-BREAK) to get to the rommon 1> prompt (on some
Continued on page 14 with “TWO WAYS TO RESOLVE HOST NAMES…”
routers). [WinNT’s HyperTerminal won’t do breaks, so upgrade or use 95/98.]

9
CHAPTER VIII – IPX (4-5 questions on encap. types & how to turn on/off) IPX ENCAPSULATION
– Part 1: IPX BASICS – - Here we mean taking L3 IPX datagrams and framing them in L2 IPX frames for
Like IP, IPX is comprised of a suite of protocols. Novell’s layered protocols use on Ethernet, Token Ring, or FDDI.
don’t, however, follow the OSI model: - Because of Novell changes through the years, these L2 frames come in four
incompatible frame types for Ethernet, two for Token Ring, and three for FDDI.
IPX...
For example, the fields in the four different IPX Ethernet frames look like this:
- stands for “Internetwork Packet eXchange”
Ethernet_802.3 802.3 IPX
- is connectionless (like UDP), therefore communications using it get no
acknowledgements Ethernet_802.2 802.3 802.2 LLC IPX
- approximates L3 (mostly) and L4 functions Ethernet_II Ethernet IPX
- talks to higher layers via “sockets,” akin to TCP “ports” Ethernet_SNAP 802.3 802.2 LLC SNAP IPX
- sends everything via broadcasts (very resilient but problematic for big See why it’s a problem? Cisco has five different names for the frame types, thus:
internetworks)
NetWare name Cisco name notes
SPX... Ethernet_802.3 novell-ether used in NW3.x; default for Ethernet
- stands for “Sequenced Packet eXchange” Ethernet_802.2 sap for NW4.0; most common (says Cisco)
- adds-on connection oriented functions (akin to TCP) Ethernet_II arpa the best if using both TCP/IP and IPX
- identifies individual connections as virtual circuits, each with a specific Ethernet_SNAP snap
connection ID in the SPX header Token –Ring sap default for Token Ring
- operates at the equivalent of L4 Token –Ring_SNAP snap
Novell RIP... FDDI_SNAP snap default for FDDI
- stands for “Routing Information Protocol” FDDI_802.2 sap
- is a distance/vector routing protocol FDDI_RAW novell-fddi
- uses “ticks” (18ths-of-a-second) and (if there’s a tie) hop counts as metrics - On a serial interface, the default encapsulation remains Cisco proprietary HDLC.
- I’ll label it as RIPIPX so as not to confuse it with TCP’s “RIP.” - Each frame type in use on a network segment constitutes a separate virtual IPX
network with its own, unique IPX network address and its own broadcast traffic.
SAP...
- To display frame types and IPX network IDs in use on a NW server, type
- stands for “Service Advertising Protocol” CONFIG on that server.
- is used to advertise/request network services from NetWare servers
– Part B: HOW TO DO IPX, ROUTER-WISE –
NLSP...
IPX SETUP
- stands for “NetWare Link Services Protocol” - Two parts to IPX setup: enabling IPX routing and enabling IPX on an interface.
- is a more advanced replacement for RIPIPX and SAP
- Cisco HDLC remains the default encapsulation method for each serial interface.
- is a link-state routing protocol
(config)# ipx routing - automatically starts RIPIPX
NCP... (config)# ipx network <network_ID_#> encapsulation <frame_type> secondary
- stands for “NetWare Core Protocol” encapsulation <frame type> is optional (see default types in above table)
- provides security, file access, synchronization, &c secondary (also optional) indicates this command is an additional
configuration with yet another frame type to use, rather than just a
In summary, Novell provides much internetworking capability on its own.
reconfiguration of the interface.
CLIENT- SERVER RELATIONS - Some examples of the above command:
- NetWare machines are either clients OR servers. Period. (config)# ipx network 20
- Servers almost always run the NetWare OS. (config)# ipx network 20 encapsulation sap secondary
- Clients can run MAC, DOS, Windows, NT, OS/2, Unix, or VMS. - A warning about the secondary command: Although multiple frame types can be
- Clients broadcast GNS (“Get nearest Server”) requests; servers answer with GNS configured on a single segment (to support different generations of Novell, say),
replies containing pointers to specific servers holding the requested resources; the this can be a lousy idea because each frame type generates its own, added
info comes from SAP tables on the servers. broadcasts. You can avoid multiple frame types by making subinterfaces, instead.
- Cisco routers can build their own SAP tables and respond as though they were ipx maximum-paths <1-64> - enables round-robin load sharing over several equal-
NW servers, or respond on behalf of a remote NW server in a different network. cost paths
ipx per-host-load-share - always sends traffic for a specific host via the same path
SERVER-SEVER RELATIONS when load sharing
- Servers speak to each other 2 ways: with SAP packets for service info and with
RIPIPX for routing info. IPX DIAGNOSTICS
- Both are sent in broadcasts at 60-second intervals. show ipx route a table of routes to all reachable IPX segments, with ticks & hops.
- Broadcasts include the sender’s own info plus accumulated info about other show ipx interfaces gives a long list: L1/L2 up/down stats, IPX addresses with
servers, as well. Eventually, all NW servers become fully enlightened. encapsulation type, and other IPX settings, mostly about access lists (chapter IX).
- Cisco routers can play this IPX update game, too; this is good because broadcasts show ipx interface e0 Same as above, but for only a single interface.
don’t normally cross routers (keeps more traffic within individual segments). show interface e0 DOES NOT SHOW IPX ADDRESS!
show protocols lists 3 things: routed protocols, L1/L2 up/down stats, and IP and
IPX ADDRESSING
IPX addresses (with IPX encapsulation type, except on subinterfaces).
- IPX addressing is hierarchical, as in IP. The first eight hex digits are the network
show ipx servers displays the accumulated SAP table info, including all known
address; the remaining twelve form the node address. Here’s an example:
servers and their offerings.
00007C80.0000.8609.33E9
show ipx traffic shows the number and type of IPX packets transmitted (both
network portion node portion total
RIPIPX and SAP traffic).
up to 8 hex digits 12 hex digits = 20 hex digits
debug ipx routing activity displays routing updates as they occur
4 Bytes 6 Bytes = 10 Bytes (1/2 Byte per hex)
debug ipx sap activity displays SAP updates as they occur
32 bits 48 bits = 80 bits (4 bits per hex)
- By convention, leading zeroes in the network address are usually not shown. Once you have the IPX address of a remote router (using show cdp neighbor detail
- The network portion of an IPX address is used, as with any L3 address, to route or show cdp entry * or by Telnetting into it), you can ping that address three ways:
packets between networks. An administrator assigns the network number. ping <ipx_address> (although that wastes time trying to ping via IP, first)
- The node portion, however, is derived automatically by copying the device’s L2 ping ipx <ipx_address>
MAC address. This means every IPX address contains both L3 and L2 info. or, for more details,
- Automatic IPX addressing means workstations require no DHCP or manual ping
configuration. ipx
- Because L2 addresses are already included within the logical addresses, there is <ipx_address>
no need for something like ARP to provide L3-to-L2 resolution. Pretty smart.

10
CHAPTER IX – ACCESS LISTS (3 questions) IP LIST WILDCARDS USING “BLOCKS”
- Rather than considering an entire octet with a 0 or ignoring it with a 255, you can
- Access lists limit packets to specified segments for improved operation and
opt to consider “blocks” of 4, 8, 16, 32, or 64 addresses within an octet by using
simplified traffic patterns, as well as limiting access for improved security.
the corresponding wildcards 3, 7, 15, 31, or 63, respectively. For example, in
- IP and IPX lists work similarly.
access-list 1 deny 172.16.32.0 0.0.7.255 the numeral 7 means “deny 172.16.32.0
- “Inbound” means from segment to router, whilst “outbound” means from router
through 172.16.39.0.” This is the block of eight network addresses from 32-to-39
to segment. Lists are applied specifically to traffic of one direction or the other.
because the wildcard to consider eight addresses is the number “7” and the
- IP and IPX lists are either ‘standard’ or ‘extended.’ Standard lists filter only by
starting address given in the corresponding (third) octet is “32.”
 source address or
-The starting address (“32,” in the above example) must be always a multiple of
 destination address (IPX, only). the block size. Here the block size is eight and because “32” is, in fact, a multiple
- Extended lists can filter by of eight, everything is proper. Hint: as a quick check, this rule means the starting
 source address address must be always a multiple of four, the smallest possible block. You can’t
 destination address start a block at a value of 39, for example, nor can you start a block of 64
 L3 ‘protocol’ field (IP, TCP, & UDP in IP lists; SAP & SPX in IPX lists) addresses with the value “40.” (But you can permit a block of 64 and then deny
 IP ‘port’ number (or IPX ‘socket’ number) little blocks of 4 within it!)
- Lists are first created, one test at a time. They are then applied to an interface.
- As you build a list, each new test is appended to its end. The sequence matters! VTY (Telnet) ACCESS CONTROL
- De-apply a list with no ip access-group 1 in, then delete it with no access-list 1; to (config)# access-list <1-99> <deny/permit> <source_address>
kill just one test, type the whole line (no access-list 1… and remaining parameters). - Telnet lists are applied like other lists, but with slightly different commands:
- Apart from that method, lists cannot be edited in the Cisco IOS but the results of (config)# access-list 1 deny 172.16.30.2 - creates the access list
show running-config or show access-list can be copied to a text editor and changed. (config)# line vty 0 4 - shifts to the Telnet line-specific prompt
- Only one list per protocol or per direction may be placed on an interface. (config-line)# access-class 1 in - applies the access list to that Telnet line
- SYNTAX NOTE! access-list to create; ip access-group (or ipx ) to apply! EXTENDED IP LISTS
(config)# access-list <100-199> <deny/permit/dynamic> <protocol> <source_address>
OPERATIONAL RULES
<destination_address> <option> <port>
- The tests in a list are always considered sequentially.
- Once a packet finds a ‘permit’ or ‘deny’ match, that action is taken and no further <dynamic> signifies a dynamic list of ‘permits’ and ‘denies.’
testing of that packet occurs. <protocol> is a protocol sufficiently high up the OSI model to act upon the port
- Each list ends with an implicit “deny everything else” statement. number you’ll specify. It’s typically TCP or UDP, because IP, ICMP, &c. –
- Lists filter only traffic from other routers, not traffic originating in their router. even though they’re legitimate choices – cannot filter on L4 port numbers!
<source_address> can appear in the following formats:
LIST CONSTRUCTION GUIDELINES host <ip_address> as above
- Place the most specific tests first. <ip_address wildcard> as above
- Apply standard lists as close to the destination as possible. any as above
- Apply extended lists and SAP filters close to the source to reduce network traffic. <destination_address> can appear in the following formats:
- If no ‘permit’ statement is included, no packets will pass. (Duh!) host <ip_address> as above
- Unless you end a list ‘permit all others,’ any traffic not passed will be discarded. <ip_address> <wildcard> as above
- Slap an access list onto a port with only narrow permissions and you can any as above
unwittingly block a lot of traffic. eq equal to the specified port number
ID NUMBER RANGES FOR ACCESS LISTS gt greater than the specified port number
1 – 99 IP standard lt less than the specified port number
100 – 199 IP extended neq not equal to the specified port number
200 – 299 Protocol Type Code range within the specified range of port numbers
300 – 399 DECnet <option> can appear in the following formats:
400 – 499 XNS standard eq equal to the specified port number
500 – 599 XNS extended gt greater than the specified port number
600 – 699 AppleTalk lt less than the specified port number
700 – 799 48-bit MAC Address standard neq not equal to the specified port number
800 – 899 IPX standard range within the specified range of port numbers
900 – 999 IPX extended established allow to pass (usually) if using an already-established connection
1000 – 1099 IPX SAP fragments check fragments
1100 – 1199 48-bit MAC Address extended log logs list #, protocol, source/dest. addresses, & port for any matches
1200 – 1299 IPX Summary Address extended log-input same as “log” also including input interface
precedence match packets with given precedence value
STANDARD IP LISTS
(config)# access-list <1-99> <deny/permit> <source_address> tos match packets with given TOS value
<port> application port, either by name (telnet) or number (23)
<1-99> is the list ID number. access-list 100 deny tcp any host 172.16.30.2 eq 23 log - deny tcp packets from any
<source_address> can appear in the following formats: source to host 172.16.30.2, specifically those for ports equal to 23; log any hits
host <ip_address> ‘host’ is the default command & may be eliminated: access-list 100 permit ip any any - permit remaining ip packets from any source to
access-list 1 deny host 172.16.30.2 - OR – any destination
access-list 1 deny 172.16.30.2 - deny traffic from this specific host ip access-group 100 out - applies the specified list to this interface
<ip_address> <wildcard> adds flexibility to the above. In the wildcard each
0 means “consider the corresponding octet in the IP address,” and each IP LIST DIAGNOSTICS
255 means “ignore the corresponding octet.” Be as specific as you like: show access-list - shows all lists by ID number and their configurations but does
access-list 1 deny 172.16.30.2 0.0.0.0 - deny traffic from just this host not show the interface to which a list is applied
access-list 1 deny 172.16.30.0 0.0.0.255 - deny traffic from all hosts in show access-list <id#> - same, but for a specific list, only; also does not show the
network segment 172.16.30.0 interface to which applied
access-list 1 deny 0.0.0.0 255.255.255.255 - deny traffic from any source show ip access-list - shows only ip (standard and extended) lists, in detail
(In the address, an ignored octet can contain any digits but is usually filled show ip interface - shows which interfaces bear which lists
with a zero, by convention.) show running-config - shows all lists and the interfaces using them
any similarly means, “consider packets from any source,” as in
access-list 1 deny any - deny packets from any source Continued on page 14 with “STANDARD IPX LISTS”
hostname <name> specifies one host: access-list 1 deny hostname RouterB
- Each additional access-list command adds another test line to the specified list.
- The command (config-if)# ip access-group <1-99> <in/out> applies the specified list
to this interface. For example: (config-if)# ip access-group 1 in
11
CHAPTER X – WANs: When Ethernet Just Doesn’t Cut It (6-10 questions) - good for infrequent, high-speed transfers
CONNECTION TYPES - a good alternative when you’re too far from a CO for DSL signals to reach
leased serial line (a.k.a. “point-to-point dedicated line”): - a back-up method to Frame Relay or a T1 leased line; good for branch offices
- synchronous serial (a direct, precisely timed digital link between 2 machines) - a suite of protocols designed by ITU-T telco bureaucrats, so it has weird terms
- always connected; no call & setup needed; you don’t share the wire - often uses PPP for encapsulation, maintaining link integrity, & authentication
- expensive but the best for constant, high-speed traffic - for encapsulation it can use PPP, HDLC (default on BRI interfaces), or LAPB
- 45Mbps, max. - supports most every type of upper-layer protocol
packet-switched (e.g. X.25 or Frame Relay): PPP (Point-to-Point Protocol – late-1980s):
- line remains open into a “cloud” network of switches used by many clients - provides ‘fake Ethernet’ L2 encapsulation for L3 contents over a modem or
- best for occasional burst transfers serial point-to-point link, either router-to-router or host-to-network
- cheaper alternative to leased lines if you’re not constantly transmitting - mostly L2 with a L1 component
- ATM, using equal-sized 53-Byte packets or “cells”, is called “cell-switched” - used mostly over circuit-switched networks, either on asynchronous (dial-up)
circuit-switched (e.g. ISDN or POTS/PSTN dial-up): or synchronous (ISDN) links
- asynchronous serial (PPP dial-ups) or synchronous serial (ISDN) - uses generic HDLC but uses NCP to identify the L3 protocol it encapsulates
- connected only when needed (usually by a call through telco copper circuits) - features PAP or CHAP authentication
- offers the lowest bandwidth of the three types - It’s an ISO-standard means of identifying encapsulated L3 info, so it can be
- toll networks are ones using the public switched telephone network (PSTN) used to connect proprietary formats.
TELECOM CONNECTION TERMS - the successor to SLIP (Serial Line Internet Protocol) since the late 1980s
DCE (“the mechanisms & links of the network portion”) Frame Relay (a child of X.25; late-1980s):
- replaces Ethernet, & other LAN frames with Frame Relay frames for
CPE
transparent transmission across packet-switched networks
CSU/ CO
DTE POP
- L2 with some L1 functions
DSU
DEMARC - industry-standard
- connection-oriented via private or switched virtual circuits (PVCs or SVCs)
DCE = data communications equipment LOCAL LOOP - originally designed for ISDN; now supports IP, DECnet, AppleTalk, IPX, &c.
DTE = data terminal equipment; a router or PC - NBMA (Non-Broadcast, Multi-Access): will not broadcast, so routers must
CPE = customer premises equipment; the stuff on-site, no matter who owns it copy routing protocols, &c. onto all VCs. All connected routers are peers.
DSU = data service unit; the T1 adapter & timing device, usually combined with the...
CSU = channel service unit; the digital connector
- uses only best-effort delivery; leaves any error checking to higher layers; less
CO = central office, the provider’s nearest point-of-presence error checking = less overhead than old X.25, so it has better performance
Demarcation (‘Demarc’) = point (equipment closet) where the CPE and Local Loop meet - excellent for bursty traffic if reliable connections; not great for voice or video
- allows dynamic bandwidth allocation, congestion control, simple flow control
– SUMMARY of WAN PROTOCOLS (except DSL, which is too new) – - 56kbps to 2,078kbps
HDLC (High-level Data-Link Control – developed from the 1970s, onward): A Word about Bit- vs. Byte-Oriented L2 Protocols:
- provides L2 encapsulation & error-checking for point-to-point links on - Bit-Oriented protocols transmit frames regardless of content; may use single
synchronous serial lines. bits to hold control info; more efficient and trustworthy than Byte-Oriented;
- used over leased-line, circuit-switched, or packet-switched networks can run in full-duplex; e.g. SDLC, HDLC, LAPB, LLC, TCP, IP.
- L2 and a bit of L1 - Byte-Oriented protocols mark frame boundaries with specific characters; need
- bit-oriented whole bytes for control info; generally superceded by bit-oriented protocols.
- uses frame characters and checksums
- does not permit authentication – The DETAILS to KNOW about PARTICULAR PROTOCOLS –
- comes in many flavors; ‘Normal Response Mode’ is an ISO-standard, BUT… PPP
- It does not identify the L3 protocol it encapsulates, THEREFORE… - Its L2 portion has three parts:
- Each vendor (Cisco included) has a proprietary identification method for an - NCP (Network Control Protocol), used to identify the L3 contents
encapsulated L3 protocol, making different vendor’s HDLCs incompatible. - LCP (Link Control Protocol), used to make/break connections; LCP provides:
- The generic, ISO version of HDLC is used by PPP (only place you’ll see it).  PAP or CHAP authentication
- Cisco HDLC is the default encapsulation for serial interfaces on Cisco routers.  ‘Stacker’ or ‘Predictor’ (for Cisco) compression
HDLC History: IBM made SDLC (Synchronous DLC) in the mid-‘70s as  ‘Quality’ and ‘Magic Number’ error-checking
part of its System Network Architecture for mainframes. Everyone copied it.  ‘Multilink’ load splitting
First the ISO made HDLC to give L2 framing to other networks. Now HDLC - generic (not proprietary!) HDLC, used to encapsulate L3 contents with no ID
has several variants: there’s NRM for SDLC users and the ITU-T bureaucrats - Its L1 portion has one part: the EIA/TIA-232C (“RS-232”) serial link standard
in France made LAP for early X.25 users, LAPB for current X.25, LAPD for
ISDN D-channels, and LAPM for modems. The IEEE built their 802.2 specs - PPP sessions are established in three phases:
on it and many vendors, Cisco included, have their own flavors. Fun, huh? - a link establishment phase
- an authentication phase
X.25 (1970s): - a network layer protocol (L3) phase
- hooks DTE gear to DCE networks via a Packet Assembler/Disassembler (PAD)
- ITU-T precursor to Frame Relay; not great for voice, video, or bursty traffic - PPP authentication methods: (You can use one, not both.)
- used over packet-switched networks - PAP (Password Authentication Protocol); like it sounds, clear text
- the L3 component of the stack is called PLP (Packet Level Protocol) authentication by the exchange of a password
- uses LAPB for L2 functions; uses the X.121 international addressing standard - CHAP (Challenge Handshake Authentication Protocol); a three-way
LAPB (Link Access Procedure, Balanced – actually “HDLC-LAPB”; 1980s): handshake; much more secure than PAP
- an HDLC variant providing heavy error-checking for DTE-DCE connections CONFIGURING PPP:
- L2 and a bit of L1 (config-if)# encapsulation ppp - turns on PPP for a serial link
- connection-oriented (config)# hostname Chicago - name it so it can identify itself when authenticating
- bit-oriented (config)# service password-config - option to encrypt the password you are setting
- was developed as part of the X.25 stack but can stand alone (config)# username Atlanta password bozo - set the name of remote router and the
- some overhead due to strict time-out and windowing requirements password it must give; Note: both routers’ passwords must be identical
- an alternative to HDLC-NRM for error-prone connections (config-if)# ppp authentication chap - set authentication method; Note: if you then
ISDN (Integrated Services Digital Network – 1970s and 1980s): say ppp authentication pap, CHAP will be the default with PAP as a back up
- L1, L2, and L3 PPP DIAGNOSTICS:
- used on ckt-switched networks like the “plain old telephone system” (POTS) show interface s0 - gives PPP info, LCP status, as well as all the usual stuff
- synchronous serial; 100% digital from end-to-end debug ppp authentication - verifies your authentication setup
- like dial-up but in digital format with immediate connections & higher speeds
- can carry voice plus data, video, audio, large files, &c. More…

12
172.16.30.1
FRAME RELAY (3 questions) CHI-NY PVC ISDN (2-3 exam questions; expect definitions)
s0.7
16 - ISDN has an alphabet soup of component labels. In North America/Japan:
172.16.30.17 NY
23
17
V U NT1
CHI TE1 module
CO ET LT
CO NY-ATL PVC inside the
ISDN switch cloud TE1
V U T S
24 42
NT NT
CO Frame Relay TE1
ET 1 2
“cloud” of switches
X = DLCI LT
ATL
= CSU/DSU S R
= FR Switch CHI-ATL PVC T
41 172.16.30.18 In Europe & Australia: TE2
A
- DTEs in FR connect via PVCs or SVCs. Every VC is labeled at either end with a
Data-Link Connection Identifier or DLCI (“DEL-see”) numbered 16-1007. S/T
- FR is NBMA, so routers must copy broadcasts onto all virtual circuits but Split- TE1
Horizon rules stop routing info (except from RIP, IGRP, EIGRP, &c. in the IP ISDN switch cloud
suite) and service updates (IPX SPA/GNS) from coming and going via the same (NT1 stuff
interface. Separate ‘full-mesh’ connections between every router might be inside)
complex and expensive. Instead, subinterfaces can host many VCs, each with S/T R
TE2
its own DLCI and L3 characteristics (IP address, &c.) on one physical interface. T
(config-if)# encapsulation frame-relay <type> enables FR on specified interface or A
subinterface and sets the encapsulation type used by the provider. The default
type is cisco and it’s proprietary; ietf (Internet Engineering Task Force) is an TE1 (Terminal Equipment, type 1): an ISDN-ready device
encapsulation based on PPP and is for connections to non-Cisco equipment. TE2 (Terminal Equipment, type 2): an ISDN-stupid device; no ISDN capability
- Create a subinterface (a common interface trick, not just a FR command) with NT1 (Network Termination, type 1): handles L1 ISDN specs; part of the carrier
(config-if)# interface s0.7 <link_type>. The two link types are point-to-point (only network outside North America/Japan but here packaged as a separate box (a
1 VC connects to your interface; each connection needs its own subnet) and type of CSU/DSU) to connect to our primitive ISDN networks
multipoint (several VCs connect; all FR interfaces use the same subnet). NT2 (Network Termination, type 2): handles L2 & L3 ISDN specs; Lammle says
(config-subif)# frame-relay interface-dlci <16-1007> applies a DLCI to a specific they are usually provider equipment (like a switch or PBX) and only rarely seen
subinterface; required on point-to-point subinterfaces; optional on multipoint. as CPE gear. I think he’s clueless about NT2s because other sources show them
- A Link (or Local) Management Interface (LMI) tracks and maintains the link as in my picture (above) and they say an NT2 is often integrated with an NT1
from the router to the FR switch. It verifies flow, auto-assigns local or global into a single box. (Maybe that’s why Lammle didn’t see them.)
DLCIs, and reports a circuit status as active, inactive, or deleted. The three TA (Terminal Adapter): often incorrectly called an ISDN ‘modem;’ the wire-
LMI types are cisco (the default), ansi, and q933a. Since IOS v11.2, LMI type converter thingy you must stick in front of a TE2 to get it to play ISDN games.
is auto-sensed but you can set it with (config-if)# frame-relay lmi-type <type>. LT (Line Termination): a physical connection point into the telco network
- On multipoint interfaces only, IP or IPX addresses at the distant-end must be ET (Exchange Termination): the telco’s ISDN switch, the first one in the cloud
mapped to DLCIs at your end, either statically or (using Inverse ARP) R reference point: between a TE2 and its TA; 2 wires
dynamically. [See the examples below.] Static maps are more reliable because S and T reference points: Supposedly, an NT2 connects to CPE gear by an ‘S’ and
IARP sometimes makes nonsense mappings to unknown devices. to an NT1 by a ‘T’. Sybex’s diagrams show no NT2s, so I made my picture
FRAME RELAY EXAMPLE with STATIC MAPPING on ROUTER “NY”: from other sources. We can say for sure 1) S & T are electrically and
(config)# int s0 - go to a serial interface zero functionally equivalent, so their names often get combined and B) they must be
(config-if)# encapsulation frame-relay - turn on Frame Relay the same as the 4-wire connections between European NT1s and TE1s/TAs,
(config-if)# int s0.7 multipoint - create a multipoint subinterface because that’s where they’re always pictured. Helpful? I didn’t think so.
(config-subif)# no inverse-arp - turn off Inverse ARP U reference point: between DCE (meaning “telecom”) line termination equipment
(config-subif)# ip address 172.16.30.1 255.255.255.0 - set IP address on subinterface and NT1s (only in North America and other ass-backward zones); 2 wires
(config-subif)# frame-relay map ip 172.16.30.17 16 ietf broadcast - map Chicago’s IP V reference point: between ET and LT; I have no idea how many wires it has.
address to your DLCI 16; use IETF encapsulation for this subinterface because ISDN protocols starting with...
Chicago has non-Cisco gear; let broadcasts use this virtual circuit - E deal with ISDN use over existing phone systems
(config-subif)# frame-relay map ip 172.16.30.18 17 - map Atlanta’s IP to DLCI 17 - I deal with concepts, aspects, and services (“Could you be more vague?”)
(config-subif)# frame-relay keepalive <seconds> - set LMI keepalive (default = 10) - Q deal with switching and signaling
- To use less-stable, automatic IARP mapping instead, enter only these commands: BRI (Basic Rate Interface) 2B (bearer) + 1D (data) channels, total 128kbps
(config-if)# int s0.7 multipoint - create a multipoint subinterface B = data @ 64kbps
(config-subif)# encapsulation frame-relay ietf - turn on Frame Relay, IETF type D = control & signaling @ 16kbps
(config-subif)# ip address 172.16.30.1 255.255.255.0 - set subinterface’s IP address PRI (Primary Rate Interface)
- FR switches can apply three congestion control methods: In North America: 23B + 1D channels (a “T1”), total 1.544Mbps
- DE (Discard Eligibility) bit: Less-important packets have the DE bit turned In Europe, Australia, &c: 30B + 1D channels (an “E1”), total 2.048Mbps
on so they may be dumped if congestion occurs. B = data @ 64kbps [Since 1k=1024 and 1M=1024k, I know the above

- FECN (Forward Explicit Congestion Notification) bit: Gets turned on as a D = control & signaling @ 64kbps totals don’t add up but try not to worry about it!]

warning to the destination if a packet encounters congestion along its trip. How ISDN connects: Router connects D channel to near-end ISDN switch; switch
- BECN (Backward Explicit Congestion Notification) bit: Gets turned on in a sets path to distant-end switch via SS7 signaling; distant-end switch connects D
special packet sent back to the source as a warning. channel to remote router; B channel(s) are connected from end to end.
- CIR (Committed Information Rate): A provider’s guaranteed minimum rate - Use (config)# or (config-if)# isdn switch-type <keyword> to configure the correct
with faster speeds possible if traffic is light. Low CIRs mean more packets are ISDN switch type, where the keyword tells the manufacturer and switch type.
dispensable, with their DE bits set to ‘on.’ Basic-5ess = an AT&T basic rate and Basic-ni1 = a National ISDN-1 switch.
- BRI interface hookups may require you use isdn spid1 <spid> <local_dial#> and
FRAME RELAY DIAGNOSTICS: isdn spid2 <spid> <local_dial#> to configure the SPID (Service Protocol ID –
# show frame-relay <x> where ‘x’= ip, route, traffic, or, more importantly, like an account number) for each B channel to let your equipment talk to the
lmi shows type, errors, LMI traffic details ISDN switches. The local dial number may or may not be required.
pvc stats for PVCs (up/down) & DLCIs, including BECN and FECN counts - A full ISDN PRI setup goes: isdn switch-type <keyword>; controller t1 <slot/port>;
map L3 address-to-DLCI number mappings, static/IARP mapping, LMI stats framing esf; linecode b8zs; pri-group <timeslots/range>. (So I’m told.)
# show interface s0 - line, protocol, LMI type, and general LMI stats
More…
# debug frame-relay lmi - shows if router and switch are sharing correct LMI info
13
DDR (Dial-on-Demand Routing) for ISDN or DIAL-UP - To selectively remove a VLAN from a trunked port (for security, broadcast, or
- for low-volume, occasional connections via POTS/PSTN (dial-up or ISDN) routing update issues): (config-if)# no trunk-vlan 5 - repeat for each VLAN to kill
- connects when ‘interesting’ packets dictate; breaks when idle time-out ends. - Multiple ports can trunk. Each is identified with a letter. Verify trunking with
- First, set up a static route (so routing protocol traffic won’t keep you connected): # sh trunk (for all trunking ports) or # sh trunk <letter> (for specific ports) and
(config)# ip route 172.16.50.0 255.255.255.0 172.16.60.2 - “get to ’50 via 60.2” # sh trunk <letter> allowed-vlans to see remaining VLANs after some are removed.
(config)# ip route 172.16.60.2 255.255.255.255 bri0 -“get to 60.2 via bri0”
Key Terms: auto duplex: duplex is set automatically; dynamic entries: a L2 or L3
- All participating routers require full static route knowledge of the network.
address table built dynamically; port security: frame restrictions on switch ports;
- Default routing can be used on stub networks (only one outlet to other networks).
set-based: the older CLI for Cisco switches, as opposed to newer IOS-based types.
- Next step, specify the interesting traffic with a ‘dialer-list’ command:
(config)# dialer-list 1 protocol ip permit - “List 1 says, ‘all IP traffic is interesting.’”
(config)# int bri0 - choose the interface CHAPTER VII – BOOT-UP & CONNECTIVITY TOOLS, continued from pg 9
(config-if)# dialer-group 1 - apply List 1 to the specified interface TWO WAYS TO RESOLVE HOST NAMES to IP ADDRESSES:
- Last step, configure the dialer: HOST TABLES: ip host <name> <tcp_port#> <ip_addresses_1-8> The default port
(config-if)# ip address 172.16.60.1 255.255.255.0 - assign the interface an IP address number for TCP is 23 (so you can skip it) and you can list up to 8 IP addresses:
(config-if)# no shut - turn the interface on (config)# ip host Atlanta 172.16.10.2
(config-if)# encapsulation ppp - select an encapsulation type (config)# ip host Chicago 192.168.0.148, &c. To view your table, type # sh hosts.
(config-if)# dialer-string 8350661 - set up the number(s) to dial – OR – Manual entries will say perm; DNS entries will say temp. Verify with ping.
(config-if)# dialer map ip 172.16.60.2 name Chicago 8350661 - map the number(s) to - To remove an entry, type no ip host Atlanta.
dial, which is more secure. (This method uses the IP address of the next hop DOMAIN NAME SYSTEM (DNS): The IOS assumes you want to use DNS any
router and the hostname of the remote router for authentication.) time you type an unknown command. It looks for your typed gibberish in its
- To tell the dialer when to bring up the second B channel, type hosts table, thinking you might be naming a device you want to Telnet to. To
(config-if)# dialer load-threshold <1-255> <in/out/either>, where 1-255 is the relative turn this feature off, use no ip domain-lookup.
load level and the direction tells which traffic you want used as a trigger. The - To set up DNS: Turn it back on with
default is to monitor outbound traffic. (config)# ip domain-lookup. (What? You thought you could leave it off?)
- To set the idle disconnect time for calls, use (config)# ip name-server 192.168.0.70 points to your DNS server. (6 servers, max.)
(config-if)# dialer idle-timeout <seconds> The default is 120 seconds. (config)# ip domain-name mycompany.com (optional) appends this domain name
- You can extend the “interesting” list by pointing it to an access list: any time you type the name of a host. This is a good idea because DNS
(config)# dialer-list 1 list 100 -“ Use access list 100 to define dialer list 1.” demands FQDNs (Fully Qualified Domain Names) to operate.
(config)# access-list 100 permit tcp any any eq smtp - add to access list 100 View your host table with # sh hosts. Test with ping.
(config)# access-list 100 permit tcp any any eq telnet - add to access list 100 PINGing and TRACEing
(config-if)# dialer-group 1 - apply the dialer list to the specified interface - ‘Ping’ requests ICMP echo packets from a target; ‘Trace’ uses TTL (time-to-live)
- Note: The access list is created but not applied anywhere. The access list may values from each router it meets to send back a list of hops along the way.
be of any type, 1-1299. - Both ping & trace work with many protocols. To specify a particular protocol,
ISDN & DDR DIAGNOSTICS: type ping <protocol> <target>. Same syntax for trace: trace <protocol> <target>.
ping or telnet - make sure ping and Telnet are designated “interesting” so the link TURNING OFF DEBUG
comes up when you try to use them! undebug ip <specific debug command> or no debug all or undebug all or just un al
show dialer - gives diagnostic info for all the above dialer commands
show isdn active - shows the number called, if a call is in progress
CHAPTER IX – ACCESS LISTS, continued from pg 11
show isdn status - used before dialing to check SPID validity; confirms L1, L2, &
L3 are talking to the provider’s switch STANDARD IPX LISTS
show ip route - displays all the known routes (config)# access-list <800-899> <deny/permit> <source_ipx_address>
debug isdn q921 - gives L2 info, only (Remember those “Q” protocols?) <destination_ipx_address> For example:
debug isdn q931 - gives L3 info (including call set-up & tear-down) (config)# access-list 800 permit 20 40 - creates the list
debug dialer - display call set-up/tear-down activity as it happens (config-if)# ipx access-group 800 out - applies it to the specified interface
isdn disconnect interface bri0 - hang up the specified interface; this is the same as - The wildcard “-1” when used in either the source or destination address fields
shutting down the interface with (config-if)# shutdown means “any host or network.”
EXTENDED IPX LISTS
APPENDIX B – The CATALYST 1900 SWITCH, related to “switching,” pg 5 (config)# access-list <900-999> <deny/permit> <protocol> <source_ipx_address>
- 1900 switch passwords must be from 4 to 8 characters long (not case-sensitive). <source_socket> <destination_ipx_address> <destination_socket>
- Switch ports are labeled by type slot/port (e.g. ethernet 0/16, or fastethernet 0/26). IPX SAP FILTER LISTS - Must be placed on all participating routers!
Small switches have only “slot zero.” Use (config)# int e0/16 to configure port 16. - INPUT lists stop specified SAP traffic from updating the router’s SAP table.
FIRST, CREATE YOUR VLANs… - OUTPUT lists stop specified SAP updates from being sent by the router.
(config)# hostname MySwitch - names the switch (config)# access-list <1000-1999> <deny/permit> <source_ipx_address>
(config)# vlan 2 name sales - creates and names VLAN 2 <service_type> <SAP_server_name>
(config)# vlan 3 name marketing - creates and names VLAN 3 <source_ipx_address> can appear in the following formats:
(config)# vlan 4 name tech - creates and names VLAN 4 <0-FFFFFFFF> network ID, only
- …Then map them to ports: (Only static mapping is on the exam.) All ports <N.H.H.H> fully specific source address (both network and host)
are initially mapped to VLAN 1, by default; only one VLAN is allowed per port: –1 indicates any network. (Note the minus sign.)
(config)# int e0/2 - go to Ethernet port 2 (in slot 0) <service_type> can appear in the following formats:
(config-if)# vlan-membership static 4 - map only one VLAN; repeat for other ports <0-FFFF> service code: 4 = file server, 7 = print server, 24 = router
<N.H.H.H> mask for specific source address
# sh vlan – gives names, status, port mappings
0 indicates all services.
# sh vlan 2 – as above, plus type, SAID, MTU, parent, ring#, bridge#, STP, &c.
(config)# access-list 1000 permit 9e.6666.7777.8888 4 sappy_serv - creates the list
# sh vlan-membership - list each port, its VLAN, and whether static or dynamic
(config-if)# ipx input-sap-filter 1000 - applies it to specified interface; note hyphens!
PUTTING MULTIPLE VLANs through ONE PORT by TRUNKING IT
IPX LIST DIAGNOSTICS
Add ALL the VLANs to a “trunked” port and set how it deals with the device
show ipx interface - shows IPX address, applied lists, SAP filters for all interfaces
plugged into it: (config-if)# trunk <option> where option is one of the following:
show ipx access-list - shows lists in detail (with all Fs instead of wildcards)
auto – do trunk mode if the other device is on or desirable
(See IP LIST DIAGNOSTICS, above, for show access-list, & other options.)
desirable – negotiate trunk mode if other device is on, desirable, or auto
on – permanent trunk port; negotiate conversion to trunked mode * END *
nonegotiate – permanent trunk port; don’t negotiate
off – no trunking; try to convert other device to be on-trunk, too

14
SPECIAL BONUS PAGE: 10 things you should immediately dump onto your source AD
scratch paper as your exam begins (like, before you forget them). connected interface 0
7 All Application static or default route 1
6 People Presentation Data IGRP 100
5 Seem Session RIP 120
4 To Transport Segments
3 Need Network Packets 0 = ROM monitor mode (no IOS)
2 Data Data-Link Frames 1 = boot an IOS image from ROM

2
1 Processing* Physical Bits 2 = use the IOS specified in NVRAM (default)
(* Or whatever works for you.)

0
CORE 0 = use CF (default); 4 = ignore CF
DISTRIBUTION

2 1
ACCESS
FTP 21
Telnet 23 Novell Cisco
SMTP 25 Ethernet_802.3 novell-ether (default)
DNS 53 Ethernet_802.2 sap
HTTP 80 Ethernet_II arpa
Ethernet_SNAP snap
1-126 A
128-191 B 1 – 99 IP standard
192-223 C 100 – 199 IP extended
800 – 899 IPX standard
stolen bits mask magic # hosts networks ISDN switch cloud
1 .128 128 126 0
2 .192 64 62 2 V U T S
NT NT
3 .224 32 30 6 ET 1 2 TE1
4 .240 16 14 14 LT
5 .248 8 6 30
6 .252 4 2 62 S R
7 .254 2 0 126 T TE2
8 .255 1 0 254 A

FILL-IN-THE-BLANKS PRACTICE SECTION: source AD


7 connected interface
6 static or default route
5 IGRP
4 RIP
3
2 0=
1 1=
_

3 Cisco layers 2=
_

0=
_ _

protocol port #

Novell Cisco
(default)

range class
A IP standard
B IP extended
C IPX standard
ISDN switch cloud
stolen bits mask magic # hosts networks
1
2
3
4
5
6
7
8

15

You might also like