Book description
Never has something cried out for a cookbook quite as much as Cisco's Internetwork Operating System (IOS). IOS is powerful and flexible, but also confusing and daunting. Most tasks can be accomplished in several different ways. And you don't want to spend precious time figuring out which way is best when you're trying to solve a problem quickly.
That's what this cookbook is for. Fortunately, most router configuration tasks can be broken down into several more or less independent steps: you configure an interface, you configure a routing protocol, you set up backup links, you implement packet filters and other access control mechanisms. What you really need is a set of recipes that show you how to perform the most common tasks, so you can quickly come up with a good configuration for your site. And you need to know that these solutions work: you don't want to find yourself implementing a backup link at 2 A.M. because your main link is down and the backup link you set up when you installed the router wasn't quite right.
Thoroughly revised and expanded, Cisco IOS Cookbook, 2nd Edition, adds sections on MPLS, Security, IPv6, and IP Mobility, and presents solutions to the most common configuration problems, including:
- Configuring interfaces of many types, from serial to ATM and Frame Relay
- Configuring all of the common IP routing protocols (RIP, EIGRP, OSPF, and BGP)
- Configuring authentication
- Configuring other services, including DHCP and NTP
- Setting up backup links, and using HSRP to configure backup routers
- Managing the router, including SNMP and other solutions
- Using access lists to control the traffic through the router
If you work with Cisco routers, you need a book like this to help you solve problems quickly and effectively. Even if you're experienced, the solutions and extensive explanations will give you new ideas and insights into router configuration. And if you're not experienced--if you've just been given responsibility for managing a network with Cisco routers--this book could be a job-saver.
Publisher resources
Table of contents
- Cisco IOS Cookbook
- A Note Regarding Supplemental Files
- Preface
-
1. Router Configuration and File Management
- Introduction
- Configuring the Router via TFTP
- Saving Router Configuration to Server
- Booting the Router Using a Remote Configuration File
- Storing Configuration Files Larger Than NVRAM
- Clearing the Startup Configuration
- Loading a New IOS Image
- Booting a Different IOS Image
- Booting over the Network
- Copying an IOS Image to a Server
- Copying an IOS Image Through the Console
- Deleting Files from Flash
- Partitioning Flash
- Using the Router as a TFTP Server
- Using FTP from the Router
- Generating Large Numbers of Router Configurations
- Changing the Configurations of Many Routers at Once
- Extracting Hardware Inventory Information
- Backing Up Router Configurations
- Warm Reload
- Warm Upgrade
- Configuration Archiving
- Locking Configuration Access
-
2. Router Management
- Introduction
- Creating Command Aliases
- Managing the Router’s ARP Cache
- Tuning Router Buffers
- Auto Tuning Buffers
- Using the Cisco Discovery Protocol
- Disabling the Cisco Discovery Protocol
- Using the Small Servers
- Enabling HTTP Access to a Router
- Enabling Secure HTTP (HTTPS) Access to a Router
- Using Static Hostname Tables
- Enabling Domain Name Services
- Disabling Domain Name Lookups
- Specifying a Router Reload Time
- Scheduling of Router Commands
- Displaying Historical CPU Values
- Creating Exception Dump Files
- Generating a Report of Interface Information
- Generating a Report of Routing Table Information
- Generating a Report of ARP Table Information
- Generating a Server Host Table File
-
3. User Access and Privilege Levels
- Introduction
- Setting Up User IDs
- Encrypting Passwords
- Using Better Password-Encryption Techniques
- Removing Passwords from a Router Configuration File
- Deciphering Cisco’s Weak Password Encryption
- Displaying Active Users
- Sending Messages to Other Users
- Changing the Number of VTYs
- Changing VTY Timeouts
- Restricting VTY Access by Protocol
- Enabling Absolute Timeouts on VTY Lines
- Implementing Banners
- Disabling Banners on a Port
- Disabling Router Lines
- Reserving a VTY Port for Administrative Access
- Restricting Inbound Telnet Access
- Logging Telnet Access
- Setting the Source Address for Telnet
- Automating the Login Sequence
- Using SSH for Secure Access
- Changing Privilege Level of IOS Commands
- Defining Per User Privileges
- Defining Per Port Privileges
-
4. TACACS+
- Introduction
- Authenticating Login IDs from a Central System
- Restricting Command Access
- Losing Access to the TACACS+ Server
- Disabling TACACS+ Authentication on a Particular Line
- Capturing User Keystrokes
- Logging System Events
- Setting the IP Source Address for TACACS+ Messages
- Sample Server Configuration Files
-
5. IP Routing
- Introduction
- Finding an IP Route
- Finding Types of IP Routes
- Converting Different Mask Formats
- Using Static Routing
- Floating Static Routes
- Using Policy-Based Routing to Route Based on Source Address
- Using Policy-Based Routing to Route Based on Application Type
- Examining Policy-Based Routing
- Changing Administrative Distances
- Routing Over Multiple Paths with Equal Costs
- Static Routes That Track Interfaces or Other Routes
- Keeping Statistics on Routing Table Changes
-
6. RIP
- Introduction
- Configuring RIP Version 1
- Filtering Routes with RIP
- Redistributing Static Routes into RIP
- Redistributing Routes Using Route Maps
- Creating a Default Route in RIP
- Disabling RIP on an Interface
- Default Passive Interface
- Unicast Updates for RIP
- Applying Offsets to Routes
- Adjusting Timers
- Configuring Interpacket Delay
- Enabling Nonperiodic Updates
- Increasing the RIP Input Queue
- Configuring RIP Version 2
- Enabling RIP Authentication
- RIP Route Summarization
- Route Tagging
-
7. EIGRP
- Introduction
- Configuring EIGRP
- Filtering Routes with EIGRP
- Redistributing Routes into EIGRP
- Redistributing Routes into EIGRP Using Route Maps
- Disabling EIGRP on an Interface
- Adjusting EIGRP Metrics
- Adjusting Timers
- Enabling EIGRP Authentication
- EIGRP Route Summarization
- Logging EIGRP Neighbor State Changes
- Limiting EIGRP’s Bandwidth Utilization
- EIGRP Stub Routing
- Route Tagging
- Viewing EIGRP Status
-
8. OSPF
- Introduction
- Configuring OSPF
- Filtering Routes in OSPF
- Adjusting OSPF Costs
- Creating a Default Route in OSPF
- Redistributing Static Routes into OSPF
- Redistributing External Routes into OSPF
- Manipulating DR Selection
- Setting the OSPF RID
- Enabling OSPF Authentication
- Selecting the Appropriate Area Types
- Using OSPF on Dial Interfaces
- Summarizing Routes in OSPF
- Disabling OSPF on Certain Interfaces
- Changing the Network Type on an Interface
- OSPF Route Tagging
- Logging OSPF Adjacency Changes
- Adjusting OSPF Timers
- Reducing OSPF Traffic in Stable Networks
- OSPF Virtual Links
- Viewing OSPF Status with Domain Names
- Debugging OSPF
-
9. BGP
- Introduction
- Configuring BGP
- Using eBGP Multihop
- Adjusting the Next-Hop Attribute
- Connecting to Two ISPs
- Connecting to Two ISPs with Redundant Routers
- Restricting Networks Advertised to a BGP Peer
- Adjusting Local Preference Values
- Load-Balancing
- Removing Private ASNs from the AS Path
- Filtering BGP Routes Based on AS Paths
- Reducing the Size of the Received Routing Table
- Summarizing Outbound Routing Information
- Prepending ASNs to the AS Path
- Redistributing Routes with BGP
- Using Peer Groups
- Authenticating BGP Peers
- Using BGP Communities
- Using BGP Route Reflectors
- Putting It All Together
-
10. Frame Relay
- Introduction
- Setting Up Frame Relay with Point-to-Point Subinterfaces
- Adjusting LMI Options
- Setting Up Frame Relay with Map Statements
- Using Multipoint Subinterfaces
- Configuring Frame Relay SVCs
- Simulating a Frame Relay Cloud
- Compressing Frame Relay Data on a Subinterface
- Compressing Frame Relay Data with Maps
- PPP over Frame Relay
- Viewing Frame Relay Status Information
-
11. Handling Queuing and Congestion
- Introduction
- Fast Switching and CEF
- Setting the DSCP or TOS Field
- Using Priority Queuing
- Using Custom Queuing
- Using Custom Queues with Priority Queues
- Using Weighted Fair Queuing
- Using Class-Based Weighted Fair Queuing
- Using NBAR Classification
- Controlling Congestion with WRED
- Using RSVP
- Manual RSVP Reservations
- Aggregating RSVP Reservations
- Using Generic Traffic Shaping
- Using Frame-Relay Traffic Shaping
- Using Committed Access Rate
- Implementing Standards-Based Per-Hop Behavior
- AutoQoS
- Viewing Queue Parameters
-
12. Tunnels and VPNs
- Introduction
- Creating a Tunnel
- Tunneling Foreign Protocols in IP
- Tunneling with Dynamic Routing Protocols
- Viewing Tunnel Status
- Creating an Encrypted Router-to-Router VPN in a GRE Tunnel
- Creating an Encrypted VPN Between the LAN Interfaces of Two Routers
- Generating RSA Keys
- Creating a Router-to-Router VPN with RSA Keys
- Creating a VPN Between a Workstation and a Router
- Creating an SSL VPN
- Checking IPSec Protocol Status
- 13. Dial Backup
-
14. NTP and Time
- Introduction
- Time-Stamping Router Logs
- Setting the Time
- Setting the Time Zone
- Adjusting for Daylight Saving Time
- Synchronizing the Time on All Routers (NTP)
- Configuring NTP Redundancy
- Setting the Router As the NTP Master for the Network
- Changing NTP Synchronization Periods
- Using NTP to Send Periodic Broadcast Time Updates
- Using NTP to Send Periodic Multicast Time Updates
- Enabling and Disabling NTP Per Interface
- NTP Authentication
- Limiting the Number of Peers
- Restricting Peers
- Setting the Clock Period
- Checking the NTP Status
- Debugging NTP
- NTP Logging
- Extended Daylight Saving Time
- NTP Server Configuration
-
15. DLSw
- Introduction
- Simple Bridging
- Configuring DLSw
- Using DLSw to Bridge Between Ethernet and Token Ring
- Converting Ethernet and Token Ring MAC Addresses
- Configuring SDLC
- Configuring SDLC for Multidrop Connections
- Using STUN
- Using BSTUN
- Controlling DLSw Packet Fragmentation
- Tagging DLSw Packets for QoS
- Supporting SNA Priorities
- DLSw+ Redundancy and Fault Tolerance
- Viewing DLSw Status Information
- Viewing SDLC Status Information
- Debugging DSLw
-
16. Router Interfaces and Media
- Introduction
- Viewing Interface Status
- Configuring Serial Interfaces
- Using an Internal T1 CSU/DSU
- Using an Internal ISDN PRI Module
- Using an Internal 56 Kbps CSU/DSU
- Configuring an Async Serial Interface
- Configuring ATM Subinterfaces
- Setting Payload Scrambling on an ATM Circuit
- Classical IP Over ATM
- Configuring Ethernet Interface Features
- Configuring Token Ring Interface Features
- Connecting VLAN Trunks with ISL
- Connecting VLAN Trunks with 802.1Q
- LPD Printer Support
-
17. Simple Network Management Protocol
- Introduction
- Configuring SNMP
- Extracting Router Information via SNMP Tools
- Recording Important Router Information for SNMP Access
- Using SNMP to Extract Inventory Information from a List of Routers
- Using Access Lists to Protect SNMP Access
- Logging Unauthorized SNMP Attempts
- Limiting MIB Access
- Using SNMP to Modify a Router’s Running Configuration
- Using SNMP to Copy a New IOS Image
- Using SNMP to Perform Mass Configuration Changes
- Preventing Unauthorized Configuration Modifications
- Making Interface Table Numbers Permanent
- Enabling SNMP Traps and Informs
- Sending Syslog Messages As SNMP Traps and Informs
- Setting SNMP Packet Size
- Setting SNMP Queue Size
- Setting SNMP Timeout Values
- Disabling Link Up/Down Traps per Interface
- Setting the IP Source Address for SNMP Traps
- Using RMON to Send Traps
- Enabling SNMPv3
- Strong SNMPv3 Encryption
- Using SAA
-
18. Logging
- Introduction
- Enabling Local Router Logging
- Setting the Log Size
- Clearing the Router’s Log
- Sending Log Messages to Your Screen
- Using a Remote Log Server
- Enabling Syslog on a Unix Server
- Changing the Default Log Facility
- Restricting What Log Messages Are Sent to the Server
- Setting the IP Source Address for Syslog Messages
- Logging Router Syslog Messages in Different Files
- Maintaining Syslog Files on the Server
- Testing the Syslog Sever Configuration
- Preventing the Most Common Messages from Being Logged
- Rate-Limiting Syslog Traffic
- Enabling Error Log Counting
- XML-Formatted Log Messages
- Modifying Log Messages
-
19. Access-Lists
- Introduction
- Filtering by Source or Destination IP Address
- Adding a Comment to an ACL
- Filtering by Application
- Filtering Based on TCP Header Flags
- Restricting TCP Session Direction
- Filtering Multiport Applications
- Filtering Based on DSCP and TOS
- Logging When an Access-List Is Used
- Logging TCP Sessions
- Analyzing ACL Log Entries
- Using Named and Reflexive Access-Lists
- Dealing with Passive Mode FTP
- Using Time-Based Access-Lists
- Filtering Based on Noncontiguous Ports
- Advanced Access-List Editing
- Filtering IPv6
-
20. DHCP
- Introduction
- Using IP Helper Addresses for DHCP
- Limiting the Impact of IP Helper Addresses
- Using DHCP to Dynamically Configure Router IP Addresses
- Dynamically Allocating Client IP Addresses via DHCP
- Defining DHCP Configuration Options
- Defining DHCP Lease Periods
- Allocating Static IP Addresses with DHCP
- Configuring a DHCP Database Client
- Configuring Multiple DHCP Servers per Subnet
- DHCP Static Mapping
- DHCP-Secured IP Address Assignment
- Showing DHCP Status
- Debugging DHCP
-
21. NAT
- Introduction
- Configuring Basic NAT Functionality
- Allocating External Addresses Dynamically
- Allocating External Addresses Statically
- Translating Some Addresses Statically and Others Dynamically
- Using Route Maps to Refine Static Translation Rules
- Translating in Both Directions Simultaneously
- Rewriting the Network Prefix
- Using NAT for Server Load Distribution
- Stateful NAT Failover
- Adjusting NAT Timers
- Changing TCP Ports for FTP
- Checking NAT Status
- Debugging NAT
-
22. First Hop Redundancy Protocols
- Introduction
- Configuring Basic HSRP Functionality
- Using HSRP Preempt
- Making HSRP React to Problems on Other Interfaces
- Load-Balancing with HSRP
- Redirecting ICMP with HSRP
- Manipulating HSRP Timers
- Using HSRP on Token Ring
- HSRP SNMP Support
- Increasing HSRP Security
- Showing HSRP State Information
- Debugging HSRP
- HSRP Version 2
- VRRP
- Gateway Load-Balancing Protocol
-
23. IP Multicast
- Introduction
- Configuring Basic Multicast Functionality with PIM-DM
- Routing Multicast Traffic with PIM-SM and BSR
- Routing Multicast Traffic with PIM-SM and Auto-RP
- Filtering PIM Neighbors
- Configuring Routing for a Low-Frequency Multicast Application
- Multicast over Frame Relay or ATM WANs
- Configuring CGMP
- Using IGMP Version 3
- Static Multicast Routes and Group Memberships
- Routing Multicast Traffic with MOSPF
- Routing Multicast Traffic with DVMRP
- DVMRP Tunnels
- Configuring Bidirectional PIM
- Controlling Multicast Scope with TTL
- Controlling Multicast Scope with Administratively Scoped Addressing
- Exchanging Multicast Routing Information with MBGP
- Using MSDP to Discover External Sources
- Configuring Anycast RP
- Converting Broadcasts to Multicasts
- Showing Multicast Status
- Debugging Multicast Routing
- 24. IP Mobility
-
25. IPv6
- Introduction
- Automatically Generating IPv6 Addresses for an Interface
- Manually Configuring IPv6 Addresses on an Interface
- Configuring DHCP for IPv6
- Dynamic Routing with RIP
- Modifying the Default RIP Parameters
- IPv6 Route Filtering and Metric Manipulation in RIP
- Using OSPF for IPv6
- IPv6 Route Filtering and Metric Manipulation in OSPF
- Route Redistribution
- Dynamic Routing with MBGP
- Tunneling IPv6 Through an Existing IPv4 Network
- Translating Between IPv6 and IPv4
-
26. MPLS
- Introduction
- Configuring a Basic MPLS P Router
- Configuring a Basic MPLS PE Router
- Configuring Basic MPLS CE Routers
- Configuring MPLS over ATM
- PE-CE Communication via RIP
- PE-CE Communication via OSPF
- PE-CE Communication via EIGRP
- PE-CE Communication via BGP
- QoS over MPLS
- MPLS Traffic Engineering with Autoroute
- Multicast Over MPLS
- Your Service Provider Doesn’t Do What You Want
- 27. Security
- 1. External Software Packages
- 2. IP Precedence, TOS, and DSCP Classifications
- About the Authors
- Colophon
- Copyright
Product information
- Title: Cisco IOS Cookbook, 2nd Edition
- Author(s):
- Release date: December 2006
- Publisher(s): O'Reilly Media, Inc.
- ISBN: 9780596527228
You might also like
book
Cisco Software-Defined Access
The definitive Cisco SD-Access resource, from the architects who train Ciscos own engineers and partners This …
video
Learning the Cisco Application-Centric Infrastructure (ACI)
Automation, objects, and policies are replacing traditional networks as we know them. North-to-South or East-to-West traffic …
video
CCNA 200-301
More Than 16 Hours of Video Instruction Overview CCNA 200-301 Complete Video Course is a comprehensive …
video
Cisco CyberOps Associate CBROPS 200-201
9+ Hours of Video Instruction More than nine hours of video instruction that includes explanations and …