Using the Command-Line Interface

Similar documents
Using the Command-Line Interface

Using the Command-Line Interface

Using the Command-Line Interface

CCNA 1 Chapter 2 v5.0 Exam Answers %

Chapter 5 Router and IOS Basics

CCNA 1 Chapter 2 v5.0 Exam Answers 2013

First-Time Configuration

King Fahd University of Petroleum & Minerals. Configuration of Routers and Establishing Routed Networks

Lab 7 Configuring Basic Router Settings with IOS CLI

Command-Line Interface (CLI) Basics

IOS and Configuration Basics

Packet Tracer - Configuring Initial Switch Settings

Controlling Switch Access with Passwords and Privilege Levels

Lab Using the CLI to Gather Network Device Information Topology

Controlling Switch Access with Passwords and Privilege Levels

Configuring Command Macros

Using the Command-Line Interface

Cisco IOS Software Basic Skills

Configuring for the First Time

Lab - Configuring a Switch Management Address

ICND1. Switch Configuration Lab. All configurations have been set to factory defaults for these labs

Lab 1. CLI Navigation. Scenario. Initial Configuration for R1

Powering On the Cisco VG224 Voice Gateway

Upgrading the Software

LAB 3 Basic Switch Configuration Commands

Cisco IOS Commands. abort CHAPTER

Configuring Secure Shell (SSH)

Using the Command-Line Interface

Lab Catalyst 2950T and 3550 Series Basic Setup

Command-Line Interfaces

Lab Managing Router Configuration Files with Terminal Emulation Software

CHAPTER 2 ACTIVITY

Lab - Building a Switch and Router Network

CCNA 1 Chapter 11 V4.0 Answers

Lab Using the Boot System Command. Objective. Background/Preparation

Chapter 11. Configuring and Testing Your Network

C Commands. Cisco Nexus 5500 Series NX-OS System Management Command Reference 1

Configuring Secure Shell (SSH)

MiPDF.COM. 3. Which procedure is used to access a Cisco 2960 switch when performing an initial configuration in a secure environment?

Configuring TACACS+ Finding Feature Information. Prerequisites for TACACS+

Command-Line Interfaces

Configuring VLANs. Understanding VLANs CHAPTER

Checklists for Configuring the Gateway

Basic IOS Command Structure. Router#disable Router>

Configuration and management of Networks LAB 1 Introduction to packet tracer

Lab Password Recovery Procedure on a Catalyst 2900 Series Switches

Antonio Cianfrani. Packet Tracer

Lab 1.4.6B Implementing Port Security

Configuring the Switch with the CLI-Based Setup Program

Lab Password Recovery Procedure on a Catalyst 2950 Series Switch 2900XL Series

Configuring System MTU

Lab Securing Network Devices

Lab Troubleshooting RIP

Classful Address Subnet Mask Number of Hosts per Subnet (2 x 2)

Configuring Secure Shell (SSH)

4(b): Assign the IP address on the Serial interface of Router. Console Cable

Configuring Secure Shell (SSH)

Skills Assessment Student Training Exam

Configuring System MTU

Lab Command Modes and Router Identification. Objective. Background/Preparation. Step 1 Login to the router in user EXEC mode

DGS-3630-Series Switches

Skills Assessment Student Practice

Configuring Security with Passwords, Privileges, and Logins

Configuring System Logs

Lab Establishing and Verifying a Telnet Connection Instructor Version 2500

SEMESTER 2 Chapter 1 Planning and Cabling a Network V 4.0

config mode: Router> enable Router# configure terminal Enter configuration commands, one per line. End with CNTL/Z.

Configuring the Switch with the CLI-Based Setup Program

Configuring Secure Shell (SSH)

Dr. Tom Hicks. Computer Science Department Trinity University

Introduction To Cisco IOS

Configuring VLANs. Understanding VLANs CHAPTER

Lab - Configuring IPv6 Addresses on Network Devices

Configuring Switch Latency Monitoring

Configuring Switch-Based Authentication

Administration of Cisco WLC

Cisco 4000 Series Virtual Configuration Register

Configuring Host Router and Cisco Analog Video Gateway Module Interfaces

This document is exclusive property of Cisco Systems, Inc. Permission is granted to print and copy this document for non-commercial distribution and

Skills Assessment Student Training

Exclusive Configuration Change Access and Access Session Locking

Configuring InterVLAN Routing

DHCPv6 Individual Address Assignment

Configuring VTP. Understanding VTP CHAPTER

Assigning the Switch IP Address and Default Gateway

Configuring Role-Based Access Control

KIM DONNERBORG / RTS. Cisco Lab Øvelse Af Kim Donnerborg / RTS. Side 0 af 8

Getting Started. Getting Started with Your Platform Model. Factory Default Configurations CHAPTER

TELECOMMUNICATION MANAGEMENT AND NETWORKS

Lab Troubleshooting IP Address Issues Instructor Version 2500

Lab - Designing and Implementing a Subnetted IPv4 Addressing Scheme

Command Reference for Voice VLAN

1. Which OSI layers offers reliable, connection-oriented data communication services?

Hochschule Bremen Networking Lab

Configuring Security for the ML-Series Card

Lab Verifying PPP Configuration

Configuring IP Unnumbered Interface

Lab Router Configuration Using Setup Instructor Version 2500

Retake - Skills Assessment Student Training (Answer Key)

Using Cisco IOS Software

Transcription:

CHAPTER 1 The Cisco Metro Ethernet (ME) 3400E Series Ethernet Access switch is supported by Cisco IOS software. This chapter describes how to use the switch command-line interface (CLI) to configure software features. For a complete description command descriptions, see these sections: For the configuration and monitoring commands that support these features, see Chapter 2, Cisco ME 3800X and ME 3600X Switch Cisco IOS Commands. For information on the boot loader commands, see Appendix A, Cisco ME 3800X and ME 3600X Switch Boot Loader Commands. For information on the debug commands, see Appendix B, Cisco ME 3800X and ME 3600X Switch Debug Commands. For more information on Cisco IOS Release 12.2, see the Cisco IOS Release 12.2 Command Summary. For task-oriented configuration steps, see the software configuration guide for this release. In this document, unless otherwise specified, IP refers to IP version 4 (IPv4). CLI Command Modes This section describes the CLI command mode structure. Command modes support specific Cisco IOS commands. For example, the interface interface-id command only works when entered in global configuration mode. These are the main command modes for the switch: User EXEC Privileged EXEC Global configuration Interface configuration VLAN configuration Line configuration 1-1

CLI Command Modes Chapter 1 Table 1-1 lists the main command modes, how to access each mode, the prompt you see in that mode, and how to exit that mode. The prompts listed use the default name Switch. Table 1-1 Command Modes Summary Command Mode Access Method Prompt Exit or Access Next Mode User EXEC This is the first level of access. Switch> Enter the logout command. Privileged EXEC Global configuration Interface configuration VLAN configuration Line configuration (For the switch) Change terminal settings, perform basic tasks, and list system information. From user EXEC mode, enter the enable command. From privileged EXEC mode, enter the configure command. From global configuration mode, specify an interface by entering the interface command followed by an interface identification. In global configuration mode, enter the vlan vlan-id command. From global configuration mode, specify a line by entering the line command. Switch# Switch(config)# Switch(config-if)# Switch(config-vlan)# Switch(config-line)# To enter privileged EXEC mode, enter the enable command. To exit to user EXEC mode, enter the disable command. To enter global configuration mode, enter the configure command. To exit to privileged EXEC mode, enter the exit or end command, or press To enter interface configuration mode, enter the interface configuration command. To exit to privileged EXEC mode, enter the end command, or press To exit to global configuration mode, enter the exit command. To exit to global configuration mode, enter the exit command. To return to privileged EXEC mode, enter the end command, or press To exit to global configuration mode, enter the exit command. To return to privileged EXEC mode, enter the end command, or press User EXEC Mode After you access the device, you are automatically in user EXEC command mode. The EXEC commands available at the user level are a subset of those available at the privileged level. In general, use the user EXEC commands to temporarily change terminal settings, perform basic tests, and list system information. Switch>? 1-2

Chapter 1 CLI Command Modes Privileged EXEC Mode Because many of the privileged commands configure operating parameters, privileged access should be password-protected to prevent unauthorized use. The privileged command set includes those commands contained in user EXEC mode, as well as the configure privileged EXEC command through which you access the remaining command modes. If your system administrator has set a password, you are prompted to enter it before being granted access to privileged EXEC mode. The password does not appear on the screen and is case sensitive. The privileged EXEC mode prompt is the device name followed by the pound sign (#). Switch# Enter the enable command to access privileged EXEC mode: Switch> enable Switch# Switch#? To return to user EXEC mode, enter the disable privileged EXEC command. Global Configuration Mode Global configuration commands apply to features that affect the device as a whole. Use the configure privileged EXEC command to enter global configuration mode. The default is to enter commands from the management console. When you enter the configure command, a message prompts you for the source of the configuration commands: Switch# configure Configuring from terminal, memory, or network [terminal]? You can specify either the terminal or nonvolatile RAM (NVRAM) as the source of configuration commands. This example shows you how to access global configuration mode: Switch# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch(config)#? To exit global configuration command mode and to return to privileged EXEC mode, enter the end or exit command, or press 1-3

CLI Command Modes Chapter 1 Interface Configuration Mode Interface configuration commands modify the operation of the interface. Interface configuration commands always follow a global configuration command, which defines the interface type. Use the interface interface-id command to access interface configuration mode. The new prompt means interface configuration mode. Switch(config-if)# Switch(config-if)#? To exit interface configuration mode and to return to global configuration mode, enter the exit command. To exit interface configuration mode and to return to privileged EXEC mode, enter the end command, or press VLAN Configuration Mode Use this mode to configure normal-range VLANs (VLAN IDs 1 to 1005) or extended-range VLANs (VLAN IDs 1006 to 4094). The VLAN configuration is saved in the running configuration file, and you can save it to the switch startup configuration file by using the copy running-config startup-config privileged EXEC command. The configurations of VLAN IDs 1 to 1005 are saved in the VLAN database. The extended-range VLAN configurations are not saved in the VLAN database. Enter the vlan vlan-id global configuration command to access VLAN configuration mode: Switch(config)# vlan 2000 Switch(config-vlan)# To display a comprehensive list of available commands, enter a question mark (?) at the prompt. Switch(config-vlan)#? For extended-range VLANs, many characteristics are not configurable and must remain at the default setting. To return to global configuration mode, enter exit; to return to privileged EXEC mode, enter end. All the commands except shutdown take effect when you exit config-vlan mode. Line Configuration Mode Line configuration commands modify the operation of a terminal line. Line configuration commands always follow a line command, which defines a line number. Use these commands to change terminal parameter settings line-by-line or for a range of lines. Use the line vty line_number [ending_line_number] command to enter line configuration mode. The new prompt means line configuration mode. The following example shows how to enter line configuration mode for virtual terminal line 7: Switch(config)# line vty 0 7 Switch(config-line)#? 1-4

Chapter 1 CLI Command Modes To exit line configuration mode and to return to global configuration mode, use the exit command. To exit line configuration mode and to return to privileged EXEC mode, enter the end command, or press 1-5

CLI Command Modes Chapter 1 1-6