Guest

Support

Troubleshooting LAN Switching Environments

Table Of Contents

Troubleshooting LAN Switching Environments

LAN Switching Introduction

Hubs and Switches

Bridges and Switches

VLANs

Transparent Bridging Algorithm

Spanning-Tree Protocol

Trunking

EtherChannel

Multilayer Switching

How to Learn About These Features

General Switch Troubleshooting Suggestions

Troubleshooting Port Connectivity Problems

Hardware Issues

General

Copper

Fiber

Configuration Issues

Traffic Issues

Switch Hardware Failure

Troubleshooting Ethernet 10/100-Mb
Half-/Full-Duplex Autonegotiation

Introduction

Troubleshooting Ethernet Autonegotiation Between Network Infrastructure Devices

Procedures and Scenarios

Example of Configuring and Troubleshooting Ethernet 10/100-Mb Autonegotiation

Tasks That Will Be Performed

Before Calling Cisco Systems' TAC Team

Additional Sources

ISL Trunking on Catalyst 5000 and 6000 Family Switches

Introduction

Troubleshooting ISL Trunking on Catalyst 5000 and 6000 Family Switches

Procedures and/or Scenarios

Example of Configuring and Troubleshooting ISL Trunking on Catalyst 5000 and 6000 Family Switches

Tasks That Will Be Performed

Step-by-Step

Possible Combinations of DTP Configurations

Before Calling Cisco Systems' TAC Team

Configuring EtherChannel Switch-to-Switch Connections on Catalyst 4000/5000/6000 Switches

Contents

Tasks for Manually Configuring EtherChannel

Step-by-Step

Verifying the EtherChannel Configuration

Using PAgP to Automatically Configure EtherChannel (Preferred Method)

Trunking and EtherChannel

Troubleshooting EtherChannel

Setting Mismatched Parameters

Waiting Too Long Before Configuring the Other Side

Correcting errdisable State

Showing What Happens When a Link Breaks and Is Restored

Commands Used in This Section

Using PortFast and Other Commands to Fix End-Station Startup Connectivity Problems

Contents

Background

Spanning Tree

EtherChannel

Trunking

Speed and Duplex Negotiation

How to Reduce Startup Delay on the Catalyst 4000/5000/6000 Switch

Configuration

Verification

Timing Tests with and Without DTP, PAgP, and PortFast on a Catalyst 5000

How to Reduce Startup Delay on the Catalyst 2900XL/3500XL Switch

Configuration

Verification

Timing Tests on the Catalyst 2900XL

How to Reduce Startup Delay on the Catalyst 1900/2800 Switch

Configuration

Verification

Timing Tests on the Catalyst 1900

An Additional Benefit to PortFast

Commands to Use for Verifying That the Configuration Is Working

Commands to Use for Troubleshooting the Configuration

Configuring and Troubleshooting IP Multilayer Switching

Introduction

Troubleshooting IP MLS Technology

Commands or Screen Captures

Before Calling Cisco Systems' TAC Team

Troubleshooting Spanning-Tree Protocol and Related Design Considerations

Spanning-Tree Protocol Failure

Duplex Mismatch

Unidirectional Link

Packet Corruption

Resource Errors

PortFast Configuration Error

Awkward STP Parameter Tuning and Diameter Issues

Software Errors

Troubleshooting a Failure

Use the Diagram of the Network

Identify a Bridging Loop

Restore Connectivity Quickly and Be Ready for Another Time

Check Ports

Look for Resource Errors

Disable Unneeded Features

Useful Commands

Designing STP to Avoid Trouble

Know Where the Root Is

Know Where Redundancy Is

Minimize the Number of Blocked Ports

Keep STP Even If It Is Not Needed

Keep Traffic Off the Administrative VLAN, and Avoid Having a Single VLAN Spanning the Entire Network

Avoid Tuning STP Parameters

Configure UDLD When Possible

Additional Sources


Troubleshooting LAN Switching Environments


The sections in this chapter describe common LAN switch features and offer solutions to some of the most common LAN switching problems. The following items will be covered:

LAN Switching Introduction

General Switch Troubleshooting Suggestions

Troubleshooting Port Connectivity Problems

Troubleshooting Ethernet 10/100-Mb Half-/Full-Duplex Autonegotiation

ISL Trunking on Catalyst 5000 and 6000 Family Switches

Example of Configuring and Troubleshooting Ethernet 10/100-Mb Autonegotiation

Configuring EtherChannel Switch-to-Switch on Catalyst 4000/5000/6000 Switches

Using PortFast and Other Commands to Fix End-Station Startup Connectivity Problems

Configuring and Troubleshooting IP Multilayer Switching

Troubleshooting Spanning Tree Protocol and Related Design Considerations

LAN Switching Introduction

If you are new to LAN switching, then the following sections will take you through some of the main concepts related to switches. One of the prerequisites to troubleshooting any device is to know the rules under which it operates. Switches have become much more complex over the last few years as they have gained popularity and sophistication. The next few paragraphs describe some of the key concepts to know about switches.

Hubs and Switches

Because of the great demand placed on local-area networks, we have seen a shift from a shared-bandwidth network, using hubs and coaxial cable, to a dedicated bandwidth network, using switches. A hub allows multiple devices to be connected to the same network segment. The devices on that segment share the bandwidth with each other. If it is a 10-Mb hub and six devices are connected to six different ports on the hub, all six devices would share the 10 Mb of bandwidth with each other. A 100-Mb hub would share 100 Mb of bandwidth among the connected devices. In terms of the OSI model, a hub would be considered a Layer 1 (physical layer) device. It hears an electrical signal on the wire and passes it along to the other ports.

A switch can physically replace a hub in your network. A switch allows multiple devices to be connected to the same network, just like a hub does, but this is where the similarity ends. A switch allows each connected device to have dedicated bandwidth instead of shared bandwidth. The bandwidth between the switch and the device is reserved for communication to and from that device alone. Six devices connected to six different ports on a 10-Mb switch would each have 10 Mb of bandwidth to work with, instead of sharing that bandwidth with the other devices. A switch can greatly increase the available bandwidth in your network, which can lead to improved network performance.

Bridges and Switches

A basic switch would be considered a Layer 2 device. When we use the word layer, we are referring to the seven-layer OSI model. A switch does not just pass electrical signals along, like a hub does; instead, it assembles the signals into a frame (Layer 2) and then decides what to do with the frame. A switch determines what to do with a frame by borrowing an algorithm from another common networking device, a transparent bridge. Logically, a switch acts just like a transparent bridge would, but it can handle frames much faster than a transparent bridge (because of special hardware and architecture). When a switch decides where the frame should be sent, it passes the frame out the appropriate port (or ports). You can think of a switch as a device creating instantaneous connections between various ports, on a frame-by-frame basis.

VLANs

Because the switch decides on a frame-by-frame basis which ports should exchange data, it is a natural extension to put logic inside the switch to allow it to select ports for special groupings. This grouping of ports is called a virtual local-area network (VLAN). The switch makes sure that traffic from one group of ports never gets sent to other groups of ports (which would be routing). These port groups (VLANs) can each be considered an individual LAN segment.

VLANs are also described as being broadcast domains. This is because of the transparent bridging algorithm, which says that broadcast packets (packets destined for the "all devices" address) should be sent out all ports that are in the same group (that is, in the same VLAN). Therefore, all ports that are in the same VLAN are also in the same broadcast domain.

Transparent Bridging Algorithm

The transparent bridging algorithm and the Spanning-Tree Protocol are covered in more detail elsewhere (see Chapter 20, "Troubleshooting Transparent Bridging Environments"). When a switch receives a frame, it must decide what to do with that frame. It could ignore the frame, it could pass the frame out one other port, or it could pass the frame out many other ports.

To know what to do with the frame, the switch learns the location of all devices on the segment. This location information is placed in a CAM table (Content Addressable Memory, named for the type of memory used to store these tables). The CAM table shows, for each device, the device's MAC address, out which port that MAC address can be found, and which VLAN this port is associated with. The switch continually does this learning process as frames are received into the switch. The switch's CAM table is continually being updated.

This information in the CAM table is used to decide how a received frame should be handled. To decide where to send a frame, the switch looks at the destination MAC address in a received frame and then looks up that destination MAC address in the CAM table. The CAM table shows which port the frame should be sent out for that frame to reach the specified destination MAC address.

These are the basic rules that a switch will use in carrying out the frame forwarding responsibility:

If the destination MAC address is found in the CAM table, then the switch will send the frame out the port that is associated with that destination MAC address in the CAM table. This is called forwarding.

If the associated port to send the frame out is the same port on which the frame originally came in, then there is no need to send the frame back out that same port, and the frame is ignored. This is called filtering.

If the destination MAC address is not in the CAM table (the address is unknown), then the switch will send the frame out all other ports that are in the same VLAN as the received frame. This is called flooding. It will not flood the frame out the same port on which the frame was received.

If the destination MAC address of the received frame is the broadcast address (FFFF.FFFF.FFFF), then the frame is sent out all ports that are in the same VLAN as the received frame. This is also called flooding. The frame will not be sent out the same port on which the frame it was received.

Spanning-Tree Protocol

As we have seen, the transparent bridging algorithm floods unknown and broadcast frames out all the ports that are in the same VLAN as the received frame. This causes a potential problem. If the network devices running this algorithm are connected in a physical loop, then flooded frames (such as broadcasts) will be passed from switch to switch, around and around the loop forever. Depending on the physical connections involved, the frames may actually multiply exponentially as a result of the flooding algorithm, which can cause serious network problems.

There is a benefit to having a physical loop in your network: It can provide redundancy. If one link fails, there is still another way for the traffic to reach its destination. To allow the benefits derived from redundancy, without breaking the network because of flooding, a protocol called the Spanning-Tree Protocol was created. It was standardized in the IEEE 802.1d specification.

The purpose of the Spanning-Tree Protocol is to identify and temporarily block the loops in a network segment or VLAN. The switches run the Spanning-Tree Protocol, which involves electing a root bridge or switch. The other switches measure their distance from the root switch. If there is more than one way to get to the root switch, then there is a loop. The switches follow the algorithm to determine which ports should be blocked to break the loop. STP is dynamic; if a link in the segment fails, then ports that were originally blocking may possibly be changed to forwarding mode.

Trunking

Trunking is a mechanism that is most often used to allow multiple VLANs to function independently across multiple switches. Routers and servers may use trunking as well, which allows them to live simultaneously on multiple VLANs. If your network has only one VLAN in it, then you may never need trunking; if your network has more than one VLAN, however, you will probably want to take advantage of the benefits of trunking.

A port on a switch normally belongs to only one VLAN; any traffic received or sent on this port is assumed to belong to the configured VLAN. A trunk port, on the other hand, is a port that can be configured to send and receive traffic for many VLANs. It accomplishes this by attaching VLAN information to each frame, a process called "tagging" the frame. Also, trunking must be active on both sides of the link; the other side must be expecting frames that include VLAN information for proper communication to occur.

Different methods of trunking exist, depending on the media being used. Trunking methods for Fast Ethernet or Gigabit Ethernet are Inter-Switch Link (ISL) or 802.1q. Trunking over ATM uses LANE. Trunking over FDDI uses 802.10.

EtherChannel

EtherChannel is a technique that can be used when you have multiple connections to the same device. Instead of having each link function independently, EtherChannel groups the ports together to work as one unit. It distributes traffic across all the links and provides redundancy in case one or more links fail. EtherChannel settings must be the same on both sides of the links involved in the channel. Normally, the Spanning-Tree Protocol would block all these parallel connections between devices because they are loops; however, EtherChannel runs "underneath" Spanning-Tree Protocol so that the protocol thinks that all the ports within a given EtherChannel are only a single port.

Multilayer Switching

Multilayer switching (MLS) refers to the capability of a switch to forward frames based on information in the Layer 3 (and sometimes Layer 4) header. This usually applies to IP packets, but now it also can occur for IPX packets. The switch learns how to handle these packets by communicating with one or more routers. Using a simplified explanation, the switch watches how the router processes a packet, and then the switch takes over processing future packets in this same flow. Traditionally, switches have been much faster at switching frames than routers, so to have them offload traffic from the router can result in significant speed improvements. If something changes in the network, the router can tell the switch to erase its Layer 3 cache and build it from scratch again as the situation evolves. The protocol used to communicate with the routers is called Multilayer Switching Protocol (MLSP).

How to Learn About These Features

These are just some of the basic features that switches support. More are being added every day. It is important to understand how your switches work, which features you are using, and how those features should work. One of the best places to learn this information about Cisco switches is on Cisco's web site.

Go to www.cisco.com; under the section "Service & Support," select Technical Documents. From here, select Documentation Home Page to find documentation sets for all Cisco products. The "Multilayer LAN Switches" link will lead you to documentation for all Cisco LAN switches. To learn about the features of a switch, read the "Software Configuration Guide" for the particular release of software that you use. The software configuration guides give you background information about what the feature does and what commands to use to configure it on your switch. All this information is free on the web; you do not even need an account for this documentation because it is available to anyone. Some of these configuration guides can be read in an afternoon and are well worth the time spent.

Another part of Cisco's web site is populated by Cisco's Technical Assistance Center (TAC). It is filled with information designed to help you implement, maintain, and troubleshoot your network. Go to the TAC web site at: www.cisco.com/tac; from here, you can select Products Home Page to get detailed support information organized by specific products, or you can go to the Technologies Home Page to get support information on technology (Fast Ethernet, Spanning-Tree Protocol, trunking, and so on). TAC documents and online tools specific to LAN Technologies are here: www.cisco.com/warp/customer/473/. Some of the material on the TAC web site, and, in particular, the online tools, are accessible only to users with a Cisco support contract.

General Switch Troubleshooting Suggestions

Many ways exist by which to troubleshoot a switch. As the features of switches grow, the possible things that can break also increase. If you develop an approach or test plan for troubleshooting, you will be better off in the long run than if you just try a hit-and-miss approach. Here are some general suggestions for making your troubleshooting more effective:

Take the time to become familiar with normal switch operation. Cisco's web site has a tremendous amount of technical information describing how Cisco switches work, as mentioned in the previous section. The configuration guides, in particular, are very helpful. Many cases opened with Cisco's Technical Assistance Center (TAC) are solved with information from the product configuration guides.

For the more complex situations, have an accurate physical and logical map of your network. A physical map shows how the devices and cables are connected. A logical map shows what segments (VLANs) exist in your network and which routers provide routing services to these segments. A spanning-tree map is highly useful for troubleshooting complex issues. Because of a switch's capability to create different segments by implementing VLANs, the physical connections alone do not tell the whole story; you must know how the switches are configured to determine which segments (VLANs) exist and to know how they are logically connected.

Have a plan. Some problems and solutions are obvious; some are not. The symptoms that you see in your network may be the result of problems in another area or layer. Before jumping to conclusions, try to verify in a structured way what is working and what is not. Because networks can be complex, it is helpful to isolate possible problem domains. One way of doing this is by using the OSI seven-layer model. For example, check the physical connections involved (Layer 1), check connectivity issues within the VLAN (Layer 2), check connectivity issues across different VLANs (Layer 3), and so on. Assuming a correct configuration on the switch, many of the problems that you encounter will be related to physical layer issues (physical ports and cabling). Today, switches are involved in Layer 3 and Layer 4 issues, incorporating intelligence to switch packets based on information derived from routers, or by actually having routers living inside the switch (Layer 3 or Layer 4 switching).

Do not assume that a component is working without checking it first. This can save you a lot of wasted time. For example, if a PC is not capable of logging into a server across your network, many things could be wrong. Don't skip the basic things and assume that something works—someone might have changed something without telling you. It takes only a minute to check some of the basic things (for example, that the ports involved are connected to the right place and are active), which could save you many wasted hours.

Troubleshooting Port Connectivity Problems

If the port doesn't work, nothing works! Ports are the foundation of your switching network. Some ports have special significance because of their location in the network and the amount of traffic that they carry. These ports would include connections to other switches, routers, and servers. These ports can be more complicated to troubleshoot because they often take advantage of special features such as trunking and EtherChannel. The rest of the ports are significant as well because they connect the actual users of the network.

Many things can cause a port to be nonfunctional: hardware issues, configuration issues, and traffic issues. Let's look at these categories a little deeper.

Hardware Issues

This section discusses issues related to general hardware requirements, copper, and fiber.

General

Port functionality requires two working ports connected by a working cable (assuming that it is of the correct type). Most Cisco switches default to having a port in notconnect state, which means that it is currently not connected to anything but is willing to connect. If you connect a good cable to two switch ports in the notconnect state, the link light should become green for both ports, and the port status should be "connected," which means that the port is up as far as Layer 1 is concerned. The following paragraphs point out items to check if Layer 1 is not up.

Check the port status for both ports involved. Make sure that neither port involved in the link is shut down. The administrator could have manually shut down one or both ports. Software inside the switch could have shut down the port because of configuration error conditions (we will expand on this later). If one side is shut down and the other is not, the status on the enabled side will be notconnect (because it does not sense a neighbor on the other side of the wire). The status on the shut-down side would say something like "disable" or "errDisable" (depending on what actually shut down the port). The link will not come up unless both ports are enabled.

When you hook up a good cable (again, assuming that it is of the correct type) between two enabled ports, both ports should show a green link light within a few seconds. Also, the port state should show "connected" in the command-line interface (CLI). At this point, if you do not have link, your problem is limited to three things: the port on one side, the port on the other side, or the cable in the middle. In some cases, other devices are involved: media converters (fiber-to-copper, and so on), or, on Gigabit links, you may have gigabit interface connectors (GBICs). Still, this is a reasonably limited area to search.

Media converters can add noise to a connection or weaken the signal if they are not functioning correctly. They also add extra connectors that can cause problems, so this is another component to debug.

Check for loose connections. Sometimes a cable appears to be seated in the jack, but it actually isn't; unplug the cable and re-insert it. You should also look for dirt or broken or missing pins. Do this for both ports involved in the connection.

The cable could be plugged into the wrong port, which commonly happens. Make sure that both ends of the cable are plugged into the ports where you really want them.

You also can have a link on one side and not on the other. Check both sides for link. A single broken wire can cause this type of problem.

A link light does not guarantee that the cable is fully functional. It may have encountered physical stress that causes it to be functional at a marginal level. Usually you will notice this if the port has lots of packet errors.

To determine whether the cable is the problem, swap it with a known good cable. Don't just swap it with any other cable; make sure that you swap it with a cable that you know is good and is of the correct type.

If this is a very long cable run (underground, across a large campus, for example), then it would be nice to have a sophisticated cable tester. If you do not have a cable tester, you might consider the following:

Trying different ports to see if they come up using this long cable

Connecting the port in question to another port in the same switch, just to see if the port will link up locally

Temporarily relocating the switches near each other so that you can try out a known good cable

Copper

Make sure that you have the correct cable for the type of connection you are making. Category 3 cable can be used for 10 MB UTP connections, but Category 5 should be used for 10/100 connections.

A straight-through RJ-45 cable is used for end stations, routers, or servers to connect to a switch or hub. An Ethernet crossover cable is used for switch-to-switch or hub-to-switch connections. Below is the pin-out for an Ethernet crossover cable. Maximum distances for Ethernet or Fast Ethernet copper wires are 100 meters. A good general rule of thumb is that when crossing an OSI layer, such as between a switch and a router, use a straight-through cable; when connecting two devices in the same OSI layer, such as between two routers or two switches, use a crossover cable. For purposes of this rule only, treat a workstation like a router.

Figure 23-1 shows the pinouts required for a switch-to-switch crossover cable.

Figure 23-1 Illustration of the Pinouts Required for a Switch-to-Switch Crossover Cable

Fiber

For fiber, make sure that you have the correct cable for the distances involved and the type of fiber ports being used (single mode, multimode). Make sure that the ports being connected are both single-mode or both multimode ports. Single-mode fiber generally reaches 10 km, and multimode fiber can usually reach 2 km, but the special case of 100BaseFX multimode used in half-duplex mode can go only 400 meters.

For fiber connections, make sure that the transmit lead of one port is connected to the receive lead of the other port, and vice versa; transmit-to-transmit and receive-to-receive will not work.

For gigabit connections, GBICs must be matched on each side of the connection. There are different types of GBICs, depending on the cable and distances involved: short wavelength (SX), long wavelength/long haul (LX/LH), and extended distance (ZX). An SX GBIC needs to connect with an SX GBIC; an SX GBIC will not link with an LX GBIC. Also, some gigabit connections require conditioning cables, depending on the lengths involved. Refer to the GBIC installation notes (for examples, see www.cisco.com/univercd/cc/td/doc/product/lan/cat5000/cnfg_nts/ethernet/5399_01.htm).

If your gigabit link will not come up, check to make sure that the flow control and port negotiation settings are consistent on both sides of the link. There could be incompatibilities in the implementation of these features if the switches being connected are from different vendors. If in doubt, turn off these features on both switches.

Configuration Issues

Another cause of port connectivity issues is incorrect software configuration of the switch. If a port has a solid orange light, it means that software inside the switch shut down the port, either by way of the user interface or by internal processes.

Make sure that the administrator has not shut down the ports involved (as mentioned earlier). The administrator could have manually shut down the port on one side of the link. This link will not come up until you re-enable the port; check the port status.

Some switches, such as the Catalyst 4000/5000/6000, may shut down the port if software processes inside the switch detect an error. When you look at the port status, it will read "errDisable." You must fix the configuration problem and then manually take the port out of errDisable state. Some newer software versions—CatOS 5.4(1) and later—have the capability to automatically re-enable a port after a configurable amount of time spent in the errDisable state. Some of the causes for this errDisable state are listed here:

EtherChannel misconfiguration—If one side is configured for EtherChannel and the other is not, it can cause the spanning-tree process to shut down the port on the side configured for EtherChannel. If you try to configure EtherChannel but the ports involved do not have the same settings (speed, duplex, trunking mode, and so on) as their neighbor ports across the link, then it could cause the errDisable state. It is best to set each side for the EtherChannel desirable mode if you want to use EtherChannel. The section "Configuring EtherChannel Switch-to-Switch Connections on Catalyst 4000/5000/6000 Switches" talks in depth about configuring EtherChannel.

Duplex mismatch—If the switch port receives a lot of late collisions, this usually indicates a duplex mismatch problem. There are other causes for late collisions—such as a bad NIC or cable segments that are too long—but the most common reason today is a duplex mismatch. The full-duplex side thinks that it can send whenever it wants to, but the half-duplex side expects packets only at certain times, not at any time.

BPDU port guard—Some newer versions of switch software can monitor whether PortFast is enabled on a port. A port using PortFast should be connected to an end station, not to devices that generate spanning-tree packets called BPDUs. If the switch notices a BPDU coming into a port that has PortFast enabled, it will put the port in errDisable mode.

Unidirectional Link Detection—Unidirectional Link Detection (UDLD) is a protocol on some new versions of software that discovers whether communication over a link is one-way only. A broken fiber cable or other cabling/port issues could cause this one-way only communication. These partially functional links can cause problems when the switches involved do not know that the link is partially broken. Spanning-tree loops can occur with this problem. UDLD can be configured to put a port in errDisable state when it detects a unidirectional link.

Native VLAN mismatch—Before a port has trunking turned on, it belongs to a single VLAN. When trunking is turned on, the port can carry traffic for many VLANs. The port will still remember the VLAN that it was in before trunking was turned on, which is called the native VLAN. The native VLAN is central to 802.1q trunking. If the native VLAN on each end of the link does not match, a port will go into the errDisable state.

Other—Any process within the switch that recognizes a problem with the port can place it in the errDisable state.

Another cause of inactive ports occurs when the VLAN to which the ports belong disappears. Each port in a switch belongs to a VLAN. If that VLAN is deleted, then the port will become inactive. Some switches show a steady orange light on each port in which this has happened. If you come to work one day and see hundreds of orange lights, don't panic; it could be that all the ports belonged to the same VLAN and someone accidentally deleted the VLAN to which the ports belong. When you add the VLAN back into the VLAN table, the ports will become active again because a port remembers its assigned VLAN.

If you have a link and the ports show that they are connected, but you cannot communicate with another device, this can be particularly perplexing. It usually indicates a problem above the physical layer: Layer 2 or Layer 3. Try the actions suggested in the next paragraphs.

Check the trunking mode on each side of the link. Make sure that both sides are in the same mode. If you turn the trunking mode to on (as opposed to auto or desirable) for one port, and the other port has the trunking mode set to off, the ports will not be capable of communicating. Trunking changes the formatting of the packet; the ports must be in agreement as to what format they are using on the link, or they will not understand each other.

Make sure that all devices are in the same VLAN. If they are not in the same VLAN, then a router must be configured to allow the devices to communicate.

Make sure that your Layer 3 addressing is correctly configured.

Traffic Issues

In this section, we describe some of the things you can learn by looking at a port's traffic information. Most switches have some way to track the packets going in and out of a port. Commands that generate this type of output on the Catalyst 4000/5000/6000 switches are show port and show mac. Output from these commands on the 4000/5000/6000 switches is described in the switch command references.

Some of these port traffic fields show how much data is being transmitted and received on the port. Other fields show how many error frames are being encountered on the port. If you have a large amount of alignment errors, FCS errors, or late collisions, this may indicate a duplex mismatch on the wire. Other causes for these types of errors may be bad network interface cards or cable problems. If you have a large number of deferred frames, it is a sign that your segment has too much traffic; the switch is not capable of sending enough traffic on the wire to empty its buffers. Consider removing some devices to another segment.

Switch Hardware Failure

If you have tried everything you can think of and the port will not work, there might be faulty hardware.

Sometimes ports are damaged by electrostatic discharge (ESD). You may or may not see any indication of this.

Look at the power-on self-test (POST) results from the switch to see whether any failures are indicated for any part of the switch.

If you see behavior that can be considered "strange," this could indicate hardware problems, but it could also indicate software problems. It is usually easier to reload the software than it is to get new hardware. Try working with the switch software first.

The operating system might have a bug. Loading a newer operating system could fix this. You can research known bugs by reading the release notes for the version of code that you are using or by using Cisco's Bug Navigator tool (www.cisco.com/support/bugtools).

The operating system could have somehow become corrupted. Reloading the same version of the operating system could fix the problem.

If the status light on the switch is flashing orange, this usually means that there is some kind of hardware problem with the port or the module or the switch. The same thing is true if the port or module status indicates "faulty."

Before exchanging the switch hardware, you might try a few things:

Reseat the module in the switch. If you do this with the power on, make sure that the module is hot-swappable. If in doubt, turn off the switch before reseating the module, or refer to the hardware installation guide. If the port is built into the switch, ignore this step.

Reboot the switch. Sometimes this causes the problem to disappear; this is a workaround, not a fix.

Check the switch software. If this is a new installation, remember that some components may work with only certain releases of software. Check the release notes or the hardware installation and configuration guide for the component you are installing.

If you are reasonably certain that you have a hardware problem, then replace the faulty component.

Troubleshooting Ethernet 10/100-Mb
Half-/Full-Duplex Autonegotiation

This section presents general troubleshooting information and a discussion of techniques for troubleshooting Ethernet autonegotiation.

This section shows how to determine the current behavior of a link. It goes on to show how users can control the behavior, and it also explains situations when autonegotiation will fail.

Many different Cisco Catalyst switches and Cisco routers support autonegotiation. This section focuses on autonegotiation between Catalyst 5000 switches. However, the concepts explained here can be applied to the other types of devices.

Introduction

Autonegotiation is an optional function of the IEEE 802.3u Fast Ethernet standard that enables devices to automatically exchange information over a link about speed and duplex capabilities.

Autonegotiation is targeted at ports, which are allocated to areas where transient users or devices connect to a network. For example, many companies provide shared offices or cubes for account managers and system engineers to use when they are in the office rather than on the road. Each office or cube will have an Ethernet port permanently connected to the office's network. Because it may not be possible to ensure that every user has either a 10-Mb, a 100-Mb Ethernet, or a 10/100-Mb card in their laptops, the switch ports that handle these connections must be capable of negotiating their speed and duplex mode. The alternative would be to provide both a 10-Mb and a 100-Mb port in each office or cube and then label them accordingly.

Autonegotiation should not be used for ports that support network infrastructure devices such as switches and routers, or other nontransient end systems such as servers and printers. Although autonegotiation for speed and duplex is normally the default behavior on switch ports that are capable of it, ports connected to fixed devices should always be configured for the correct behavior rather than allowed to negotiate it. This eliminates any potential negotiation issues and ensures that you always know exactly how the ports should be operating. For example, a 10/100BaseTX Ethernet switch-to-switch link that has been configured for 100 Mb full-duplex will operate only at that speed and mode. There is no possibility for the ports to downgrade the link to a slower speed during a port reset or a switch reset. If the ports cannot operate as configured, they should stop passing any traffic. On the other hand, a switch-to-switch link that has been allowed to negotiate its behavior could end up operating at 10 Mb half-duplex. A nonfunctional link is usually easier to discover than a link that is operational but not operating at the expected speed or mode.

One of the most common causes of performance issues on 10/100-Mb Ethernet links is one port on the link operating at half-duplex mode while the other port is operating at full-duplex mode. This occasionally happens when one or both ports on a link are reset and the autonegotiation process doesn't result in the same configuration for both link partners. It also happens when users reconfigure one side of a link and forget to reconfigure the other side. Many performance-related support calls will be avoided by creating a policy that requires ports for all nontransient devices to be configured for their required behavior and enforcing the policy with adequate change control measures.

Troubleshooting Ethernet Autonegotiation Between Network Infrastructure Devices

Figure 23-2 show the process you should follow in troubleshooting Ethernet autonegotiation between network infrastructure devices.

Figure 23-2 Troubleshooting Ethernet Autonegotiation

Procedures and Scenarios

Figure 23-3 shows a scenario using Cat 5k to Cat 5k, using Fast Ethernet.

Figure 23-3 Scenario 1: Cat 5K to Cat 5K, Using Fast Ethernet

  

Table 23-1 Autonegotiation Connectivity Issues

Possible Problem
Solution

Was the current behavior of the link autonegotiated?

1. Use the show port mod_num/port_num command to determine the current behavior of the link. If both link partners (interfaces at either end of the link) have an "a-" prefix on their Duplex and Speed status fields, autonegotiation was probably successful.

Autonegotiation is not supported.

1. Issue the show port capabilities mod_num/port_num command to verify that your modules support autonegotiation.

Autonegotiation is not working on Catalyst switches.

1. Use the set port speed mod_num/port_num auto command on a Catalyst to configure autonegotiation.

2. Try different ports or modules.

3. Try resetting the ports.

4. Try different patch cables.

5. Turn the devices off and back on again.

Autonegotiation is not working on Cisco routers.

1. Issue the correct IOS command to enable autonegotiation (if available).

2. Try different interfaces.

3. Try resetting the interfaces.

4. Try different patch cables.

5. Turn the devices off and back on again.


Example of Configuring and Troubleshooting Ethernet 10/100-Mb Autonegotiation

This section walks you through examining the behavior of a 10/100-Mb Ethernet port that supports autonegotiation. It will also show how to make changes to its default behavior and how to restore it to the default behavior.

Tasks That Will Be Performed

In this section, you'll perform these tasks:

Examine the capabilities of the ports.

Configure autonegotiation for port 1/1 on both switches.

Determine whether the speed and duplex mode are set to autonegotiate.

Change the speed on port 1/1 in Switch A to 10 Mb.

Understand the meaning of the "a-" prefix on the Duplex and Speed status fields.

View the duplex status of port 1/1 on Switch B.

Understand the duplex mismatch error.

Understand the spanning-tree error messages.

Change the duplex mode to half on port 1/1 on Switch A.

Set the duplex mode and speed of port 1/1 on Switch B.

Restore the default duplex mode and speed to ports 1/1 on both switches.

View the changes of the port status on both switches.

The following steps are performed on the console of a Catalyst 5K switch.


Step 1 The show port capabilities 1/1 command displays the capabilities of a Ethernet 10/100BaseTX 1/1 port on Switch A.

Enter this command for both of the ports that you are troubleshooting. Both ports must support the speed and duplex capabilities shown here if they are supposed to be using autonegotiation.

The italic text in the output shows where the information on the speed and duplex mode capabilities will be found.

Switch-A> (enable) show port capabilities 1/1
Model WS-X5530
Port 1/1
Type 10/100BaseTX
Speed auto,10,100
Duplex half,full

Step 2 Autonegotiation is configured for both speed and duplex mode on port 1/1 of both switches by entering the set port speed 1/1 auto command (auto is the default for ports that support autonegotiation).

Switch-A> (enable) set port speed 1/1 auto
Port(s) 1/1 speed set to auto detect.
Switch-A (enable)

Note The set port speed {mod_num/port_num} auto command also sets the duplex mode to auto. There is no set port duplex {mod_num/port_num} auto command.


Step 3 The show port 1/1 command below displays the status of ports 1/1 on switches A and B.

Switch-A> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal a-full a-100 10/100BaseTX
Switch-B> (enable) show port 1/1 
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- -----------
 1/1                     connected  1          normal a-full a-100 10/100BaseTX

The italic text in this output shows where the information on the current status of a port can be found. Note that most of the normal output from the show port {mod_num/port_num} command has been omitted.

The "a-" prefixes on the "full" and "100" indicate that this port has not been hard-coded (configured) for a specific duplex mode or speed. Therefore, it is willing to autonegotiate its duplex mode and speed if the device it is connected to (its link partner) is also willing to autonegotiate its duplex mode and speed.

Also note that the status shows "connected" on both ports, which means that a link pulse has been detected from the other port. The status can show "connected" even if duplex has been incorrectly negotiated or misconfigured.

Step 4 To demonstrate what happens when one link partner is autonegotiating and the other link partner is not, the speed on port 1/1 in Switch A will be set to 10 Mb by using the set port speed 1/1 10 command.

Switch-A> (enable) set port speed 1/1 10
Port(s) 1/1 speed set to 10Mbps.
Switch-A> (enable)

Note Hard-coding the speed on a port disables all autonegotiation functionality on the port for speed and duplex.


When a port has been configured for a speed, its duplex mode will automatically be configured for the mode that it had previously negotiated—in this case, full duplex. Therefore, entering the set port speed 1/1 10 command caused the duplex mode on port 1/1 to be configured as if the command set port duplex 1/1 full had also been entered. This is explained in the next step.

Step 5 Now you must understand the meaning of the "a-" prefix in the Duplex and Speed status fields.

The absence of the "a-" prefix in the status fields of the output from the show port 1/1 command on Switch A shows that the duplex mode is now configured for full-duplex operation, and the speed is now configured for 10 Mb.

Switch-A> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal  full  10    10/100BaseTX

Step 6 The show port 1/1 command on Switch B indicates that the port is now operating at half-duplex and 10 Mb.

Switch-B> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
1/1 connected 1 normal a-half a-10 10/100BaseTX

This step shows that it is possible for a link partner to detect the speed at which the other link partner is operating, even though the other link partner is not configured for autonegotiation. Sensing the type of electrical signal that is arriving to see if it is 10 Mb or 100 Mb does this. This is how Switch B determined that port 1/1 should be operating at 10 Mb.

It is not possible to detect the correct duplex mode in the same way that the correct speed can be detected. In this case, where Switch B's 1/1 port is configured for autonegotiation and Switch A's is not, Switch B's 1/1 port was forced to select the default duplex mode. On Catalyst Ethernet ports, the default mode is autonegotiate and, if autonegotiation fails, then is half-duplex.

This example also shows that a link can be successfully connected when there is a mismatch in the duplex modes. Port 1/1 on Switch A is configured for full-duplex operation, while port 1/1 on Switch B has defaulted to half-duplex operation. To avoid this, always configure both link partners.

The "a-" prefix on the Duplex and Speed status fields does not always mean that the current behavior was negotiated. Sometimes it means only that the port has not been configured for a speed or duplex mode.

The previous output from Switch B shows the Duplex field as "a-half" and the Speed field as "a-10," which indicates that the port is operating at 10 Mb in half-duplex mode. In this example, however, the link partner on this port (port 1/1 on Switch A) is configured for full-duplex mode and 10 Mb. Therefore, it was not possible for port 1/1 on Switch B to have autonegotiated its current behavior. This proves that the "a-" prefix indicates only a willingness to perform autonegotiation, not that autonegotiation actually took place.

Step 7 The following message about a duplex mode mismatch is displayed on Switch A after the speed on port 1/1 was changed to 10 Mb. The mismatch was caused by Switch B's 1/1 port defaulting to half-duplex mode because it sensed that its link partner was no longer performing autonegotiation.

%CDP-4-DUPLEXMISMATCH:Full/half duplex mismatch detected o1

It is important to note that this message is created by the Cisco Discovery Protocol (CDP), not the 802.3 autonegotiation protocol. CDP can report problems that it discovers, but it typically doesn't automatically fix them.

A duplex mismatch may or may not result in an error message. Another indication of a duplex mismatch is rapidly increasing FCS and alignment errors on the half-duplex side, and "runts" on the full-duplex port (as seen in a sh port {mod_num/port_num}).

Step 8 In addition to the duplex mismatch error message, you may also see the following spanning-tree messages when you change the speed on a link. A discussion of the Spanning-Tree Protocol is beyond the scope of this document; see the section found later in this chapter "Troubleshooting Spanning-Tree Protocol and Related Design Considerations," for more information.

%PAGP-5-PORTFROMSTP:Port 1/1 left bridge port 1/1
%PAGP-5-PORTTOSTP:Port 1/1 joined bridge port 1/1

Step 9 To demonstrate what happens when the duplex mode has been configured, the mode on port 1/1 in Switch A will be set to half-duplex mode using the set port duplex 1/1 half command.

Switch-A> (enable) set port duplex 1/1 half
Port(s) 1/1 set to half-duplex.
Switch-A> (enable)

The show port 1/1 command shows the change in the duplex mode on this port.

Switch-A> (enable) sh port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal half   10    10/100BaseTX

At this point, ports 1/1 on both switches are operating at half-duplex mode. Port 1/1 on Switch B, however, is still configured to autonegotiate, as shown in the following output of the show port 1/1 command.

Switch-B> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal a-half a-10  10/100BaseTX

The next step shows how to configure the duplex mode on port 1/1 in Switch B to half-duplex mode. This is in keeping with the recommended policy of always configuring both link partners in the same way.

Step 10 To implement the policy of always configuring both link partners for the same behavior, this step now sets the duplex mode to half-duplex and the speed to 10 on port 1/1 in Switch B.

Here is the output of entering the set port duplex 1/1 half command on Switch B:

Switch-B> (enable) set port duplex 1/1 half
Port 1/1 is in auto-sensing mode.
Switch-B> (enable)

The set port duplex 1/1 half command failed because this command won't work if autonegotiation is enabled. This also means that this command will not disable autonegotiation. Autonegotiation can be disabled only by using the set port speed {mod_num/port_num {10 | 100}} command.

Here is the output of entering the set port speed 1/1 10 command on Switch B:

Switch-B> (enable) set port speed 1/1 10
Port(s) 1/1 speed set to 10 Mbps.
Switch-B> (enable)

Now the set port duplex 1/1 half command on Switch B will work:

Switch-A> (enable) set port duplex 1/1 half
Port(s) 1/1 set to half-duplex.
Switch-A> (enable)

The show port 1/1 command on Switch B shows that the ports is now configured for half-duplex mode and 10 Mb.

Switch-B> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal half   10    10/100BaseTX

Note The set port duplex {mod_num/port_num {half | full }} command is dependent on the set port speed {mod_num/port_num {10 | 100 }} command. In other words, you must set the speed before you can set the duplex mode.


Step 11 Configure ports 1/1 on both switches to autonegotiate with the set port speed 1/1 auto command.

Switch-A> (enable) set port speed 1/1 auto
Port(s) 1/1 speed set to auto detect.
Switch-A> (enable)

Note When a port's duplex mode has been configured to something other than auto, the only way to configure the port to autosense its duplex mode is to issue the set port speed {mod_num/port_num} auto command. There is no set port duplex {mod_num/port_num} auto command. In other words, issuing the set port speed {mod_num/port_num} auto command has the effect of resetting both port speed sensing and duplex mode sensing to auto.


Step 12 Examine the status of ports 1/1 on both switches by using the show port 1/1 command.

Switch-A> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal a-full a-100 10/100BaseTX
Switch-B> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
 1/1                     connected  1          normal a-full a-100 10/100BaseTX

Both ports are now set to their default behavior of autonegotiation. Both ports have negotiated full-duplex mode and 100 Mb.

Before Calling Cisco Systems' TAC Team

Before calling Cisco Systems' Technical Assistance Center (TAC), make sure that you have read through this chapter and completed the actions suggested for your system's problem.

Additionally, do the following and document the results so that we can better assist you:

Capture the output of show version from all the affected devices.

Capture the output of show port mod_num/port_num from all the affected ports.

Capture the output of show port mod_num/port_num capabilities from all the affected ports.

Additional Sources

IEEE web site: www.ieee.org/

ISL Trunking on Catalyst 5000 and 6000 Family Switches

This section illustrates how to create a switch-to-switch Inter-Switch Link (ISL) trunk. Trunk ports enable connections between switches to carry traffic from more than one virtual local-area network (VLAN). Without trunking, a link between two switches can carry only traffic from one VLAN.

This section shows how to determine the current behavior of a link. It goes on to show how users can control the behavior, and it also explains situations when autonegotiation will fail.

Many different Cisco Catalyst switches and Cisco routers support autonegotiation. This section focuses on autonegotiation between Catalyst 5000 switches. However, the concepts explained here can be applied to the other types of devices.

Introduction

Trunking is not required in very simple switched networks with only one VLAN (broadcast domain). In most LANs, a small portion of traffic is made up of special protocols used for managing the network (Cisco Discovery Protocol, Virtual Trunking Protocol, Dynamic Trunking Protocol, Spanning-Tree Protocol, and Port Aggregation Protocol, to name a few examples). The management VLAN (VLAN 1) is also used when you ping or Telnet directly to or from the switch (this VLAN and the IP address of the switch are defined by configuring the sc0 interface, explained later). In a multi-VLAN environment, many network administrators advocate restricting this management traffic to its own VLAN, normally VLAN 1. User traffic is then configured to flow in VLANs other than this default VLAN.

ISL (Cisco proprietary) is one of two possible trunking protocols for Ethernet. The other protocol is the IEEE 802.1q standard.

Troubleshooting ISL Trunking on Catalyst 5000 and 6000 Family Switches

This section will walk the reader through some basic ISL trunking scenarios. The reader will learn basic ISL trunking configuration and troubleshooting skills (Figure 23-4).

Figure 23-4 Troubleshooting ISL Trunking on Catalyst 5000 and 6000 Family Switches

Procedures and/or Scenarios

Scenario: Cat 5K to Cat 5K, using Fast Ethernet for ISL trunking (Figure 23-5).

Figure 23-5

Cat 5K to Cat 5K, Using Fast Ethernet for ISL Trunking

Table 23-2 ISL Trunking Issues

Possible Problem
Solution

Are the ports trunking?

1. Use the show trunk mod_num/port_num command to determine whether the ports are trunking.

Trunking is not supported.

1. Issue the show port capabilities mod_num/port_num command to verify that your modules support trunking.

Trunking is not configured.

1. Use the set trunk mod_num/port_num desirable on a Catalyst to configure trunking.

Verify that the VTP domain name has been configured.

1. Use the show vtp domain command to determine whether a domain name has been configured.

All switches in a domain must have the same name. The name is case-sensitive.

VTP domain name is not configured.

1. Set vtp domain domain_name.

A VTP domain password problem has occurred.

1. Use the show vtp domain command to determine whether a password has been established. All switches must have the same password. The passwords are case-sensitive.


Example of Configuring and Troubleshooting ISL Trunking on Catalyst 5000 and 6000 Family Switches

This section walks you through configuring and troubleshooting ISL trunking.

Tasks That Will Be Performed

In this section, you will perform these tasks:

Verify ISL support on the ports.

Connect the switches.

Verify that the ports are operational.

Assign IP addresses to the management ports.

Verify that the switches are not trunking over their link.

Ping from switch to switch.

Create a VLAN 2 in each switch.

Move the management interface (sc0) to VLAN 2.

Verify that you cannot ping from switch to switch.

Configure the same VTP domain name in each switch.

Enable trunking between the switches.

Verify that the switches are trunking over their link.

Ping from switch to switch.

Step-by-Step

The following steps are performed on the console of a Catalyst 5K switch.


Step 1 Make certain that the ports you have decided to use support ISL trunking. Several types of Ethernet interfaces support ISL trunking. 10BaseT (common Ethernet) ports do not support trunking; most 100BaseT (Fast Ethernet) ports do.

Use the show port capabilities {module_number}|{module_number/port_number} command on both switches to determine whether the ports that you are using support ISL. In this example, note that the port designator 1/1 has been specified at the end of the command. This limits the response to the information directly applicable to port 1/1.

Switch-A> show port capabilities 1/1
Model                    WS-X5530
Port                     1/1
Type                     10/100BaseTX
Speed                    auto,10,100
Duplex                   half,full
Trunk encap type         ISL
Trunk mode               on,off,desirable,auto,nonegotiate
Channel                  1/1-2
Broadcast suppression    percentage(0-100)
Flow control             no
Security                 yes
Membership               static,dynamic
Fast start               yes
QOS                      n/a
Rewrite                  no
UDLD                     Not capable
Switch-A>

Step 2 Connect the two switch ports using the Ethernet crossover cable. In this example, Switch A's 1/1 port is connected to Switch B's 1/1 port.

Step 3 Verify that the ports are operational by entering the show port 1/1 command on Switch A. You should see that the status shows "connected."

Switch-A> (enable) show port 1/1
Port  Name               Status     Vlan       Level  Duplex Speed Type
----- ------------------ ---------- ---------- ------ ------ ----- ------------
1/1                      connected          1  normal a-full a-100 10/100BaseTX

Switch-A> (enable)

Step 4 Use the set interface sc0 172.16.84.17 255.255.255.0 172.16.84.255 command on Switch A and the set interface sc0 172.16.84.18 255.255.255.0 172.16.84.255 command on Switch B to assign IP addresses from the same subnet to the management ports on both switches. The VLAN for sc0 (the management VLAN) must also be specified in this command if it is different than the default of VLAN 1.

Switch-A> (enable) set int sc0 172.16.84.17 255.255.255.0 172.16.84.255
Interface sc0 IP address, netmask, and broadcast set.
Switch-A> (enable)

Step 5 Verify that the link between switches A and B is not trunking by entering the show trunk 1/1 command on Switch A.

Switch-A> (enable) show trunk 1/1
Port      Mode         Encapsulation  Status        Native vlan
--------  -----------  -------------  ------------  -----------
 1/1      auto         isl            not-trunking  1

Port      Vlans allowed on trunk
--------  ---------------------------------------------------------------------
 1/1      1-1005

Port      Vlans allowed and active in management domain
--------  ---------------------------------------------------------------------
 1/1      1

Port      Vlans in spanning tree forwarding state and not pruned
--------  ---------------------------------------------------------------------
 1/1      1
Switch-A> (enable)

Note The term Native vlan in the output indicates the VLAN in which this port will be placed when it is not in trunking mode. If the port is instead configured for 802.1q trunking, Native vlan also indicates the VLAN for whose frames will be untagged; all others will be tagged (conversely, with ISL trunking, every data frame is tagged with the appropriate VLAN identifier).


The trunking status should read "not-trunking" because the default mode for the Dynamic Trunking Protocol (DTP) is Auto. DTP is the strategic replacement for Dynamic ISL (DISL) because it incorporates support for 802.1q trunking negotiation. DTP is available as of version 4.x Catalyst software and certain hardware modules. The following bullets describe the five different states for which DTP can be configured.

Auto—The port listens for DTP frames from the neighboring switch. If the neighboring switch indicates that it would like to be a trunk, or if it is a trunk, then Auto state creates the trunk with the neighboring switch. Auto does not propagate any intent to become an trunk; it depends solely on the neighboring switch to make the trunking decision.

Desirable—DTP is spoken to the neighboring switch. This communicates to the neighboring switch that it is capable of being an ISL trunk and would like the neighboring switch to also be an ISL trunk.

On—DTP is spoken to the neighboring switch. This automatically enables ISL trunking on its port, regardless of the state of its neighboring switch. It remains an ISL trunk unless it receives an ISL packet that explicitly disables the ISL trunk.

Nonegotiate—DTP is not spoken to the neighboring switch. This automatically enables ISL trunking on its port, regardless of the state of its neighboring switch.

Off—ISL is not allowed on this port, regardless of the DTP mode configured on the other switch.

On an individual trunk link, Cisco generally recommends configuring desirable trunking mode on the port nearest the network core, and auto trunking mode on the other side of the link. To hard-code trunking to be enabled, set the trunking mode on both sides to on; you will need to manually set the VLANs to be forwarded across the trunk link (use the full set trunk command) and ensure that the trunk settings are consistent on either side.

Step 6 ping Switch B from Switch A to verify that the switches can talk to each other over the link.

Switch-A> ping 172.16.84.18
172.16.84.18 is alive
Switch-A>

Step 7 Create VLAN 2 in Switch A by entering the set vlan 2 command on Switch A. Switch B will learn about VLAN 2 after the DTP domain is established in Step 11.

Switch-A> (enable) set vlan 2
Vlan 2 configuration successful
Switch-A> (enable)

Step 8 Move the management interface in switches A and B to VLAN 2, which you created previously. Use the set interface sc0 2 command to do this. The following output shows this being done on Switch A.

Switch-A> (enable) set int sc0 2
Interface sc0 vlan set.
Switch-A> (enable)

Use the show interface command to view the change that you just made. The following output shows this being done on Switch A.

Switch-A> (enable) sh int
sl0: flags=51<UP,POINTOPOINT,RUNNING>
        slip 0.0.0.0 dest 0.0.0.0
sc0: flags=63<UP,BROADCAST,RUNNING>
        vlan 2 inet 172.16.84.17 netmask 255.255.255.0 broadcast 172.16.84.255
Switch-A> (enable)

Step 9 Attempt to