No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fat AP and Cloud AP V200R008C00 CLI-based Configuration Guide

Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Configuring an Ethernet Interface

Configuring an Ethernet Interface

This section describes the procedures for configuring an ethernet interface.

Configuring the Auto-Negotiation Function

Context

The auto-negotiation function allows interfaces on both ends of a link to select the same operating parameters by exchanging capability information. The parameters include the duplex mode and rate. When the negotiation succeeds, the two interfaces use the same duplex mode and work at the same rate. In non-auto negotiation mode, the operating parameters must be set manually.

For details about the auto-negotiation configuration supported by Ethernet interfaces, see Ethernet Interface Overview.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Configure the auto-negotiation function.

    • Run:
      negotiation auto

      The Ethernet interface is configured to work in auto-negotiation mode.

    • Run:
      undo negotiation auto

      The Ethernet interface is configured to work in non-auto negotiation mode.

    By default, an Ethernet interface works in auto-negotiation mode.

    NOTE:

    The interfaces on both ends of a link must have the same negotiation mode.

Configuring the Duplex Mode for an Ethernet Interface

Context

For details about the duplex modes that various Ethernet interfaces support, see Ethernet Interface Overview.

Duplex modes include:

  • Half-duplex mode: An Ethernet interface only receives or sends data within the specified maximum transmission distance at a time.
  • Full-duplex mode: An Ethernet interface receives and sends data at the same time. The maximum throughput in the full-duplex mode doubles that in the half-duplex mode, and there is no limit on the maximum transmission distance.

You can set the duplex mode for an Ethernet electrical interface in either the auto-negotiation or non-auto negotiation mode.

  • In auto-negotiation mode, interfaces on both ends of a link negotiate their duplex mode. If the negotiated duplex mode is not the required one, you can set the duplex mode manually. For example, two interfaces support both the full-duplex mode and half-duplex mode. If the two interfaces negotiate to work in half-duplex mode, but they are required to work in full-duplex mode, run the auto duplex full command to set the full-duplex mode for the two interfaces.
  • In non-auto negotiation mode, you can manually set the required duplex mode for interfaces.
NOTE:

The interfaces on both ends of a link must have the same duplex mode.

Procedure
  • Setting the duplex mode in auto-negotiation mode
    1. Run:
      system-view

      The system view is displayed.

    2. Run:
      interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run:
      negotiation auto

      The Ethernet interface is configured to work in auto-negotiation mode.

    4. Run:
      auto duplex { full | half }*

      The duplex mode in auto-negotiation mode is set for the Ethernet interface.

    By default, interfaces on both ends of a link negotiate their duplex mode.

  • Setting the duplex mode in non-auto negotiation mode
    1. Run:
      system-view

      The system view is displayed.

    2. Run:
      interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run:
      undo negotiation auto

      The Ethernet interface is configured to work in non-auto negotiation mode.

    4. Run:
      duplex { full | half }

      The duplex mode is set for the Ethernet interface.

    By default, an Ethernet interface works in full-duplex mode.

Configuring the Rate for an Ethernet Interface

Context

For details about the rates that various Ethernet interfaces support, see Ethernet Interface Overview.

You can set the interface rate in either the auto-negotiation or non-auto negotiation mode.

  • In auto-negotiation mode, interfaces on both ends of a link negotiate their interface rates. You can set the auto-negotiation rate range to limit the negotiated rate. For example, if two interfaces negotiate to work at a rate of 100 Mbit/s, but they are required to work at a rate of 10 Mbit/s to prevent network traffic congestion, you can run the auto speed 10 command to set the rate of the interfaces to 10 Mbit/s.
  • In non-auto negotiation mode, you must set the rate for interfaces so that the two devices can communicate.
NOTE:
  • In auto-negotiation mode, you can set the rate only for electrical interfaces.
  • In non-auto negotiation mode, you can set the rate for electrical and optical interfaces.
  • The interfaces on both ends of a link must have the same rate.

Procedure
  • Configuring interface rate in auto-negotiation mode
    1. Run:
      system-view

      The system view is displayed.

    2. Run:
      interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run:
      auto speed { 10 | 100 | 1000 | 2500 }*

      The rate is set for the Ethernet interface.

    By default, interfaces on both ends of a link negotiate their interface rates.

  • Configuring the interface rate in the non-auto negotiation mode
    1. Run:
      system-view

      The system view is displayed.

    2. Run:
      interface interface-type interface-number

      The Ethernet interface view is displayed.

    3. Run:
      undo negotiation auto

      The Ethernet interface is configured to work in non-auto negotiation mode.

    4. Run:
      speed { 10 | 100 | 1000 | 2500 }

      The rate is set for the Ethernet interface.

    By default, an Ethernet interface works at the maximum rate.

Configuring Logs and Thresholds for Outbound and Inbound Bandwidth Usage

Context

The bandwidth usage represents the load on a device. If the bandwidth usage exceeds the threshold, bandwidth of the device is insufficient for services and needs expansion. For example, if the bandwidth usage exceeds 95%, an alarm is generated to indicate that bandwidth resources are used up. Services may be interrupted before system expansion. You can set the upper and lower thresholds for bandwidth usage. When the bandwidth usage exceeds the lower threshold, the system generates a log. When the bandwidth usage exceeds the upper threshold, the system triggers an alarm.

The lower threshold must be smaller than the upper threshold. For example, you can set the lower threshold to 80% and the upper threshold to 95%. When the bandwidth usage exceeds 80%, the system generates a log, alerting users that the system needs expansion. When the bandwidth usage exceeds 95%, the system generates an alarm to prevent service interruption.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed.

  3. Run:

    log-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]

    The log thresholds for the outbound or inbound bandwidth usage on the interface are configured.

    By default, the log thresholds of the outbound and inbound bandwidth usage are both 100.

    NOTE:

    Maintain a proper gap between the bandwidth-in-use and resume-threshold values to prevent log flapping.

  4. Run:

    trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate resume-threshold ]

    The alarm thresholds for the outbound or inbound bandwidth usage on the interface are configured.

    By default, the alarm thresholds of the outbound and inbound bandwidth usage are both 100.

    NOTE:

    Maintain a proper gap between the bandwidth-in-use and resume-threshold values to prevent alarm flapping.

Checking the Configuration

Procedure

  • Run the display interface [ interface-type [ interface-number ] ] command to check information about an interface, including interface running status, basic interface configuration, and packet transmitted through the interface.
  • Run the display interface brief [ main ] command to check brief information about interfaces, including the physical status, protocol status, bandwidth usage in the inbound and outbound directions during a certain period of time, and the number of error packets sent and received on each interface.
  • Run the display interface description [ interface-type [ interface-number ] ] command to check the interface description.
  • Run the display interface ethernet brief [ main ] command to check brief information about Ethernet interfaces, including the physical status, negotiation mode, duplex mode, rate, and average bandwidth usage in the inbound and outbound directions on each interface within the last period of time.
Translation
Download
Updated: 2019-01-11

Document ID: EDOC1000176006

Views: 116787

Downloads: 309

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next