auto negotiation cisco что это

ИТ База знаний

Полезно

— Онлайн генератор устойчивых паролей

— Онлайн калькулятор подсетей

— Руководство администратора FreePBX на русском языке

— Руководство администратора Cisco UCM/CME на русском языке

— Руководство администратора по Linux/Unix

Навигация

Серверные решения

Телефония

FreePBX и Asterisk

Настройка программных телефонов

Корпоративные сети

Протоколы и стандарты

Автосогласование интерфейсов в Cisco

Для любых интерфейсов 10/100 Мбит/с или 10/100/1000Мбит/с, то есть интерфейсов, которые могут работать на разных скоростях, коммутаторы Cisco по умолчанию устанавливают значение duplex auto и speed auto. В результате эти интерфейсы пытаются автоматически определить скорость и настройку дуплекса. Кроме того, как вы уже знаете, можно настроить большинство устройств, включая интерфейсы коммутатора, для использования определенной скорости и/или дуплекса.

Полный курс по Сетевым Технологиям

В курсе тебя ждет концентрат ТОП 15 навыков, которые обязан знать ведущий инженер или senior Network Operation Engineer

В реальности, использование автосогласования не требует каких либо дополнительных настроек: просто можно выставить параметры скорости и дуплекса по умолчанию, и пусть порт коммутатора определяет, какие настройки использовать автоматически. Однако проблемы могут возникнуть из-за неудачных комбинаций настроек.

Автоматическое согласование в рабочих сетях

Устройства Ethernet, объединенные каналами связи, должны использовать один и тот же стандарт. В противном случае они не смогут корректно передавать данные. Например, старый компьютер с сетевым адаптером стандарта 100BASE-T, который использует двухпарный UTP-кабель со скоростью 100 Мбит /с, не сможет «общаться» с коммутатором, подключенному к ПК, так как порт коммутатора использует стандарт 1000BASE-T. Даже если подключите кабель, работающий по стандарту Gigabit Ethernet, канал не будет работать с оконечным устройством, пытающимся отправить данные со скоростью 100 Мбит /с на порт другого устройства, работающем со скоростью 1000 Мбит /с.

Автосогласование основывается на том факте, что стандарт IEEE использует одни и те же выводы кабеля для 10BASE-T и 100BASE-T (можно использовать кабель с двумя витыми парами). И что бы согласование проходило по технологии 1000BASE-T IEEE autonegotiation просто подключает новые две пары в кабеле (необходимо использовать кабель с четырьмя витыми парами).

Большинство сетей работают в режиме автосогласования, особенно между пользовательскими устройствами и коммутаторами локальной сети уровня доступа, как показано на рисунке 1. В организации установлено четыре узла. Узлы соединены кабелем с поддержкой Gigabit Ethernet (1000BASE-T). В результате, линия связи поддерживает скорость 10Мбит /с, 100Мбит /с и 1000Мбит /с. Оба узла на каждом канале посылают друг другу сообщения автосогласования. Коммутатор в нашем случае может работать в одном из трех режимов: 10/100/1000, в то время как сетевые платы ПК поддерживают различные опции. Настроены в ручную

С обеих сторон автосогласование включено. Результатом во всех трех случаях является: дуплекс включен в режиме FULL, выставлена соответствующая скорость.

Далее разберем логику работы автосоглосования на каждом соединении:

Одностороннее автосогласовние (режим, при котором только один узел использует автоматическое согласование)

На рисунке 1 показано двухстороннее автосогласования IEEE (оба узла используют этот процесс). Однако большинство устройств Ethernet могут отключить автоматическое согласование, и поэтому важно знать, что происходит, когда один из узлов использует автосогласование, а другой нет.

Иногда возникает необходимость отключить автосогласование. Например, многие системные администраторы отключают автосогласование на соединениях между коммутаторами и просто настраивают желаемую скорость и дуплекс. Однако могут возникнуть ошибки, когда одно устройство использует автосогласование, а другое нет. В этом случае связь может не работать вообще, или она может работать нестабильно.

IEEE autonegotiation (автосогласование) определяет некоторые правила (значения по умолчанию), которые узлы должны использовать в качестве значений по умолчанию, когда автосогласование завершается неудачей-то есть когда узел пытается использовать автосогласование, но ничего не слышит от устройства.

Коммутаторы Cisco могут самостоятельно выбирать наилучшие настройки порта по скорости и дуплексу, чем параметры IEEE, установленные по умолчанию (speed default). Это связано с тем, что коммутаторы Cisco могут анализировать скорость, используемую другими узлами, даже без автосогласования IEEE. В результате коммутаторы Cisco используют эту свою возможность для выбора скорости, когда автосогласование не работает:

Гигабитные интерфейсы (1Gb/s) всегда используют полный дуплекс.

На рисунке 2 показаны три примера, в которых пользователи изменили настройки свих сетевых карт и отключили автоматическое согласование, в то время как коммутатор (на всех портах поддерживается скорость 10/100/1000 Мбит/с) пытается провести автосогласование. То есть, на портах коммутатора выставлены параметры скорости (speed auto) и (duplex auto) дуплекса в режим auto. В верхней части рисунка отображены настроенные параметры каждой сетевой карты компьютеров, а выбор, сделанный коммутатором, указан рядом с каждым портом коммутатора.

Разберем работу устройств на рисунке:

ПК1.Итог работы этой связки: дуплексное несоответствие. Оба узла используют скорость 100 Мбит/с, поэтому они могут обмениваться данными. Однако ПК1, используя полный дуплекс, не пытается использовать carrier sense multiple access (CSMA) для обнаружения столкновений (CSMA / CD) и отправляет кадры в любое время. В свою очередь интерфейс коммутатора F0/1 (в режиме half duplex), использует CSMA / CD. Отчего порт коммутатора F0/1 будет считать, что на канале происходят коллизии, даже если физически они не происходят. Порт остановит передачу, очистит канал, повторно отправит кадры и так до бесконечности. В результате связь будет установлена, но работать она будет нестабильно.

Полный курс по Сетевым Технологиям

В курсе тебя ждет концентрат ТОП 15 навыков, которые обязан знать ведущий инженер или senior Network Operation Engineer

Источник

Configure speed and duplex

By default, Cisco switches will auto-negotiate the speed and duplex settings. When you connect a device (either a switch, router, or a workstation) to a port on a Cisco switch, the negotiation process will occur and the devices will agree on the transmission parameters. Most of the today’s network adapters support this function.

Consider the following example network:

In the picture above you see a network of a hub, a switch, and a workstation. All three devices have auto-negotiation turned on. Because hubs can only operate in half duplex, the switch and hub will negotiate to use the speed of 100 Mbps and half-duplex. The workstation on the right is capable of 100 Mbps and supports full duplex, so the devices will use these parameters to communicate.

We can verify the speed and duplex settings using the show interface command on SW1:

As you can see from the output above, the interface Fa0/1 will use the speed of 100 Mbps and half-duplex. The Fa0/2 interface will use the same speed, but it will use the full duplex communication.

It is recommended that devices on both sides of a link should have the auto-negotiation setting turned on, or both sides should have it off. If you encounter a device that has speed and duplex parameters manually configured, you can use the interface mode speed and duplex commands to set the duplex and speed settings, e.g.:

When one device uses autonegotiation and the other one has disabled it, the device using autonegotiation will choose the default duplex setting based on the current speed. The defaults are:

And If the device successfully senses the speed without IEEE autonegotiation, by just looking at the signal on the cable.

Download our Free CCNA Study Guide PDF for complete notes on all the CCNA 200-301 exam topics in one book.

We recommend the Cisco CCNA Gold Bootcamp as your main CCNA training course. It’s the highest rated Cisco course online with an average rating of 4.8 from over 30,000 public reviews and is the gold standard in CCNA training:

Источник

Стандартные сегменты Fast Ethernet

Автоматическое определение типа сети (Auto-Negotiation)

Функция автодиалога или автосогласования (так можно перевести Auto-Negotiation ) позволяет адаптерам, в которых предусмотрено переключение скорости передачи, автоматически подстраиваться под скорость обмена в сети, а концентраторам, в которых предусмотрен автодиалог, самим определять скорость передачи адаптеров, подключенных к их портам. При этом пользователь сети не должен следить за тем, на какую скорость обмена настроена его аппаратура: система сама выберет максимально возможную скорость.

Как уже упоминалось, связь между абонентами бывает трех основных видов:

Полнодуплексная версия Ethernet гораздо проще. Она предназначена для обмена только между двумя абонентами по двум разнонаправленным кабелям, причем передавать могут оба абонента сразу, одновременно. Два преимущества такого подхода понятны сразу:

Режим полного дуплекса гораздо сложнее реализовать технически, поэтому полнодуплексные версии Ethernet и Fast Ethernet находятся все еще на стадии стандартизации, единых правил обмена пока не выработано, и аппаратура разных производителей может основываться на разных принципах обмена. Тем не менее, автодиалог уже ориентирован на их распознавание и использование.

При проведении автодиалога применяется таблица приоритетов (табл. 12.4), в которой полнодуплексные версии имеют более высокие приоритеты, чем классические полудуплексные, так как они более быстрые. Выбирается версия с максимально возможным для обоих абонентов приоритетом.

1 – высший приоритет, 5 – низший приоритет

Обмен информацией при автодиалоге осуществляется 16-битными словами, называемыми LCW (Link Code Word ), с форматом, представленным на рис. 12.10.

Пятиразрядное поле селектора ( Selector Field ) определяет один из 32 возможных типов стандарта сети. В настоящее время для него используется только два кода: код 00001 соответствует стандарту IEEE 802.3, а код 00010 – IEEE 802.9.

Восьмиразрядное поле технологических особенностей ( Technology Ability Field ) определяет тип сети в пределах стандарта, заданного битами поля селектора. Для стандарта IEEE 802.3 пока что определены пять типов, которые представлены в таблице 12.4.

Читайте также:  что делать если болят локтевые суставы при подтягивании

Бит удаленной ошибки RF ( Remote Fault) позволяет передавать информацию о наличии ошибок. Бит подтверждения Ack ( Acknowledge ) используется для подтверждения получения посылки. Наконец, бит следующей страницы NP ( Next Page) говорит о поддержке функции следующей страницы, о том, что абонент собирается передавать еще и дополнительную информацию в следующем слове.

В автодиалоге используется специально разработанный протокол с многократным подтверждением принятия посылок. В случае если автодиалог происходит между абонентами 1 и 2, последовательность действий абонентов будет такой.

В соответствии с этим алгоритмом действуют оба абонента, участвующие в автодиалоге. Как видно, здесь реализуется механизм многократного взаимного подтверждения, что существенно повышает надежность передачи данных об аппаратуре абонентов. При этом также легко детектируются ошибочные ситуации, например, неисправности аппаратуры абонентов, нарушения целостности кабеля, несовместимость аппаратуры абонентов и т.д.

Источник

Configuring and Troubleshooting Ethernet 10/100/1000Mb Half/Full Duplex Auto-Negotiation

Available Languages

Download Options

Contents

Introduction

This document provides basic guidelines to isolate and resolve many common Ethernet auto-negotiation issues. This document provides a general description of auto-negotiation, and explains the procedure to configure and verify auto-negotiation on Catalyst switches that run the Catalyst OS (CatOS) system software.

This document also shows an example of why the most common duplex-mismatch error occurs, and describes how to configure and verify auto-negotiation on Catalyst switches that run Cisco IOS ® System Software.

Note: The new Catalyst switches/modules, such as the Catalyst 6500/6000, 4500/4000, 3550, and 2950, support 10/100/1000 Mbps negotiated Ethernet interfaces or ports. These ports work on 10 Mbps, 100 Mbps, or 1000 Mbps speed based on their connection to the other end. These 10/100/1000 Mbps ports can be configured for speed and duplex negotiation similar to 10/100 Mbps ports on CatOS or Cisco IOS Software-based switches. Therefore, the configurations described in this document for 10/100 Mbps port negotiation apply to 10/100/1000 Mbps ports as well.

Prerequisites

Requirements

Cisco recommends that you have knowledge of these topics:

Troubleshooting issues with 10/100 Network Interface Cards (NICs)

Operational issues on specific Cisco platforms

Operational issues with specific NICs

Table that shows all possible settings and results of speed and duplex between a NIC and a switch

Discussion of the auto-negotiation protocol itself (including FLP)

Components Used

The information in this document is based on these software and hardware versions:

CatOS system software

Cisco IOS System Software

This equipment was used to create the examples in this document:

A console cable suitable for the Supervisor Engine in the switch. Refer to Connecting a Terminal to the Console Port on Catalyst Switches for more information.

Two Catalyst 5500 switches in a lab environment with cleared configurations

Two 10/100 Mb TX half- and full-duplex capable interfaces

An Ethernet crossover cable

This document was written in an isolated lab environment. Make certain that you understand the potential impact of any command on your network before you use it.

Note: The clear configuration all command was issued on each switch to ensure that they have default configurations.

Conventions

Refer to Cisco Technical Tips Conventions for more information on document conventions.

Difference Between CatOS and Cisco IOS System Software

CatOS on the Supervisor Engine and Cisco IOS Software on the Multilayer Switch Feature Card (MSFC) (Hybrid): a CatOS image can be used as the system software to run the Supervisor Engine on Catalyst 6500/6000 switches. If the optional MSFC is installed, a separate Cisco IOS Software image is used to run the MSFC.

Cisco IOS Software on both the Supervisor Engine and MSFC (Native): a single Cisco IOS Software image can be used as the system software to run both the Supervisor Engine and MSFC on Catalyst 6500/6000 switches.

When to Use Ethernet 10/100 Mb Auto-Negotiation

Auto-negotiation 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 abilities.

Auto-negotiation is targeted at ports. These ports 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. Each office or cube has an Ethernet port permanently connected to the office network. Because it might 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 laptop, the switch ports that handle these connections must be able to negotiate their speed and duplex mode. The alternative is to provide both a 10 Mb and a 100 Mb port in each office, or cube and label them accordingly.

One of the most common causes of performance issues on 10/100 Mb Ethernet links occurs when one port on the link operates at half-duplex while the other port operates at full-duplex. This occurs when one or both ports on a link are reset and the auto-negotiation process does not result in both link partners having the same configuration. It also can occur when users reconfigure one side of a link and forget to reconfigure the other side. Both sides of a link should have auto-negotiation on, or both sides should have it off. Cisco recommends to leave auto-negotiation on for those devices compliant with 802.3u.

Many performance-related support calls are avoided if you correctly configure auto-negotiation. Many Catalyst Ethernet switching modules support 10/100 Mb and half-duplex or full-duplex. Exceptions include the Ethernet Group switch modules. The show port capabilities < mod_num >| < mod_num/port_num > command shows if the module you are working on supports 10/100 Mb and half-duplex or full-duplex. This document uses two WS-X5530 Supervisor Engine IIIs, each with two optional uplink 10/100 BaseTX Ethernet ports installed.

Note: When the WS-6748-GE-TX module is connected to a network tap device, automatic negotiation does not work. In order to resolve this issue, you must configure auto-negotiation manually. Go to the interface mode and execute this command:

When to Use Ethernet 1000 Mb Auto-Negotiation

Basically auto-negotiation in GigabitEthernet covers these items:

Duplex settings—While Cisco devices only support full-duplex, the IEEE 802.3z standard does have support for half-duplex GigabitEthernet. Because of this, duplex is negotiated between GigabitEthernet devices.

Flow Control—Becuase of the amount of traffic that can be generated by GigabitEthernet, there is a PAUSE functionality built into GigabitEthernet. The PAUSE frame is a packet that tells the far-end device to stop the transmition of packets until the sender is able to handle all the traffic and clear its buffers. The PAUSE frame has a timer included, which tells the far-end device when to start to send packets again. If that timer expires without getting another PAUSE frame, the far-end device can then send packets again. Flow-Control is an optional item and must be negotiated. Devices can be capable of sending or responding to a PAUSE frame, and they possibly do not agree to the flow-control request of the far-end neighbor.

Negotiation—Usually built-in Gigabit Ethernet ports are capable of negotiation, but in cases like modular SFP or GBIC types, they do not negotiate. Line protocol will be down for a Gigabit Ethernet port when connected to a Fast Ethernet port. This can be verified via the show inter gig4/3 capabilities command:

Assume that there are two devices, A and B. Assume that each device can have Autonegotiation enabled, or disabled. The correct behaviour of link status with autonegotiation in accordance to the IEEE Std 802.3z-1998 should be like this:

If A is enabled and B is enabled, then link status should be reported on both devices as link up.

If A is disabled and B is enabled, then A should report link up and B should report link down.

If A is enabled and B is disabled, then A should report link down and B should report link up.

By default, all devices are supposed to perform autonegotiation. 802.3z does not specifically define a way to turn Autonegotiation off, for both 1GigabitEthernet and 10GigabitEthernet.

Configure and Troubleshoot Ethernet 10/100Mb Auto-Negotiation on CatOS Switches

This section of the document explains how to examine the behavior of an 10/100 Mb Ethernet port that supports auto-negotiation. This procedure shows how to make changes to its default behavior and how to restore it to the default behavior. Complete these steps:

Connect the two switches together.

Ethernet port 1/1 on switch A is connected to Ethernet port 1/1 on switch B using an Ethernet crossover cable. See Appendix B for more information on crossover cables.

Note: Your actual mod_num/port_num numbers might be different.

Examine the capabilities of the ports.

The show port capabilities 1/1 command displays the capabilities of an Ethernet 10/100 BaseTX 1/1 port on switch A.

Читайте также:  сульфаты и сульфиты чем отличаются

Issue this command for both of the ports you are troubleshooting. Both ports must support the speed and duplex capabilities if they are supposed to use auto-negotiation.

The bold text in this output shows where the information on the speed and duplex mode capabilities are found.

Configure auto-negotiation for port 1/1 on both switches.

Issue the set port speed 1/1 auto command to configure auto-negotiation for both speed and duplex mode on port 1/1 of both switches. Auto is the default for ports that support auto-negotiation.

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.

Also, this command is redundant because the configurations of the switches had been cleared to their defaults before starting this procedure. The default behavior for Ethernet 10/100 BaseTX ports is auto-negotiation.

Determine if the speed and duplex mode are set to auto-negotiate.

Issue the show port 1/1 command to display the status of ports 1/1 on switches A and B.

The bold text in the preceding output shows where the information on the current status of a port can be found. Most of the normal output from the show port < mod_num/port_num > command is omitted. See Appendix C for further explanation of the fields in the output of this command.

The a prefixes on the full and 100 indicate that this port is not hard coded (configured) for a specific duplex mode or speed. Therefore, it auto-negotiates the duplex mode and speed if the device it is connected to also auto-negotiates duplex mode and speed.

The status is connected on both ports, which means that a link pulse is detected from the other port. The status can be connected even if duplex is incorrectly negotiated or incorrectly configured.

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

In order to demonstrate what occurs when one link partner auto-negotiates and the other link partner does not, the speed on port 1/1 in switch A must be set to 10 Mb. Issue the set port speed 1/1 10 command to set this speed.

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

When a port is configured for a speed, the duplex mode is automatically configured for the mode it previously negotiated. In this case, the mode is full-duplex. Therefore, the set port speed 1/1 10 command causes the duplex mode on port 1/1 to be configured as if the command set port duplex 1/1 full is also issued. This is explained in step 6.

Understand the meaning of the a prefix on 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 configured for full and the speed is configured for 10.

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

The show port 1/1 command on switch B indicates that the port operates at half-duplex and 10 Mb.

This step shows that it is possible for a link partner to detect the speed at which the other link partner operates, even though the other link partner is not configured for auto-negotiation. In order to detect the speed, the link partner senses the type of electrical signal that arrives and sees if it is 10 Mb or 100 Mb. This is how switch B determines that port 1/1 operates at 10 Mb.

It is not possible to detect the correct duplex mode in the same method that the correct speed can be detected. In this case, where the 1/1 port of switch B is configured for auto-negotiation and the 1/1 port of switch A is not, the 1/1 port of switch B is forced to select the default duplex mode. On Catalyst Ethernet ports, the default mode is auto-negotiate. If auto-negotiation fails, the default mode 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 while port 1/1 on switch B is defaulted to half-duplex. Configure both link partners to avoid this.

The a prefix on the Duplex and Speed status fields does not always mean that the current behavior is negotiated. Sometimes it can mean that the port is not configured for a speed or duplex mode.

The previous output from switch B shows duplex as a-half and speed as a-10. This indicates that the port operates 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 and 10 Mb. Therefore, it is not possible for port 1/1 on switch B to auto-negotiate current behavior. This proves that the a prefix only indicates a willingness to perform auto-negotiation, and not that auto-negotiation actually took place.

Understand the duplex mismatch error.

This message about a duplex mode mismatch is displayed on switch A after the speed on port 1/1 is changed to 10 Mb. This mismatch occurs because the 1/1 port of switch B defaults to half-duplex when it senses its link partner no longer performs auto-negotiation.

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

A duplex mismatch might or might not result in an error message. Another indication of a duplex mismatch is the rapid increase of FCS and alignment errors on the half-duplex side, and runts on the full-duplex port. This can be seen in a show port < mod_num/port_num > command.

Understand the spanning tree error messages.

In addition to the duplex mismatch error message in step 8, you might also see these spanning tree messages when you change the speed on a link.

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

Issue the set port duplex 1/1 half command to set the mode on port 1/1 in switch A to half. This demonstrates what occurs when the duplex mode is configured.

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

At this point, ports 1/1 on both switches operate at half-duplex. Port 1/1 on switch B, however, is still configured to auto-negotiate, as displayed in this output of the show port 1/1 command.

Step 11 shows how to configure the duplex mode on port 1/1 in switch B to half. This is the recommended policy of always configuring both link partners in the same way.

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

This step sets the duplex mode to half and speed to 10 on port 1/1 in switch. This implements the policy of always configuring both link partners for the same behavior.

This is the output when you issue the set port duplex 1/1 half command on switch B.

The set port duplex 1/1 half command fails because this command does not work if auto-negotiation is enabled. This also means that this command does not disable auto-negotiation. Auto-negotiation can only be disabled when you issue the set port speed < mod_num/port_num <10 | 100>> command.

This is the output when you issue the set port speed 1/1 10 command on switch B.

Now the set port duplex 1/1 half command on switch B works.

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

Note: The set port duplex < mod_num/port_num > 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.

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

Issue the set port speed 1/1 auto command to configure ports 1/1 on both switches to auto-negotiate.

Note: Once the duplex mode of a port is configured to something other than auto, the only method to configure the port to auto-sense the 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.

View the changes of the port status on both switches.

Issue the show port 1/1 command to examine the status of ports 1/1 on both switches.

Both ports are now set to their default behavior of auto-negotiation. Both ports negotiate full-duplex and 100 Mb.

Читайте также:  game center apple что это

Auto-Negotiation on Catalyst Switches that Run Cisco IOS Software

The commands described in this section apply to these types of switch products: Catalyst 2900XL, 3500XL, 2950, 3550, 2948G-L3, 4908G-L3, Catalyst 4500/4000 that runs Cisco IOS System Software (Supervisor Engine III), and the Catalyst 6500/6000 that runs Cisco IOS System Software.

The switches that run Cisco IOS Software (as opposed to CatOS) default to auto-negotiation for speed and are set to on for the duplex. Issue the show interface slot/port status command to verify this.

This output is taken from a Catalyst 6500/6000 that runs Cisco IOS Software Release 12.1(6)E. It shows a connected port that auto-negotiates a link to 100 Mbps and half-duplex. The configuration that runs for this switch has no duplex or speed commands underneath interface FastEthernet 3/1 because auto-negotiation is the default. Issue the show interface slot/port command (without the status keyword) to see the port speed and duplex.

If you want to hard code the speed and duplex on a switch that runs Cisco IOS Software (turn off auto-negotiation), issue the speed and duplex commands underneath the specific interface. Duplex is subservient to speed in the sense that if speed is set to auto, then the duplex cannot be manually set. You might see cyclic redundancy check (CRC) error messages when both the speed and duplex settings are hardcoded on the two devices. This might be because any one of the devices runs an earlier version of Cisco IOS. You can upgrade the Cisco IOS or set the speed and duplex to auto on both devices in order to resolve this.

Appendix A: Catalyst Switch Modules

This document contains information on how to install Catalyst modules and the functionality of each module. It also contains explanations of the LEDs on each module. In general, the LEDs indicate the status of the module as well as which ports are active.

Appendix B: Ethernet Crossover Cables

Ethernet ports on Catalyst switches have built-in (on-board) Ethernet transceivers. Devices that connect to Ethernet ports might have on-board Ethernet transceivers or use external transceivers.

Use a straight-through patch cable, such as a CAT5 10/100BaseT unshielded twisted pair (UTP) patch cable, when you connect a PC, server, printer, or other end-user devices (such as a router) to a switch. Straight-through means that pin 1 on one end of the cable is connected to pin 1 on the other end, pin 2 on one end of the cable is connected to pin 2 on the other end, and so forth.

Use a crossover cable, such as a CAT5 10/100BaseT UTP crossover patch cable,when you connect another switch port, or other Layer 2 port to an Ethernet port on a switch. In this case, the pins are connected (see Figure 1 and Figure 2).

A convenient rule of thumb is to use a crossover cable when the two ports that are connected are in the same layer of the OSI model. If you cross OSI layers, use a straight-through cable. Treat PCs as Layer 3 ports, hubs and most Layer 3 switches as Layer 2 ports. Some devices, especially common on hubs, have a button that can toggle between accepting a straight-through or crossover cable. Therefore, this rule of thumb does not always apply.

Note: Use a crossover cable when you connect two ports in the same layer of the OSI model, such as router to router (Layer 3) or switch to switch (Layer 2). Use a straight-through cable if the two ports are in different layers, such as router to switch (Layer 3 to 2) or PC to switch (Layer 3 to 2). For this rule, treat a PC as a Layer 3 device.

CAT5 10/100BaseT UTP crossover patch cables are available from most computer stores.

Note: Some Ethernet network devices (10/100BaseT hubs) have what is referred to as a media dependent interface (MDI) port. Activate an internal crossover function and this type of port allows the device to connect to an Ethernet port on a switch that uses a straight-through patch cable. Turn the MDI switch on to perform this. When the MDI switch is in the out position, the port expects to be connected to an end-user device.

Four Twisted-Pair Crossover Cable Schematics for 10/100/1000 and 1000BASE-T GBIC Module Ports

CAT 5, 5e or 6 UTP crossover patch cables are available from most computer stores.

Fiber Cable Connection Guidelines

If you use an Ethernet port on the switch with a fiber interface to connect to another switch port, a router port, or other Layer 2 device, you need to reverse the connection on one of the devices. Rotate the connector one half turn or cross over the individual fiber connectors to reverse the connection. Think about each fiber as either fiber A or fiber B. If a straight-through connection is A-to-A and B-to-B, a crossover connection is A-to-B and B-to-A.

Appendix C: Explanation of Auto-MDIX and Supported Switch Platforms

Automatic medium-dependent interface crossover (Auto-MDIX) is a feature that allows the switch interface to detect the required cable connection type (straight-through or crossover) and automatically configure the connection appropriately. With Auto-MDIX enabled, you can use either a straight-through or crossover type cable to connect to the other device, and the interface automatically corrects for any incorrect cabling.

Appendix D: Explanation of Fields in the show port Command

show port Command Output Fields

Field Description
Port Module and port number.
Name Name (if configured) of the port.
Status Status of the port. For the Catalyst 5500 and 2926G series switches, possible displays are connected, notconnect, connecting, standby, faulty, inactive, shutdown, disabled, or monitor; for the Catalyst 4500/4000 and 2948G series switches, possible displays are connected, notconnected, faulty, remfault, disable, remdisable, configerr, remcfgerr, and disagree.
Vlan VLANs to which the port belongs.
Duplex Duplex setting for the port (auto, full, fdx, half, hdx, a-half, a-hdx, a-full, or a-fdx).
Speed Speed setting for the port (auto, 10, 100, 155, a-10, a-100, 4, 16, a-14,or a-16).
Type Port type, for example, 100BaseFX MM, 100BaseFX SM, 10/100BaseTX, or RSM.

Note: This varies depending on the modules installed in your switch.

Appendix E: Frequently Asked Questions

When should you use auto-negotiation?

Cisco recommends that auto-negotiation be used when the devices involved are compliant with the 802.3u standard. Refer to Troubleshooting Cisco Catalyst Switches to NIC Compatibility Issues for more information on specific products. Auto-negotiation is very useful for ports where devices with different capabilities are connected and disconnected on a regular basis. A good example is offices that are used by visiting employees who bring their own laptops.

How can you configure a port for auto-negotiation?

Issue the set port speed < mod_num/port_num >auto command. This resets both the speed and duplex mode to auto-negotiate. On a Catalyst Cisco IOS Software platform, issue the interface command speed auto.

How can you tell how your port is configured?

Issue the show port < mod_num/port_num > command. Look for the a prefix in the status fields. This indicates the port is configured for auto-negotiation. Examples are a-full and a-100. If the a prefix is not present, the port is manually configured for the parameters shown. Examples are full and 100. Issue the show configuration [ mod_num ] command to view the configuration of the switch. On a Catalyst Cisco IOS Software platform, issue the command show interfaces < mod_num/port_num >status.

How can you tell what your port is capable of?

Issue the show port capabilities < mod_num >|< mod_num/port_num > command. For Catalyst Cisco IOS Software, there is not an equivalent command, but you can issue the show interfaces < mod_num/port_num >status command to view the speed/duplex settings.

Why do you receive the error message «Port 1/1 is in auto-sensing mode» when you attempt to set the duplex mode?

You receive this error because you need to manually configure the speed on a port before you can manually configure the duplex mode.

Why does a port not detect the correct duplex mode when the link partner is not configured for auto-negotiation?

The port does not detect it because there is no method available to perform this.

Why is it possible to have link show connected when the two ports have different duplex modes configured?

It is possible because the electrical signals the ports use to determine if they are connected do not track the status of the duplex modes.

Does the a prefix on the duplex and speed status fields always mean the port has auto-negotiated behavior?

No, it means that the port is capable of performing auto-negotiation.

What does the %CDP-4-DUPLEXMISMATCH:Full/half-duplex mismatch detected message mean?

This means the CDP determines, via a configuration comparison dialogue, that a mismatch exists. CDP does not attempt to resolve the mismatch.

Источник

Сказочный портал