0% found this document useful (0 votes)
33 views10 pages

Configuring and Troubleshooting Auto-Negotiation

I need your pdf for study

Uploaded by

Shubhang Bhoiwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
33 views10 pages

Configuring and Troubleshooting Auto-Negotiation

I need your pdf for study

Uploaded by

Shubhang Bhoiwar
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Configuring and Troubleshooting

Auto-Negotiation

Issue 01
Date 2019-08-02

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2019. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior written
consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

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.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: http://e.huawei.com

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. i


Configuring and Troubleshooting Auto-Negotiation Contents

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

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. ii


Configuring and Troubleshooting Auto-Negotiation 1 Introduction

1 Introduction

This document introduces the auto-negotiation function and describes how to configure this
function and rectify faults related to auto-negotiation.

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 1


Configuring and Troubleshooting Auto-Negotiation 2 Prerequisites

2 Prerequisites

This document is applicable to all versions of all S series switches.

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 2


Configuring and Troubleshooting Auto-Negotiation 3 Understanding Auto-Negotiation

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

l By default, auto-negotiation is enabled on GE optical interfaces and rate auto-negotiation is


disabled. You can run the speed auto-negotiation command to enable rate auto-negotiation.
l After configuring the auto-negotiation function on an interface, if you remove and install a single
optical fiber on the interface, the interface may be Up and the remote interface may be Down. You
can run the shutdown and undo shutdown commands on the remote interface to make the remote
interface go Up.

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 3


Configuring and Troubleshooting Auto-Negotiation 4 Configuring Auto-Negotiation

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.

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 4


Configuring and Troubleshooting Auto-Negotiation 5 Troubleshooting Auto-Negotiation Faults

5 Troubleshooting Auto-Negotiation Faults

Fault Analysis 1: Why Cannot GE Interfaces at Both Ends of a Link Negotiate to


Go Up at the Rate of 1000 Mbit/s After Auto-Negotiation Is Enabled?
1000BASE-T interfaces must use Category 5 enhanced cables or higher, and the four twisted
pairs in the network cables are normal. In this case, interfaces at both ends can negotiate to go
Up at the rate of 1000 Mbit/s. If the network cable is shaking, the RJ45 connector on an end is
not properly connected, or the network cable is faulty, the interfaces at both ends cannot
negotiate to go Up at the rate of 1000 Mbit/s, and can only negotiate to go Up at the rate of
100 Mbit/s. In this case, you can run the auto speed command in the interface view to force
interfaces at both ends of the link to work at a specified rate.
In V200R005C00 and later versions, you can also run the set ethernet speed down-grade
command in the system view to configure rate decrease auto-negotiation. After this command
is run, when two connected GE electrical interfaces in auto-negotiation mode cannot go Up at
the rate of 1000 Mbit/s, rates of the interfaces automatically decrease to 100 Mbit/s or 10
Mbit/s.

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 3: Why Do Two Auto-Negotiation-Enabled GE Interfaces


Negotiate to Work at the Rate of 100 Mbit/s?
When the link between the two interfaces is unstable during auto-negotiation, negotiation
packets are lost. The two interfaces negotiate a speed in a descending order of speeds (1000
Mbit/s -> 100 Mbit/s -> 10 Mbit/s). If they work at 100 Mbit/s after the negotiation, the
reason is that the link between them is unstable. For example, the network cable is shaking,
the RJ45 connector on an end is not properly connected, or the network cable is faulty. To
make the two interfaces work at a specified speed, run the auto speed command on the
interfaces.

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 5


Configuring and Troubleshooting Auto-Negotiation 5 Troubleshooting Auto-Negotiation Faults

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.

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 6


Configuring and Troubleshooting Auto-Negotiation 6 Related Information

6 Related Information

l Configuring Auto-Negotiation
l Configuring the Interface Rate
l Configuring the Duplex Mode

Issue 01 (2019-08-02) Copyright © Huawei Technologies Co., Ltd. 7

You might also like