03-Interface Configuration Guide

HomeSupportRoutersCR16000-F SeriesConfigure & DeployConfiguration GuidesH3C CR16000-F Routers Configuration Guides-R838x-6W10103-Interface Configuration Guide
02-Ethernet interface configuration
Title Size Download
02-Ethernet interface configuration 391.77 KB

Contents

Configuring Ethernet interfaces· 1

About Ethernet interface· 1

Enabling SNMP interface index constancy· 1

Configuring a management Ethernet interface· 1

Configuring common Ethernet interface settings· 3

Ethernet interface naming conventions· 3

Configuring the physical type for a combo interface (single combo interface) 3

Splitting a 40-GE interface and combining 10-GE breakout interfaces· 4

Changing the interface type of a 100-GE interface· 5

Changing the interface type of a 10-GE interface· 6

Configuring the operating mode for a 10-GE interface· 7

Configuring the framing format for a 10-GE interface operating in WAN mode· 7

Setting the J0 and J1 overhead bytes for a 10-GE interface· 8

Configuring basic settings of an Ethernet interface· 8

Configuring basic settings of an Ethernet subinterface· 11

Configuring the link mode of an Ethernet interface· 12

Configuring jumbo frame support 13

Configuring physical state change suppression on an Ethernet interface· 13

Configuring dampening on an Ethernet interface· 14

Enabling link flapping protection on an interface· 16

Configuring FEC· 17

Configuring link compensation· 17

Configuring generic flow control on an Ethernet interface· 18

Configuring PFC on an inner interface· 18

Setting the statistics polling interval 19

Enabling interframe gap and preamble statistics in the traffic statistics· 20

Enabling loopback testing on an Ethernet interface· 21

Configuring interface alarm functions· 22

Enabling card alarm functions· 26

Displaying the operating status and information of an interface· 27

Shutting down all physical interfaces· 27

Restoring the default settings for an interface· 28

Configuring a Layer 3 Ethernet interface· 28

Enabling Layer 2 forwarding on an interface· 28

Setting the MTU for an Ethernet interface or subinterface· 30

Setting the MAC address of an Ethernet interface· 31

Changing the interface type· 32

Enabling packet statistics collection on a Layer 3 Ethernet subinterface· 33

Display and maintenance commands for an Ethernet interface or subinterface· 33

 


Configuring Ethernet interfaces

About Ethernet interface

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.

Enabling SNMP interface index constancy

About this task

For an application that uses interface indexes for billing, the interface indexes must be constant. You can enable SNMP interface index constancy to make the interface indexes not being affected by adding or deleting interfaces, system reboots, and software or hardware changes. With this command configured, indexes of both the existing interfaces and newly created interfaces are constant.

Restrictions and guidelines

Before rebooting the system, execute the save command first. Otherwise, interface indexes on the device might change after the reboot.

Procedure

1.     Enter system view.

system-view

2.     Enable SNMP interface index constancy.

ifindex-constant enable [ file filename ]

By default, SNMP interface index constancy is disabled.

3.     Set the maximum number of constant interface indexes.

ifindex-constant max-number number

By default, the maximum number of constant interface indexes is 131070.

Configuring a management Ethernet interface

About this task

A management interface uses an RJ-45/LC connector. You can connect the interface to a PC for software loading and system debugging, or connect it to a remote NMS for remote system management.

In standalone mode:

Each MPU on a device has a management Ethernet interface. For management link backup, perform the following tasks:

1.     Connect your PC to the management Ethernet interface on the active MPU.

2.     Connect the PC to a management Ethernet interface with the same interface number on a standby MPU.

3.     The two management Ethernet interfaces operate as follows:

¡     When the device has multiple management Ethernet interfaces, only the management Ethernet interface on the active MPU processes management traffic.

¡     When the management Ethernet interface on the active MPU fails, the management Ethernet interface on the standby MPU takes over to process management traffic.

¡     When the management Ethernet interface on the active MPU recovers, it takes over to process management traffic again.

In IRF mode:

Each MPU in an IRF system has a management Ethernet interface. For management link backup, perform the following tasks:

1.     Connect your PC to the management Ethernet interface on the global active MPU.

2.     Connect the PC to a management Ethernet interface with the same interface number on a global standby MPU.

3.     The two management Ethernet interfaces operate as follows:

¡     When the IRF system has multiple management Ethernet interfaces, only the management Ethernet interface on the global active MPU processes management traffic.

¡     When the management Ethernet interface on the global active MPU fails, the management Ethernet interface on the global standby MPU takes over to process management traffic.

¡     When the management Ethernet interface on the global active MPU recovers, it takes over to process management traffic again.

Procedure

1.     Enter system view.

system-view

2.     Enter management Ethernet interface view.

interface m-gigabitethernet interface-number

3.     (Optional.) Set the interface description.

description text

The default setting is M-GigabitEthernet0/0/0 Interface.

4.     (Optional.) Set the duplex mode for the management Ethernet interface.

duplex { auto | full | half }

By default, the duplex mode is auto for a management Ethernet interface.

5.     (Optional.) Set the speed for the management Ethernet interface.

speed { 10 | 100 | 1000 | auto }

By default, the speed is auto for a management Ethernet interface.

6.     (Optional.) Shut down the management Ethernet interface.

shutdown

By default, the management Ethernet interface is up.

 

CAUTION

CAUTION:

Executing the shutdown command on an interface will disconnect the link of the interface and interrupt communication. Use this command with caution.

Configuring common Ethernet interface settings

Ethernet interface naming conventions

When the device is operating in standalone mode, the Ethernet interfaces are named in the format of interface type A/B/C. The letters that follow the interface type represent the following elements:

·     A—Card slot number.

·     B—Subcard slot number. If no subcard exists in the card, the value is fixed at 0.

·     C—Port index.

When the device is operating in IRF mode, the Ethernet interfaces are named in the format of interface type A/B/C/D. The letters that follow the interface type represent the following elements:

·     A—IRF member ID, in the range of 1 to 4.

·     B—Card slot number.

·     C—Subcard slot number. If no subcard exists in the card, the value is fixed at 0.

·     D—Port index.

Configuring the physical type for a combo interface (single combo interface)

About this task

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.

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, Port hardware type is 1000_BASE_T."

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

Restrictions and guidelines

Follow these restrictions when you activate the fiber combo port of a combo interface:

·     On a MIC-GP4L interface subcard in a CSPEX-1104-E or CSPEX-1204 card, the fiber combo port of a combo interface does not support 100-Mbps transceiver modules, 100/1000-Mbps transceiver modules, or fiber-to-copper converters.

·     On a MIC-GP4L interface subcard in any other CSPEX card, the fiber combo port of a combo interface does not support 100-Mbps transceiver modules or fiber-to-copper converters.

·     On other interface subcards, the fiber combo port of a combo interface does not support 100-Mbps transceiver modules, 100/1000-Mbps transceiver modules, or fiber-to-copper converters.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Activate the copper combo port or fiber combo port.

combo enable { copper | fiber }

By default, the copper combo port is active.

Splitting a 40-GE interface and combining 10-GE breakout interfaces

About this task

You can use a 40-GE interface as a single interface. To improve port density, reduce costs, and improve network flexibility, you can also split a 40-GE interface into four 10-GE breakout interfaces. The 10-GE breakout interfaces support the same configuration and attributes as common 10-GE interfaces, except that they are numbered differently.

For example, you can split 40-GE interface FortyGigE 3/1/1 into four 10-GE breakout interfaces Ten-GigabitEthernet 3/1/1:1 through Ten-GigabitEthernet 3/1/1:4.

If you need higher bandwidth on a single interface, you can combine the four 10-GE breakout interfaces into a 40-GE interface.

Restrictions and guidelines for 40-GE interface splitting and 10-GE breakout interface combining

This feature is supported only on MIC-QP1L subcards.

A 40-GE interface split into four 10-GE breakout interfaces must use a dedicated 1-to-4 cable. After you combine the four 10-GE breakout interfaces, replace the dedicated 1-to-4 cable with a dedicated 1-to-1 cable or a 40-GE transceiver module. For more information about the cable or transceiver module, see the installation guides.

Splitting a 40-GE interface into four 10-GE breakout interfaces

1.     Enter system view.

system-view

2.     Enter 40-GE interface view.

interface interface-type interface-number

3.     Split the 40-GE interface into four 10-GE breakout interfaces.

using tengige

By default, a 40-GE interface is not split and operates as a single interface.

Combining four 10-GE breakout interfaces into a 40-GE interface

1.     Enter system view.

system-view

2.     Enter the view of any 10-GE breakout interface.

interface interface-type interface-number

3.     Combine the four 10-GE breakout interfaces into a 40-GE interface.

using fortygige

By default, a 10-GE breakout interface operates as a single interface.

Changing the interface type of a 100-GE interface

About this task

To improve network flexibility, you can change a 100-GE interface to a 40-GE interface. For example, you can change 100-GE interface HundredGigE 3/1/1 to 40-GE interface FortyGigE 3/1/1. The 40-GE interface changed from a 100-GE interface supports the same attributes as common 40-GE interfaces.

If you need higher bandwidth, you can restore a 40-GE interface that was changed from a 100-GE interface to a 100-GE interface.

Restrictions and guidelines for interface change between 100-GE interface and 40-GE interface

This feature is supported only on CEPC-CP4RX-L cards, MIC-CQ1L1, MIC-CQ1L2, and MIC-CQ2L subcards.

A 100-GE interface that was changed to a 40-GE interface must use a 40-GE transceiver module. After you restore the 40-GE interface to a 100-GE interface, replace the 40-GE transceiver module with a 100-GE transceiver module. For more information about the transceiver module, see the installation guides.

Changing a 100-GE interface to a 40-GE interface

1.     Enter system view.

system-view

2.     Enter 100-GE interface view.

interface interface-type interface-number

3.     Change the 100-GE interface to a 40-GE interface.

using fortygige

By default, a 100-GE interface is not changed to a 40-GE interface.

Restoring a 40-GE interface that was changed from a 100-GE interface to a 100-GE interface

1.     Enter system view.

system-view

2.     Enter the view of a 40-GE interface that was changed from a 100-GE interface.

interface interface-type interface-number

3.     Restore the 40-GE interface to a 100-GE interface.

using hundredgige

By default, a 100-GE interface is not changed to a 40-GE interface.

Changing the interface type of a 10-GE interface

About this task

Change a 10-GE interface to a GE interface when either of the following conditions exists:

·     The peer is a GE interface.

·     No 10-GE transceiver module is available, and GE transceiver modules are available.

If you need higher bandwidth, you can restore a GE interface that was changed from a 10-GE interface to a 10-GE interface.

Restrictions and guidelines for interface change between 10-GE interface and GE interface

After you configure this command, it takes effect immediately. Before you reboot the device, save the configuration.

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X

SPE

RX-SPE200

 

Only the following interfaces support this feature:

·     All interfaces on MIC-XP2L, MIC-XP2L-LAN, MIC-XP4L1, MIC-XP20L, MIC-XP20LA, NIC-XP10L, NIC-XP20L, RX-NIC-XP5L, RX-NIC-XP10L, and RX-NIC-XP20L interface subcards.

·     The last four interfaces on MIC-XP5L, MIC-XP5L1, and MIC-XP5L2 interface subcards.

The system changes the type for two interfaces in a group. You can obtain the interface numbers from the device prompt information. A port group that contains an aggregation group member port does not support this feature.

Do not change the type for the card in a subslot with this command configured.

Do not configure this command for the interfaces on the cards that have physical IRF ports.

Upon a successful operation, the interface is restored to a Layer 3 Ethernet interface. To change the interface to a GE interface, you can set the speed to only 1000 Mbps.

Changing a 10-GE interface to a GE interface

1.     Enter system view.

system-view

2.     Enter 10-GE interface view.

interface ten-gigabitethernet interface-number

3.     Change the 10-GE interface to a GE interface.

using gigabit

By default, a 10-GE interface is not changed to a GE interface.

Restoring a GE interface that was changed from a 10-GE interface to a 10-GE interface

1.     Enter system view.

system-view

2.     Enter the view of a GE interface that was changed from a 10-GE interface.

interface gigabitethernet interface-number

3.     Restore the GE interface to a 10-GE interface.

using tengige

By default, a GE interface is not changed to a 10-GE interface.

Configuring the operating mode for a 10-GE interface

About this task

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.

Restrictions and guidelines

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.

Only interfaces on a MIC-XP2L, MIC-XP4L1, MIC-XP5L1, MICXP5L2, MIC--XP8L, MIC-XP20L, MIC-XP20LA, NIC-XP5L, NIC-XP10L, NIC-XP20L, NIC-XP20L1, PIC-XP1L, RX-NIC-XP5L, RX-NIC-XP10L, or RX-NIC-XP20L subcard and the last four interfaces on a MIC-XP5L interface subcard support this command.

10-GE interfaces on a MIC-XP2L, MIC-XP4L1, MIC-XP5L, MIC-XP5L1, or MIC-XP5L2subcard installed in a CSPEX-2304X-G card do not support the WAN mode.

10-GE interfaces on an NIC-XP5L, NIC-XP10L, or NIC-XP20L subcard installed in a CSPEX-1802XA or CSPEX-2612XA card do not support the WAN mode.

Procedure

1.     Enter system view.

system-view

2.     Enter 10-GE interface view.

interface ten-gigabitethernet interface-number

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.

Configuring the framing format for a 10-GE interface operating in WAN mode

About this task

SDH and SONET are two optical transmission standards. They are made by different organizations. They are similar in substantial contents and major specifications but different in some detailed technical parameters. However, they have different application scopes, and devices from different vendors have different default values. Configure the same framing format as that of the transmission device.

Procedure

1.     Enter system view.

system-view

2.     Enter 10-GE interface view.

interface ten-gigabitethernet interface-number

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

port-mode { lan | wan }

By default, an interface operates in WAN mode.

4.     Configure the framing format for the 10-GE interface operating in WAN mode.

frame-format sdh

By default, the framing format of a 10-GE interface is SDH.

Setting the J0 and J1 overhead bytes for a 10-GE interface

About this task

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 ensure smooth communication, make sure the sending and receiving ends have the same J0 and J1 bytes.

Procedure

1.     Enter system view.

system-view

2.     Enter 10-GE interface view.

interface ten-gigabitethernet interface-number

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 in SDH frames.

flag { j0 | j1 } sdh flag-value

By default, the J0 byte is CR16000.

Configuring basic settings of an Ethernet interface

About this task

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.

Restrictions and guidelines

The shutdown and loopback commands are mutually exclusive.

When a MIC-XP2L, MIC-XP2L-LAN, or MIC-XP4L1 subcard is installed in a CSPEX-1104-E card and a 10-GE interface on the subcard has a 1-Gbps transceiver module installed, set the duplex mode to full and speed to 1000 for both the local and remote interfaces.

When you configure the duplex mode, follow these restrictions and guidelines:

·     Fiber ports do not support the half keyword.

·     When a subcard is installed in a CSPEX-1104-E or CSPEX-1204 card, copper ports on the subcard do not support the half duplex mode. When a subcard is installed in any other CSPEX card, only copper ports on a MIC-GP4L subcard support the half duplex mode.

·     A GE interface on a MIC subcard in a CSPEX-1204 card does not support the full or half duplex mode when operating at 10 Mbps or 100 Mbps.

Follow these restrictions and guidelines when you set the speed for a 10-GE subcard installed in a CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, RX-SPE200 card:

·     Only MIC-XP2L, MIC-XP2L-LAN, MIC-XP4L1, MIC-XP5L, MIC-XP5L1, MIC-XP5L2, MIC-XP20L, MIC-XP20LA, NIC-XP10L, NIC-XP20L, and NIC-XP20L1 subcards support switching over the speed to 1000 Mbps and 10000 Mbps.

·     After the speed auto command is executed on the following subcards, the speed can be autonegotiated to 10 Mbps, 100 Mbps, or 1000 Mbps:

MIC-XP2L, MIC-XP2L-LAN, MIC-XP4L1, MIC-XP5L, MIC-XP5L1, MIC-XP5L2, MIC-XP20L, MIC-XP20LA, NIC-XP10L, and NIC-XP20L.

·     After the speed auto command is executed on NIC-XP20L1 subcards, the speed can be autonegotiated to 10 Mbps, 100 Mbps, 1000 Mbps, or 10000 Mbps.

·     On a MIC-XP2L or MIC-XP2L-LAN subcard, port 1 and port 2 form an interface group. When the interface group performs a speed switchover, the switchover applies to all ports in the interface group.

·     On a MIC-XP4L1 subcard, port 1 and port 3 form an interface group, while port 2 and port 4 form an interface group. When an interface group performs a speed switchover, the switchover applies to all ports in the interface group.

·     On a MIC-XP5L, MIC-XP5L1, or MIC-XP5L2 subcard, port 2 and port 4 form an interface group, while port 3 and port 5 form an interface group. Port 1 does not support the speed switchover. When an interface group performs a speed switchover, the switchover applies to all ports in the interface group.

·     On a MIC-XP20L or MIC-XP20LAsubcard, each of the following pairs of ports forms an interface group:

¡     Port 1 and port 2.

¡     Port 3 and port 4.

¡     Port 5 and port 6.

¡     Port 7 and port 8.

¡     Port 9 and port 10.

¡     Port 11 and port 12.

¡     Port 13 and port 14.

¡     Port 15 and port 16.

¡     Port 17 and port 18.

¡     Port 19 and port 20.

When an interface group performs a speed switchover, the switchover applies to all ports in the interface group.

·     On an NIC-XP10L subcard, each of the following pairs of ports forms an interface group:

¡     Port 1 and port 2.

¡     Port 3 and port 4.

¡     Port 5 and port 6.

¡     Port 7 and port 8.

¡     Port 9 and port 10.

When an interface group performs a speed switchover, the switchover applies to all ports in the interface group.

·     On an NIC-XP20L subcard, each of the following pairs of ports forms an interface group:

¡     Port 1 and port 4.

¡     Port 2 and port 6.

¡     Port 3 and port 7.

¡     Port 5 and port 8.

¡     Port 9 and port 12.

¡     Port 10 and port 11.

¡     Port 13 and port 16.

¡     Port 14 and port 15.

¡     Port 17 and port 20.

¡     Port 18 and port 19.

When an interface group performs a speed switchover, the switchover applies to all ports in the interface group.

·     NIC-XP20L1 subcards support speed switchovers by single port.

Follow these restrictions and guidelines when you set the speed for a 10-GE subcard installed in a CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA, CSPEX-2612XA, and RX-SPE200-E card:

·     Only NIC-XP20L1 subcards support switching over the speed to 1000 Mbps and 10000 Mbps.

·     After the speed auto command is executed on NIC-XP20L1 subcards, the speed can be autonegotiated to 10 Mbps, 100 Mbps, 1000 Mbps, or 10000 Mbps.

·     NIC-XP20L1 subcards support speed switchovers by single port.

The speeds of GE interfaces on the PIC-TCP8L subcards can only be autonegotiated and can only be autonegotiated to 1000 Mbps.

Follow these restrictions and guidelines when you set the speed for an NIC-XP5L, NIC-XP10L, or NIC-XP20L subcard installed in a CSPEX-1802XA or CSPEX-2612XAcard:

·     NIC-XP5L subcards can only operate at a 10000 Mbps speed.

·     To switch over the speed to 1000 Mbps or 10000 Mbps on an NIC-XP10L or NIC-XP20L subcard, use the speed 1000, speed 10000, using gigabit, or using tengige command. You cannot use the speed auto command to configure autonegotiation for an NIC-XP10L or NIC-XP20L subcard.

·     NIC-XP10L and NIC-XP20L subcards cannot operate at a 10 Mbps or 100 Mbps speed.

When you configure the speed, follow these restrictions and guidelines:

·     40-GE and 100-GE interfaces can only operate at their highest speed.

·     For interfaces on a MIC subcard in a CSPEX-1104-E or CSPEX-1204 card, the speed can be set to only 1000Mbps or auto.

·     In a CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1502XA, CSPEX-1504X, CSPEX-1504XA, CSPEX-1512X, CSPEX-1602X, CSPEX-1602XA, CSPEX-1612X, CSPEX-1802XA, CSPEX-1804X, CSPEX-1812X, CSPEX-2612XA, RX-SPE200, RX-SPE200-E card, if interfaces on a 10-GE interface subcard that support changing the speed are configured to autonegotiate the speed (auto), only interfaces on a NIC-XP20L1 subcard support 10-GE transceiver modules.

·     An interface on a 10-GE interface subcard in a CSPEX-2304X-G card that is changed to a GE interface does not support autonegotiation. You can change its speed by only setting its speed to 1000 Mbps.

You can change an interface on a MIC-CQ1L2 subcard into a 40-GE or 100-GE interface. The interface supports only the full duplex mode.

Ethernet interfaces on a subcard in a CSPEX-2304X-G card can operate at a minimum speed of 1000 Mbps. The interfaces do not support the half duplex mode.

The default duplex mode and speed for the management interface on a CSR05SRP1R3 or CSR05SRP1P3-G MPU are both auto. You cannot use the duplex or speed command to change the duplex mode or speed.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Set the description for the Ethernet interface.

description text

The default setting is interface-name Interface. For example, Ten-GigabitEthernet3/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, 40-GE, and 100-GE interfaces.

¡     The duplex mode is auto for other Ethernet interfaces.

5.     Set the speed for the Ethernet interface.

speed { 10 | 100 | 1000 | 10000 | 25000 | 40000 | 50000 | 100000 | auto }

The default speed setting is auto for a GE interface, and 100000 for a 10-GE, 40-GE, or 100-GE interface.

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.     Bring up the Ethernet interface.

undo shutdown

By default, an Ethernet interface is up.

Configuring basic settings of an Ethernet subinterface

About this task

By default, a Layer 3 Ethernet subinterface processes packets for only the VLAN whose ID is the same as the subinterface number.

Restrictions and guidelines for Ethernet subinterface basic settings

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.

The shutdown command cannot be executed on an Ethernet interface in a loopback test.

Procedure

1.     Enter system view.

system-view

2.     Create an Ethernet subinterface.

interface interface-type interface-number.subnumber

3.     Set the description for the Ethernet subinterface.

description text

The default setting is interface-name Interface. For example, Ten-GigabitEthernet3/1/1.1 Interface.

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

5.     Bring up the Ethernet subinterface.

undo shutdown

By default, an Ethernet subinterface is up.

Configuring the link mode of an Ethernet interface

About this task

Perform this task to set the link mode for interfaces at CLI.

Procedure

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 }

By default, an Ethernet interface operates in Layer 3 mode.

 

CAUTION

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.

Configuring jumbo frame support

About this task

Jumbo frames are frames larger than a fixed size and are typically received by an Ethernet interface during high-throughput data exchanges, such as file transfers.

The Ethernet interface processes jumbo frames in the following ways:

·     When you configure the Ethernet interface to deny jumbo frames by using the undo jumboframe enable command, the Ethernet interface discards jumbo frames.

·     When you configure the Ethernet interface 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.

Restrictions and guidelines

This feature is not available for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA, CSPEX-2612XA

SPE

RX-SPE200, RX-SPE200-E

 

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Configure jumbo frame support.

jumboframe enable [ size ]

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

If you execute this command multiple times, the most recent configuration takes effect.

Configuring physical state change suppression on an Ethernet interface

About this task

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 to the CPU.

Restrictions and guidelines

MIC-GP4L subcards installed in CSPEX-2304X-G cards do not support this feature.

As a best practice, do not enable this feature on an interface that has spanning tree protocols enabled.

The link-delay, dampening, and port link-flap protect enable commands are mutually exclusive on an Ethernet interface.

You can configure different suppression intervals for link-up and link-down events.

If you execute the link-delay command multiple times on an interface, the following rules apply:

·     You can configure the suppression intervals for link-up and link-down events separately.

·     If you configure the suppression interval multiple times for link-up or link-down events, the most recent configuration takes effect.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Configure physical state change suppression.

link-delay { down | up } [ msec ] delay-time

By default, physical state change suppression for link-down events is not configured. The physical state change suppression time for link-up events is one second.

Configuring dampening on an Ethernet interface

About this task

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 until the ceiling is reached. It does not increase for up events. When the interface stops flapping, the penalty decreases by half each time the half-life timer expires until the penalty drops to the reuse threshold.

·     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 penalty starts to decrease until it drops below the reuse threshold.

When configuring the dampening command, follow these rules to set the values mentioned above:

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

·     The configured suppress limit is lower than or equal to the ceiling.

·     The ceiling is lower than or equal to the maximum suppress limit supported.

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

Restrictions and guidelines

The dampening and port link-flap protect enable commands are mutually exclusive on an Ethernet 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.

As a best practice, do not enable the dampening feature on an interface with MSTP enabled.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Enable dampening on the interface.

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

By default, interface dampening is disabled on Ethernet interfaces.

Enabling link flapping protection on an interface

About this task

Link flapping on an interface changes network topology and increases the system overhead. For example, in an active/standby link scenario, when interface status on the active link changes between UP and DOWN, traffic switches between active and standby links. To solve this problem, configure this feature on the interface.

With this feature enabled on an interface, when the interface goes down, the system enables link flapping detection. During the link flapping detection interval, if the number of detected flaps reaches or exceeds the link flapping detection threshold, the system shuts down the interface.

Restrictions and guidelines

This feature takes effect only if it is configured in both the system view and interface view.

IRF system stability might be affected by IRF physical link flapping. For IRF system stability, this feature is enabled by default on IRF physical interfaces and the enabling status of this feature is not affected by the status of global link flapping protection. When the number of flaps detected on an IRF physical interface exceeds the threshold within the detection interval, the device outputs a log rather than shuts down the IRF physical interface.

The dampening and port link-flap protect enable commands are mutually exclusive on an Ethernet interface.

To bring up an interface that has been shut down by link flapping protection, execute the undo shutdown command.

In the display interface command output, the Link-Flap DOWN value of the Current state field indicates that the interface has been shut down by link flapping protection.

Procedure

1.     Enter system view.

system-view

2.     Enable link flapping protection globally.

link-flap protect enable

By default, link flapping protection is disabled globally.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Enable link flapping protection on the Ethernet interface.

port link-flap protect enable [ interval interval | threshold threshold ] *

By default, link flapping protection is disabled on an Ethernet interface.

Configuring FEC

About this task

The forward error correction (FEC) feature corrects packet errors to improve transmission quality. It attaches correction information to a packet at the sending end, and corrects error codes generated during transmission at the receiving end based on the correction information. You can set the FEC mode as needed.

Restrictions and guidelines

This feature is supported only on 25-GE interfaces and 100-GE interfaces.

Make sure you set the same FEC mode for both interfaces of a link.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Set the FEC mode of the Ethernet interface.

port fec mode { auto | base-r | none | rs-fec }

By default, the FEC mode of an Ethernet interface is autonegotiated.

The base-r keyword is not supported on 100-GE interfaces.

Configuring link compensation

About this task

As the signal transmission rate or frequency increases, high frequency components in signals attenuate more severely. For signal transmission performance, common signal compensation technologies such as pre-emphasis and equalization are introduced. Pre-emphasis amplifies high frequency components but increases the probability of crosstalk. Equalization is introduced to filter out high frequency crosstalk on the receiving end.

Link compensation enables the sending and receiving ends to exchange pre-emphasis and equalization parameters through frames. This feature improves the performance of pre-emphasis and equalization.

Restrictions and guidelines

This feature is supported only on 25-GE connected through copper cables.

You must enable or disable link compensation on both interfaces of a link.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Configure link compensation on the interface.

port training enable

By default, link compensation is disabled on an interface.

Configuring generic flow control on an Ethernet interface

About this task

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.

Restrictions and guidelines

This feature is not supported on Ethernet interfaces on a MIC subcard in a CSPEX-1104-E, CSPEX-1204, or CSPEX-2304X-G card.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

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.

Configuring PFC on an inner interface

About this task

An inner interface is the inner Ethernet interface through which a card communicates with the device, and is invisible for users.

With PFC enabled on an inner interface, when the traffic from an LPU to a switching fabric module is congested, the inner interface on the switching fabric module sends PFC pause frames to the inner interface on the LPU to notify the LPU to stop sending packets to the switching fabric module. When congestion is eliminated, the inner interface on the switching fabric module notifies the LPU to continue to send packets to the switching fabric module. This rule also applies to the traffic from a switching fabric module to an LPU.

When congestion occurs in the network, the local device notifies the peer to stop sending packets carrying the specified 802.1p priority if all of the following conditions exist:

·     Both the local inner interface and the remote inner interface have priority-based flow control (PFC) enabled.

·     Both the local inner interface and the remote inner interface have the priority-flow-control inner-port no-drop command configured.

·     The specified 802.1p priority is in the 802.1p priority list specified by the dot1p-list argument.

·     The local inner interface receives a packet carrying the specified 802.1p priority.

For more information about 802.1p priorities, see ACL and QoS Configuration Guide.

Make sure all interfaces that a data flow passes through have the same PFC configuration.

Table 1 PFC configurations and negotiation results

Local (right)

Peer (below)

enable

auto

Default

enable

Enabled

Enabled.

Disabled

auto

Enabled

·     Enabled if negotiation succeeds.

·     Disabled if negotiation fails.

Disabled

Default

Disabled

Disabled.

Disabled

Restrictions and guidelines

This feature is supported when the device is only installed with type B or type D switching fabric modules.

In IRF mode, this feature is supported only when the incoming interface and outgoing interface are on the same IRF member device.

Procedure

1.     Enter system view.

system-view

2.     Enable PFC on inner interfaces.

priority-flow-control inner-port { auto | enable }

By default, PFC is disabled on inner interfaces.

An inner interface is the inner Ethernet interface through which a card communicates with the device, and is invisible to users.

3.     Enable PFC for 802.1p priorities on inner interfaces.

priority-flow-control inner-port no-drop dot1p dot1p-list

By default, PFC is disabled for all 802.1p priorities.

Setting the statistics polling interval

About this task

By setting the statistics polling interval, you can collect statistics of packets and analyze packets at the specified interval. Based on the interface traffic statistics, you can take traffic control measures promptly to avoid network congestion and service interruption.

·     When network congestion is detected, you can set the statistics polling interval to be smaller than 300 seconds (30 seconds when congestion deteriorates). Then, check traffic distribution on interfaces within a short period of time. For data packets that cause congestion, take traffic control measures.

·     When the network bandwidth is sufficient and services are operating normally, you can set the statistics polling interval to be greater than 300 seconds. Once traffic parameter anomalies occur, modify the statistics polling interval promptly so that you can observe the traffic parameter trend in real time.

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

You can use this command in system view or interface view.

·     In system view, the command takes effect on all interfaces.

·     In interface view, the command takes effect only on the specified interface.

When the statistics polling interval uses the default setting in interface view, the setting in system view takes effect. When the command is executed in both system view and interface view, the setting in interface view takes priority.

Restrictions and guidelines for setting the statistics polling interval

As a best practice, use the default statistics polling interval in system view. A short statistics polling interval in system view might decrease the system performance and result in inaccurate statistics.

Setting the statistics polling interval in system view

1.     Enter system view.

system-view

2.     Set the statistics polling interval.

flow-interval interval

By default, the statistics polling interval is 300 seconds.

Setting the statistics polling interval in Ethernet interface view

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

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

flow-interval interval

By default, the statistics polling interval is 300 seconds on an interface.

Enabling interframe gap and preamble statistics in the traffic statistics

About this task

With the display interface command executed, the Last 300 seconds input rate or Last 300 seconds output rate field in the command output displays the average outbound or inbound traffic rate in the last 300 seconds.

By default, traffic rate = native frame length × packet count per second. Execute the traffic-statistic include-interframe command if you need the total traffic statistics, including the native frame length, interframe gap length and preamble length, for a specific time period. With this command executed, traffic rate = (native frame length + interframe gap length + preamble length) × packet count per second.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Enable interframe gap and preamble statistics in the traffic statistics.

traffic-statistic include-interframe

By default, interframe gap and preamble statistics are enabled in the traffic statistics.

Enabling loopback testing on an Ethernet interface

About this task

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

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.

Restrictions and guidelines

The internal keyword can be configured but does not take effect on the following interfaces:

·     Interfaces on the CEPC-XP48RX card.

·     Interfaces on the MIC-CP1L, MIC-QP1L, MIC-XP2L-LAN, and MIC-XP10L-LAN subcards.

·     The first interface on the MIC-XP5L subcard.

After the following interfaces are switched to GE interfaces by using the using gigabit command, the GE interfaces do not support the internal keyword.

·     All interfaces on the MIC-XP2L, MIC-XP4L1, MIC-XP20L, and MIC-XP20LA subcards.

·     The last four interfaces on each MIC-XP5L, MIC-XP5L1, or MIC-XP5L2 subcard.

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

The shutdown and loopback commands are mutually exclusive.

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.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Enable loopback testing.

loopback internal

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

Configuring interface alarm functions

About this task

With the interface alarm functions enabled, when the number of sent or received error packets or the input or output bandwidth usage on an interface in normal state within the specified interval exceeds the upper threshold, the interface generates an upper threshold exceeding alarm and enters the alarm state. When the number of sent or received error packets or the input or output bandwidth usage on an interface in the alarm state within the specified interval drops below the lower threshold, the interface generates a recovery alarm and restores to the normal state.

Restrictions and guidelines

You can configure the error packet alarm parameters in system view and interface view.

·     The configuration in system view takes effect on all interfaces of the specified slot. The configuration in interface view takes effect only on the current interface.

·     For an interface, the configuration in interface view takes priority, and the configuration in system view is used only when no configuration is made in interface view.

An interface that is shut down because of error packet alarms cannot automatically recover. To bring up the interface, execute the undo shutdown command on the interface.

Enabling interface alarm functions

1.     Enter system view.

system-view

2.     Enable alarm functions for the interface monitoring module.

snmp-agent trap enable ifmonitor [ crc-error | giant | input-buffer-drop | input-error | input-usage | output-buffer-drop | output-error | output-usage | runt ] *

By default, all alarm functions are enabled for interfaces.

Configuring CRC error packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global CRC error packet alarm parameters.

In standalone mode:

ifmonitor crc-error slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor crc-error chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for CRC error packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure CRC error packet alarm parameters for the interface.

port ifmonitor crc-error [ ratio ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global CRC error packet alarm parameters.

Configuring input error packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global input error packet alarm parameters.

In standalone mode:

ifmonitor input-error slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor input-error chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for input error packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure input error packet alarm parameters for the interface.

port ifmonitor input-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global input error packet alarm parameters.

Configuring output error packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global output error packet alarm parameters.

In standalone mode:

ifmonitor output-error slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor output-error chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for output error packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure output error packet alarm parameters.

port ifmonitor output-error high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global output error packet alarm parameters.

Configuring input bandwidth usage alarm parameters

1.     Enter system view.

system-view

2.     Configure global input bandwidth usage alarm parameters.

In standalone mode:

ifmonitor input-usage slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value

In IRF mode:

ifmonitor input-usage chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value

By default, the upper threshold is 90 and the lower threshold is 80 for input bandwidth usage alarms.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure input bandwidth usage alarm parameters.

port ifmonitor input-usage high-threshold high-value low-threshold low-value

By default, an interface uses the global input bandwidth usage alarm parameters.

Configuring output bandwidth usage alarm parameters

1.     Enter system view.

system-view

2.     Configure global output bandwidth usage alarm parameters.

In standalone mode:

ifmonitor output-usage slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value

In IRF mode:

ifmonitor output-usage chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value

By default, the upper threshold is 90 and the lower threshold is 80 for output bandwidth usage alarms.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure output bandwidth usage alarm parameters.

port ifmonitor output-usage high-threshold high-value low-threshold low-value

By default, an interface uses the global output bandwidth usage alarm parameters.

Configuring giant packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global giant packet alarm parameters.

In standalone mode:

ifmonitor giant slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor giant chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for giant packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure giant packet alarm parameters for the interface.

port ifmonitor giant high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global giant packet alarm parameters.

Configuring runt packet alarm parameters

1.     Enter system view.

system-view

2.     Configure global runt packet alarm parameters.

In standalone mode:

ifmonitor runt slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor runt chassis chassis-number slot slot-number [ cpu cpu-number ] high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the upper threshold is 1000, the lower threshold is 100, and the statistics collection and comparison interval is 10 seconds for runt packets.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure runt packet alarm parameters for the interface.

port ifmonitor runt high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global runt packet alarm parameters.

Configuring parameters for input buffer packet loss alarms

1.     Enter system view.

system-view

2.     Configure global parameters for input buffer packet loss alarms.

In standalone mode:

ifmonitor input-buffer-drop slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor input-buffer-drop chassis chassis-number slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the global upper threshold, lower threshold, and statistics collection and comparison interval for input buffer packet loss alarms are 1000 packets, 100 packets, and 10 seconds, respectively.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure parameters for input buffer packet loss alarms on the interface.

port ifmonitor input-buffer-drop high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global parameters for input buffer packet loss alarms.

Configuring parameters for output buffer packet loss alarms

1.     Enter system view.

system-view

2.     Configure global parameters for output buffer packet loss alarms.

In standalone mode:

ifmonitor output-buffer-drop slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

In IRF mode:

ifmonitor output-buffer-drop chassis chassis-number slot slot-number high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, the global upper threshold, lower threshold, and statistics collection and comparison interval for output buffer packet loss alarms are 1000 packets, 100 packets, and 10 seconds, respectively.

3.     Enter Ethernet interface view.

interface interface-type interface-number

4.     Configure parameters for output buffer packet loss alarms on the interface.

port ifmonitor output-buffer-drop high-threshold high-value low-threshold low-value interval interval [ shutdown ]

By default, an interface uses the global parameters for output buffer packet loss alarms.

Enabling card alarm functions

About this task

A card generates an upper-threshold-exceeding alarm for per-card packet loss and enters the alarm state if the following conditions are met:

·     The per-card packet loss alarm function is enabled.

·     The card was in normal state. Then, the number of packets discarded by the card within the specified interval exceeds the upper threshold.

A card generates a recovery alarm for per-card packet loss and restores to the normal state if the following conditions are met:

·     The per-card packet loss alarm function is enabled.

·     The card was in alarm state. Then, the number of packets discarded by the card within the specified interval drops below the lower threshold.

Enabling card alarm functions

1.     Enter system view.

system-view

2.     Enable card alarm functions.

snmp-agent trap enable slot-monitor [ packet-drop ]

By default, card alarm functions are enabled.

Configuring packet loss alarm parameters for all cards

1.     Enter system view.

system-view

2.     Configure packet loss alarm parameters for all cards.

slot-monitor packet-drop high-threshold high-threshold-value low-threshold low-threshold-value interval interval [ shutdown | reboot ]

By default, the upper threshold, lower threshold, and statistics collection and comparison interval for per-card packet loss alarms are 1000000 packets, 100 packets, and 30 seconds, respectively.

Configuring packet loss alarm parameters for a specific card

1.     Enter system view.

system-view

2.     Configure packet loss alarm parameters for the specified card.

In standalone mode:

slot-monitor packet-drop slot slot-number high-threshold high-threshold-value low-threshold low-threshold-value interval interval [ shutdown | reboot ]

In IRF mode:

slot-monitor packet-drop chassis chassis-number slot slot-number high-threshold high-threshold-value low-threshold low-threshold-value interval interval [ shutdown | reboot ]

By default, the upper threshold, lower threshold, and statistics collection and comparison interval for per-card packet loss alarms are 1000000 packets, 100 packets, and 30 seconds, respectively.

Displaying the operating status and information of an interface

About this task

In interface view, to quickly view the operating status or packet statistics of the interface, execute this command.

For an interface, the output from the display this interface command in interface view is the same as the output from the display interface interface-type interface-number command in any view.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

3.     Display the operating status and information of an interface.

display this interface

Shutting down all physical interfaces

About this task

This feature allows you to shut down all physical interfaces except the management Ethernet interfaces and IRF physical interfaces on a device. Physical interfaces shut down by using this command are in ADM state.

Restrictions and guidelines

To shut down all physical interfaces or the specified interface, execute the shutdown all-physical-interfaces command in system view or execute the shutdown command in interface view.

To bring up a shutdown interface, execute the undo shutdown all-physical-interfaces command in system view and execute the undo shutdown command in interface view.

If you execute this command with the include irf-physical-interface keyword multiple times, this command shuts down all physical interfaces except the management Ethernet interfaces on the device.

Procedure

1.     Enter system view.

system-view

2.     Shut down all physical interfaces.

shutdown all-physical-interfaces [ include irf-physical-interface ]

By default, all physical interfaces are up.

Restoring the default settings for an interface

Restrictions and guidelines

CAUTION

CAUTION:

This feature might interrupt ongoing network services. Make sure you are fully aware of the impacts of this feature when you use it in a live network.

This feature might fail to restore the default settings for some commands because of command dependencies or system restrictions. You can use the display this command in interface view to check for these commands and perform their undo forms or follow the command reference to restore their default settings. If your restoration attempt still fails, follow the error message to resolve the problem.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view or Ethernet subinterface view.

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

3.     Restore the default settings for the interface.

default

Configuring a Layer 3 Ethernet interface

Enabling Layer 2 forwarding on an interface

About this task

By default, a Layer 3 interface only performs Layer 3 forwarding. This command enables a Layer 3 Ethernet interface to transmit VLAN tagged packets by creating a virtual Layer 2 Ethernet interface for that Layer 3 Ethernet interface. You can configure VLAN settings on the virtual Layer 2 Ethernet interface.

This feature shuts down the data link layer of a Layer 3 Ethernet interface. While the Layer 3 Ethernet interface cannot provide Layer 3 services, its subinterfaces can terminate VLANs and continue to provide Layer 3 services.

Restrictions and guidelines

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX, CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ16L1

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1802X, CSPEX-1802XA, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-1502XA, CSPEX-2612XA

SPE

RX-SPE200, RX-SPE200-E

 

After you execute this command, port mirroring configured on a Layer 3 Ethernet interface takes effect on the newly generated virtual Layer 2 interfaces. For more information about port mirroring, see Network Management and Monitoring Configuration Guide.

After you execute this command, outbound traffic shaping, rate limiting, WRED, and the queue scheduling profile configured on a Layer 3 Ethernet interface take effect on the newly generated virtual Layer 2 interfaces. For more information about traffic shaping, rate limiting, WRED, and the queue scheduling profile, see ACL and QoS Configuration Guide.

After this command is executed, the outbound rate limiting function and the queue scheduling profile configured through the user profile applied to an interface by using the qos apply user-profile command take effect on the newly generated virtual Layer 2 interface. For more information about the outbound rate limiting function and the queue scheduling profile configured through the user profile applied to an interface by using the qos apply user-profile command, see BRAS Services Configuration Guide.

This feature is not supported on a Layer 3 Ethernet interface that has been assigned to a Layer 3 aggregate interface.

You cannot enable this feature on a main interface whose subinterfaces terminate the outermost VLAN ID 1.

The outermost VLAN IDs terminated by subinterfaces of a main interface cannot contain the PVID of and VLAN IDs permitted by the virtual Layer 2 interface created for the main interface.

On a Layer 3 Ethernet interface with this feature enabled, you cannot perform the following tasks:

·     Splitting an interface and switching the interface type.

·     Switching the interface mode between bridge and route.

·     Binding the interface to an IRF port as an IRF physical interface.

·     Assigning an interface to a Layer 3 aggregation group.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 Ethernet interface view.

interface interface-type interface-number

3.     Enable Layer 2 forwarding on the Layer 3 Ethernet interface.

bridge-forwarding enable

By default, Layer 2 forwarding is disabled on a Layer 3 Ethernet interface.

 

CAUTION

CAUTION:

Configuring this feature on a Layer 3 Ethernet interface deletes all physical layer settings (if any) on the interface. Use this command as needed.

4.     Return to system view.

quit

5.     Enter virtual Layer 2 Ethernet interface view.

interface virtual-bridge-port interface-number

6.     Configure a description for the interface.

description text

By default, the description of an interface is Interface name Interface, for example, Virtual-Bridge-Port3/1/1 Interface.

Setting the MTU for an Ethernet interface or subinterface

About this task

The maximum transmission unit (MTU) determines the maximum number of bytes in a single IP packet that can be sent. The length of an IP packet refers to the number of bytes starting from the IP header to the payload. 

When the IP layer receives an IP data packet to be sent, the IP layer determines the local destination interface of the packet and obtains the MTU of the interface. The IP layer compares the MTU with the length of the data packet to be sent. If the length is greater than the MTU, the IP layer fragments the packet. The length of a fragment can be smaller than or equal to the MTU to ensure that big packets are not lost on the network. 

As a best practice, use the default MTU. When the packet length or the packet receiver changes, you can adjust the MTU as needed. When configuring the MTU, follow these restrictions and guidelines:

·     If the configured MTU is small but the packet length is large, the following events might occur:

¡     Packets will be dropped when they are forwarded by hardware.

¡     Packets will be fragmented into too many fragments when packets are forwarded through the CPUs, which affects normal data transmission.

·     If the configured MTU is too large, the MTU will exceed the receiving capabilities of the receiver or a device along the transmission path. As a result, packets will be fragmented or even dropped, which increases the network transmission load and affects data transmission.

Restrictions and guidelines

The MTU of an Ethernet interface or subinterface affects the fragmentation and reassembly of IP packets on the interface. Typically, you do not need to modify the MTU of an interface.

The mtu size command executed in main interface view takes effect only on the main interface. The mtu size command executed in subinterface view takes effect only on the subinterface.

The mtu size spread command executed in main interface view can modify the MTU for both the main interface and its subinterfaces. However, the MTU separately configured for a subinterface takes priority.

·     For interfaces on MIC subcards in a CSPEX-1104-E or CSPEX-1204 card, the value range is 46 to 2980 bytes.

·     For interfaces on PIC-PS2G4L or PIC-TCP8L subcards in a CSPEX-1204 card, the value range is 46 to 2000 bytes.

·     For interfaces on PIC-GP10L subcards in a CSPEX-1204 card, the value range is 46 to 3000 bytes.

·     For interfaces on other PIC subcards in a CSPEX-1204 card, the value range is 46 to 9100 bytes.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface or subinterface view.

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

3.     Set the MTU.

¡     Separately set the MTU for the Ethernet interface or subinterface.

mtu size

¡     Set the MTU for the main interface and its subinterfaces.

mtu size spread

Subinterfaces do not support this command.

The default setting is 1500 bytes.

Setting the MAC address of an Ethernet interface

About this task

In an active/standby link network, you can configure the same MAC address for access interfaces of the active link and standby link on different devices. Then, when an active/standby link switchover occurs, the packet loss duration is reduced.

Restrictions and guidelines

This feature is available only for the following cards:

 

Card category

Cards

CEPC

CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-CQ8L, CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1502XA, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1802X, CSPEX-1802XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-1812X-E, CSPEX-2304X-G, CSPEX-2612XA

SPE

RX-SPE200-E

 

In standard mode, the MAC address range supported is 000f-e2ff-8000 to 000f-e2ff-80ff for Layer 3 aggregate interfaces with member interfaces on the following cards:

 

Card category

Cards

CEPC

CEPC-CP4RX, CEPC-CP4RXA, CEPC-CP4RX-L, CEPC-CQ8LA, CEPC-CQ8L1A, CEPC-XP4LX, CEPC-XP24LX, CEPC-XP48RX

CSPEX

CSPEX-1304X, CSPEX-1404X, CSPEX-1502X, CSPEX-1502XA, CSPEX-1504X, CSPEX-1504XA, CSPEX-1602X, CSPEX-1602XA, CSPEX-1802XA, CSPEX-1804X, CSPEX-1512X, CSPEX-1612X, CSPEX-1812X, CSPEX-2304X-G, CSPEX-2612XA

SPE

RX-SPE200-E

 

You cannot use this command to modify the MAC address for a main interface or subinterface with BRAS users online.

You cannot set a MAC address for a subinterface. A subinterface uses the MAC address of the main interface. All subinterfaces of a main interface share the same MAC address.

Procedure

1.     Enter system view.

system-view

2.     Enter Ethernet interface view.

interface interface-type interface-number

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

mac-address mac-address

By default, the MAC address of a Layer 3 Ethernet interface is assigned by the device.

As a best practice, do not set a MAC address in the VRRP-reserved MAC address range for a Layer 3 Ethernet interface.

Changing the interface type

About this task

You can change the interface type between POS and GigabitEthernet.

Restrictions and guidelines

Only interfaces on MIC-TCP8L and PIC-TCP8L subcards support this feature.

Changing a Layer 3 GigabitEthernet interface to a standard POS interface

1.     Enter system view.

system-view

2.     Enter Layer 3 GigabitEthernet interface view.

interface gigabitethernet interface-number

3.     Change the interface to a standard POS interface.

port-type switch pos

 

CAUTION

CAUTION:

After the type of an interface is changed, the system deletes the original interface and creates a new interface that is numbered the same as the original interface. All the other commands are restored to the default on the new interface.

Changing a standard POS interface to a Layer 3 GigabitEthernet interface

1.     Enter system view.

system-view

2.     Enter standard POS interface view.

interface pos interface-number

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

port-type switch gigabitethernet

 

CAUTION

CAUTION:

After the type of an interface is changed, the system deletes the original interface and creates a new interface that is numbered the same as the original interface. All the other commands are restored to the default on the new interface.

Enabling packet statistics collection on a Layer 3 Ethernet subinterface

About this task

This feature is resource intensive. The system becomes busy and the CPU usage increases when you enable this feature on a large number of Ethernet subinterfaces or set a shorter interval by using the flow-interval command.

Procedure

1.     Enter system view.

system-view

2.     Enter Layer 3 Ethernet subinterface view.

interface interface-type interface-number.subnumber

3.     Enable packet statistics collection on the Layer 3 Ethernet subinterface.

traffic-statistic enable

By default, packet statistics collection is disabled on a Layer 3 Ethernet subinterface.

4.     (Optional.) Display the subinterface traffic statistics.

display interface

display counters

The Input and Output fields in the display interface command output display the subinterface traffic statistics.

Display and maintenance commands for 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 ] ] [ description ]

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

Display the Ethernet module statistics.

In standalone mode:

display ethernet statistics slot slot-number [ cpu cpu-number ]

In IRF mode:

display ethernet statistics chassis chassis-number slot slot-number [ cpu cpu-number ]

Display the SNMP interface index constancy configuration information.

display ifindex-constant configuration

Display the interface name-constant interface index mappings.

display ifindex-constant map [ file filename ]

Display the operational and status information of the specified interfaces.

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

Display the status and packet statistics of interfaces.

display interface [ interface-type [ interface-number | interface-number.subnumber ] ] link-info [ down | up ] [ description ] [ main ] [ verbose ]

Display information about dropped packets on the specified cards.

In standalone mode:

display packet-drop slot [ slot-number ]

In IRF mode:

display packet-drop chassis [ chassis-number [ slot slot-number ] ]

Display the physical attributes of an interface.

display interface [ interface-type [ interface-number ] ] phy-option

Display information about link flapping protection on an interface.

display link-flap protection [ interface interface-type [ interface-number ] ]

Display the link state change statistics of interfaces.

display link-state-change statistics interface [ interface-type [ interface-number ]

Display operating status and information of all interfaces except subinterfaces.

display interface [ interface-type ] [ brief [ description | down ] ] main

Display information about alarms on the specified card

In standalone mode:

display slot-monitor slot slot-number

In IRF mode:

display slot-monitor chassis chassis-number slot slot-number

Clear interface or subinterface statistics.

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

Clear interface or subinterface statistics on MIB.

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

Clear statistics for the specified card and interfaces on it.

In standalone mode:

reset counters slot [ slot-number ]

In IRF mode:

reset counters chassis [ chassis-number [ slot slot-number ] ]

Clear the Ethernet module statistics.

In standalone mode:

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

In IRF mode:

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

Clear the interface name-constant interface index mappings

reset ifindex-constant map

Clear the link state change statistics of interfaces.

reset link-state-change statistics interface [ interface-type [ interface-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 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
新华三官网