3560_scg

  • View
    111

  • Download
    3

Embed Size (px)

Text of 3560_scg

Catalyst 3560 Switch Software Configuration GuideCisco IOS Release 12.2(58)SE April 2011

Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883

Text Part Number: OL-8553-09

THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCBs public domain version of the UNIX operating system. All rights reserved. Copyright 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED AS IS WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Cisco and the Cisco Logo are trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and other countries. A listing of Cisco's trademarks can be found at www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1005R) Any Internet Protocol (IP) addresses used in this document are not intended to be actual addresses. Any examples, command display output, and figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses in illustrative content is unintentional and coincidental. Catalyst 3560 Switch Software Configuration Guide 2006-2011 Cisco Systems, Inc. All rights reserved.

CONTENTSPrefacexlvii xlvii xlvii xlviii xlviii xlix

Audience Purpose Conventions

Related Publications

Obtaining Documentation, Obtaining Support, and Security Guidelines1

CHAPTER

Overview

1-1

Features 1-1 Ease-of-Deployment and Ease-of-Use Features Performance Features 1-4 Management Options 1-5 Manageability Features 1-6 Availability and Redundancy Features 1-7 VLAN Features 1-8 Security Features 1-9 QoS and CoS Features 1-12 Layer 3 Features 1-13 Power over Ethernet Features 1-15 Monitoring Features 1-15 Default Settings After Initial Switch Configuration

1-2

1-17

Network Configuration Examples 1-19 Design Concepts for Using the Switch 1-20 Small to Medium-Sized Network Using Catalyst 3560 Switches Large Network Using Catalyst 3560 Switches 1-24 Long-Distance, High-Bandwidth Transport Configuration 1-26 Where to Go Next21-26

1-23

CHAPTER

Using the Command-Line Interface Understanding Command Modes Understanding the Help System

2-1 2-1 2-3 2-3 2-4

Understanding Abbreviated Commands

Understanding no and default Forms of Commands

Catalyst 3560 Switch Software Configuration Guide OL-8553-09

iii

Contents

Understanding CLI Error Messages Using Configuration Logging2-4

2-4

Using Command History 2-5 Changing the Command History Buffer Size 2-5 Recalling Commands 2-6 Disabling the Command History Feature 2-6 Using Editing Features 2-6 Enabling and Disabling Editing Features 2-6 Editing Commands through Keystrokes 2-7 Editing Command Lines that Wrap 2-8 Searching and Filtering Output of show and more Commands2-9

Accessing the CLI 2-9 Accessing the CLI through a Console Connection or through Telnet3

2-9

CHAPTER

Assigning the Switch IP Address and Default Gateway Understanding the Boot Process3-1

3-1

Assigning Switch Information 3-2 Default Switch Information 3-3 Understanding DHCP-Based Autoconfiguration 3-3 DHCP Client Request Process 3-3 Understanding DHCP-based Autoconfiguration and Image Update 3-5 DHCP Autoconfiguration 3-5 DHCP Auto-Image Update 3-5 Limitations and Restrictions 3-5 Configuring DHCP-Based Autoconfiguration 3-6 DHCP Server Configuration Guidelines 3-6 Configuring the TFTP Server 3-7 Configuring the DNS 3-7 Configuring the Relay Device 3-7 Obtaining Configuration Files 3-8 Example Configuration 3-9 Configuring the DHCP Auto Configuration and Image Update Features 3-11 Configuring DHCP Autoconfiguration (Only Configuration File) 3-11 Configuring DHCP Auto-Image Update (Configuration File and Image) 3-12 Configuring the Client 3-13 Manually Assigning IP Information 3-14 Checking and Saving the Running Configuration Configuring the NVRAM Buffer Size 3-16 Modifying the Startup ConfigurationCatalyst 3560 Switch Software Configuration Guide

3-15

3-16

iv

OL-8553-09

Contents

Default Boot Configuration 3-17 Automatically Downloading a Configuration File 3-17 Specifying the Filename to Read and Write the System Configuration Booting Manually 3-18 Booting a Specific Software Image 3-19 Controlling Environment Variables 3-19 Scheduling a Reload of the Software Image 3-21 Configuring a Scheduled Reload 3-21 Displaying Scheduled Reload Information 3-224

3-17

CHAPTER

Configuring Cisco IOS Configuration Engine

4-1

Understanding Cisco Configuration Engine Software 4-1 Configuration Service 4-2 Event Service 4-3 NameSpace Mapper 4-3 What You Should Know About the CNS IDs and Device Hostnames ConfigID 4-3 DeviceID 4-4 Hostname and DeviceID 4-4 Using Hostname, DeviceID, and ConfigID 4-4 Understanding Cisco IOS Agents 4-5 Initial Configuration 4-5 Incremental (Partial) Configuration Synchronized Configuration 4-6

4-3

4-6

Configuring Cisco IOS Agents 4-6 Enabling Automated CNS Configuration 4-6 Enabling the CNS Event Agent 4-7 Enabling the Cisco IOS CNS Agent 4-9 Enabling an Initial Configuration 4-9 Enabling a Partial Configuration 4-12 Displaying CNS Configuration54-13

CHAPTER

Clustering Switches

5-1

Understanding Switch Clusters 5-1 Cluster Command Switch Characteristics 5-3 Standby Cluster Command Switch Characteristics 5-3 Candidate Switch and Cluster Member Switch Characteristics Planning a Switch Cluster 5-4 Automatic Discovery of Cluster Candidates and Members5-4

5-3

Catalyst 3560 Switch Software Configuration Guide OL-8553-09

v

Contents

Discovery Through CDP Hops 5-5 Discovery Through Non-CDP-Capable and Noncluster-Capable Devices Discovery Through Different VLANs 5-7 Discovery Through Different Management VLANs 5-7 Discovery Through Routed Ports 5-8 Discovery of Newly Installed Switches 5-9 HSRP and Standby Cluster Command Switches 5-10 Virtual IP Addresses 5-11 Other Considerations for Cluster Standby Groups 5-11 Automatic Recovery of Cluster Configuration 5-12 IP Addresses 5-13 Hostnames 5-13 Passwords 5-13 SNMP Community Strings 5-14 TACACS+ and RADIUS 5-14 LRE Profiles 5-14 Using the CLI to Manage Switch Clusters Using SNMP to Manage Switch Clusters65-15 5-15

5-6

CHAPTER

Administering the Switch

6-1

Managing the System Time and Date 6-1 Understanding the System Clock 6-1 Understanding Network Time Protocol 6-2 NTP Version 4 6-3 Configuring Time and Date Manually 6-4 Setting the System Clock 6-4 Displaying the Time and Date Configuration 6-4 Configuring the Time Zone 6-5 Configuring Summer Time (Daylight Saving Time) 6-6 Configuring a System Name and Prompt 6-7 Default System Name and Prompt Configuration Configuring a System Name 6-8 Understanding DNS 6-8 Default DNS Configuration 6-9 Setting Up DNS 6-9 Displaying the DNS Configuration 6-10 Creating a Banner 6-10 Default Banner Configuration 6-10 Configuring a Message-of-the-Day Login BannerCatalyst 3560 Switch Software Configuration Guide

6-8

6-11

vi

OL-8553-09

Contents

Configuring a Login Banner

6-12

Managing the MAC Address Table 6-12 Building the Address Table 6-13 MAC Addresses and VLANs 6-13 Default MAC Address Table Configuration 6-14 Changing the Address Aging Time 6-14 Removing Dynamic Address Entries 6-15 Configuring MAC Address Change Notification Traps 6-15 Configuring MAC Address Move Notification Traps 6-17 Configuring MAC Threshold Notification Traps 6-18 Adding and Removing Static Address Entries 6-19 Configuring Unicast MAC Address Filtering 6-20 Disabling MAC Address Learning on a VLAN 6-21 Displaying Address Table Entries 6-23 Managing the ARP Table76-23

CHAPTER

Configuring SDM Templates

7-1

Understanding the SDM Templates 7-1 Dual IPv4 and IPv6 SDM Templates 7-2 Configuring the Switch SDM Template 7-3 Default SDM Template 7-3 SDM Template Configuration Guidelines Setting the SDM Template 7-4 Displaying the SDM Templates87-5

7-3

CHAPTER

Configuring Switch-Based Authentication

8-1 8-1

Preventing Unauthorized Access to Your Switch

Protecting Acc