Configuring and Troubleshooting Auto-Negotiation
Configuring and Troubleshooting Auto-Negotiation
Auto-Negotiation
Issue 01
Date 2019-08-02
and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.
Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,
and recommendations in this document are provided "AS IS" without warranties, guarantees or
representations of any kind, either express or implied.
The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.
Website: http://e.huawei.com
Contents
1 Introduction.................................................................................................................................... 1
2 Prerequisites................................................................................................................................... 2
3 Understanding Auto-Negotiation.............................................................................................. 3
4 Configuring Auto-Negotiation................................................................................................... 4
5 Troubleshooting Auto-Negotiation Faults............................................................................... 5
6 Related Information...................................................................................................................... 7
1 Introduction
This document introduces the auto-negotiation function and describes how to configure this
function and rectify faults related to auto-negotiation.
2 Prerequisites
3 Understanding Auto-Negotiation
Devices with different transmission capabilities exist on the network. Two devices must
negotiate a proper data transmission capability to communicate. The auto-negotiation function
provides an information exchange method for connected devices. After auto-negotiation is
enabled, devices at both ends of a physical link can exchange information and automatically
choose the same working parameters. In this way, the two devices can work at the maximum
rate supported by both of them.
The duplex mode and rate of interfaces at both ends of a link are negotiated. If the negotiation
succeeds, the two interfaces use the same duplex mode and rate. The auto-negotiation
function takes effect only when both the connected devices support it. If the remote device
does not support auto-negotiation or uses a different auto-negotiation mode. You can
configure the connected interfaces to work in non-auto-negotiation mode, and forcibly set the
same rate and duplex mode on the interfaces.
When the working mode of an interface is changed from auto-negotiation to non-auto-
negotiation, the interface works at the maximum rate and uses the default duplex mode. For
example, when a GE electrical interface works in auto-negotiation mode, the rate negotiated
with the remote interface is 100 Mbit/s and the duplex mode is half-duplex. When the GE
electrical interface is configured to work in non-auto-negotiation mode, the interface rate is
restored to 1000 Mbit/s and the duplex mode is full-duplex.
NOTE
4 Configuring Auto-Negotiation
Procedure
Step 1 Run the system-view command to enter the system view.
Step 2 Run the interface interface-type interface-number command to enter the interface view.
Step 3 Run the negotiation auto command to configure the Ethernet interface to work in auto-
negotiation mode.
By default, an Ethernet interface works in auto-negotiation mode.
----End
Run the display interface [ interface-type [ interface-number ] ] command in any view or the
display this interface command in the interface view to check the current interface status.
Check the Negotiation field in the command output.
Fault Analysis 2: Why Is the Negotiated Rate Lower Than 1000 Mbit/s on Two
Connected GE Electrical Interfaces Enabled with Auto-Negotiation?
Two devices are connected through two GE interfaces using a network cable. The two GE
interfaces are configured to work in rate auto-negotiation mode. Because the network cable
deteriorates and RJ45 connectors are faulty, the GE interfaces can only work at the rate of 100
Mbit/s or 10 Mbit/s. As a result, the finally negotiated rate of the interfaces is 100 Mbit/s or
10 Mbit/s.
You are advised to replace the network cable.
Fault Analysis 4: How Can Packet Loss Be Avoided When Two Interfaces at Both
Ends of a Link Work in Auto-Negotiation Mode and Half-Duplex Mode?
You can configure the local and remote devices to work in non-auto-negotiation mode, and set
their duplex mode to full-duplex to avoid packet loss.
The configuration is as follows:
<HUAWEI> system-view
[HUAWEI] interface gigabitethernet 0/0/1
[HUAWEI-GigabitEthernet0/0/1] undo negotiation auto
[HUAWEI-GigabitEthernet0/0/1] duplex full
Fault Analysis 5: Which Interface Attributes Are Affected After the Interface
Auto-Negotiation Mode Is Changed?
When the auto-negotiation mode of an interface is changed from auto-negotiation to non-
auto-negotiation, the default interface rate and duplex mode are restored. For example, when a
GE electrical interface works in auto-negotiation mode, the rate negotiated with the remote
interface is 100 Mbit/s and the duplex mode is half-duplex. After the interface is configured to
work in non-auto-negotiation mode, the interface rate is restored to 1000 Mbit/s and the
duplex mode is full-duplex.
NOTE
You should change the auto-negotiation mode of both the local and remote interfaces. Otherwise, the
interfaces may be Down.
6 Related Information
l Configuring Auto-Negotiation
l Configuring the Interface Rate
l Configuring the Duplex Mode