Using Cisco IOS Software



Similar documents
Using the Cisco IOS Command Line Interface

Cisco IOS IP Command Reference, Volume 3 of 3: Multicast

Basic Command-Line Interface Commands

Lab Review of Basic Router Configuration with RIP. Objective. Background / Preparation. General Configuration Tips

- Advanced IOS Functions -

How to Configure Cisco 2600 Routers

Configuring a Leased Line

Objectives Understand Cisco IOS system architecture components. Work with the Cisco IOS Command Line Interface (CLI) and common commands.

Note: This case study utilizes Packet Tracer. Please see the Chapter 5 Packet Tracer file located in Supplemental Materials.

NetFlow Subinterface Support

GLBP - Gateway Load Balancing Protocol

Cisco Router Configuration Tutorial

Router Lab Reference Guide

Lab 2 - Basic Router Configuration

USB Disable for Cisco ISRs Feature Module

Password Recovery Procedure for the Cisco 3600 and 3800 Series Routers

Understanding Interface Numbering and Cisco IOS Software Basics

NetFlow Aggregation. Feature Overview. Aggregation Cache Schemes

Objectives. Router as a Computer. Router components and their functions. Router components and their functions

Lab Load Balancing Across Multiple Paths

Password Recovery Procedure for the Cisco 806, 826, 827, 828, 831, 836, 837 and 881 Series Routers

Basic Configuration of the Cisco Series Internet Router

3.1 Connecting to a Router and Basic Configuration

Sampled NetFlow. Feature Overview. Benefits

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Router Security Audit Logs

DHCP Server Port-Based Address Allocation

LAB THREE STATIC ROUTING

Skills Assessment Student Training Exam

CCNA2 Chapter 11 Practice

Connecting to the Firewall Services Module and Managing the Configuration

- Basic Router Security -

Chapter 2 Using the Command Line Interface

Applicazioni Telematiche

Lab - Using IOS CLI with Switch MAC Address Tables

CCBOOTCAMP s Comprehensive ICND2 Study Guide With Sample Questions

ROM Monitor. Entering the ROM Monitor APPENDIX

Password Recovery Procedure for the Cisco Catalyst 2948G L3, 4840G, and 4908G L3 Switch Routers

Configuring the Firewall Management Interface

Procedure: You can find the problem sheet on Drive D: of the lab PCs. Part 1: Router & Switch

Introduction to Routing and Packet Forwarding. Routing Protocols and Concepts Chapter 1

Enabling Remote Access to the ACE

Configuring Enhanced Object Tracking

Chapter 3 Using Access Control Lists (ACLs)

PA-MC-T3 Multi-Channel T3 Synchronous Serial Port Adapter Enhancement

Basic Software Configuration Using the Cisco IOS Command-Line Interface

Configuring System Message Logging

Configuring Link Aggregation

Angelos Stavrou. OF COURSE there is no Magic so lets see show things work in practice...

Terminal Server Configuration and Reference Errata

Password Recovery Procedure for the Cisco 2900 Series Integrated Services Router

Configuring DHCP. DHCP Server Overview

Administering the Network Analysis Module. Cisco IOS Software. Logging In to the NAM with Cisco IOS Software CHAPTER

Lab Introductory Lab 1 - Getting Started and Building Start.txt

Connect the Host to attach to Fast Ethernet switch port Fa0/2. Configure the host as shown in the topology diagram above.

Table of Contents. Cisco How to Download a Software Image to a Cisco 2600 through TFTP Using the tftpdnld ROMmon Command

CCNA Exploration 4.0: (II) Routing Protocols and Concepts. Chapter 1: Introduction to Routing and Packet Forwarding

Basic System. Vyatta System. REFERENCE GUIDE Using the CLI Working with Configuration System Management User Management Logging VYATTA, INC.

Configuring DHCP Snooping

- The PIX OS Command-Line Interface -

CCNA 2 v5.0 Routing Protocols Final Exam Answers

Cisco Router Configuration Basics. Scalable Infrastructure Workshop

Cisco Certified Network Associate Exam. Operation of IP Data Networks. LAN Switching Technologies. IP addressing (IPv4 / IPv6)

Cisco 7100 Series VPN Configuration Guide

Adding an Extended Access List

The Cisco IOS Firewall feature set is supported on the following platforms: Cisco 2600 series Cisco 3600 series

Configuring Port Security

Configuring PROFINET

IP Application Services Commands show vrrp. This command was introduced. If no group is specified, the status for all groups is displayed.

Using the Command-Line Interface

Configuring the Switch with the CLI-Based Setup Program

NetFlow v9 Export Format

Managing and Monitoring Network Management Features

Lab Introductory Lab 1 Getting Started and Building Start.txt

Configuring the Content Routing Software

Lab Creating a Logical Network Diagram

Lab: Basic Router Configuration

Configuring CSS Remote Access Methods

Traffic Mirroring Commands on the Cisco IOS XR Software

Cisco - Configure the 1721 Router for VLANs Using a Switch Module (WIC-4ESW)

Lab 3 Routing Information Protocol (RIPv1) on a Cisco Router Network

CHAPTER 3 STATIC ROUTING

CT5760 Controller and Catalyst 3850 Switch Configuration Example

Unicast Reverse Path Forwarding

Lab Advanced Telnet Operations

Building a Network in GNS3

Supported Platforms. Supported Standards, MIBs, and RFCs. Prerequisites. Related Features and Technologies. Related Documents. Improved Server Access

IOS Server Load Balancing

Configuration of Cisco Routers. Mario Baldi

Configuring SNMP and using the NetFlow MIB to Monitor NetFlow Data

Table of Contents. Cisco How to Download a Software Image to a Cisco 2600 via TFTP Using the tftpdnld ROMmon Command

Troubleshooting Load Balancing Over Parallel Links Using Cisco Express Forwarding

BRI to PRI Connection Using Data Over Voice

Network Simulator Lab Study Plan

Access Control Lists: Overview and Guidelines

The Purpose and Use of the Configuration Register on All Cisco Routers

Telnet, Console and AUX Port Passwords on Cisco Routers Configuration Example

Packet-over-SONET Interface Commands on the Cisco IOS XR Software

Table of Contents. Cisco How Does Load Balancing Work?

Transcription:

Using Cisco IOS Software This chapter provides helpful tips for understanding and configuring Cisco IOS software using the command-line interface (CLI). It contains the following sections: Understanding Modes Getting Help Using the No and Default Forms of s Saving Configuration Changes Searching and Filtering Output of show and more s For an overview of Cisco IOS software configuration, refer to the Cisco IOS Configuration Fundamentals Configuration Guide. For information on the conventions used in the Cisco IOS documentation set, see the About the Cisco IOS Software Documentation chapter located at the beginning of this book. Understanding Modes The Cisco IOS user interface is divided into many different modes. The commands available to you at any given time depend on which mode you are currently in. Entering a question mark (?) at the system prompt allows you to obtain a list of commands available for each command mode. When you log in to the Cisco IOS software, you begin in user mode, often called EXEC mode. Only a limited subset of the commands are available in EXEC mode. To have access to all commands, you must enter privileged EXEC mode. Normally, you must enter a password to enter privileged EXEC mode. From privileged mode, you can enter any EXEC command or enter global configuration mode. Most of the EXEC commands are one-time commands, such as show commands, which show important status information, and clear commands, which clear counters or interfaces. The EXEC commands are not saved when the networking device reboots. The configuration modes allow you to make changes to the running configuration. If you later save the configuration to the startup configuration, these commands are stored when the networking device reboots. To enter the various configuration modes, you must start at global configuration mode. From global configuration mode, you can enter interface configuration mode, subinterface configuration mode, and a variety of protocol-specific modes. ROM monitor mode is a separate mode used when a networking device running Cisco IOS software cannot boot properly. If your networking device does not find a valid system image when it is booting, or if its configuration file is corrupted at startup, the system might enter ROM monitor mode. xi

Getting Help Using Cisco IOS Software Summary of Main Modes Table 1 summarizes the main command modes of the Cisco IOS software. Table 1 Summary of Main Modes Mode Access Method Prompt Exit Method User EXEC Log in. Router> Use the logout Privileged EXEC Global configuration Interface configuration Subinterface configuration ROM monitor From user EXEC mode, use the enable EXEC From privileged EXEC mode, use the configure terminal privileged EXEC From global configuration mode, enter by specifying an interface with an interface From interface configuration mode, specify a subinterface with an interface From privileged EXEC mode, use the reload EXEC Press the Break key during the first 60 seconds while the system is booting. Router# Router(config)# Router(config-subif)# To exit back to user EXEC mode, use the disable To enter global configuration mode, use the configure terminal privileged EXEC To exit to privileged EXEC mode, use the exit or end command or press Ctrl-Z. To enter interface configuration mode, use an interface configuration To exit to global configuration mode, use the exit To exit to privileged EXEC mode, use the exit command or press Ctrl-Z. To enter subinterface configuration mode, specify a subinterface with the interface To exit to global configuration mode, use the exit To enter privileged EXEC mode, use the end command or press Ctrl-Z. > To exit to user EXEC mode, use the continue For more information regarding command modes, refer to the Using the -Line Interface chapter in the Cisco IOS Configuration Fundamentals Configuration Guide. Getting Help Entering a question mark (?) at the system prompt displays a list of commands available for each command mode. You can also get a list of keywords and arguments associated with any command by using the context-sensitive help feature. xii

Using Cisco IOS Software Getting Help To get help specific to a command mode, a command, a keyword, or an argument, use one of the following commands: help Purpose Obtains a brief description of the help system in any command mode. abbreviated-command-entry? Obtains a list of commands that begin with a particular character string. (No space between command and question mark.) abbreviated-command-entry<tab> Completes a partial command name.? Lists all commands available for a particular command mode. command? Lists the keywords or arguments that you must enter next on the command line. (Space between command and question mark.) Example: How to Find Options This section provides an example of how to display syntax for a The syntax can consist of optional or required keywords and arguments. To display keywords and arguments for a command, enter a question mark (?) at the configuration prompt, or after entering part of a command followed by a space. The Cisco IOS software displays a list of keywords and arguments available along with a brief description of them. For example, if you were in global configuration mode, typed the command arap, and wanted to see all the keywords or arguments that may be entered next on the command line, you would type arap?. Table 2 shows examples of how you can use the question mark (?) to assist you in entering commands. The table steps you through configuring a serial interface IP address on a Cisco 7206 router running Cisco IOS Release 12.0(3). Table 2 How to Find Options Router> enable Password: <password> Router# Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)# Comment Enter the enable command and password to access privileged EXEC commands. You are in privileged EXEC mode when the prompt changes to Router#. Enter the configure terminal privileged EXEC command to enter global configuration mode. You are in global configuration mode when the prompt changes to Router(config)#. xiii

Getting Help Using Cisco IOS Software Table 2 How to Find Options (continued) Router(config)# interface serial? <0-6> Serial interface number Router(config)# interface serial 4? / Router(config)# interface serial 4/? <0-3> Serial interface number Router(config)# interface serial 4/0? Interface configuration commands:... ip Interface Internet Protocol config commands keepalive Enable keepalive lan-name LAN Name command llc2 LLC2 Interface Subcommands load-interval Specify interval for load calculation for an interface locaddr-priority Assign a priority group logging Configure logging for interface loopback Configure internal loopback on an interface mac-address Manually set interface MAC address mls mls router sub/interface commands mpoa MPOA interface configuration commands mtu Set the interface Maximum Transmission Unit (MTU) netbios Use a defined NETBIOS access list or enable name-caching no Negate a command or set its defaults nrzi-encoding Enable use of NRZI encoding ntp Configure NTP... ip? Interface IP configuration subcommands: access-group Specify access control for packets accounting Enable IP accounting on this interface address Set the IP address of an interface authentication authentication subcommands bandwidth-percent Set EIGRP bandwidth limit broadcast-address Set the broadcast address of an interface cgmp Enable/disable CGMP directed-broadcast Enable forwarding of directed broadcasts dvmrp DVMRP interface commands hello-interval Configures IP-EIGRP hello interval helper-address Specify a destination address for UDP broadcasts hold-time Configures IP-EIGRP hold time... ip Comment Enter interface configuration mode by specifying the serial interface that you want to configure using the interface serial global configuration example, you must enter the serial interface slot number and port number, separated by a back slash. You are in interface configuration mode when the prompt changes to. Enter a? to display a list of all the interface configuration commands available for the serial interface. This example shows only some of the interface configuration commands that are available. Enter the command that you want to configure for the interface. In this example, the ip command is used. enter next on the command line. This example shows only some of the interface IP configuration subcommands that are available. xiv

Using Cisco IOS Software Using the No and Default Forms of s Table 2 How to Find Options (continued) ip address? A.B.C.D IP address negotiated IP Address negotiated over PPP ip address ip address 172.16.0.1? A.B.C.D IP subnet mask ip address 172.16.0.1 ip address 172.16.0.1 255.255.255.0? secondary Make this IP address a secondary address <cr> ip address 172.16.0.1 255.255.255.0 ip address 172.16.0.1 255.255.255.0 Comment Enter the subcommand that you want to configure for the interface. In this example, the address subcommand is entered. example, you must enter an IP address or the negotiated keyword. Because a carriage return (<cr>) is not displayed, it indicates that you must enter more keywords or arguments to complete the Enter the keyword or argument you want to use. In this example, the 172.16.0.1 IP address is entered. example, you must enter an IP subnet mask. Because a <cr> is not displayed, it indicates that you must enter more keywords or arguments to complete the Enter the IP subnet mask. In this example, the 255.255.255.0 IP subnet mask is entered. example, you can enter the secondary keyword or press Enter. Because a <cr> is displayed, it indicates that you can press Enter to complete the In this example, Enter is pressed to complete the Using the No and Default Forms of s Almost every configuration command also has a no form. In general, use the no form to disable a function. Use the command without the keyword no to re-enable a disabled function or to enable a function that is disabled by default. For example, IP routing is enabled by default. To disable IP routing, use the no ip routing command and specify ip routing to re-enable it. The Cisco IOS software command reference publications provide the complete syntax for the configuration commands and describe what the no form of a command does. xv

Saving Configuration Changes Using Cisco IOS Software Configuration commands can also have a default form. The default form of a command returns the command setting to its default. Most commands are disabled by default, so the default form is the same as the no form. However, some commands are enabled by default and have variables set to certain default values. In these cases, the default command enables the command and sets variables to their default values. The Cisco IOS software command reference publications describe what the default form of a command does if the command is not the same as the no form. Saving Configuration Changes Enter the copy system:running-config nvram:startup-config command to save your configuration changes to your startup configuration so that they will not be lost if there is a system reload or power outage. For example: Router# copy system:running-config nvram:startup-config Building configuration... It might take a minute or two to save the configuration. After the configuration has been saved, the following output appears: [OK] Router# On most platforms, this task saves the configuration to NVRAM. On the Class A Flash file system platforms, this task saves the configuration to the location specified by the CONFIG_FILE environment variable. The CONFIG_FILE variable defaults to NVRAM. Searching and Filtering Output of show and more s In Cisco IOS Release 12.0(1)T or later, you can search and filter the output for show and more commands. This functionality is useful when you need to sort through large amounts of output, or if you want to exclude output that you do not need to see. To use this functionality, enter a show or more command followed by the pipe character ( ), one of the keywords begin, include, or exclude, and an expression that you want to search or filter on: command {begin include exclude} regular-expression The following is an example of the show interface command in which you want the output to only include lines where the expression protocol appears: Router# show interface include protocol Fast Ethernet0/0 is up, line protocol is up Serial4/0 is up, line protocol is up Serial4/1 is up, line protocol is up Serial4/2 is administratively down, line protocol is down Serial4/3 is administratively down, line protocol is down For more information on the search and filter functionality, refer to the Using the -Line Interface chapter in the Cisco IOS Configuration Fundamentals Configuration Guide. xvi