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 %

CCNA 1 Chapter 2 v5.0 Exam Answers 2013

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

Cisco IOS Commands. abort CHAPTER

Command-Line Interface (CLI) Basics

Configuring VTP. Understanding VTP CHAPTER

Using the Command-Line Interface

Chapter 5 Router and IOS Basics

CHAPTER 2 ACTIVITY

LAB 3 Basic Switch Configuration Commands

First-Time Configuration

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

Configuring VLANs. Understanding VLANs CHAPTER

Cisco IOS Commands. abort CHAPTER

Configuring VLANs. Understanding VLANs CHAPTER

Lab Using the CLI to Gather Network Device Information Topology

Using the Command-Line Interface

Controlling Switch Access with Passwords and Privilege Levels

Configuring InterVLAN Routing

Configuring Secure Shell (SSH)

Controlling Switch Access with Passwords and Privilege Levels

Lab - Configuring a Switch Management Address

Configuring TACACS+ Finding Feature Information. Prerequisites for TACACS+

Configuring VLANs. Understanding VLANs CHAPTER

Command-Line Interfaces

Configuring for the First Time

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

Configuring Command Macros

Configuring Secure Shell (SSH)

Configuring VLANs. Understanding VLANs CHAPTER

CCNA 1 Chapter 11 V4.0 Answers

Configuring Switch-Based Authentication

Lab 7 Configuring Basic Router Settings with IOS CLI

Packet Tracer - Configuring Initial Switch Settings

Configuring VLANs. Understanding VLANs CHAPTER

Checklists for Configuring the Gateway

Lab Catalyst 2950T and 3550 Series VTP Domain and VLAN Trunking

Configuring Secure Shell (SSH)

Configuring Secure Shell (SSH)

Configuration and management of Networks LAB 1 Introduction to packet tracer

For information about configuring these settings from Cluster Management Suite (CMS), refer to the online help.

Command-Line Interfaces

Basic IOS Command Structure. Router#disable Router>

Prerequisites for Controlling Switch Access with Terminal Access Controller Access Control System Plus (TACACS+)

Configuring VLANs. Understanding VLANs CHAPTER

Configuring VTP. Understanding VTP CHAPTER

Configuring the Switch with the CLI-Based Setup Program

Administration of Cisco WLC

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

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

Understanding and Configuring VTP

Antonio Cianfrani. Packet Tracer

Lab Securing Network Devices

Configuring System Message Logging

Upgrading the Software

Chapter 11. Configuring and Testing Your Network

Configuring Secure Shell (SSH)

Configuring VLANs. Understanding VLANs CHAPTER

Exclusive Configuration Change Access and Access Session Locking

IOS and Configuration Basics

Configuring System MTU

VLAN Trunking Protocol (VTP)

Lab Catalyst 2950T and 3550 Series VTP Domain and VLAN Trunking

Lab Catalyst 2950T and 3550 Series Basic Setup

Using Cisco IOS Software

Enabling Remote Access to the ACE

Introduction To Cisco IOS

Chapter 2. Chapter 2 A. Configuring a Network Operating System

Catalyst 2950 Desktop Switch Command Reference

Configuring Security for the ML-Series Card

Switches running the LAN Base feature set support only static routing on SVIs.

Configuring Security with Passwords, Privileges, and Logins

Configuring VLAN Trunks

Configuring VLANs. Finding Feature Information. Prerequisites for VLANs

Lab Password Recovery Procedure on a Catalyst 2900 Series Switches

DGS-3630-Series Switches

Configuring System Message Logs

Exclusive Configuration Change Access and Access Session Locking

Using Cisco IOS XE Software

Lecture (06) Design and Configuration LAN Practicing, working on CISCO equipment. By: Dr. Ahmed ElShafee

Cisco IOS Software Basic Skills

Configuring System Message Logs

Configuring Secure Shell (SSH)

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

CCNA Explorer 1 Chapter 11 Configuring & Testing Your Network

Lab Catalyst 2950T and 3550 Series Static VLANS

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

Configuring VLANs. Understanding VLANs CHAPTER

Configuring Storm Control

Configuring Storm Control

Configuring System Message Logging

Configuring VTP. Understanding How VTP Version 1 and Version 2 Work CHAPTER

Configuring Storm Control

Configuring VTP. Understanding How VTP Works CHAPTER

Configuring Interface Characteristics

Configuring VLANs. Understanding VLANs CHAPTER

Transcription:

CHAPTER 1 The Catalyst 2950 switches are supported by Cisco IOS software. This chapter describes how to use the switch command-line interface (CLI) to configure the software features. For a complete description of the commands that support these features, see Chapter 2, Cisco IOS Commands. For more information on Cisco IOS Release 12.1, refer to the Cisco IOS Release 12.1 Command Summary. For task-oriented steps, refer to the Catalyst 2950 Desktop Switch Software Configuration Guide for this release. The switches are preconfigured and begin forwarding packets as soon as they are attached to compatible devices. By default, all ports belong to virtual LAN (VLAN) 1. Access to the switch itself is also through VLAN 1, which is the default management VLAN. The management VLAN is configurable. You manage the switch by using Telnet, Secure Shell (SSH) Protocol, web-based management, and Simple Network Management Protocol (SNMP) through devices connected to ports assigned to the management VLAN. Type of Memory The switch Flash memory stores the Cisco IOS software image, the startup and private files, and helper files. Platforms This IOS release runs on a variety of switches. For a complete list, refer to the Release Notes for the Catalyst 2950 LRE Switches. Note This software release does not support the Catalyst 2950 non-lre switches. For information about these switches, refer to the Catalyst 2950 switch release notes. 1-1

CLI Command Modes Chapter 1 CLI Command Modes This section describes the CLI command mode structure. Command modes support specific Cisco IOS commands. For example, the interface type_number command works only when entered in global mode. These are the main command modes: User EXEC Privileged EXEC Global Controller Interface Sequence Config-vlan VLAN Line Table 1-1 lists the command modes, how to access each mode, the prompt you see in that mode, and how to exit that mode. The prompts listed assume 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> Privileged EXEC Global Controller Interface (For the switch) Change terminal settings, perform basic tasks, and list system information. From user EXEC mode, enter the enable From privileged EXEC mode, enter the configure From the global mode, enter the controller longreachethernet command (with a specific interface). From the global mode, enter the interface command (with a specific interface). Switch# Switch(config)# Switch(config-controller)# Switch(config-if)# Enter the logout command to exit from the switch. To enter privileged EXEC mode, enter the enable To exit to user EXEC mode, enter the disable To enter global mode, enter the configure enter the exit or end command, or press Ctrl-Z. To enter interface mode, enter the interface mode, enter exit. enter Ctrl-Z or end. mode, enter exit. To exist to privileged EXEC mode, enter Ctrl-Z or end. 1-2

Chapter 1 CLI Command Modes Table 1-1 Command Modes Summary (continued) Command Mode Access Method Prompt Exit or Access Next Mode Sequence Config-vlan VLAN Line From the global mode, specify the sequence by entering the lre sequence command (with a specific interface). From the global mode, enter the vlan vlan-id From privileged EXEC mode, enter the vlan database From global mode, specify a line by entering the line Switch(config-seq)# Switch(config-vlan)# Switch(vlan)# Switch(config-line)# mode, enter exit. enter Ctrl-Z or end. mode, enter the exit To return to privileged EXEC mode, enter the end command, or press Ctrl-Z. enter the exit mode, enter the exit To return to privileged EXEC mode, enter the end command, or press Ctrl-Z. 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 change terminal settings temporarily, to perform basic tests, and to list system information. Switch>? 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 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# 1-3

CLI Command Modes Chapter 1 Switch#? To return to user EXEC mode, enter the disable Global Configuration Mode Global commands apply to features that affect the device as a whole. Use the configure privileged EXEC command to enter global 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 commands: Switch# configure Configuring from terminal, memory, or network [terminal]? You can specify either the terminal or nonvolatile RAM (NVRAM) as the source of commands. This example shows you how to access global mode: Switch# configure terminal Enter commands, one per line. End with CNTL/Z. Switch(config)#? To exit global command mode and to return to privileged EXEC mode, enter the end or exit command, or press Ctrl-Z. Controller Configuration Mode Controller commands configure LRE switches for firmware updates, but are seldom used. The default behavior for upgrading firmware is sufficient for most operations. Controller commands always follow a global command, which defines the interface type. Use the controller longreachethernet interface-id command to access controller mode. The new prompt shows controller mode. Switch(config-controller)# To exit controller mode and to return to global mode, enter the exit To exit controller mode and to return to privileged EXEC mode, enter the end command, or press Ctrl-Z. 1-4

Chapter 1 CLI Command Modes Interface Configuration Mode Interface commands modify the operation of the interface. Interface commands always follow a global command, which defines the interface type. Use the interface type_number.subif command to access interface mode. The new prompt shows interface mode. Switch(config-if)# Switch(config-if)#? To exit interface mode and to return to global mode, enter the exit To exit interface mode and to return to privileged EXEC mode, enter the end command, or press Ctrl-Z. Sequence Configuration Mode Sequence commands apply only to LRE interfaces. Use this command to create a sequence or to add profiles to an existing sequence. Sequence commands always follow a global command, which defines the interface. Use the lre sequence sequence-name command to access sequence mode. The new prompt shows sequence mode. Switch(config-seq)# To exit sequence mode and to return to global mode, enter the exit To exit sequence mode and to return to privileged EXEC mode, enter the end command, or press Ctrl-Z. config-vlan Mode Use this mode to configure normal-range VLANs (VLAN IDs 1 to 1005) or, when VTP mode is transparent, to configure extended-range VLANs (VLAN IDs 1006 to 4094) when the enhanced software image is installed. When VTP mode is transparent, the VLAN and VTP is saved in the running file, and you can save it to the switch startup file by using the copy running-config startup-config privileged EXEC The s of VLAN IDs 1 to 1005 are saved in the VLAN database if VTP is in transparent or server mode. The extended-range VLAN s are not saved in the VLAN database. Enter the vlan vlan-id global command to access config-vlan mode: Switch(config)# vlan 2000 Switch(config-vlan)# The supported keywords can vary but are similar to the commands available in VLAN mode. To view a Switch(config-vlan)#? 1-5

CLI Command Modes Chapter 1 For extended-range VLANs, all characteristics except MTU size must remain at the default setting. To return to global mode, enter exit; to return to privileged EXEC mode, enter end. All commands except shutdown take effect when you exit config-vlan mode. VLAN Configuration Mode You can use the VLAN commands to create or modify VLAN parameters for VLANs 1 to 1005. Enter the vlan database privileged EXEC command to access VLAN mode: Switch# vlan database Switch(vlan)# Switch(vlan)#? To return to privileged EXEC mode, enter the abort command to abandon the proposed database. Otherwise, enter exit to implement the proposed new VLAN database and to return to privileged EXEC mode. Line Configuration Mode Line commands modify the operation of a terminal line. Line 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 mode. The new prompt indicates line mode. This example shows how to enter line mode for virtual terminal line 7: Switch(config)# line vty 0 7 Switch(config-line)#? To exit line mode and to return to global mode, use the exit To exit line mode and to return to privileged EXEC mode, enter the end command, or press Ctrl-Z. 1-6