CSD Systems Engineering Cisco Switch Configuration AppNote

Cisco Switch Configuration AppNote
Version 2.0

September 2007

1

September 2007

CSD Systems Engineering Cisco Switch Configuration AppNote

Table of Contents
1.0 REVISION HISTORY...........................................................................................................................................3 2.0 OVERVIEW AND GETTING STARTED..........................................................................................................4 2.1 PURPOSE.........................................................................................................................................................4 2.2 BEFORE YOU BEGIN...........................................................................................................................................4 2.3 DEFINITIONS....................................................................................................................................................4 2.4 GETTING STARTED............................................................................................................................................5 2.5 BASIC COMMANDS............................................................................................................................................5 2.6 BASIC CONFIGURATION OVERVIEW......................................................................................................................6 3.0 GENERAL CONFIGURATION...........................................................................................................................6 3.1 CONFIGURATION GUIDELINES..............................................................................................................................6 3.2 VLAN CONFIGURATION....................................................................................................................................6 3.3 INTERFACE CONFIGURATION.................................................................................................................................7 3.4 INTERFACE CONFIGURATION FOR TRUNKING............................................................................................................8 3.5 IGMP SNOOPING...........................................................................................................................................11 4.0 CISCO CE 500 CONFIGURATION GUIDE....................................................................................................13 4.1 BASIC CONFIGURATION STEPS...........................................................................................................................13 4.2 RESTRICTIONS AND HIGHLIGHTS.........................................................................................................................14 5.0 CISCO CATALYST 3750 STACKING CONFIGURATION.........................................................................15 6.0 OPTIONAL CONFIGURATION.......................................................................................................................16 6.1 CONFIGURING A SWITCH IP ADDRESS ................................................................................................................16 6.2 CONFIGURING A SWITCH DEFAULT GATEWAY ........................................................................................................17 6.3 SETTING AN ENABLE PASSWORD.........................................................................................................................17 6.4 SETTING A TELNET PASSWORD...........................................................................................................................17 6.5 SAVING A RUNNING CONFIGURATION...................................................................................................................18 6.6 SAVING A RUNNING CONFIG TO A STARTUP CONFIG.................................................................................................18 6.7 COPYING A STARTUP CONFIG TO A RUNNING CONFIG...............................................................................................18 6.8 SAVING A CONFIGURATION TO A TFTP SERVER.......................................................................................................18 6.9 RESTORING A CONFIGURATION FROM A TFTP SERVER..............................................................................................18 6.10 PLACEHOLDER FOR TEXT................................................................................................................................18 6.11 PLACEHOLDER FOR TEXT................................................................................................................................19 6.12 PASSWORD RECOVERY PROCEDURE....................................................................................................................19 7.0 TROUBLE SHOOTING......................................................................................................................................23

2

September 2007

InterVLAN routing 5. General Switch configuration guidelines 2. Stacking configuration 3. CE500 configuration 4. Troubeshooting Tips 3 September 2007 .0 Revision History Version 1.0 Date 18 April 2006 10 October 2007 Author Pete Brown Mike Zhang Comments Initial Draft Added: 1.CSD Systems Engineering Cisco Switch Configuration AppNote 1.0 2.

UDP is a connectionless protocol in which a one way datagram is sent to the destination without advance notice to the destination device 48 bit address assigned to the NIC 32 bit logical address A reserved address assigned to the network itself. you must configure another switch as the IGMP querier so that it can send queries. IGMP snooping querier should be used to support IGMP snooping in a VLAN where PIM and IGMP are not configured because the multicast traffic does not need to be routed. as well as some optional features that can be used.1 Purpose The purpose of this document is to describe the basic setup of a Cisco switch for operation in a DToIP environment. When IGMP snooping querier is enabled. the IGMP snooping querier sends out periodic IGMP queries that trigger IGMP report messages from the switch that wants to receive IP multicast traffic. 2. Protocols TCP UDP MAC Address IP Address Network Address Broadcast Address IGMP Snooping IGMP Snooping Querier 4 September 2007 .CSD Systems Engineering Cisco Switch Configuration AppNote 2. the IP multicast router acts as the IGMP querier. including the various components of the network and transmission of the date. provide the rules and standards by which data is transmitted over a network TCP is a connection oriented protocol that provides data reliability between hosts. a switch will add/delete multicast addresses from its address table. A reserved address used to broadcasting packets to all of the devices on a network.3 Definitions OSI Model Open System Interconnection (OSI) reference model was created to help define how network processes function in general. It is assumed that the switch is operating as new (out of the box) with no configuration. If the IP-multicast traffic in a VLAN needs to be Layer 2 switched only. an IP-multicast router is not required. IGMP snooping listens to these IGMP reports to establish appropriate forwarding. thereby enabling/disabling multicast traffic from flowing to the individual host ports.0 Overview and getting started 2. Understanding the structure and purpose of the OSI model is central to understanding how networks operate. Based on this information.2 Before you begin Ensure you have the following available before you begin: Cisco “console” cable Computer or laptop with an RS-232 connection available Ethereal or some other network sniffer program installed for basic troubleshooting System Diagram with port assignments already determined IP Plan available Have a basic understand of TCP/IP and the OSI Model and subnetting 2. IGMP snooping allows a switch to snoop or capture information from IGMP packets being sent back and forth between hosts and a router. In a network with IP multicast routing. but without an IP-multicast router on a VLAN.

Note: The console port may be located on the front or back of the Cisco switch depending on the model. Cisco> or something else).5 Basic Commands Some basic commands that you will need to be familiar with in order to successfully program your Cisco switch. clock – manage the system clock configure – enter configuration mode disable – turns off privileged mode exit – exit from the current user mode help – displays help ? – displays help. enable (en) – puts the switch into privileged user mode. There are many other commands available.4 Getting started  Hook up your Cisco console cable to the “console” port of the Cisco switch and to your RS232 port on your computer. This is the basic configuration mode show (sh) – command used to show specific configuration information. The switch should respond with a “Switch>” prompt. name servers and host table 5 September 2007 . Using the ? after any command will give you the options available for that particular command. The switch will respond by changing the prompt to “Switch#”. write (wr) – write running configuration to memory. Note: if the switch has been pre-configured then there may be a password required here.e. Refer to the Cisco documentation for a listing of all available commands. Refer to the included documentation for questions regarding your specific switch model. Press the “enter” key. Ensure that the scroll lock key is not depressed. This can differ from the running config if changes have been made to the switch after startup. or terminal Some examples of “show”: Switch# sh running-config – displays the running configuration of the switch Switch# sh startup-config – displays the switch’s startup configuration. network. You are now ready to start your configuration. Note: If the switch has been modified the prompt may display a different name (i.     2. Contact the person responsible for programming the switch for that information.CSD Systems Engineering Cisco Switch Configuration AppNote 2. The abbreviation in ( ) below is the shortened version of the command that can be used. Switch# sh vlan – displays vlan information Switch# sh int vlan 100 – displays vlan information for vlan 100 only Switch# sh interfaces – displays interface status and configuration Switch# sh int Fa 0/1 – displays interface information for Fast Ethernet 0/1 only Switch# sh version – displays system hardware and software status Switch# sh ip – displays ip information Switch# sh history – displays the session command history Switch# sh arp – displays the arp table Switch# sh hosts – displays the IP domain name. Open a HyperTerminal session and use the following settings: 9600-8-1-none. Type “enable” (or “en”) to put the switch into privileged user mode.

Last but the most important. Consider to use Cisco Assistant when you have more than 5 switches in your systems including management switches. Set NMX ports to “server” type and all other ports except trunking ports to “desktop” when using Cisco HTTP or Cisco Assistant to configure management switches such as Cisco CE 500.2 VLAN configuration 6 September 2007 . In general. highly resilient switching system—one switch at a time. 3. modulator ports as “access ports” and set “spanning-tree portfast”. mux. NMX. 7.6 Basic Configuration Overview Several key things must be done at the switch level to ensure a successful DToIP installation. Always enable “IGMP snooping” on the layer two video switches because this will avoid multicast traffic to flood all ports within the VLANs. • Configuring passwords for the enable and telnet sessions • Configuring an IP address for the switch • Configuring an IP address for a vlan • Routing commands • Recovery from a lost password.0 General Configuration 3. 10. Optional configurations (More on these commands will be addressed later on in this document). These include: • Configuring VLANS • Configuring interfaces to be a part of the these vlans as well as setting these interfaces to access mode. 3. 9. If there are more than one port available for trunking. always remember to use “copy run start” or “wr” to save the configuration you have done at the end every time you configure a switch or make changes. 3750 provides Cisco StackWise™ technology. set all non-trunking ports including encoder. Cisco Assistant provides a single point of management for all the switches. • Configuring interfaces that will connect to other Cisco switches • IGMP snooping and IGMP query • Backing up and restoring configurations • Resetting your switch to default should you lose your password. “IGMP snooping” is enabled by default on all Cisco layer two switches 5. 6. QoS has to be configured on the edge routers/switches. 2. 3. a 32-Gbps stack interconnect that allows customers to build a unified. etc. 11. SL10.CSD Systems Engineering Cisco Switch Configuration AppNote 2. use “interface range” command for convenience. Always enable PIM on layer three video switches. InterVLAN routing is easy to enable and configure but it always adds delay and overhead. Cisco switches don’t automatically save your configuration to their flash memory. Use available highest bitrate ports for trunk ports when trunking two or more switches together. use two or more ports to form Etherchannel to provide trunking redundancy and load balance. CAS switches. 8.1 Configuration Guidelines Before you start to configure Cisco switches for your system. video switches. It’s recommended to use one VLAN even in encoder/PS1K port redundancy with two different subnets for the encoders’ and PS1Ks’ primary and backup Gigi ports. When configuring ports. consider the following general guidelines: 1. “no cdp run” on those ports. ASI switches. 4. Choose stacking over trunking for connecting two or more switches whenever possible. Cisco Catalyst 3750 switches have been common selections for video switches. Avoid InterVLAN routing if possible.

The switch will respond by changing the cursor to “Switch# (vlan)”. L3 Cisco switches can accommodate multiple IP interface assignments. type “exit” Example creating 2 vlans (vlan 100 and vlan 200) Switch# vlan database Switch(vlan)# vlan 100 Switch(vlan)# vlan 200 Switch(vlan)# apply Switch(vlan)# exit Switch# Switch# conf t Switch(config)# vlan 100 Switch(config-vlan)# no shutdown (This turns the vlan on) Switch(config-vlan)# exit Switch(config)# Switch(config)# vlan 200 Switch(config-vlan)# no shut Switch(config-vlan)# exit Switch(config)# Some optional commands that can be used when configuring your vlan are adding a description. or changing the name of a vlan. thus one IP interface. To exit the vlan mode. This will vary somewhat according to the type of switch. Please remember that each RJ45 port is considered an interface. Optional (adding a description to the vlan. To delete a vlan type “Switch (vlan)# no vlan 100.3 Interface configuration Every port that an Ethernet cable or SFP plugs into on a switch should be configured specifically for the device/host that is using that port. Type “vlan 100” (or any # with the exception of #1. Adding a description is not necessary. and changing the vlan name) Switch(config-vlan)# description TS1 video vlan Switch(config-vlan)# name video vlan1 (this changes the vlan name) Switch(config-vlan)# exit 3. this is the default/admin vlan and can not be recreated or deleted).CSD Systems Engineering Cisco Switch Configuration AppNote Prior to any VLAN configuration the user should have an agreed upon IP plan based on the network design. From the privileged user mode type “vlan database” to put the switch into the VLAN configuration mode. as well as each VLAN. Switch# conf t 7 September 2007 . adding an IP address. Please refer to the Harmonic documentation for each device that describes the Ethernet requirements. an IP address. To apply the changes made at the vlan prompt you must type “apply” before exiting the vlan prompt. Repeat this for all vlans you need to create. This mode allows the creation and deletion of VLANS. but can be helpful for others when doing troubleshooting down the road. as L2 Cisco switches will only allow one IP address per switch.

255.168. In this example we are setting up gigabit Ethernet ports 1-24 and adding them to vlan 100.4 Interface configuration for Trunking Switch(config)# interface GigabitEthernet 1/0/48 Switch(config-if)# shutdown (this is an optional command) Switch(config-if)# switchport encapsulation dot1q Switch(config-if)# switchport mode trunk Switch(config-if)# switchport trunk allowed vlan all (optional) Switch(config-if)# no shut Optional (this will show you the trunking info for this interface.10.10 255. No that the interface haAsplay the parameters below).255. 8 September 2007 . Switch(config)# interface range GigabitEthernet 1/0/1 – 24 Switch(config-if-range)# switchport mode access Switch(config-if-range)# switchport access vlan 100 Switch(config-if-range)# spanning-tree portfast Switch(config-if-range)# exit Switch(config-if)# exit Switch(config)# 3.CSD Systems Engineering Cisco Switch Configuration AppNote Switch(config)# interface GigabitEthernet 1/0/1 Switch(config-if)# no shut Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 100 Switch(config-if)# spanning-tree portfast Optional (adding a description to the interface and an IP address) Switch(config-if)# description Enc0101 Switch(config-if)# ip address 192.0 Switch(config-if)# exit Switch(config)# Optional (using the range command to configure multiple interfaces) The range command can be used to configure multiple interfaces simultaneously (substitute the port type “FastEthernet” or “GigabitEthernet” based on the switch you are using).

CSD Systems Engineering Cisco Switch Configuration AppNote 9 September 2007 .

CSD Systems Engineering Cisco Switch Configuration AppNote 10 September 2007 .

200 Vlans in spanning tree forwarding state and not pruned none 3. put the switch into global configuration mode. If you are still unsure you can run the command again. The user should study the IGMP requirements and options in Cisco publications to determine what needs to be configured.5 IGMP Snooping DToIP requires IGMP snooping and an IGMP Query device to be active on the interfaces where the MV encoders and the BNG trade information in multicast groups.100. Switch# conf t 11 September 2007 . To enable IGMP snooping globally. 1.CSD Systems Engineering Cisco Switch Configuration AppNote Switch# sh interfaces GigabitEthernet 1/0/48 trunk Port Gi1/0/48 Mode on Encapsulation Status 802. IGMP snooping should already be enabled by default.1q trunking Native vlan 1 Port Vlans allowed on trunk Gi1/0/48 1-4094 Port Gi1/0/48 Port Gi1/0/48 Switch# Vlans allowed and active in management domain 1. Always look at the existing startup configuration to confirm (using the sh ru command at the enable prompt).

you can skip this step. as it requires the vlan to have an ip address. Refer to the BNG and NMx documentation for more information. type:“ Switch# conf t Switch(config)# no ip igmp snooping 3. but you must enable the query function in the BNG. type: Switch# conf t Switch(config)# ip igmp snooping vlan 100 4.255. from the interface configuration prompt. If a query device is required and your switch is a Layer 3 switch. To enable the IGMP snooping on a vlan.10. To disable the snooping querier. To enable the query device. at the global configuration prompt. you can invoke the query device on one vlan.255.0 Switch(config-if)# ip igmp snooping querier Switch(config-if)# exit Switch(config)# Note: Depending on the version of your IOS you may need to run the following in order for the switch querier to work properly Switch(config)# ip routing Switch(config)# ip multicast-routing distributed Switch(config)# ip pim sparse Or Switch(config-if)# ip pim sparse-dense 5.CSD Systems Engineering Cisco Switch Configuration AppNote Switch(config)# ip igmp snooping 2. type the following: Switch# conf t Switch(config)# interface FastEthernet 0/1 Switch(config-if)# ip address 192.168. again at the global configuration prompt.10 255. from the interface configuration prompt. If you intend to use the BNG as a query device. To disable global IGMP snooping. type: Switch(config-if)# no ip igmp snooping querier 12 September 2007 .

For Cisco IOS Software SEG series releases. 4. 7.254. Click Setup.1. When a switch port LED blinks green. the management IP address is 10. Open a web browser. A switch port LED begins to blink green.1. b. 3. 13 September 2007 . Complete these steps if the browser does not pull up the GUI automatically: a. connect your PC to that port. go to the mentioned IP address. 4. Enter the Network Settings and Optional Settings (if required). Issue the ipconfig command in order to view the dynamic address allocation. Wait for the SETUP LED to blink green.The switch configures its management address as the Default Gateway for the LAN adapter card of the PC. For example. Here are the basic configuration steps as well as important highlights.0.0.254. Make sure that nothing is connected to the switch.0 Cisco CE 500 Configuration Guide Cisco Catalyst express 500 has been used more and more often for management switches.CSD Systems Engineering Cisco Switch Configuration AppNote 4. The LEDs on the PC and the switchport blink green while the switch configures the connection (this takes around one minute). Power the switch.1. The LAN adapter of this PC must be configured to get the IP address via DHCP. From the browser. Click Submit in order to save changes and finish the basic configuration. Note: For Cisco IOS Software FY series releases.0. the IP address is 169. http://169. 6.1 Basic Configuration Steps 1. 5. 2.0.

10.16. 9. open a web browser and go to http://<CE500_Management_IP_Address> . The Smartports window appears. 12.100. When the switch comes up. the switch can be managed through any switchport that is configured for the same VLAN as that of the management IP address 4. Here you can change the predefined roles or apply new port roles. tftp. For the Smartports dialog window: a. chances are that this is a Cisco spoofing prevention machanism. b. Restrictions and highlights Set the NMX ports to "server" type while you set other encoder/PS1K/Haloswitch/SL10. or other critical servers for spoofing purpose.2 1. For example.. Close the web browser and reconfigure the LAN adapter with an IP address within the same subnet of the new management address of the switch.100. to "desktop" or "other" type when you use smartports configuration. dns. Even though Cisco's documents/website say the "standard server" type is the same as "desktop" type. Click Yes and Submit in order to accept the predefined port roles.. It will prevent a "desktop" port to behave as a bootp. Click No and Submit in order to apply the Smartports roles yourself.. and tftp problems if you set NMX to "desktop" type. This is critical. Restart the switch without turning off the power. they are not. 11. Enter the configured User Name and Password in order to continue the configuration of the switch. As CE500 doesn't CLI interface.CSD Systems Engineering Cisco Switch Configuration AppNote 8. 14 September 2007 . http://172. Note: Once the initial configuration is complete. You will have bootp.

The longest stacking cable is 3 meter long. #3 to #4). which requires you to disconnect everything on the switch first. and then you can use another port to access the VLAN again. one port on #2. In this case. truck the other three(#2 to #3. You better put the NMX on one switch(let's say the first one). and then create an Etherchannel with two ports on the NMX switch. 15 September 2007 . stacking should be preferable to trunking when connecting two or more Catalyst 3750 switches together for encoder and prostream port redundancy setup whenever possible. etc. you better to use the two Gigiports on both switches to form a Etherchannel to provide trunking redundancy/load balancing. 5.1Q trunking on the port. the spanning tree state of the port on the remote switch goes to blocking for type inconsistency.. And yet stacking still offers the switch redundancy. If a remote switch does not support 802. 1. the switch port does not go to blocking mode. The main limitation is probably the distance. but there is not any communication between the switches through these ports. and one port on #4). When you have only two switches. 5. easy to configure and manage the switches as they are logically one unit..0 Cisco Catalyst 3750 Stacking Configuration Cisco Catalyst 3750 Series supports StackWise technology that are used to create a unified. the switch port trunk status is ON at both ends of the switches.CSD Systems Engineering Cisco Switch Configuration AppNote 2. let's say you have 4. Stacking cable connections The diagram below for the cable connections to stack 4 Catalyst 3750 switches together. It’s recommanded that you do not change specific port settings after you enable a Smartports role on a port. Be careful about VLAN and ip address changes on the GUI to avoid starting it over again. logical switching architecture through the linkage of multiple. 4. fixed configuration switches. In Harmonic IP headend setup. and then use this port to change the VLAN ip address. The Smartport role Switch automatically enables 802. There are no diagnostic messages displayed on the Catalyst Express 500 device. 6. Do not apply the Desktop role to ports that are connected to switches. and the stable cables in the boxes are only 20 inches long. If you have more than 2.1Q trunking or the trunking is manually turned off. This can happen when you create a new VLAN and move all the ports from default VLAN 1 to your new VLAN. and you need to trunk them together. Stacking offers many benefits such as much higher bandwidth between the swiches(32GB bi-direction). Any port setting changes can alter the effectiveness of the Smartports role. or APs. routers. If the remote switch is the root bridge. You normally wouldn't need to do any configuration if you have less than 24 devices to control but you will have to if you have more than 24 because you need more than 2 switches. and so on so forth. 3. Leave one port unchanged in this case. and it's painful.

Use the following commands for interface configurations: Switch(config)# interface range GigabitEthernet 1/0/1 – 24 Switch(config-if-range)# switchport mode access Switch(config-if-range)# switchport access vlan 100 where 1/0/1 stands for the first switch. There are three options: CAB-STACK-50CM : 50 cm(1’6”) long. Switch(config)# interface range GigabitEthernet 2/0/1 – 24 Switch(config-if-range)# switchport mode access Switch(config-if-range)# switchport access vlan 100 where 2/0/1 stands for the second switch. 3. CAB-STACK-1M: 1 m(3.0 Optional Configuration 6. This is the default that comes with the switch. There are a set of rules for electing master switch and you can refer to Cisco website for those rules. So. Switch> en 16 September 2007 .84’) long 6.CSD Systems Engineering Cisco Switch Configuration AppNote 2. normally all the redundant switches are about the same with the same model. the one you turn on power the first will be the master switch. same software version. But in Harmonic IP Headend application. VLAN and interface configurations After you use stacking cables to connect multiple Catalyst 3750 switches.1 Configuring a switch IP Address In this example we are setting the switch IP address and subnet mask. those switches are logically one switch. Stackwise stacking cable options. so the master switch would the one that has longest running time. In another word. etc. This is done by giving an IP address to VLAN 1 (the default or admin vlan).28’) long CAB-STACK-3M: 3 m(9. you only need to connect the console cable to the master swtich and do all the VLan and interface configurations at once unlike trunking where you need to configure each switch individually.

255.255.CSD Systems Engineering Cisco Switch Configuration AppNote Switch# conf t Switch(config)# interface vlan1 Switch(config-if)# ip address 192. If the switch needs to send traffic to a different IP network. It is good security practice to add a password to prevent unauthorized changes to your switch. In this example we are setting the enable password to “harmonic”. Switch# Switch# conf t Switch(config)# line vty 0 4 Switch(config-line)# password harmonic Switch(config-line)# exit 17 September 2007 . A router is used to route traffic between different networks. In this example we are setting the telnet password to “harmonic”. 6.0 Switch(config-if)# exit Switch(config)# 6. The default gateway is the router IP address.10.10. Refer to section 4.2 Configuring a switch default gateway An IP address is assigned to the switch for management purposes.1 for more info. In order to telnet to a switch you must first set up your switch with an IP address.100 255.3 Setting an enable password The enable command is not password protected by default. Switch> en Switch# conf t Switch(config)# enable secret harmonic Switch(config)# exit Switch# 6.5.4 Setting a telnet password If you are using telnet it is good practice to set a password to prevent unauthorized access to your switch. the switch sends traffic to the default gateway.254 Switch(config)# exit Switch# To remove a default gateway use the no ip default-gateway command to delete a configured default gateway. Switch> en Switch# conf t Switch(config)# ip default-gateway 10.168.

1 for setting up an IP address. 6.10 Placeholder for text Place holder for text… 18 September 2007 . Refer to section 4. Ensure you have ip connectivity (verify by pinging the tftp server) before attempting. Switch# copy run tftp Address or name of remote host []? (enter the IP of the tftp server) Destination filename [switch-config] (enter the name you wish to save the config as)(on the switch the config is usually named config.8 Saving a configuration to a tftp server Procedure for saving a config to a tftp server.1 for setting up an IP address. Ensure you have ip connectivity (verify by pinging the tftp server) before attempting. Refer to section 4. Switch# wr 6.text).CSD Systems Engineering Cisco Switch Configuration AppNote Switch(config)# exit Switch# 6.5 Saving a running configuration There are several commands to save a running config. Your switch must have an IP address assigned to vlan 1 in order to proceed.6 Saving a running config to a startup config Switch# copy run start 6. Switch# copy start run 6.9 Restoring a configuration from a tftp server Procedure for restoring a config from a tftp server. Your switch must have an IP address assigned to vlan 1 in order to proceed. Ensure you have ip connectivity (verify by pinging the tftp server) before attempting.7 Copying a startup config to a running config Procedure for saving a config to a tftp server. Switch# copy tftp start Address or name of remote host []? (enter the IP of the tftp server) Destination filename [startup-config] (hit enter) Switch# reload 6.

Hold down the mode button located on the left side of the front panel. while reconnecting the power cable to the switch. Use the following terminal settings: o o o o o Bits per second (baud): 9600 Data bits: 8 Parity: None Stop bits: 1 Flow Control: Xon/Xoff Note: For additional information on cabling and connecting a terminal to the console port.4 of this document.12 Password recovery procedure Follow the password recovery procedure below. Catalyst 3524XL 19 September 2007 . 3. Unplug the power cable. For 2900/3500XL and 3550 series switches: Release the mode button after the LED above Port 1x goes out. Attach a terminal or PC with terminal emulation (for example. refer to Connecting a Terminal to the Console Port on Catalyst Switches or see section 2. 1.CSD Systems Engineering Cisco Switch Configuration AppNote 6. 2.11 Placeholder for text Place holder for text… 6. Hyper Terminal) to the console port of the switch. Note: LED position may vary slightly depending on the model.

514).0. The example below uses Hyperterm to break into switch: mode on a 2955.done initializing flash. Instead the switch boot loader uses the break-key detection to stop the automatic boot sequence for the password recovery purposes. C2955 Boot Loader (C2955-HBOOT-M) Version 12. Base ethernet MAC Address: 00:0b:be:b6:ee:00 Xmodem file system is available. fsid: 3 Parameter Block Filesystem (pb:) installed. !--. flashfs[0]: 19 files. 2 directories flashfs[0]: 0 orphaned files. 0 orphaned directories flashfs[0]: Total bytes: 7741440 flashfs[0]: Bytes used: 4510720 flashfs[0]: Bytes available: 3230720 flashfs[0]: flashfs fsck took 7 seconds.. Catalyst 2950-24 For 2955 series switches only: The Catalyst 2955 series switches do not use an external mode button for password recovery.. For more information.1(0. .. refer to Standard Break Key Sequence Combinations During Password Recovery. Ctrl-C is the break key. Initializing Flash. Boot Sector Filesystem (bs:) installed. Note: LED position may vary slightly depending on the model.Wait until you see this message before 20 September 2007 . On a workstation running UNIX..CSD Systems Engineering Cisco Switch Configuration AppNote For 2940 and 2950 series switches: Release the mode button after the STAT LED goes out. fsid: 4 *** The system will autoboot in 15 seconds *** Send break character to prevent autobooting. The break sequence is determined by the terminal application and operating system used.. Hyperterm running on Windows 2000 uses Ctrl + Break. CISCO DEVELOPMENT TEST VERSION Compiled Fri 13-Dec-02 17:38 by madison WS-C2955T-12 starting..

The system has been interrupted prior to initializing the flash file system to finish loading the operating system software: flash_init load_helper bootswitch: 4. fsid: 4 switch: !--. Note: Make sure to type a colon ":" after the dir flash. switch: flash_init Initializing Flash.3500XL. Output from a !--.. Issue the flash_init command..CSD Systems Engineering Cisco Switch Configuration AppNote !--. switch: load_helper switch: 6. Issue the dir flash: command. 4 -rwx 1131 <date> config. fsid: 3 Parameter Block Filesystem (pb:) installed.This is the current version of software. Boot Sector Filesystem (bs:) installed.done Initializing Flash. flashfs[0]: 143 files. !--. 3550 or 2950 will vary slightly.you issue the break sequence.. 0 orphaned directories flashfs[0]: Total bytes: 3612672 flashfs[0]: Bytes used: 2729472 flashfs[0]: Bytes available: 883200 flashfs[0]: flashfs fsck took 86 seconds .120- !--. The switch file system is displayed: switch: dir flash: Directory of flash:/ 2 -rwx 1803357 <date> 5. 4 directories flashfs[0]: 0 orphaned files. Issue the load_helper command.. 5.WC7.This output is from a 2900XL switch.bin c3500xl-c3h2s-mz. 5 -rwx 109 <date> info 21 September 2007 .This is the configuration file.Ctrl+Break is entered using Hyperterm.text !--..

text flash:config. !--!--2950 !--Output suppressed..bin" uncompressed and installed.definition.old to rename the configuration file. switch: rename flash:config. Press RETURN to get started. Use ctrl-c to abort configuration dialog at any prompt.text file contains the password !--.Type "n" for no. !--.The config.2950 or 3550 will vary slightly.############################### ################################################################ ################ ################################################################ ###### File "flash:c3500xl-c3h2s-mz..WC7. --. 22 September 2007 .text flash:config. switch: boot Loading "flash:c3500xl-c3h2s-mz..bin"..old switch: !--.120-5. 7. Enter "n" at the prompt to abort the initial configuration dialog. Output from a 2900XL. Continue with configuration dialog? [yes/no]: n !--. entry po int: 0x3000 executing.This output is from a 3500XL switch.CSD Systems Engineering Cisco Switch Configuration AppNote 6 -rwx 389 <date> env_vars 7 drwx 640 <date> html 18 -rwx 109 <date> info. Type rename flash:config. This output is from a 3500XL switch. Default settings are in square brackets '[]'. 9. !--. or 3550 will vary slightly.Press Return or Enter.ver 403968 bytes available (3208704 bytes used) switch: !--.1205. Issue the boot command to boot the system. 8. Output from a 2900XL.WC7.System Configuration Dialog --At any point you may enter a question mark '?' for help.

Press Return or Enter. Change the password. Switch# configure terminal Switch(config)#no enable secret !--.0 Trouble Shooting 23 September 2007 ..text Destination filename [config. Switch# copy flash:config.760 secs Switch# The configuration file is now reloaded. Switch# write memory Building configuration. [OK] Switch# 7.text] !--.CSD Systems Engineering Cisco Switch Configuration AppNote Switch> !--. Write the running configuration to the configuration file with the write memory command. type en to enter enable mode. 10. Switch(config)#enable password Cisco Switch#(config)#^Z !--.password. Type rename flash:config. Switch>en Switch# 11. Copy the configuration file into memory.text to rename the configuration file with its original name.old flash:config.This step is necessary if the switch had an enable secret !--.text system:running-config Destination filename [running-config]? !--. 13.old flash:config. 14. Switch# 12.The Switch> prompt is displayed. 1131 bytes copied in 0.Use Ctrl-Z.Press Return or Enter. At the switch prompt.. Switch# rename flash:config.

3) Have you set up your VLAN configuration correctly? Check to make sure that the appropriate interfaces are associated with the correct VLANs. you should perform the following troubleshooting steps: 1) Do you have a physical and data link layer connection? Check the status of the interface with the show interfaces command. 24 September 2007 . 2. Check the duplexing of the connection (auto negotiation is a common problem with the negotiation of the duplexing mode). Troubleshooting Trunk Connections If you're experiencing problems in setting up a trunk or having problems with an active trunk. check that the native VLAN is the same on both sides. 3) For 802. If you're experiencing connectivity problems in a VLAN environment. Switch# show interface Gigi 1/0/2 Switch# show cdp neighbors Switch# show cdp neighbors details 2) Is your router and switch configuration correct? Verify that you've configured your routing protocol and your router's interface. Trouble Shooting VLAN problems. examine the following points: 1) Verify that the speed and duplexing configuration on both sides are correct and that you're using the correct cable type (crossover versus straight). 2) Make sure that the trunking type (ISL or 802. verify this configuration.CSD Systems Engineering Cisco Switch Configuration AppNote 1. Use CDP to check connectivity. If you're trunking between the router and the switch.1Q trunks.1Q) is the same on both sides and that the DTP modes are acceptable to forming a trunk.