03-Interface

HomeSupportConfigure & DeployConfiguration GuidesH3C Access Controllers Configuration Guides(E5208P03 E5215P01 R5215P01)-6W10203-Interface
02-Ethernet interface configuration
Title Size Download
02-Ethernet interface configuration 129.19 KB

Configuring Ethernet interfaces

Your device supports the following types of Ethernet interfaces:

·     Layer 2 Ethernet interfacesPhysical Ethernet interfaces operating at the data link layer (Layer 2) to switch packets.

·     Layer 3 Ethernet interfacesPhysical Ethernet interfaces operating at the network layer (Layer 3) to route packets. You can assign an IP address to a Layer 3 Ethernet interface.

·     Layer 3 Ethernet subinterfacesLogical interfaces operating at the network layer. You can assign an IP address to a Layer 3 Ethernet subinterface. To enable a Layer 3 Ethernet interface to transport packets for multiple VLANs, you must create Layer 3 subinterfaces on the Layer 3 Ethernet interface.

Configuring common Ethernet interface settings

This section describes the settings common to Layer 2 Ethernet interfaces, Layer 3 Ethernet interfaces, and Layer 3 Ethernet subinterfaces. For more information about the settings specific to Layer 3 Ethernet interfaces or subinterfaces, see "Configuring a Layer 3 Ethernet interface or subinterface."

Activating a combo interface (single combo interface)

The following matrix shows the feature and hardware compatibility:

 

Hardware series

Model

Feature compatibility

WX1800H series

WX1804H

WX1810H

WX1820H

No

WX2500H series

WX2510H

WX2540H

WX2560H

No

WX3000H series

WX3010H

WX3010H-X

WX3010H-L

WX3024H

WX3024H-L

WX3024H-F

No

WX3500H series

WX3508H

WX3510H

WX3520H

WX3540H

Yes

WX5500E series

WX5510E

Yes

WX5540E

No

WX5500H series

WX5540H

WX5560H

WX5580H

No

Access controller modules

EWPXM1MAC0F

EWPXM1WCME0

EWPXM2WCMD0F

LSQM1WCMX20

LSQM1WCMX40

LSUM1WCME0

LSUM1WCMX20RT

LSUM1WCMX40RT

No

 

 

NOTE:

The fiber or copper combo port of a combo interface is a Layer 2 Ethernet interface.

 

A combo interface is a logical interface that physically comprises one fiber combo port and one copper combo port. The two ports share one forwarding channel and one interface view. As a result, they cannot work simultaneously. When you activate one port, the other port is automatically disabled. In the interface view, you can activate the fiber or copper combo port, and configure other port attributes such as the interface rate and duplex mode.

When you activate the copper or fiber combo port of a combo interface, the following rules apply:

·     If you connect only the fiber port to its peer, the fiber combo port is activated.

·     If you connect only the copper port to its peer, the copper combo port is activated.

·     If you connect both the fiber port and the copper port to their peers separately, the fiber combo port is activated.

Configuring basic settings of an Ethernet interface or subinterface

 

NOTE:

The WX3010H and WX3024H devices do not support 100-Mbps half duplex mode.

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

·     Full-duplex mode—The interface can send and receive packets simultaneously.

·     Half-duplex modeThe interface can only send or receive packets at a given time.

·     Autonegotiation mode—The interface negotiates a duplex mode with its peer.

You can set the speed of an Ethernet interface or enable it to automatically negotiate a speed with its peer.

Configuring an Ethernet interface

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

1.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

2.     Set the description for the Ethernet interface.

description text

The default setting is interface-name Interface. For example, GigabitEthernet1/0/1 Interface.

3.     Set the duplex mode for the Ethernet interface.

duplex { auto | full | half }

By default:

·     The duplex mode is full for 10-GE interfaces.

·     The duplex mode is auto for other Ethernet interfaces.

Fiber ports do not support the half keyword.

4.     Set the speed for the Ethernet interface.

speed { 100 | 1000 | 10000 | auto }

By default, an Ethernet interface automatically negotiates a speed with its peer.

5.     Set the expected bandwidth for the Ethernet interface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

6.     Restore the default settings for the Ethernet interface.

default

N/A

7.     Bring up the Ethernet interface.

undo shutdown

The shutdown and loopback commands are exclusive with each other.

 

Configuring an Ethernet subinterface

When you configure an Ethernet subinterface, follow these restrictions and guidelines:

·     To transmit and receive packets through an Ethernet subinterface, you must associate it with a VLAN.

·     To transmit packets between a local Ethernet subinterface and a remote Ethernet subinterface, configure them with the same subinterface number and VLAN ID.

To configure an Ethernet subinterface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Create an Ethernet subinterface.

interface interface-type interface-number.subnumber

N/A

3.     Set the description for the Ethernet subinterface.

description text

The default setting is interface-name Interface. For example, GigabitEthernet1/0/1.1 Interface.

4.     Restore the default settings for the Ethernet subinterface.

default

N/A

5.     Set the expected bandwidth for the Ethernet subinterface.

bandwidth bandwidth-value

By default, the expected bandwidth (in kbps) is the interface baud rate divided by 1000.

6.     Bring up the Ethernet subinterface.

undo shutdown

The shutdown and loopback commands are exclusive with each other.

 

Configuring the link mode of an Ethernet interface

WARNING

CAUTION:

After you change the link mode of an Ethernet interface, all commands except the shutdown on the Ethernet interface are restored to their defaults in the new link mode.

 

The following matrix shows the feature and hardware compatibility:

 

Hardware series

Model

Link mode configuration compatibility

WX1800H series

WX1804H

WX1810H

WX1820H

Yes

WX2500H series

WX2510H

WX2540H

WX2560H

Yes

WX3000H series

WX3010H

WX3010H-X

WX3010H-L

WX3024H

WX3024H-L

WX3024H-F

No

WX3500H series

WX3508H

WX3510H

WX3520H

WX3540H

No

WX5500E series

WX5510E

WX5540E

No

WX5500H series

WX5540H

WX5560H

WX5580H

No

Access controller modules

EWPXM1MAC0F

EWPXM1WCME0

EWPXM2WCMD0F

LSQM1WCMX20

LSQM1WCMX40

LSUM1WCME0

LSUM1WCMX20RT

LSUM1WCMX40RT

No

 

Ethernet interfaces operate differently depending on the hardware structure of interface cards:

·     Some Ethernet interfaces can operate only as Layer 3 Ethernet interfaces (in route mode).

·     Some Ethernet interfaces can operate either as Layer 2 or Layer 3 Ethernet interfaces. You can set the link mode to bridge or route for these Ethernet interfaces.

To configure the link mode of an Ethernet interface:

 

Step

Command

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Configure the link mode of the Ethernet interface.

port link-mode { bridge | route }

 

Configuring jumbo frame support

An Ethernet interface might receive frames larger than the standard Ethernet frame size during high-throughput data exchanges, such as file transfers. These frames are called jumbo frames.

The Ethernet interface processes jumbo frames in the following ways:

·     When the Ethernet interface is configured to deny jumbo frames, the Ethernet interface discards jumbo frames.

·     When the Ethernet interface is configured with jumbo frame support, the Ethernet interface performs the following operations:

¡     Processes jumbo frames within the specified length.

¡     Discards jumbo frames that exceed the specified length.

To configure jumbo frame support in interface view:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Configure jumbo frame support.

jumboframe enable [ value ]

By default, the device allows jumbo frames within the specified length to pass through all Layer 2 Ethernet interfaces.

If you set the value argument multiple times, the most recent configuration takes effect.

 

Configuring dampening on an Ethernet interface

The interface dampening feature uses an exponential decay mechanism to prevent excessive interface flapping events from adversely affecting routing protocols and routing tables in the network. Suppressing interface state change events protects the system resources.

If an interface is not dampened, its state changes are reported. For each state change, the system also generates an SNMP trap and log message.

After a flapping interface is dampened, it does not report its state changes to the CPU. For state change events, the interface only generates SNMP trap and log messages.

Parameters

·     Penalty—The interface has an initial penalty of 0. When the interface flaps, the penalty increases by 1000 for each down event. It does not increase for up events.

·     CeilingThe penalty stops increasing when it reaches the ceiling.

·     Suppress-limitThe accumulated penalty that triggers the device to dampen the interface. In dampened state, the interface does not report its state changes to the CPU. For state change events, the interface only generates SNMP traps and log messages

·     Reuse-limit—When the accumulated penalty decreases to this reuse threshold, the interface is not dampened. Interface state changes are reported to the upper layers. For each state change, the system also generates an SNMP trap and log message.

·     DecayThe amount of time (in seconds) after which a penalty is decreased.

·     Max-suppress-timeThe maximum amount of time the interface can be dampened. If the penalty is still higher than the reuse threshold when this timer expires, the penalty stops increasing for down events.

The ceiling is equal to 2(Max-suppress-time/Decay)  × reuse-limit. It is not user configurable.

Figure 1 shows the change rule of the penalty value. The lines t0 and t2 indicate the start time and end time of the suppression, respectively. The period from t0 to t2 indicates the suppression period, t0 to t1 indicates the max-suppress-time, and t1 to t2 indicates the complete decay period.

Figure 1 Change rule of the penalty value

 

Configuration restrictions and guidelines

The dampening command does not take effect on the administratively down events. When you execute the shutdown command, the penalty restores to 0, and the interface reports the down event to the upper-layer protocols.

Configuration procedure

To configure dampening on an Ethernet interface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Enable dampening on the interface.

dampening [ half-life reuse suppress max-suppress-time ]

By default, interface dampening is disabled on Ethernet interfaces.

 

Enabling loopback testing on an Ethernet interface

CAUTION

CAUTION:

After you enable this feature on an Ethernet interface, the interface does not forward data traffic.

 

Perform this task to determine whether an Ethernet link works correctly.

Loopback testing includes the following types:

·     Internal loopback testing—Tests the device where the Ethernet interface resides. The Ethernet interface sends outgoing packets back to the local device. If the device fails to receive the packets, the device fails.

·     External loopback testing—Tests the inter-device link. The Ethernet interface sends incoming packets back to the remote device. If the remote device fails to receive the packets, the inter-device link fails.

Configuration restrictions and guidelines

·     The shutdown and loopback commands are exclusive with each other.

·     After you enable this feature on an Ethernet interface, the Ethernet interface switches to full duplex mode. After you disable this feature, the Ethernet interface restores to its duplex setting.

Configuration procedure

To enable loopback testing on an Ethernet interface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Enable loopback testing.

loopback { external | internal }

By default, loopback testing is disabled on an Ethernet interface.

 

Configuring generic flow control on an Ethernet interface

To avoid dropping packets on a link, you can enable generic flow control at both ends of the link. When traffic congestion occurs at the receiving end, the receiving end sends a flow control (Pause) frame to ask the sending end to suspend sending packets. Generic flow control includes the following types:

·     TxRx-mode generic flow control—Enabled by using the flow-control command. With TxRx-mode generic flow control enabled, an interface can both send and receive flow control frames:

¡     When congestion occurs, the interface sends a flow control frame to its peer.

¡     When the interface receives a flow control frame from its peer, it suspends sending packets to its peer.

·     Rx-mode generic flow control—Enabled by using the flow-control receive enable command. With Rx-mode generic flow control enabled, an interface can receive flow control frames, but it cannot send flow control frames:

¡     When congestion occurs, the interface cannot send flow control frames to its peer.

¡     When the interface receives a flow control frame from its peer, it suspends sending packets to its peer.

To handle unidirectional traffic congestion on a link, configure the flow-control receive enable command at one end and the flow-control command at the other end. To enable both ends of a link to handle traffic congestion, configure the flow-control command at both ends.

To enable generic flow control on an Ethernet interface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Enable generic flow control.

·     Enable TxRx-mode generic flow control:
flow-control

·     Enable Rx-mode generic flow control:
flow-control receive enable

By default, generic flow control is disabled on an Ethernet interface.

 

 Setting the statistics polling interval

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Set the statistics polling interval for the Ethernet interface.

flow-interval interval

By default, the statistics polling interval is 300 seconds.

 

To display the interface statistics collected in the last statistics polling interval, use the display interface command.

Configuring storm suppression

The following matrix shows the feature and hardware compatibility:

 

Hardware series

Model

Storm suppression compatibility

WX1800H series

WX1804H

WX1810H

WX1820H

No

WX2500H series

WX2510H

WX2540H

WX2560H

No

WX3000H series

WX3010H

WX3010H-X

WX3010H-L

WX3024H

WX3024H-L

WX3024H-F

Yes:

·     WX3010H

·     WX3024H

·     WX3024H-F

No:

·     WX3010H-X

·     WX3010H-L

·     WX3024H-L

WX3500H series

WX3508H

WX3510H

WX3520H

WX3540H

No

WX5500E series

WX5510E

WX5540E

No

WX5500H series

WX5540H

WX5560H

WX5580H

No

Access controller modules

EWPXM1MAC0F

EWPXM1WCME0

EWPXM2WCMD0F

LSQM1WCMX20

LSQM1WCMX40

LSUM1WCME0

LSUM1WCMX20RT

LSUM1WCMX40RT

No

 

The storm suppression feature ensures that the size of a particular type of traffic (broadcast, multicast, or unknown unicast traffic) does not exceed the threshold on an interface. When the broadcast, multicast, or unknown unicast traffic on the interface exceeds this threshold, the system discards packets until the traffic drops below this threshold.

Configuration restrictions and guidelines

The configured suppression threshold value in pps or kbps might be converted into a multiple of the step value supported by the chip. As a result, the effective suppression threshold might be different from the configured one. For information about the suppression threshold that takes effect, see the prompt on the device.

Configuration procedure

To set storm suppression thresholds on an Ethernet interface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Enable broadcast suppression and set the broadcast suppression threshold.

broadcast-suppression { ratio | pps max-pps | kbps max-kbps }

By default, broadcast suppression is disabled.

4.     Enable multicast suppression and set the multicast suppression threshold.

multicast-suppression { ratio | pps max-pps | kbps max-kbps }

By default, multicast suppression is disabled.

5.     Enable unknown unicast suppression and set the unknown unicast suppression threshold.

unicast-suppression { ratio | pps max-pps | kbps max-kbps }

By default, unknown unicast suppression is disabled.

 

Configuring a Layer 3 Ethernet interface or subinterface

The following matrix shows the feature and hardware compatibility:

 

Hardware series

Model

Layer 3 Ethernet interface/subinterface compatibility

WX1800H series

WX1804H

WX1810H

WX1820H

Yes

WX2500H series

WX2510H

WX2540H

WX2560H

Yes

WX3000H series

WX3010H

WX3010H-X

WX3010H-L

WX3024H

WX3024H-F

WX3024H-L

Yes:

·     WX3010H

·     WX3024H

·     WX3024H-F

No:

·     WX3010H-X

·     WX3010H-L

·     WX3024H-L

WX3500H series

WX3508H

WX3510H

WX3520H

WX3540H

No

WX5500E series

WX5510E

WX5540E

No

WX5500H series

WX5540H

WX5560H

WX5580H

No

Access controller modules

EWPXM1MAC0F

EWPXM1WCME0

EWPXM2WCMD0F

LSQM1WCMX20

LSQM1WCMX40

LSUM1WCME0

LSUM1WCMX20RT

LSUM1WCMX40RT

No

 

Setting the MTU for an Ethernet interface or subinterface

The maximum transmission unit (MTU) of an Ethernet interface affects the fragmentation and reassembly of IP packets on the interface. Typically, you do not need to modify the MTU of an interface.

To set the MTU for an Ethernet interface or subinterface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet interface or subinterface view.

interface interface-type { interface-number | interface-number.subnumber }

N/A

3.     Set the MTU of the Ethernet interface or subinterface.

mtu size

For information about the default MTU, see Interface Command Reference.

 

Setting the MAC address of an Ethernet interface or subinterface

In a network, when the Layer 3 Ethernet interfaces or subinterfaces of different devices have the same MAC address, the devices might fail to communicate correctly. To eliminate the MAC address conflicts, use the mac-address command to modify the MAC addresses of Layer 3 Ethernet interfaces or subinterfaces.

Additionally, when a Layer 3 Ethernet subinterface is created, it uses the MAC address of its main interface by default. As a result, all Layer 3 Ethernet subinterfaces of a Layer 3 Ethernet interface share the same MAC address. To set a different MAC address for a Layer 3 Ethernet subinterface, use the mac-address command.

To set the MAC address of a Layer 3 Ethernet interface or subinterface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Layer 3 Ethernet interface or subinterface view.

interface interface-type { interface-number | interface-number.subnumber }

N/A

3.     Set the MAC address of the Layer 3 Ethernet interface or subinterface.

mac-address mac-address

The default MAC address of a Layer 3 Ethernet interface varies by device model.

The default MAC address of a Layer 3 Ethernet subinterface is the same as the MAC address of its main interface.

 

Displaying and maintaining an Ethernet interface or subinterface

Execute display commands in any view and reset commands in user view.

 

Task

Command

Display interface traffic statistics.

display counters { inbound | outbound } interface [ interface-type [ interface-number | interface-number.subnumber ] ]

Display traffic rate statistics of interfaces in up state over the last statistics polling interval.

display counters rate { inbound | outbound } interface [ interface-type [ interface-number | interface-number.subnumber ] ]

Display the operational and status information of the specified interfaces.

display interface [ interface-type [ interface-number | interface-number.subnumber ] ] [ brief [ description | down ] ]

Display information about dropped packets on the specified interfaces.

display packet-drop { interface [ interface-type [ interface-number ] ] | summary }

Display the Ethernet statistics.

display ethernet statistics slot slot-number

Clear interface or subinterface statistics.

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

Clear the statistics of dropped packets on the specified interfaces.

reset packet-drop interface [ interface-type [ interface-number ] ]

Clear the Ethernet statistics.

reset ethernet statistics [ slot slot-number ]

 

  • 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
新华三官网