Troubleshoot Switch Port and Interface Problems
Troubleshoot Switch Port and Interface Problems
Contents
Introduction
Prerequisites
Requirements
Components Used
Conventions
Connected vs Notconnected
Troubleshoot the Most Common Port and Interface Commands for Cisco IOS
Understand the Specific Port and Interface Counter Output for Cisco IOS
Show Interfaces for Cisco IOS
Software Problems
Hardware Problems
Related Information
Introduction
This document describes how to determine why a port or interface experiences problems.
Prerequisites
Requirements
Components Used
This document applies to Catalyst switches that run on Cisco IOS® System Software.
The information in this document was created from the devices in a specific lab environment. All of the
devices used in this document started with a cleared (default) configuration. If your network is live, ensure
that you understand the potential impact of any command.
Conventions
Refer to Cisco Technical Tips Conventions for more information on document conventions.
Note: To access tools and websites, you must be a registered Cisco client.
If you have physical access to the switch, it can save time to look at the port LEDs which give you the link
status or can indicate an error condition (if red or orange). The table describes the LED status indicators for
Ethernet modules or fixed-configuration switches:
Platform URL
Ensure that both sides have a link. A single broken wire or one shutdown port can cause the problem where
one side has a link light, but the other side does not.
A link light does not guarantee that the cable is fully functional. The cable can have encountered physical
stress that causes it to be functional at a marginal level. Normally you can identify this situation if the port
has many packet errors, or the port constantly flaps (loses and regains link).
If the link light for the port does not come on, you can consider these possibilities:
Ensure that you have the correct cable for the type of connection you want to make. Category 3 copper cable
can be used for 10 Mbps unshielded twisted pair (UTP) connections but must never be used for 10/100 or
10/100/1000Mbps UTP connections. Always use either Category 5, Category 5e, or Category 6 UTP for
10/100 or 10/100/1000Mbps connections.
Warning: Category 5e and Category 6 cables can store high levels of static electricity because of the
dielectric properties of the materials used in their construction. Always ground the cables (especially
in new cable runs) to a suitable and safe earth ground before you connect them to the module.
For fiber, make sure you have the correct cable for the distances involved and the type of fiber ports that are
used. The two options are single mode fiber (SMF) or multimode fiber (MMF). Make sure the ports on the
devices that are connected together are both SMF, or both are MMF ports.
Note: For fiber connections, make sure the transmit lead of one port is connected to the receive lead of
the other port. Connections for transmit-to-transmit and receive-to-receive do not work.
Maximum Distance
Transceiver Speed Cable Type Duplex Mode
between Station
For more details on the different types of cables/connectors, cable requirements, optical requirements
(distance, type, patch cables, and so on.), how to connect the different cables, and which cables are used by
most Cisco switches and modules, refer to Catalyst Switch Cable Guide .
If you have device A connected to device B over a Gigabit link, and the link does not come up, perform this
procedure.
Step-by-Step Procedure
1. Verify device A and B use the same GBIC, short wavelength (SX), long wavelength (LX), long haul
(LH), extended wavelength (ZX), or copper UTP (TX). Both devices must use the same type of GBIC
to establish link. An SX GBIC needs to connect with an SX GBIC. An SX GBIC does not link with an
LX GBIC. Refer to Mode-Conditioning Patch Cord Installation Note for more information.
2. Verify distance and cable used per GBIC as defined in this table.
Modal
Copper/Fiber Core Bandwidth Cable
GBIC Wavelength (nm) 1
Type Size (Microns) (MHz / Distance2
km)
Category 5
WS- UTP Category
328 ft
G54831000Base - 5e UTP
(100 m)
T (copper) Category 6
UTP
1804 ft
(550 m)
1804 ft
WS-
62.5 50.0 50.0 500 400 (550 m)
G54861000BASE- 1310 MMF4SMF
8.3/9/10 500 - 1804 ft
LX/LH
(550 m)
6.2 miles
(10 km)
43.5
WS- miles (70
8.3/9/10
G54871000BASE- 1550 MMF SMF6 km)762.1
8.3/9/10
ZX5 miles
(100 km)
a. The numbers given for multimode fiber-optic cable refer to the core diameter. For single-mode fiber-
optic cable, 8.3 microns refers to the core diameter. The 9-micron and 10-micron values refer to the
mode-field diameter (MFD), which is the diameter of the portion of the fiber that is light-carrying.
This area consists of the fiber core plus a small portion that covers the cladding. The MFD is a
function of the core diameter, the wavelength of the laser, and the refractive index difference between
the core and the cladding.
b. Distances are based on fiber loss. Multiple splices and substandard fiber-optic cable reduce the cable
distances.
d. When you use an LX/LH GBIC with 62.5-micron diameter MMF, you must install a mode-
conditioning patch cord (CAB-GELX-625 or equivalent) between the GBIC and the MMF cable on
both the transmit and receive ends of the link. The mode-conditioning patch cord is required for link
distances less than 328 feet (100 m) or greater than 984 feet (300 m). The mode-conditioning patch
cord prevents the over use of the receiver for short lengths of MMF and reduces differential mode
delay for long lengths of MMF. Refer to Mode-Conditioning Patch Cord Installation Note for more
information.
g. The minimum link distance for ZX GBICs is 6.2 miles (10 km) with an 8-dB attenuator installed at
each end of the link. Without attenuators, the minimum link distance is 24.9 miles (40 km).
3. If either device has multiple Gigabit ports, connect the ports to each other. This tests each device and
verifies that the Gigabit interface functions correctly. For example, you have a switch that has two Gigabit
ports. Wire Gigabit port one to Gigabit port two. Does the link come up? If so, the port is good. STP blocks
on the port and prevents any loops (port one receive (RX) goes to port two transmit (TX), and port one TX
goes to port two RX).
4. If single connection or Step 3 fails with SC connectors, loop the port back to itself (port one RX goes to
port one TX). Does the port come up? If not, contact the TAC, as this can be a faulty port.
5. If steps 3 and 4 are successful, but a connection between device A and B cannot be established, loop ports
with the cable that adjoins the two devices. Verify that there is not a faulty cable.
6. Verify that each device supports 802.3z specification for Gigabit auto-negotiation. Gigabit Ethernet has
an auto-negotiation procedure that is more extensive than the one used for 10/100 Ethernet (Gigabit auto-
negotiation spec: IEEE Std 802.3z-1998). When you enable link negotiation, the system auto-negotiates
flow control, duplex mode, and remote fault information. You must either enable or disable link negotiation
on both ends of the link. Both ends of the link must be set to the same value or the link cannot connect.
Problems have been seen when you connect to devices manufactured before the IEEE 802.3z standard was
ratified. If either device does not support Gigabit auto-negotiation, disable the Gigabit auto-negotiation, and
it forces the link up. It takes 300msec for the card firmware to notify the software that a 10/100/1000BASE-
TX link/port is down. The 300msec default debounce timer comes from the firmware polling timer to the
linecards, which occurs every 300 msec. If this link is run in 1G (1000BASE-TX) mode, Gigabit sync,
which occurs every 10msec, must be able to detect the link down faster. There is a difference in the link
failure detection times when you run GigabitEthenet on copper versus GigabitEthernet over fiber. This
difference in detection time is based on the IEEE standards.
Warning: Disable auto-negotiation and this hides link drops or physical layer problems. This is only
required if end-devices such as older Gigabit NICs are used which cannot support IEEE 802.3z. Do
not disable auto-negotiation between switches unless absolutely required to do so, as physical layer
problems can go undetected, which results in STP loops. The alternative is to contact the vendor for
software/hardware upgrade for IEEE 802.3z Gigabit auto-negotiation support.
For GigabitEthernet system requirements as well as Gigabit Interface Converters (GBICs), Coarse
Wavelength Division Multiplexing (CWDM), and Small Form-Factor Pluggable (SFP) system requirements,
refer to these documents:
For general configuration information and additional information on how to troubleshoot, refer to
Configuring and Troubleshooting Ethernet 10/100/1000 MB Half/Full Duplex Auto-Negotiation .
Connected vs Notconnected
Most Cisco switches have a port in the notconnect state. This means it is currently not connected to
anything, but it can connect if it has a good connection to another operational device. If you connect a good
cable to two switch ports in the notconnect state, the link light must become green for both ports, and the
port status must indicate connected. This means that the port is up as far as Layer 1 (L1) is concerned.
For Cisco IOS, you can use the show interfaces command to verify whether the interface is up, line
protocol is up (connected) . The first up refers to the physical layer status of the interface. The line
protocol up message shows the data link layer status of the interface and says that the interface can send
and receive keepalives.
<#root>
Router#
!---
Reasons
: In this case,
!--- 1) A cable is not properly connected or not connected at all to this port.
!--- 2) The connected cable is faulty.
!--- 3) Other end of the cable is not connected to an active port or device.
!---
Note
<#root>
Router#
FastEthernet6/1 is
up
, line protocol is
down
(notconnect)
!--- The interface is up (or not in a shutdown state), but line protocol down.
!--- Reason: In this case, the device on the other side of the wire is a
!--- CatOS switch with its port disabled.
<#root>
Router#
notconnect
If show interfaces shows up/line protocol up (connected) but you see errors increment in the output of
either command, refer to the Common Port and Interface Problems section of this document for advice.
Note: The right hand column on the next table gives a brief description of what the command does
and lists any exceptions to the use per platform.
If you have the output of the supported commands from your Cisco device, you can use Cisco CLI Analyzer
to display potential issues and fixes.
show version
clear counters
show interfaces counters This is the command to use on the Catalyst 6000,
4000, 3550, 2950, and 3750 series.
Note: There can be differences in the implementation of the counters across various platforms and
releases. Although the values of the counters are largely accurate, they are not very precise by design.
In order to pull the exact statistics of the traffic, it is suggested that you use a sniffer to monitor the
necessary ingress and egress interfaces.
Excessive errors for certain counters usually indicate a problem. When you operate at half-duplex setup,
some data link errors increment in Frame Check Sequence (FCS), alignment, runts, and collision counters
are normal. Generally, a one percent ratio of errors to total traffic is acceptable for half-duplex connections.
If the ratio of errors to input packets is greater than two or three percent, performance degradation can be
noticed.
In half-duplex environments, it is possible for both the switch and the connected device to sense the wire
and transmit at exactly the same time and result in a collision. Collisions can cause runts, FCS, and
alignment errors due to the frame not completely copied to the wire, which results in fragmented frames.
When you operate at full-duplex, errors in FCS, Cyclic Redundancy Checks (CRC), alignment, and runt
counters must be minimal. If the link operates at full-duplex, the collision counter is not active. If the FCS,
CRC, alignment, or runt counters increment, check for a duplex mismatch. Duplex mismatch is a situation
where the switch operates at full-duplex and the connected device operates at half-duplex, or vice versa. The
results of a duplex mismatch are extremely slow performance, intermittent connectivity, and loss of
connection. Other possible causes of data link errors at full-duplex are bad cables, faulty switch ports, or
NIC software/hardware issues. See the Common Port and Interface Problems section of this document for
more information.
The show interfaces card-type {slot/port} command is the used command for Cisco IOS on the Supervisor
to display error counters and statistics. An alternative to this command (for Catalyst 6000, 4000, 3550, 2970
2950/2955, and 3750 series switches) is the show interfacescard-type <slot/port> counters errors
command which only displays the interface error counters. Refer to Table 1 for explanations of the error
counter output.
Note: For 2900/3500XL Series switches use the show interfaces card-type {slot/port} command
with the show controllers Ethernet-controller command.
<#root>
Router#sh
FastEthernet6/1 is
Full-duplex, 100Mb/s
The show interfaces command output up to this point is explained here (in order) :
• up, line protocol is up (connected) - The first up refers to the physical layer status of the interface.
The line protocol up message shows the data link layer status of the interface and says that the
interface can send and receive keepalives.
• MTU - The Maximum Transmission Unit (MTU) is 1500 bytes for Ethernet by default (for the max
data portion of the frame).
• Full-duplex, 100Mb/s - Full-duplex and 100Mbps is the current speed and duplex setup of the
interface. This does not tell you whether autoneg was used to achieve this. Use the show interfaces
fastEthernet 6/1 status command to display this:
<#root>
Router#
a-full a-100
10/100BaseTX
• Last input, output - The number of hours, minutes, and seconds since the last packet was
successfully received or transmitted by the interface. This is useful to know when a dead interface
failed.
• Last clearing of show interface counters - The last time the clear counters command was issued
since the last time the switch was rebooted. The clear counters command is used to reset interface
statistics.
Note: Variables that can affect routing (for example, load and reliability) are not cleared when the
counters are cleared.
• Input queue - The number of packets in the input queue.Size/max/drops= the current number of
frames in the queue / the max number of frames the queue can hold before it must start to drop frames
/ the actual number of frames dropped because the max queue size was exceeded. Flushes is used to
count Selective Packet Discard (SPD) drops on the Catalyst 6000 Series that run Cisco IOS. (The
flushes counter can be used but never increments on the Catalyst 4000 Series that run Cisco IOS.)
SPD is a mechanism that quickly drops low priority packets when the CPU is overloaded in order to
save some process capacity for high priority packets. The flushes counter in the show interface
command output increments as part of selective packet discard (SPD), which implements a selective
packet drop policy on the IP process queue of the router. Therefore, it applies to only process switched
traffic.
The purpose of SPD is to ensure that important control packets, such as routing updates and
keepalives, are not dropped when the IP input queue is full. When the size of the IP input queue is
between the minimum and maximum thresholds, normal IP packets are dropped based on a certain
drop probability. These random drops are called SPD flushes.
• Total output drops - The number of packets dropped because the output queue is full. A common
cause is traffic from a high bandwidth link that is switched to a lower bandwidth link or traffic from
multiple inbound links that are switched to a single outbound link. For example, if a large amount of
traffic flow comes in on a gigabit interface and is switched out to a 100Mbps interface, this can cause
output drops to increment on the 100Mbps interface. This is because the output queue on that interface
is overwhelmed by the excess traffic due to the speed mismatch between the inbound and outbound
bandwidths.
• Output queue - The number of packets in the output queue. Size/max means the current number of
frames in the queue/the max number of frames the queue can hold before it is full and must start to
drop the frames.
• 5 minute input/output rate - The average input and output rate seen by the interface in the last five
minutes. Specify a shorter period of time to get an accurate read (to better detect traffic bursts for
example and issue the load-interval <seconds> interface command.
<#root>
!--- ...
show interfaces
Note: There is a difference between the counter of show interface command output for a
physical interface and a VLAN interface. The input packet counters increment in the output of
show interface for a VLAN interface when that packet is Layer 3 (L3) processed by the CPU. Traffic
that is Layer 2 (L2) switched never makes it to the CPU and is not counted in the show interface
counters for the VLAN interface. It would be counted on the show interface output for the
appropriate physical interface.
The show interfaces < card-type> <slot/port> counters errors command is used in Cisco IOS to display
the output of the interface errors only. See Table 1 for explanations of the error counter output.
<#root>
Router#
To monitor inbound and outbound traffic on the port as displayed by the next output, for unicast, multicast,
and broadcast traffic. The show interfaces card-type {slot/port} counters command is used when you
run Cisco IOS on the Supervisor.
Note: There is, an Out-Discard counter in the Cisco IOS show interfaces counters errors command
which is explained inTable 1.
<#root>
Router#
!--- Cisco IOS counters used to monitor inbound and outbound unicast, multicast
!--- and broadcast packets on the interface.
For Catalyst 3750, 3550, 2970, 2950/2955, 2940, and 2900/3500XL switches use the command show
controller ethernet-controller to display traffic counter and error counter output that is similar to
theoutput for Catalyst 6000 series switches.
<#root>
3550-1#
3550-1#
!--- See the next table for additional counter output for 2900/3500XL Series switches.
Counter Description Possible Causes
Transmitted Frames
Collisions in a half-duplex
The total number of frames which environment are normal expected
experience between 2 and 15 behavior. Frames that increment at
Good (>1 coll) frames
collisions, inclusive, and are then the upper end of this counter can
successfully transmitted. exceed the 15 collisions and can
be counted as Excessive collisions.
Received Frames
• If a port is blocked by
Spanning Tree Protocol
No destination multicast are the (STP), most packets are not
number of multicast packets that forwarded, which results in
No dest, multicast No dest packets. If a port just
the port did not forward to any
other ports. acquired a link, there is a
very brief (less than one
second) period where
inbound packets are not
forwarded.
○ If a hub is connected
to port 0/1, and a
workstation connected
to the hub transmits a
packets to another
workstation connected
to the hub, port 0/1
does not forward this
packet anywhere
because the destination
MAC resides on the
same port.
The number of times the receiver The input rate of traffic exceeded
Overrun frames hardware was unable to hand the ability of the receiver to handle
received data to a hardware buffer. the data.
The total number of frames which The port can be configured to filter
VLAN filtered frames are filtered because of the type of 802.1Q tagged frames. When a
VLAN information contained in frame is received which contains
the frame. an 802.1Q tag the frame is filtered
and this statistic is incremented.
%AMDP2_FE-3-UNDERFLO
This error message is caused when a frame is transmitted, and the local buffer of the controller chip local
buffer receives insufficient data. The data cannot be transferred to the chip fast enough to keep pace with
output rate. Normally, such a condition is temporary, dependent upon transient peak loads within the system.
The issue occurs when an excessive amount of traffic is processed by the Fast Ethernet interface. The error
message is received when the traffic level reaches about 2.5 Mb. This traffic level constrain is due to
hardware limitation. Because of this, a chance exists for the device connected to the catalyst switch to drop
packets.
The resolution is that ordinarily the system recovers automatically. No action is required. If the switch
overwhelms the Ethernet interface, check the speed and duplex setup. Also, use a sniffer program to analyze
packets that come in and out of the router fast Ethernet interface. In order to avoid packet drops on the
device connected to the catalyst switch, issue the ip cef command on the fast Ethernet interface of the
device connected to the switch.
The reason for this error message is the receipt of a packet from the switch fabric, where the CRC value in
the fabric header on that packet did not match the CRC value calculated by the Fabric Interface Controller
(FIC) subblock of the Blackwater ASIC. This indicates that a corruption of the packet occurred within
transfer, and Blackwater received the corrupted packet.
In switches that support both L3 interfaces and L2 switchport, the message "Command rejected: [interface]
not a switching port" displays when you try to enter a command related to layer 2 on a port that is
configured as a layer 3 interface.
In order to convert the interface from layer 3 mode to layer 2 mode, issue the interface configuration
command switchport . After you issue this command, configure the port for any layer 2 properties.
An obvious but sometimes overlooked cause of port connectivity failure is an incorrect configuration on the
switch. If a port has a solid orange light, this means the software inside the switch shut down the port, either
by way of the user interface or by internal processes.
Note: Some port LEDs of the platform work differently in regard to STP. For example, the Catalyst
1900/2820 turns ports orange when they are in STP block mode. In this case, an orange light can
indicate the normal functions of the STP. The Catalyst 6000/4000 does not turn the port light orange
when it blocks for STP.
Make sure the port or module has not been disabled or powered down for some reason. If a port or module is
manually shut down on one side of the link or the other, the link does not come up until you re-enable the
port. Check the port status on both sides. Use the show run interface command and check to see if the
interface is in a shutdown state:
<#root>
Switch#
show run interface fastEthernet 4/2
!
interface FastEthernet4/2
switchport trunk encapsulation dot1q
switchport mode trunk
shutdown
duplex full
speed 100
end
!--- Use the no shut command in config-if mode to re-enable this interface.
If the port goes into shutdown mode immediately after a reboot of the switch, the probable cause is the port
security setup. If unicast flooding is enabled on that port, it can cause the port to shut down after a reboot.
Cisco recommends that you disable the unicast flooding because it also ensure that no flooding occurs on the
port once the MAC address limit is reached.
By default, software processes inside the switch can shut down a port or interface if certain errors are
detected.
When you look at show interfacecard-type {slot/port} status command for Cisco IOS:
<#root>
Router#
err-disabled
!--- The show interfaces card-type {slot/port} status command for Cisco IOS
!--- displays a status of errdisabled.
!--- The show interfaces status errdisabled command shows all the interfaces
!--- in this status.
The show logging command for Cisco IOS also display the error messages (exact message format varies)
that relate to the errdisable state.
Wheb ports or interlaces are shut down as a result of errdisable are referred to as causes in Cisco IOS. The
causes for this range from EtherChannel misconfiguration that causes a PAgP flap, duplex mismatch, BPDU
port-guard and portfast configured at the same time, UDLD that detects a one-way link, and so on.
You have to manually enable the port or interface again to take it out the errdisable state unless you
configure an errdisable recovery option. In Cisco IOS software you have the ability to automatically re-
enable a port after a configurable amount of time spent in the errdisable state. The bottom line is that even if
you configure the interface to recover from errdisable the problem reoccurs until the root cause is
determined.
Note: Use this Recover Errdisable Port State on Cisco IOS Platforms for more information on
errdisable status on switches that run Cisco IOS.
This table shows an example of the commands used to configure verify and troubleshoot the errdisable
status on switches. Navigate to the link for more information about the commands Recover Errdisable Port
State on Cisco IOS Platforms:
One common cause of inactive ports on switches that run Cisco IOS is when the VLAN they belong to
disappears. This can occur when interfaces are configured as layer 2 switchports that use the switchport
command.
Every port in a Layer 2 switch belongs to a VLAN. Every port on a Layer 3 switch configured to be a L2
switchport must also belong to a VLAN. If that VLAN is deleted, then the port or interface becomes
inactive.
Note: Some switches show a steady orange (amber) light on each port when this happens.
Use the show interfaces card-type {slot/port} switchport command along with show vlan to verify.
<#root>
Router#
))
Router#
show vlan
If the switch that deleted the VLAN is a VTP server for the VTP domain, every server and client switch in
the domain has the VLAN removed from their VLAN table as well. When you add the VLAN back into the
VLAN table from a VTP server switch, the ports of the switches in the domain that belong to that restored
VLAN become active again. A port remembers what VLAN it is assigned to, even if the VLAN itself is
deleted. Refer to Understanding and Configuring VLAN Trunk Protocol (VTP) for more information on
VTP.
Note: If the output of the show interface <interface> switchport command displays the port as a
trunk port even after you configure the port as an access port with the switchport access vlan <vlan>
command, issue the switchport mode access command in order to make the port an access port.
On a Catalyst 4510R series switch, in order to enable both the 10-Gigabit Ethernet and the Gigabit Ethernet
SFP uplink ports, there is an optional configuration. In order to enable the simultaneous use of 10-Gigabit
Ethernet and the Gigabit Ethernet SFP interfaces, issue the hw-module uplink select all command. After
you issue the command, re-boot the switch or else the output of the show interface status
module <module number> command shows the uplink port as inactive.
Cisco IOS Software Release 12.2(25)SG supports the simultaneous use of 10-Gigabit Ethernet and the
Gigabit Ethernet SFP interfaces on Catalyst 4500 switches.
Note: On the Catalyst 4503, 4506, and 4507R series switches, this capability is automatically enabled.
The issue is because the traffic load destined for the switch is excessive and causes the frames to be
discarded. Normally the deferred frames are the number of frames that have been transmitted successfully
after waiting for the media, because the media was busy. This is usually seen in half-duplex environments
where the carrier is already in use when it tries to transmit a frame. But in full duplex environments the issue
occurs when the excessive load is destined for the switch.
• Change the cable and patch panel cord to ensure that the cable and patch cords are not defective.
Note: If the Deferred Counter error increments on a GigabitEthernet of a Supervisor 720, turn on
speed negotiation on the interface as a workaround.
The issue occurs when Encoded Address Recognition Logic (EARL) is unable to set the CAM aging time
for the VLAN to the required number of seconds. Here, the VLAN aging time is already set to fast aging.
When the VLAN is already in fast aging, EARL cannot set the VLAN to fast aging, and aging timer set
process is blocked. The default CAM aging time is five minutes, which means that the switch flushes the
table of learned MAC addresses every five minutes. This ensures that the MAC address table (the CAM
table) contains the most recent entries.
Fast aging temporarily sets the CAM aging time to the number of seconds that the user specifies, and is used
in conjunction with the Topology Change Notification (TCN) process. The idea is that when a topology
change occurs, this value is necessary to flush the CAM table faster, to compensate for the topology change.
Issue the show cam aging command to check the CAM aging time on the switch. TCNs and fast aging are
fairly rare. As a result, the message has a severity level of 3. If the VLANs are frequently in fast aging,
check the reason for fast aging.
The most common reason for TCNs is client PCs connected directly to a switch. When you power up or
down the PC, the switch port changes state, and the switch starts the TCN process. This is because the
switch does not know that the connected device is a PC; the switch only knows that the port has changed the
state.
In order to resolve this issue, Cisco has developed the PortFast feature for host ports. An advantage of
PortFast is that this feature suppresses TCNs for a host port.
Note: PortFast also bypasses spanning-tree calculations on the port, and is therefore only suitable for
use on a host port.
Check the trunking mode on each side of the link. Make sure both sides are in the same mode (both trunking
with the same method: ISL or 802.1q, or both not trunking). 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, they are not able to
communicate. Trunking changes the formatting of the packet. The ports need to be in agreement as to what
format they use on the link, or they do not understand each other.
For Cisco IOS, use the show interfaces card-type {mod/port}trunk command to verify the trunking
configuration and Native VLAN.
<#root>
Router#
trunking 1
Refer to these documents for more information on the different trunking modes, guidelines, and restrictions:
The Maximum Transmission Unit (MTU) of the data portion of an ethernet frame is 1500 bytes by default.
If the transmitted traffic MTU exceeds the supported MTU the switch does not forward the packet. Also,
dependent upon the hardware and software, some switch platforms increment port and interface error
counters as a result.
• Jumbo frames are not defined as part of the IEEE Ethernet standard and are vendor-dependent. They
can be defined as any frame bigger than the standard ethernet frame of 1518 bytes (which includes the
L2 header and Cyclic Redundancy Check (CRC)). Jumbos have larger frame sizes, typically > 9000
bytes.
• Giant frames are defined as any frame over the maximum size of an ethernet frame (larger than 1518
bytes) that has a bad FCS.
• Baby Giant frames are just slightly larger than the maximum size of an ethernet frame. Typically this
means frames up to 1600 bytes in size.
Support for jumbo and baby giants on Catalyst switches varies by switch platform, sometimes even by
modules within the switch. The software version is also a factor.
Refer to Configuring Jumbo/Giant Frame Support on Catalyst Switches for more information on system
requirements, configure and troubleshoot for jumbo and baby giant issues.
Check the end device with a ping sent from the directly connected switch first, then work your way back
port by port, interface by interface, trunk by trunk until you find the source of the connectivity issue. Make
sure each switch can see the end device MAC address in its Content-Addressable Memory (CAM) table.
Use the show mac address-table dynamic command or substitute the interface keyword.
<#root>
Router#
0040.ca14.0ab1
dynamic No -- Fa6/3
Once you know the switch actually has the MAC address of the device in the CAM table, determine whether
this device is on the same or different VLAN from where you try to ping.
If the end device is on a different VLAN from where you try to ping, a L3 switch or router must be
configured to allow the devices to communicate. Make sure your L3 addressing on the end device and on the
router/ L3 switch is correctly configured. Check the IP address, subnet mask, default gateway, dynamic
routing protocol configuration, static routes, and so on.
If stations are not able to talk to their primary servers when they connect through the switch, the problem
can involve delays on the switch port when it tries to become active after the physical layer link comes up.
In some cases, these delays can be up to 50 seconds. Some workstations simply cannot wait this long to find
their server and then they give up. These delays are caused by STP, trunking negotiations (DTP), and
EtherChannel negotiations (PAgP). All of these protocols can be disabled for access ports where they are not
needed, so the switch port or interface starts forwarding packets a few seconds after it establishes a link with
its neighbor device.
In Cisco IOS, you can use the switchport host command to disable channeling and to enable spanning-
tree portfast and the switchport nonegotiate command to turn off DTP negotiation packets. Use the
interface-range command to do this on multiple interfaces at once.
<#root>
Router6k-1(config)#
Router6k-1(config-if-range)#
switchport
Router6k-1(config-if-range)#
switchport host
switchport nonegotiate
Cisco IOS has the option to use the global spanning-tree portfast default command to automatically
apply portfast to any interface configured as a layer 2 access switchport. Check the Command Reference for
your release of software to verify the availability of this command. You can also use the spanning-tree
portfast command per interface, but this requires that you turn off trunking and etherchannel separately to
help fix workstation startup delays.
Note: Refer to Using Portfast and Other Commands to Fix Workstation Startup Connectivity Delays
for more information how to fix startup delays.
If you have a large amount of alignment errors, FCS errors, or late collisions, this can indicate one of these:
• Duplex Mismatch
Duplex Mismatch
A common issue with speed/duplex is when the duplex setup are mismatched between two switches,
between a switch and a router or between the switch and a workstation or server. This can occur when you
manually hardcode the speed and duplex or from auto-negotiation issues between the two devices.
If the mismatch occurs between two Cisco devices with the Cisco Discovery Protocol (CDP) enabled, you
see the CDP error messages on the console or in the logging buffer of both devices. CDP is useful to detect
errors, as well as port and system statistics on nearby Cisco devices. CDP is Cisco proprietary and works
when you send packets to a well-known MAC address 01-00-0C-CC-CC-CC.
The example shows the log messages that result from a duplex mismatch between two Catalyst 6000 series
switches that runs Cisco IOS. These messages generally tell you what the mismatch is and where it occurs.
Use the show cdp neighbors card-type <slot/port> detail command to display CDP information for Cisco
neighbor devices.
<#root>
Router#
-------------------------
Device ID: TBA04251336
Entry address(es):
IP address: 10.1.1.1
Platform: WS-C6006, Capabilities: Trans-Bridge Switch IGMP
Interface:
Duplex: full
setup auto speed/duplex on one side and 100/Full-duplex on the other side is also a misconfiguration and can
result in a duplex mismatch. If the switch port receives a lot of late collisions, this usually indicates a duplex
mismatch problem and can place the port in an errdisable status in a result. The half-duplex side only
expects packets at certain times, not at any time, and therefore counts packets received at the wrong time as
collisions. There are other causes for late collisions besides duplex mismatch, but this is one of the most
common reasons. Always set both sides of the connection to auto-negotiate speed/duplex or set the
speed/duplex manually on both sides.
Use the show interfaces <card-type> <slot/port> status command to display speed and duplex setup as
well as other information. Use the speed and duplex commands from interface configuration mode to
hardcode both sides to 10 or 100 and half or full as necessary.
<#root>
Router#
a-full a-100 10
/100BaseTX
If you use theshow interfacescommand without the status option, you see a setup for speed and duplex, but
you do not know whether this speed and duplex was achieved through auto-negotiation or not.
<#root>
Router#
Full-duplex, 100Mb/s
!--- Full-duplex and 100Mbps does not tell you whether autoneg was used to achieve this.
!--- Use the sh interfaces fas 6/1 status command to display this.
Always check the cable for marginal damage or failure. A cable can be just good enough to connect at the
physical layer, but it corrupts packets as a result of subtle damage to the wiring or connectors. Check or
swap the copper or fiber cable. Swap the GBIC (if removable) for fiber connections. Rule out any bad patch
panel connections or media convertors between source and destination. Try the cable in another port or
interface if one is available and see if the problem continues.
Problems sometimes occur between Cisco switches and certain third-party NIC cards. By default, Catalyst
switch ports and interfaces are set to autonegotiate. It is common for devices like laptops or other devices to
be set to autonegotiate as well, yet sometimes autonegotation issues occur.
In order to troubleshoot auto-negotiation problems it is often recommended to try and hardcode both sides.
If neither auto-negotiation or hardcode setup seem to work, there can be a problem with the firmware or
software on your NIC card. Upgrade the NIC card driver to the latest version available on the web site of the
manufacture to resolve this.
Refer to Troubleshooting Cisco Catalyst Switches to NIC Compatibility Issues for details on how to
resolve third-party NIC issues.
Spanning Tree Protocol (STP) loops can cause serious performance issues that masquerade as port or
interface problems. In this situation, your bandwidth is used by the same frames over and over again, which
leaves little room for legitimate traffic.
The STP loop guard feature provides additional protection against Layer 2 forwarding loops (STP loops).
An STP loop is created when an STP block port in a redundant topology erroneously transitions to the
forwarding state. This usually happens because one of the ports of a physically redundant topology (not
necessarily the STP block port) no longer receives STP BPDUs. In its operation, STP relies on continuous
reception or transmission of BPDUs based on the port role. The designated port transmits BPDUs, and the
non-designated port receives BPDUs.
When one of the ports in a physically redundant topology no longer receives BPDUs, the STP conceives that
the topology is loop free. Eventually, the block port from the alternate or backup port becomes designated
and moves to a forwarding state. This situation creates a loop.
The loop guard feature makes additional checks. If BPDUs are not received on a non-designated port, and
loop guard is enabled, that port is moved into the STP loop-inconsistent block state, instead of the listening /
learning / forwarding state. Without the loop guard feature, the port assumes the designated port role. The
port moves to the STP forwarding state and creates a loop. Refer to Configure STP with Loop Guard and
BPDU Skew Detection for more information on the loop guard feature.
This document covers reasons that STP can fail, what information to look for to identify the source of the
problem, and what kind of design minimizes STP risks.
Loops can also be caused by a uni-directional link. For more information, refer to the UDLD: One-Way link
problems section of this document.
A unidirectional link is a link where traffic goes out one way, but no traffic is received in the ingress
direction. The switch does not know that the link ingress direction is bad (the port thinks that the link is up
and works).
A broken fiber cable or other cabling/port issues can cause this one-way only communication. These
partially functional links can cause problems such as STP loops when the switches involved do not know
that the link is partially broken. UDLD can put a port in errdisable state when it detects a unidirectional link.
The command udld aggressive-mode can be configured on switches that run Cisco IOS (check release
notes for command availability) for point-to-point connections between switches where unidirectional links
cannot be tolerated. The use of this feature can help you identify difficult to find unidirectional link
problems
Refer to Configure the UDLD Protocol Feature for configuration information on UDLD.
If you have a large number of deferred frames, or Out-Discard (also referred to as Out-Lost on some
platforms), it means that the switch output buffers have filled up and the switch had to drop these packets.
This can be a sign that this segment is run at an inferior speed and/or duplex, or there is too much traffic that
goes through this port.
<#root>
Router#
2871800
Fa8/1 0 0 0 0 0
2874203
2878032
2876405
Fa8/5 0 0 0 0 0
2873671
Fa8/6 0 0 0 0 0 2
Fa8/7 0 0 0 0 0 0
!--- The show interfaces counters errors command shows certain interfaces
!--- that increment in large amounts OutDiscards while others run clean.
Your network can send too many packets through this port for the port to handle at its current speed/duplex
setup. This can happen where you have multiple high-speed ports flowing to a single (usually slower) port.
You can move the device that hangs off this port to faster media. For example, if the port is 10 Mbps, move
this device to a 100 Mbps or Gigabit port. You can change the topology to route frames differently.
If the segment is shared, other devices on this segment can transmit so much that the switch has no
opportunity to transmit. Avoid daisy-chained hubs whenever possible. Congestion can lead to packet loss.
Packet loss causes retransmissions at the transport layer which in turn causes users to experience latency at
the application level. You can upgrade 10Mbps links to 100Mbps or Gigabit Ethernet links when possible.
You can remove some devices from crowded segments to other less populated segments. Make congestion
avoidance a priority on your network.
Applications
At times the traffic transmission characteristics of the applications used can lead to output buffer problems.
NFS file transfers that come from a Gigabit attached server that uses user datagram protocol (UDP) with a
32K window size is one example of an application setup that can bring out this type of problem. If you have
checked or tried the other suggestions in this document (checked speed/duplex, no physical errors on the
link, all the traffic is normal valid traffic, and so on), then reduce the unit size that is sent by the application
which can help to alleviate this problem.
Software Problems
If you see behavior that can only be considered strange, you can isolate the behavior to a specific box, and
you have looked at everything suggested so far, this can indicate software or hardware problems. It is
usually easier to upgrade the software than it is to upgrade hardware. Change the software first.
Use the show version command to verify the current software version along with the dir flash : or dir
bootflash : (dependent upon the platform) command to verify the available flash memory for the upgrade:
<#root>
Router#
show version
Router#
dir bootflash
:
Directory of bootflash:/
1 -rw- 8620144 Mar 22 2002 08:26:21 cat4000-is-mz.121-13.EW.bin
61341696 bytes total (
For information on how to upgrade software for your Cisco Switches , navigate to link, choose your
platform and look at the Software Configuration section.
There can be a situation where the software is not compatible with the hardware. This happens when new
hardware comes out and requires special support from the software. For more information on software
compatibility, use the Software Advisor tool.
Software Bugs
The operating system can have a bug. If you load a newer software version, it can often fix this. You can
search known software bugs with the Software Bug Toolkit.
Corrupt Images
An image can have become corrupted. For information in regard to the recovery from corrupted images,
choose your platform Switch and look at the Troubleshoot section.
Hardware Problems
Check the results of show module for Catalyst 6000 and 4000 series switches that run Cisco IOS.
Check the results of the POST results from the switch to see if there were any failures indicated for any part
of the switch. Failures of any test of a module or port show an 'F' in the test results.
For Cisco IOS, on modular switches like the Cat6000, use the command show diagnostics . In order to see
POST results per module, use the show diagnostics module < module> command.
<#root>
ecsj-6506-d2#
sh diagnostic module 3
Minimal
minimal
which is a shorter,
!--- but also less thorough test result.
!--- You may wish to configure
MINOR ERROR
hw-module
{mod}
reset
!--- If these steps fail, open a case with Cisco Technical Support.
Note: For Catalyst 3750, 3550, 2970 , 2950/2955, and 2900/3500XL Series switches use the show
post command, which indicates a simple pass or fail for the hw status. Use the LEDs on these
switches to help you understand the POST results.
For further information on how to troubleshoot hardware problems on Catalyst switches that run Cisco IOS,
navigate to the Cisco Switches support pages, choose your platform and look at the Troubleshooting > Hardware
section. For possible issues related to Field Notices, refer to Field Notices for LAN and ATM Switches.
By default, all layer 2 ports are in dynamic desirable mode, so the layer 2 port tries to form a trunk link
and sends out DTP packets to the remote device. When a layer 3 interface is connected to a layer 2
switchport, it is not able to interpret these frames, which results in Input errors, WrongEncap errors, and
Input queue drops.
In order to resolve this, change the mode of the switch port to static access or trunk as per your
requirement.
<#root>
Switch2(config)#
interface fastEthernet1/0/12
Switch2(config-if)#
Or
<#root>
Switch2(config)#
interface fastEthernet1/0/12
Switch2(config-if)#
Switch2(config-if)#
The Rx-No-Pkt-Buff counter can increase on ports when it has blades, such as WS-X4448-GB-RJ45, WS-
X4548-GB-RJ45, and WS-X4548-GB-RJ45V. Also, some packet drop incrementation is normal and is the
result of traffic bursts traffic.
These types of errors increase rapidly, especially when the traffic that passes through that link is high or
when it has devices such as servers connected to that interface. This high load of traffic oversubscribes the
ports, which exhausts the input buffers and causes the Rx-No-Pkt-Buff counter and input errors to increase
rapidly.
If a packet cannot be completely received because the switch is out of packet buffers, this counter is
incremented once for every dropped packet. This counter indicates the internal state of the Switching ASICs
on the Supervisor and does not necessarily indicate an error condition.
Pause Frames
When the receive part (Rx) of the port has its Rx FIFO queue filled and reaches the high water mark, the
transmit part (Tx) of the port starts to generate pause frames with an interval value mentioned in it. The
remote device is expected to stop / reduce the transmission of packets for the interval time mentioned in the
pause frame.
If the Rx is able to clear the Rx queue or reach low water mark within this interval, Tx sends out a special
pause frame that mentions the interval as zero (0x0). This enables the remote device to start to transmit
packets.
If the Rx still works on the queue, once the interval time expires, the Tx sends a new pause frame again with
a new interval value.
If Rx-No-Pkt-Buff is zero or does not increment and the TxPauseFrames counter increments, it indicates
that our switch generates pause frames and the remote end obeys, hence Rx FIFO queue depletes.
If Rx-No-Pkt-Buff increments and TxPauseFrames also increments, it means that the remote end disregards
the pause frames (does not support flow control) and continues to send traffic despite the pause frames. In
order to overcome this situation, manually configure the speed and duplex, as well as disable the flow
control, if required.
These types of errors on the interface are related to a traffic problem with the ports oversubscribed. The WS-
X4448-GB-RJ45, WS-X4548-GB-RJ45, and WS-X4548-GB-RJ45V switching modules have 48
oversubscribed ports in six groups of eight ports each:
• Ports 1, 2, 3, 4, 5, 6, 7, 8
The eight ports within each group use common circuitry that effectively multiplexes the group into a single,
non-block, full-duplex Gigabit Ethernet connection to the internal switch fabric. For each group of eight
ports, the frames that are received are buffered and sent to the common Gigabit Ethernet link to the internal
switch fabric. If the amount of data received for a port begins to exceed buffer capacity, flow control sends
pause frames to the remote port to temporarily stop traffic and prevent frame loss.
If the frames received on any group exceeds the bandwidth of 1 Gbps, the device starts to drop the frames.
These drops are not obvious as they are dropped at the internal ASIC rather than the actual interfaces. This
can lead to slow throughput of packets across the device.
The Rx-No-Pkt-Buff does not depend on the total traffic rate. It depends on the amount of the packets that
are stored in the Rx FIFO buffer of the module ASIC. The size of this buffer is only 16 KB. It is counted
with short traffic bursts flow when some packets fill this buffer. Thus, Rx-No-Pkt-Buff on each port can be
counted when the total traffic rate of this ASIC port group exceeds 1 Gbps, since WS-X4548-GB-RJ45 is
8:1 oversubscribed module.
When you have devices that need to carry a large amount of traffic through that interface, consider the use
of one port of each group so that the common circuitry that shares a single group is not affected by this
amount of traffic. When the Gigabit Ethernet switching module is not fully utilized, you can balancee the
port connections across port groupings to maximize available bandwidth. For example, with the WS-X4448-
GB-RJ45 10/100/1000 switching module, you can connect ports from different groups, such as ports 4, 12,
20, or 30 (in any order), before you connect ports from the same group, such as ports 1, 2, 3, 4, 5, 6, 7, and
8. If this does not solve the issue, you need to consider a module without any oversubscription of ports.
Understand Unknown Protocol Drops
Unknown protocol drops is a counter on the interface. It is caused by protocols that are not understood by
the router/switch. This example of the show run interface command shows the unknown protocol drops
on the GigabitEthernet 0/1 interface.
<#root>
Switch#
Unknown protocol drops are normally dropped because the interface where these packets are received is not
configured for this type of protocol, or it can be any protocol that the router does not recognize. For
example, if you have two routers connected and you disable CDP on one router interface, this results in
unknown protocol drops on that interface. The CDP packets are no longer recognized, and they are dropped.
Trunk links between a switch and a router can make the switchport go down. Trunk can come up after you
disable and enable the switchport, but eventually the switchport can go down again.
When the keepalives are disabled, the CDP enables link to operate normally.
When you use either the WS-X6548-GE-TX or WS-X6148-GE-TX modules, there is a possibility that
individual port utilization can lead to connectivity problems or packet loss on the surrounding interfaces.
Refer to Interface/Module Connectivity Problems for more information on oversubscription.
In SPA modules, after you create a sub interface with 802.1Q, the same VLAN is not usable on the switch.
Once you have encapsulation dot1q on a subinterface, you can no longer use that VLAN in the system
because the 6500 or 7600 internally allocates the VLAN and makes that sub interface its only member. In
order to resolve this issue, create trunk ports instead of sub interfaces. That way, the VLAN can be seen in
all interfaces.
Typically, the output drops can occur if QoS is configured and does not provide enough bandwidth to
certain class of packets. It also occurs when the hardware hits an oversubscription.
For example, here you see a high amount of output drops on the interface GigabitEthernet 8/9 on a Catalyst
6500 Series Switch:
<#root>
Switch#
This example of the show interface command shows the Last input never on the TenGigabitEthernet1/15
interface.
<#root>
Switch#
This shows the number of hours, minutes, and seconds since the last packet was successfully received by an
interface and processed locally on the router. This is useful to know when a dead interface has failed. This
counter is updated only when packets are process switched, not when packets are fast switched. Last input
never means there was no successful interface packet transfer to other end point or terminal. Usually this
means there was no packet transfer relative to that entity.
Related Information
• Troubleshooting Cisco Catalyst Switches to NIC Compatibility Issues
• Using PortFast and Other Commands to Fix Workstation Startup Connectivity Delays
• Configuring and Troubleshooting Ethernet 10/100/1000Mb Half/Full Duplex Auto-Negotiation
• Upgrade Software Images and Working with Configuration Files on Catalyst Switches
• Technical Support & Documentation - Cisco Systems