Layer 2 - LAN Switching Configuration Guide

HomeSupportWirelessH3C WA2200 Series WLAN Access PointsConfigure & DeployConfiguration GuidesH3C WA Series WLAN Access Points Configuration Guide-6W100Layer 2 - LAN Switching Configuration Guide
02-Ethernet Interface Configuration
Title Size Download
02-Ethernet Interface Configuration 77.48 KB

l          The models listed in this document are not applicable to all regions. Please consult your local sales office for the models applicable to your region.

l          Support of the H3C WA series WLAN access points (APs) for features may vary by AP model. For more information, see Feature Matrix.

l          The interface types and the number of interfaces vary by AP model.

 

This chapter includes these sections:

l          General Ethernet Interface Configuration

l          Configuring a Layer 2 Ethernet Interface

l          Displaying and Maintaining an Ethernet Interface

General Ethernet Interface Configuration

Layer-2 Ethernet interfaces are physical interfaces operating at the data link layer, processing Layer-2 protocols, and implementing Layer-2 fast forwarding. This document describes Layer-2 Ethernet interface attributes and configuration on the AP.

Configuring Basic Settings of an Ethernet Interface

You can set an Ethernet interface to operate in one of the following duplex modes:

l          Full-duplex mode (full). Interfaces operating in this mode can send and receive packets simultaneously.

l          Half-duplex mode (half). Interfaces operating in this mode cannot send and receive packets simultaneously.

l          Auto-negotiation mode (auto). Interfaces operating in this mode negotiate a duplex mode with their peers.

Similarly, you can set the speed of an Ethernet interface or enable it to automatically negotiate a speed with its peer by using the speed auto command.

Follow these steps to configure the basic settings of an Ethernet interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet interface view

interface interface-type interface-number

Change the description of the interface

description text

Optional

By default, the description of an interface is the interface name followed by character string Interface. For example, Ethernet1/0/1 Interface.

Set the duplex mode

duplex { auto | full | half }

Optional

auto by default.

Optical interfaces do not support the half keyword.

Set the port speed

speed { 10 | 100 | 1000 | auto }

Optional

auto by default.

l      Optical interfaces do not support the 10 or 100 keyword.

l       Support for the 1000 keyword varies with AP models.

Shut down the Ethernet interface

shutdown

Optional

By default, an Ethernet interface is in the up state.

To bring up an Ethernet interface, use the undo shutdown command.

 

Configuring Flow Control on an Ethernet Interface

You can avoid packet drops on a link by enabling flow control at both ends of the link. When traffic congestion occurs at the receiving end, the receiving end sends a Pause frame to ask the sending end to suspend sending packets. In this way, flow control helps avoid packet drops.

Follow these steps to enable flow control on an Ethernet interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet interface view

interface interface-type interface-number

Enable flow control

flow-control

Required

Disabled by default

 

Configuring Loopback Testing on an Ethernet Interface

If an Ethernet interface does not work normally, you can enable loopback testing on it to identify the problem. There are two types of loopback testing:

l          Internal loopback testing, which tests all on-chip functions related to the Ethernet interfaces.

l          External loopback testing, which tests the hardware of Ethernet interfaces. To perform external loopback testing on an Ethernet interface, connect a loopback plug to the Ethernet interface. The AC sends test packets out the interface, which are expected to loop over the plug and back to the interface. If the interface fails to receive any test packet, the hardware of the interface is faulty.

Ethernet interfaces cannot forward data packets during loopback testing.

Follow these steps to enable loopback testing on an Ethernet interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet interface view

interface interface-type interface-number

Enable loopback testing

loopback { external | internal }

Optional

Disabled by default.

 

l          On an interface that is physically down, you can perform only internal loopback testing. On an interface administratively shut down, you can perform neither internal nor external loopback testing.

l          The speed, duplex, and shutdown commands are unavailable during loopback testing.

l          During loopback testing, an Ethernet interface works in full duplex mode. When you disable loopback testing, the duplex setting of the interface restores.

 

Configuring a Layer 2 Ethernet Interface

Layer 2 Ethernet Interface Configuration Task List

Complete these tasks to configure a Layer 2 Ethernet interface:

Task

Remarks

Configuring Storm Suppression

Optional

Applicable to Layer 2 Ethernet interfaces

Setting the Interface Statistics Polling Interval

Optional

Applicable to Layer 2 Ethernet interfaces

Enabling Loopback Detection on an Ethernet Interface

Optional

Applicable to Layer 2 Ethernet interfaces

Configuring Storm Suppression

You can use the storm suppression function to limit the size of a particular type of traffic (currently broadcast, multicast and unknown unicast traffic) on Ethernet interfaces in Ethernet interface view. When the broadcast, multicast, or unknown unicast traffic on the interface exceeds the threshold, the system discards packets until the traffic drops below the threshold.

Follow these steps to set storm suppression thresholds on an Ethernet interface:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter Ethernet interface view

interface interface-type interface-number

Settings made in Ethernet interface view take effect on the current interface only.

Set the broadcast storm suppression threshold

broadcast-suppression { ratio | pps max-pps }

Optional

By default, broadcast traffic is not suppressed.

Set the multicast storm suppression threshold

multicast-suppression { ratio | pps max-pps }

Optional

By default, multicast traffic is not suppressed.

Set the unknown unicast storm suppression threshold

unicast-suppression { ratio | pps max-pps }

Optional

By default, unknown unicast traffic is not suppressed.

 

Setting the Interface Statistics Polling Interval

Follow these steps to set the interface statistics polling interval:

To do…

Use the command…

Remarks

Enter system view

system-view

Set the interface statistics polling interval

flow-interval interval

Optional

The default interface statistics polling interval is 300 seconds

 

In system view, you configure a statistics polling interval for all interfaces.

 

Enabling Loopback Detection on an Ethernet Interface

If an interface receives a packet that it sent out, a loop has occurred. Loops may cause broadcast storms, which degrade network performance. You can enable loopback detection to detect loops on an interface and, if the interface supports the loopback-detection action command, configure the protective action to take on the interface when a loop is detected, for example, to shut down the interface. Depending on whether a protective action is configured, the AP takes the actions in Table 1-1 to alleviate the impact of the loop condition.

Table 1-1 Actions taken upon detection of a loop condition

Port type

Actions

No protective action configured

A protective action configured

Access port

l      Place the interface in controlled mode. The interface discards all incoming packets, but still forwards outgoing traffic.

l      Generate traps.

l      Delete all MAC address entries of the interface.

l      Perform the configured protective action.

l      Generate traps and log messages.

l      Delete all MAC address entries of the interface.

Hybrid or trunk port

l      Generate traps.

l      If loopback detection control is enabled, set the interface in controlled mode. The interface discards all incoming packets, but still forwards outgoing packets.

l      Delete all MAC address entries of the interface.

l      Create traps and log messages.

l      If loopback detection control is enabled, take the configured protective action on the interface.

l      Delete all MAC address entries of the interface.

 

Follow these steps to configure loopback detection:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable global loopback detection

loopback-detection enable

Required

Disabled by default

Set the loopback detection interval

loopback-detection interval-time time

Optional

30 seconds by default

Enter Ethernet interface view

interface interface-type interface-number

Enable loopback detection control on a trunk or hybrid port

loopback-detection control enable

Optional

Disabled by default

 

l          To use loopback detection on an Ethernet interface, you must enable the function both globally and on the interface.

l          To disable loopback detection on all interfaces, run the undo loopback-detection enable command in system view.

l          To enable a hybrid or trunk port to take the administratively specified protective action, you must perform the loopback-detection control enable command on the port.

 

Displaying and Maintaining an Ethernet Interface

To do…

Use the command…

Remarks

Display the current state of an interface and the related information

display interface [ interface-type [ interface-number | interface-number.subnumber ] ]

Available in any view

Display the summary information of an interface

display brief interface [ interface-type [ interface-number | interface-number.subnumber ] ] [ | { begin | exclude | include } regular-expression ]

Available in any view

Clear the statistics of an interface

reset counters interface [ interface-type [ interface-number | interface-number.subnumber ] ]

Available in user view

Display the information about the loopback function

display loopback-detection

Available in any view

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网