03-Interface Configuration Guide

HomeSupportResource CenterRoutersH3C SR6600-X Router SeriesH3C SR6600-X Router SeriesTechnical DocumentsConfigure & DeployConfiguration GuidesH3C SR6602-X Routers Configuration Guides-R7607-6W10003-Interface Configuration Guide
Table of Contents
Related Documents
02-Ethernet interface configuration
Title Size Download
02-Ethernet interface configuration 95.38 KB

Configuring Ethernet interfaces

Your device supports the following types of Ethernet interfaces:

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

·     Layer 3 Ethernet interfaces—Physical 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-configurable Ethernet interfaces—Physical Ethernet interfaces that can be configured to operate in bridge mode as Layer 2 Ethernet interfaces or in route mode as Layer 3 Ethernet interfaces.

·     Layer 3 Ethernet subinterfaces—Logical 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. For information about how a Layer 3 Ethernet subinterface sends and receives VLAN-tagged packets, see Layer 2—LAN Switching Configuration Guide.

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."

Ethernet interface naming conventions

In standalone mode, the Ethernet interfaces are named in the format of interface-type A/B/C, where:

·     A: Specifies a card by its slot number.

·     B: Specifies an interface module by its slot number on a card, which is fixed at 0.

·     C: Specifies an interface number.

In IRF mode, the Ethernet interfaces are named in the format of interface-type A/B/C/D, where:

·     A: Represents the member ID of the IRF member device, which can be 1 or 2.

·     B: Specifies a card by its slot number.

·     C: Specifies an interface module by its slot number on a card, which is fixed at 0.

·     D: Specifies an interface number.

Configuring a combo 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.

Configuration prerequisites

Before you configure combo interfaces, complete the following tasks:

·     Determine the combo interfaces on your device. Identify the two physical interfaces that belong to each combo interface according to the marks on the device panel.

·     Use the display interface command to determine which port (fiber or copper) of each combo interface is active:

¡     If the copper port is active, the output includes "Media type is twisted pair."

¡     If the fiber port is active, the output does not include this information.

Also, you can use the display this command in the view of each combo interface to display the combo interface configuration:

¡     If the fiber port is active, the combo enable fiber command exists in the output.

¡     If the copper port is active, the combo enable fiber command does not exist in the output.

Changing the active port of a combo 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.     Activate the copper combo port or fiber combo port.

combo enable { copper | fiber }

By default, the copper combo port is active.

 

Configuring the operating mode and related parameters for a 10-GE interface

Configuring the operating mode

10-GE interfaces support the following operating modes:

·     LAN mode—In LAN mode, a 10-GE interface transmits Ethernet packets and provides Ethernet network access.

·     WAN mode—In WAN mode, a 10-GE interface transmits SDH frames and provides SDH network access. In this mode, a 10-GE interface supports only point-to-point connections.

This feature is supported on the following interfaces:

·     10-GE interfaces on SR6602-X2.

·     10-GE interfaces on HIM-1EXP and HIM-2EXP interface modules.

A 10-GE interface operating in WAN mode encapsulates Ethernet packets in SDH frames. A 10G POS interface encapsulates PPP packets in SDH frames. However, they cannot communicate with each other because they encapsulate different kinds of packets.

To configure a 10-GE interface to operate in LAN or WAN mode:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter 10-GE interface view.

interface ten-gigabitethernet interface-number

N/A

3.     Configure the 10-GE interface to operate in LAN or WAN mode.

port-mode { lan | wan }

By default, a 10-GE interface operates in LAN mode.

 

Setting the J0 and J1 overhead bytes

The overhead bytes in SDH frames provide the operation and maintenance features such as hierarchical management of the transmission network. J0 and J1 bytes provide internetworking support between devices of different countries, regions, or vendors.

The Regenerator Section Trace byte J0 is usually configured as a section access point identifier. The sending end keeps the connection with the receiving end by sending this byte repeatedly.

The Path Trace byte J1 is usually configured as a high-order path access point identifier. J1 also enables two ends to keep their connection.

To ensure smooth communication, make sure the sending and receiving ends have the same J0 and J1 bytes.

To set the J0 and J1 overhead bytes:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter 10-GE interface view.

interface ten-gigabitethernet interface-number

N/A

3.     Configure the 10-GE interface to operate in WAN mode.

port-mode wan

By default, a 10-GE interface operates in LAN mode.

4.     Set the J0 and J1 bytes.

flag { j0 | j1 } sdh flag-value

By default, J0 and J1 bytes are padded with 0s.

 

Configuring basic settings of an Ethernet interface or subinterface

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 mode—The 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

2.     Enter Ethernet interface view.

interface interface-type interface-number

N/A

3.     Set the description for the Ethernet interface.

description text

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

4.     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.

10-GE interfaces only support the auto keyword.

5.     Set the speed for the Ethernet interface.

speed { 10 | 100 | 1000 | auto }

The default speed of an Ethernet interface is set to auto.

6.     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.

7.     Restore the default settings for the Ethernet interface.

default

N/A

8.     Bring up the Ethernet interface.

undo shutdown

By default, an Ethernet interface is enabled.

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. For more information, see Layer 2—LAN Switching Configuration Guide.

·     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/1/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

By default, an Ethernet subinterface is enabled.

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 and combo enable commands) on the Ethernet interface are restored to their defaults in the new link mode.

 

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 as follows:

·     Ethernet interfaces can operate as Layer 2 Ethernet interfaces (in bridge mode).

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

To configure the link mode of 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.     Configure the link mode of the Ethernet interface.

port link-mode { bridge | route }

By default, Ethernet interfaces operate as Layer 3 Ethernet interfaces (in route mode).

 

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 [ size ]

For information about the default jumbo frame support, see Interface Command Reference.

 

Configuring physical state change suppression on an Ethernet interface

IMPORTANT

IMPORTANT:

Do not enable this feature on an interface that has spanning tree protocols enabled.

 

The physical link state of an Ethernet interface is either up or down. Each time the physical link of an interface comes up or goes down, the interface immediately reports the change to the CPU. The CPU then performs the following operations:

·     Notifies the upper-layer protocol modules (such as routing and forwarding modules) of the change for guiding packet forwarding.

·     Automatically generates traps and logs to inform users to take the correct actions.

To prevent frequent physical link flapping from affecting system performance, configure physical state change suppression. You can configure this feature to suppress only link-down events, only link-up events, or both. If an event of the specified type still exists when the suppression interval expires, the system reports the event.

When you configure this feature, follow these guidelines:

·     To suppress only link-down events, configure the link-delay [ msec ] delay-time command.

·     To suppress only link-up events, configure the link-delay [ msec ] delay-time mode up command.

·     To suppress both link-down and link-up events, configure the link-delay [ msec ] delay-time mode updown command.

To configure physical state change suppression 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.     Configure physical state change suppression.

link-delay [ msec ] delay-time [ mode { up | updown }]

By default, physical state change suppression on an Ethernet interface is disabled.

 

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.

·     Ceiling—The penalty stops increasing when it reaches the ceiling.

·     Suppress-limit—The 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.

·     Decay—The amount of time (in seconds) after which a penalty is decreased.

·     Max-suppress-time—The 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

When you configure dampening on an Ethernet interface, follow these restrictions and guidelines:

·     The dampening command and the link-delay command cannot be configured together on an interface.

·     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.

·     Do not enable the dampening feature on an interface with MSTP enabled.

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 on an Ethernet interface is disabled.

 

Setting the statistics polling interval

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Set the statistics polling interval.

flow-interval interval

The default statistics polling interval for an interface is 300 seconds.

 

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

Enabling subinterface rate statistics collection on an Ethernet interface

IMPORTANT

IMPORTANT:

This feature is resource intensive. When you use this feature, make sure you fully understand its impact on system performance.

 

After you enable subinterface rate statistics collection on an Ethernet interface, the device periodically refreshes the rate statistics on the subinterfaces of this Ethernet interface. You can use the display interface command to display the subinterface rate statistics.

To enable subinterface rate statistics collection 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 subinterface rate statistics collection on the Ethernet interface.

sub-interface rate-statistic

By default, subinterface rate statistics collection is disabled on an Ethernet interface.

 

Configuring a Layer 3 Ethernet interface or subinterface

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

The default setting is 1500 bytes.

 

Changing the interface type

For interfaces on HIM-TS8P interface modules, you can change the interface type between POS and GigabitEthernet. When you change the interface type, the system removes the original interface, and then creates a new-type interface with the same number as the original interface.

Changing a Layer 3 GigabitEthernet interface to a standard POS interface

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Layer 3 GigabitEthernet interface view.

interface gigabitethernet interface-number

N/A

3.     Change the interface to a standard POS interface.

port-type switch pos

The device enters standard POS interface view automatically after you execute this command.

 

Changing a standard POS interface to a Layer 3 GigabitEthernet interface

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter standard POS interface view.

interface pos interface-number

N/A

3.     Change the interface to a Layer 3 GigabitEthernet interface.

port-type switch gigabitethernet

The device enters Layer 3 GigabitEthernet interface view automatically after you execute this command.

 

Enabling the traffic statistics feature on an Ethernet subinterface

This command is resource intensive. When you use this feature, make sure you fully understand its impact on system performance.

To enable the traffic statistics feature on an Ethernet subinterface:

 

Step

Command

Remarks

1.     Enter system view.

system-view

N/A

2.     Enter Ethernet subinterface view.

interface interface-type interface-number.subnumber

N/A

3.     Enable the traffic statistics feature on the Ethernet subinterface.

traffic-statistic enable

By default, the traffic statistics feature is disabled on an Ethernet subinterface.

4.     (Optional.) Display the traffic statistics for an Ethernet subinterface.

·     display interface

·     display counters

Use the Input or Output fields in the display interface command output or use the display counters command to display the traffic statistics for the Ethernet subinterface.

 

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 the Ethernet module statistics (in standalone mode).

display ethernet statistics slot slot-number

Display the Ethernet module statistics (in IRF mode).

display ethernet statistics chassis chassis-number slot slot-number

Clear interface or subinterface statistics.

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

Clear the Ethernet module statistics (in standalone mode).

reset ethernet statistics [ slot slot-number ]

Clear the Ethernet module statistics (in IRF mode).

reset ethernet statistics [ chassis chassis-number slot slot-number ]

 

 

 

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