0% found this document useful (0 votes)
607 views

NE40E-F V800R011C10 Configuration Guide - Interface and Data Link 02

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
607 views

NE40E-F V800R011C10 Configuration Guide - Interface and Data Link 02

Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 54

HUAWEI NE40E-F1 Series Universal Service

Router
V800R011C10

Configuration Guide - Interface and


Data Link
Issue 02
Date 2019-09-30

HUAWEI TECHNOLOGIES CO., LTD.


Copyright © Huawei Technologies Co., Ltd. 2019. All rights reserved.
No part of this document may be reproduced or transmitted in any form or by any means without prior written
consent of Huawei Technologies Co., Ltd.

Trademarks and Permissions

and other Huawei trademarks are trademarks of Huawei Technologies Co., Ltd.
All other trademarks and trade names mentioned in this document are the property of their respective
holders.

Notice
The purchased products, services and features are stipulated by the contract made between Huawei and the
customer. All or part of the products, services and features described in this document may not be within the
purchase scope or the usage scope. Unless otherwise specified in the contract, all statements, information,
and recommendations in this document are provided "AS IS" without warranties, guarantees or
representations of any kind, either express or implied.

The information in this document is subject to change without notice. Every effort has been made in the
preparation of this document to ensure accuracy of the contents, but all statements, information, and
recommendations in this document do not constitute a warranty of any kind, express or implied.

Huawei Technologies Co., Ltd.


Address: Huawei Industrial Base
Bantian, Longgang
Shenzhen 518129
People's Republic of China

Website: https://www.huawei.com
Email: [email protected]

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. i


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link Contents

Contents

1 About This Document.................................................................................................................. 1


2 Interface Management.................................................................................................................. 5
2.1 Overview of Interface Management............................................................................................................................... 6
2.2 Limitations for Interface Management......................................................................................................................... 11
2.3 Performing Basic Configurations on an Interface........................................................................................................ 15
2.3.1 Entering the Interface View....................................................................................................................................... 15
2.3.2 (Optional) Setting Interface Parameters.................................................................................................................... 16
2.3.3 Enabling an Interface.................................................................................................................................................19
2.3.4 (Optional) Configuring a Device to Send a Trap Message to an NMS When an Interface Physical Status Changes
............................................................................................................................................................................................ 20
2.3.5 (Optional) Configuring IPv4 and IPv6 Traffic Statistics on The Main Interface...................................................... 20
2.3.6 Configuring a Bandwidth Mode for an Interface...................................................................................................... 21
2.3.7 (Optional) Configuring an Interface Splitting Mode................................................................................................. 23
2.3.8 Verifying the Configuration of an Interface...............................................................................................................24
2.4 Configuring the Physical Link Detection Function...................................................................................................... 24
2.4.1 Configuring the Alarm Function for CRC Errors, SDH Errors, Input Errors, Output Errors, or Optical Module
Power Exceptions............................................................................................................................................................... 25
2.4.2 Configuring the Alarm Function for Pause-Frame Errors Received on an Interface................................................ 28
2.4.3 Configuring the Alarm Function in Case the Number of SDH B1 or SDH B2 Error Packets That an Interface
Receives Exceeds an Alarm Threshold.............................................................................................................................. 28
2.4.4 Configuring the Alarm Function in Case the Number of Bytes of Error Packets That an Interface Receives
Exceeds an Alarm Threshold..............................................................................................................................................29
2.4.5 Verifying the Physical Link Detection Configuration............................................................................................... 30
2.5 Configuring MAC Accounting..................................................................................................................................... 30
2.6 Configuring Strict Filter for EVC Sub-Interfaces........................................................................................................ 32
2.7 Enabling the Signal Sending Delay Function...............................................................................................................33
2.8 Enabling or Disabling the Optical Module Laser......................................................................................................... 34
2.8.1 Disabling the Optical Module Laser..........................................................................................................................34
2.8.2 (Optional) Enabling the Optical Module Laser......................................................................................................... 35
2.8.3 Verifying the Configuration of Enabling or Disabling the Optical Module Laser.................................................... 35
2.9 Enabling the Optical Module Alarm Threshold Standardization Function.................................................................. 36
2.10 Disabling the Optical Module Alarm Function.......................................................................................................... 37
2.11 Managing Non-Huawei-Certified Optical Modules................................................................................................... 37
2.12 Configuring the Control-Flap Function...................................................................................................................... 38

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. ii


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link Contents

2.13 Configuring Logical Interfaces...................................................................................................................................40


2.13.1 Creating a Global-VE interface............................................................................................................................... 41
2.13.2 Configuring a VLAN Channelized Sub-Interface................................................................................................... 41
2.13.3 Creating a Loopback Interface and Configuring Its IP Address..............................................................................42
2.13.4 Entering the NULL Interface View......................................................................................................................... 43
2.13.5 Verifying the Logical Interface Configuration........................................................................................................ 43
2.14 Configuring an Interface Group................................................................................................................................. 44
2.15 Configuring an Interface Monitoring Group.............................................................................................................. 45
2.16 Maintaining Interfaces................................................................................................................................................ 48
2.16.1 Clearing Interface Statistics.....................................................................................................................................48
2.16.2 Monitoring Interface Information............................................................................................................................48
2.17 Configuration Examples for Interface Management.................................................................................................. 49
2.17.1 Example for Managing Interfaces........................................................................................................................... 49

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. iii


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 1 About This Document

1 About This Document

Purpose
This document provides the basic concepts, configuration procedures, and configuration
examples in different application scenarios of the Interface Management feature supported by
the NE40E device.

Related Version
The following table lists the product version related to this document.

Product Name Version

NE40E-F1 Series V800R011C10

U2000 V200R018C60

NCE-IP V100R019C00

Intended Audience
This document is intended for:

l Data configuration engineers


l Commissioning engineers
l Network monitoring engineers
l System maintenance engineers

Security Declaration
l Encryption algorithm declaration
The encryption algorithms DES/3DES/RSA (RSA-1024 or lower)/MD5 (in digital
signature scenarios and password encryption)/SHA1 (in digital signature scenarios) have
a low security, which may bring security risks. If protocols allowed, using more secure
encryption algorithms, such as AES/RSA (RSA-2048 or higher)/SHA2/HMAC-SHA2 is
recommended.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 1


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 1 About This Document

l Password configuration declaration


– Do not set both the start and end characters of a password to "%^%#". This causes
the password to be displayed directly in the configuration file.
– To further improve device security, periodically change the password.
l Personal data declaration
Your purchased products, services, or features may use users' some personal data during
service operation or fault locating. You must define user privacy policies in compliance
with local laws and take proper measures to fully protect personal data.
l Feature declaration
– The NetStream feature may be used to analyze the communication information of
terminal customers for network traffic statistics and management purposes. Before
enabling the NetStream feature, ensure that it is performed within the boundaries
permitted by applicable laws and regulations. Effective measures must be taken to
ensure that information is securely protected.
– The mirroring feature may be used to analyze the communication information of
terminal customers for a maintenance purpose. Before enabling the mirroring
function, ensure that it is performed within the boundaries permitted by applicable
laws and regulations. Effective measures must be taken to ensure that information is
securely protected.
– The packet header obtaining feature may be used to collect or store some
communication information about specific customers for transmission fault and
error detection purposes. Huawei cannot offer services to collect or store this
information unilaterally. Before enabling the function, ensure that it is performed
within the boundaries permitted by applicable laws and regulations. Effective
measures must be taken to ensure that information is securely protected.
l Reliability design declaration
Network planning and site design must comply with reliability design principles and
provide device- and solution-level protection. Device-level protection includes planning
principles of dual-network and inter-board dual-link to avoid single point or single link
of failure. Solution-level protection refers to a fast convergence mechanism, such as FRR
and VRRP. If solution-level protection is used, ensure that the primary and backup paths
do not share links or transmission devices. Otherwise, solution-level protection may fail
to take effect.

Special Declaration
l This document serves only as a guide. The content is written based on device
information gathered under lab conditions. The content provided by this document is
intended to be taken as general guidance, and does not cover all scenarios. The content
provided by this document may be different from the information on user device
interfaces due to factors such as version upgrades and differences in device models,
board restrictions, and configuration files. The actual user device information takes
precedence over the content provided by this document. The preceding differences are
beyond the scope of this document.
l The maximum values provided in this document are obtained in specific lab
environments (for example, only a certain type of board or protocol is configured on a
tested device). The actually obtained maximum values may be different from the
maximum values provided in this document due to factors such as differences in
hardware configurations and carried services.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 2


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 1 About This Document

l Interface numbers used in this document are examples. Use the existing interface
numbers on devices for configuration.
l The pictures of hardware in this document are for reference only.
l In this document, public IP addresses may be used in feature introduction and
configuration examples and are for reference only unless otherwise specified.

Symbol Conventions
The symbols that may be found in this document are defined as follows.

Symbol Description

Indicates an imminently hazardous situation which, if not


avoided, will result in death or serious injury.

Indicates a potentially hazardous situation which, if not


avoided, could result in death or serious injury.

Indicates a potentially hazardous situation which, if not


avoided, may result in minor or moderate injury.

Indicates a potentially hazardous situation which, if not


avoided, could result in equipment damage, data loss,
performance deterioration, or unanticipated results.
NOTICE is used to address practices not related to personal
injury.

Calls attention to important information, best practices and


tips.
NOTE is used to address information not related to
personal injury, equipment damage, and environment
deterioration.

Command Conventions
The command conventions that may be found in this document are defined as follows.

Convention Description

Boldface The keywords of a command line are in boldface.

Italic Command arguments are in italics.

[] Items (keywords or arguments) in brackets [ ] are optional.

{ x | y | ... } Optional items are grouped in braces and separated by


vertical bars. One item is selected.

[ x | y | ... ] Optional items are grouped in brackets and separated by


vertical bars. One item is selected or no item is selected.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 3


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 1 About This Document

Convention Description

{ x | y | ... }* Optional items are grouped in braces and separated by


vertical bars. A minimum of one item or a maximum of all
items can be selected.

[ x | y | ... ]* Optional items are grouped in brackets and separated by


vertical bars. Several items or no item can be selected.

&<1-n> The parameter before the & sign can be repeated 1 to n


times.

# A line starting with the # sign is comments.

Change History
Changes between document issues are cumulative. The latest document issue contains all the
changes made in earlier issues.
l Changes in Issue 02 (2019-09-30)
This issue is the second official release. The software version of this issue is
V800R011C10SPC100.
l Changes in Issue 01 (2019-08-08)
This issue is the first official release. The software version of this issue is
V800R011C10.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 4


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

2 Interface Management

About This Chapter

Interface management helps to provide quick and accurate communication between devices.

2.1 Overview of Interface Management


This section provides the physical and logical interfaces supported by the NE40E and
describes the interface views and prompts and common link protocols and access
technologies.
2.2 Limitations for Interface Management
2.3 Performing Basic Configurations on an Interface
This section describes how to perform basic configurations on an interface. The basic
configurations involve interface types and configurable interface parameters, which enable
easy interface management.
2.4 Configuring the Physical Link Detection Function
The physical link detection function helps reduce the number of alarms generated on links and
avoid system performance degradation caused by plenty of alarms that would be otherwise
generated.
2.5 Configuring MAC Accounting
If the MAC accounting function is enabled on an interface of a device, the device collects
IPv4 or IPv6 traffic statistics corresponding to MAC addresses learned by the interface.
2.6 Configuring Strict Filter for EVC Sub-Interfaces
This section describes how to configure strict filter for EVC sub-interfaces.
2.7 Enabling the Signal Sending Delay Function
This section describes how to configure the signal sending delay function.
2.8 Enabling or Disabling the Optical Module Laser
This section describes how to enable or disable the optical module laser.
2.9 Enabling the Optical Module Alarm Threshold Standardization Function
You can enable the alarm standardization function for an optical module to prevent the optical
module from reporting alarms when its optical power exceeds the threshold.
2.10 Disabling the Optical Module Alarm Function

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 5


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

You can disable the alarm function for an optical module to prevent the optical module from
reporting alarms when its optical power exceeds the threshold.
2.11 Managing Non-Huawei-Certified Optical Modules
To manage non-Huawei-certified optical modules, you can suppress the alarms for non-
Huawei-certified optical modules and enable the function of setting interfaces with the optical
modules inserted to Down.
2.12 Configuring the Control-Flap Function
This section describes how to configure the control-flap function.
2.13 Configuring Logical Interfaces
This section describes how to configure logical interfaces. Logical interfaces are manually
configured interfaces, which are used to exchange data. Logical interfaces do not exist
physically.
2.14 Configuring an Interface Group
An interface group can be used to perform interface configuration in batches, simplifying
interface configurations and reducing management costs.
2.15 Configuring an Interface Monitoring Group
In a dual-device backup scenario, you can configure an interface monitoring group to allow
the user-side interface status to change with the network-side interface status so that traffic
can be switched between the master and backup links.
2.16 Maintaining Interfaces
The reset commands help locate faults on interfaces.
2.17 Configuration Examples for Interface Management
This section provides interface management examples.

2.1 Overview of Interface Management


This section provides the physical and logical interfaces supported by the NE40E and
describes the interface views and prompts and common link protocols and access
technologies.

Interface Types
The Router exchanges data and interacts with other devices on a network through interfaces.
Interfaces are classified into physical and logical interfaces.
l Physical Interfaces
Physical interfaces physically exist on boards. They are divided into the following types:
– LAN interfaces: interfaces through which the Router can exchange data with the
devices on a LAN.
– WAN interfaces: interfaces through which the Router can exchange data with
remote devices on a WAN.
l Logical Interfaces
Logical interfaces are manually configured interfaces that do not exist physically.
Logical interfaces can be used to exchange data.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 6


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

NOTICE

The management network port of the IPU does not forward services.

Interface Views and Prompts


The NE40E supports the command views and prompts of physical interfaces in Table 2-1 and
the command views and prompts of logical interfaces in Table 2-2.

Table 2-1 Command views and prompts of physical interfaces supported by the NE40E

Interface Name Command Accessing Prompt


View Command

Ethernet interface Ethernet interface Run the interface [~HUAWEI-Ethernet0/1/0]


view ethernet 0/1/0
command in the
system view.

GE interface GE interface view Run the interface [~HUAWEI-


gigabitethernet GigabitEthernet0/1/0]
0/1/0 command in
the system view

10GE interface 10GE interface Run the interface [~HUAWEI-


view gigabitethernet GigabitEthernet0/1/0]
0/1/0 command in
the system view
NOTE
Run the display
interface
briefcommand, the
GigabitEthernet
interface with the
10G bandwidth
identifier is a GE
interface with a
bandwidth of 10
Gbit/s.

25GE interface 25GE interface Run the interface [~HUAWEI-25GE0/1/0]


view 25GE 0/1/0
command in the
system view

40GE interface 40GE interface Run the interface [~HUAWEI-40GE0/1/0]


view 40GE 0/1/0
command in the
system view

100GE interface 100GE interface Run the interface [~HUAWEI-100GE0/1/0]


view 100GE 0/1/0
command in the
system view

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 7


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Interface Name Command Accessing Prompt


View Command

40GE interface 40GE interface Run the interface [~HUAWEI-40GE0/1/0]


view 40GE 0/1/0
command in the
system view

XGigabitEthernet XGigabitEthernet Run the interface [~HUAWEI-


interface interface view XGigabitEthernet XGigabitEthernet0/1/0]
0/1/0 command in
the system view

50GE interface 50GE interface Run the interface [~HUAWEI-50GE0/1/0]


view 50GE 0/1/0
command in the
system view.

Table 2-2 Command views and prompts of logical interfaces

Interface Command Accessing Prompt


Name View Command

Sub-interface Sub-interface Run the interface [~HUAWEI-


view gigabitethernet GigabitEthernet0/1/0.1]
0/1/0.1 command in
the system view

Eth-Trunk Eth-Trunk Run the interface eth- [~HUAWEI-Eth-Trunk0]


interface interface view trunk 0 command in
the system view

Loopback Loopback Run the interface [~HUAWEI-LoopBack2]


interface interface view loopback 2 command
in the system view

Null interface Null interface Run the interface null [~HUAWEI-NULL0]


view 0 command in the
system view

Tunnel Tunnel Run the interface [~HUAWEI-Tunnel0/1/0]


interface interface view tunnel 0/1/0 command
in the system view

Commonly-used Link Protocols and Access Technologies


The link layer is responsible for accurately sending data from a node to a neighboring node. It
receives packets from the network layer, encapsulates the packets in frames, and then sends
the frames to the physical layer.

Major link layer protocols supported by the NE40E are listed as follows:

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 8


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

l Ethernet
Currently, the LAN mostly refers to the Ethernet. The Ethernet is a broadcast network,
which is flexible and simple in configuration and is easy to expand. The Ethernet is
widely used.
l Trunk
The trunk technology has the following advantages:
– Bandwidth increase: The bandwidth of an IP-Trunk is the total bandwidth of all
member interfaces.
– Reliability enhancement: When a link fails, other links in the same trunk
automatically take over the services on the faulty link to prevent traffic interruption.

Interface Flapping control


The status of an interface on a device may alternate between Up and Down for various
reasons, including physical signal interference and incorrect link layer configurations. The
changing status causes Multiprotocol Label Switching (MPLS) and routing protocols to flap.
As a result, the device may break down, causing network interruption. Control-flap controls
the frequency of interface status alternations between Up and Down to minimize the impact
on device and network stability.
The following two control modes are available.

Table 2-3 Flapping control modes


Control Mode Function Usage Scenario

control-flap Controls the frequent l This control mode is


flappings of interfaces from interface-specific.
the network layer to l This control mode
minimize the impact on suppresses interface
device and network stability. flappings from the
network layer and
reports the flappings to
the routing management
module, thereby
improving network-layer
stability.
l This control mode allows
you to precisely
configure parameters
based on service
requirements.
l This control mode
involves complex
algorithms and is highly
demanding to use.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 9


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Control Mode Function Usage Scenario

damp-interface Controls the frequent l This function is


flappings of interfaces at the supported globally or on
physical layer to minimize a specified interface.
the impact on device and l This control mode
network stability. suppresses the flappings
from the physical layer,
thereby improving link-
layer and network-layer
stability.
l This control mode
prevents the upper-layer
protocols from
frequently alternating
between enabled and
disabled, thereby
reducing the
consumption of CPU and
memory resources.
l This control mode does
not involve any complex
algorithms and is easy to
use.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 10


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

2.2 Limitations for Interface Management


Limitations
Restrictions Guidelines Impact

Interfaces 24-43 supports Plan configurations None.


breakout configuration. The properly.
configuration restrictions are
as follows:
l After interface splitting
is configured or
canceled, the
configuration takes effect
immediately, and the
original interface
configurations will be
lost. Therefore, exercise
caution when running the
port split command and
its undo form.
l Before configuring
interface splitting, check
whether an interface
whose configuration
needs to be deleted is
added to a VS. If the
interface is added to a
VS, interface splitting
cannot be configured.
l Before configuring
interface splitting, check
whether an interface
whose configuration
needs to be deleted is a
virtual cluster
interconnection interface.
If the interface has been
configured as a virtual
cluster interconnection
interface, interface
splitting cannot be
configured.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 11


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Restrictions Guidelines Impact

25GE or 10GE interfaces Plan configurations None.


0-23 support working rate properly.
switching. The restrictions
are as follows:
l Before working rate
switching (including
manual and adaptive
bandwidth switching),
check whether an
interface is added to a
VS. If the interface is
added to a VS, the
bandwidth mode cannot
be switched.
l Before working rate
switching (including
manual and adaptive
bandwidth switching),
check whether an
interface is a virtual
cluster interconnection
interface. If the interface
has been configured as a
virtual cluster
interconnection interface,
the bandwidth mode
cannot be switched.

If an interface on a router is Run the port-tx-enabling- Data loss occurs.


directly connected to a non- delay port-tx-delay-time
Huawei device, when the command in the interface
router is powered off and view to enable the interface
restarted, the interface sends to delay signals and set the
a signal to the peer delay.
immediately after being
initialized, which probably
causes data loss before
configurations of the router
are restored.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 12


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Restrictions Guidelines Impact

XGE interfaces are under Perform reconfiguration. Configuration is lost.


PAF control. A 10GE
interface is renamed as an
XGE interface after the PAF
is installed on the device
and the device is restarted.
The original 10GE interface
configurations are lost, and
reconfiguration needs to be
performed on the XGE
interface. After the AP for
interface extension is
installed with the PAF and
restarted, if the external
communication interface is
a 10GE interface, the
external communication
interface needs to be
reconfigured.

The interface of a Properly plan the interface Other interface types cannot
channelized sub-interface type. be configured.
supports only an Ethernet
interface.

Channelized sub-interfaces Properly plan the sub- Non-VLAN-type dot1q sub-


support only VLAN-type interface type. interfaces cannot be
dot1q sub-interfaces. configured as channelized
sub-interfaces.

On eTM boards and Plan services properly. When the egress traffic on a
subcards, when the egress channelized sub-interface
traffic on a channelized sub- exceeds its configured
interface exceeds the bandwidth in eTM
configured bandwidth of the scenarios, the statistics are
channelized sub-interface, inaccurate.
the egress traffic is limited
to the bandwidth of the
channelized sub-interface.
In this case, the number of
packets, the number of
bytes, and the rate in the
outbound direction are
incorrect. However, the
statistics on unicast,
broadcast, multicast, and
IPv4/IPv6 dual-stack traffic
are the egress traffic before
the rate limit.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 13


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Restrictions Guidelines Impact

When VPN QoS is Plan services properly. If channelized sub-interfaces


configured for a VSI or have been enabled in a VS,
VLL, a channelized sub- a message is displayed,
interface cannot be created indicating that VPN QoS
for the VS. cannot be configured for any
After a channelized sub- VSI or VLL of the VS. If
interface is created, VPN VPN QoS has been
QoS cannot be configured configured for any VSI or
for any VSI or VLL of the VLL, a message is
VS. displayed, indicating that a
channelized sub-interface
cannot be configured.

When member interfaces of Set a smaller delay for When member interfaces of
an Eth-Trunk interface are interfaces to go Up on the an Eth-Trunk interface are
located on different chassis inter-chassis interfaces in a located on different chassis
in a virtual cluster, the virtual cluster, and set a in a virtual cluster, the
master chassis is restarted. larger delay for interfaces to master chassis is restarted.
When the master chassis go Up in the system view. When the master chassis
recovers and Eth-Trunk The difference between the recovers and Eth-Trunk
traffic is switched back, a two delays depends on the traffic is switched back, a
small amount of traffic may time for the inter-chassis small amount of traffic may
be discarded. link to become available and be discarded.
is at least 5 minutes.
Configuration command:
carrier up-hold-time
0-86400000

In 100GE/40GE/50GE None In 100GE/40GE/50GE


mode, interfaces 24-29 on a mode, interfaces 24-29 on a
fixed card do not support fixed card do not support
related BIP8 functions related BIP8 functions
(BIP8-SD alarm and BIP8 (BIP8-SD alarm and BIP8
error statistics). error statistics).

If SQ rate limit is If SQ rate limit is The statistics of outgoing


configured on a rear-end configured on a rear-end packets are incorrect when
ETM subcard, the traffic ETM subcard, run the SQ rate limit is configured
statistics of outgoing display port-queue on the rear-end ETM
packets will be greater than statistics interface subcard.
the actual traffic statistics { interface-type interface-
after the rate limit is applied. number | interface-name }
[ cos-value ] outbound
command to obtain the
actual statistics of outgoing
packets.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 14


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Restrictions Guidelines Impact

In L2VE access to L3VE Run the set access-ve-mac Layer 2 MAC flapping
scenarios, if an L2VE mac-address command in occurs.
interface and Eth-Trunk the slot view.
interface are bound to the Change the MAC address of
same local VSI, Layer 3 the L3VE interface.
interconnection needs to be
implemented between the Alternatively, run the mac-
Eth-Trunk and L3VE address mac-address
interfaces. The MAC command in the Eth-Trunk
address of the L3VE or Eth- interface view to change the
Trunk interface needs to be MAC address of the Eth-
manually changed. Trunk interface.

2.3 Performing Basic Configurations on an Interface


This section describes how to perform basic configurations on an interface. The basic
configurations involve interface types and configurable interface parameters, which enable
easy interface management.

Usage Scenario
To ensure smooth communication between devices on a network, configure both physical and
logical interfaces properly and set the following parameters:
l Interface description
l Maximum transmission unit (MTU)
l Trap threshold for the outbound and inbound bandwidth usage on a specified interface
l Interval at which traffic statistics are collected
l Whether the device sends a trap message to the network management system (NMS)
when the interface status changes
l Whether the control-flap function is enabled

Pre-configuration Tasks
Before performing basic configurations on an interface, verify that the device has been
installed and powered on properly.

2.3.1 Entering the Interface View


The command for entering the view of an interface varies with the physical attribute of the
interface.

Procedure
Step 1 Run system-view

The system view is displayed.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 15


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Step 2 Run interface interface-type interface-number

The interface view is displayed.

In this command, interface-type specifies the type of the interface, and interface-number
specifies the number of the interface.

Step 3 (Optional) Run commit

The configuration is committed.

If the interface of the specified type and number exists in the preceding step, you do not need
to run the commit command.

----End

2.3.2 (Optional) Setting Interface Parameters


This section describes how to set parameters for an interface based on the actual service
requirements. The parameters include the description and maximum transmission unit (MTU).

Context
Table 2-4 describes the configurable parameters of an interface.

Table 2-4 Configurable parameters of an interface

Parameter Description

Interface description When you maintain a large number of interfaces, interface


description helps identify an interface easily.

Interface MTU After the MTU is configured for an interface, the device
fragments a packet transmitted on the interface if the size of the
packet exceeds the MTU.
NOTE
Loopback and NULL interfaces do not support the MTU.

Setting of interface You can calculate the bandwidth usage by setting the interface
bandwidth obtained by bandwidth obtained by the NMS from the MIB.
the NMS from the MIB

Whether the device You can enable the device to send a trap message to the NMS
sends a trap message to when the interface status changes. After this function is enabled,
the network the NMS monitors the interface status in real time.
management system When an interface alternates between Up and Down, the device
(NMS) when the will frequently send trap messages to the NMS, which increases
interface status changes the processing load on the NMS. In this situation, you can
disable the device from sending trap messages to the NMS to
avoid adverse impact on the NMS.

Interval at which traffic After setting the interval at which traffic statistics are collected
statistics are collected for an interface, you can view the traffic volumes and rates of the
interface in different time ranges.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 16


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Parameter Description

Whether the control- Control-flap indicates the maximum frequency at which an


flap function is enabled interface alternates between Up and Down. This minimizes the
impact of interface status changes on device and network
stability.
NOTE
Loopback and NULL interfaces do not support the control-flap function.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
In this command, interface-type specifies the type of the interface, and interface-number
specifies the number of the interface.
Step 3 Perform one or more operations in Table 2-5 to set the desired interface parameters.

Table 2-5 Setting interface parameters


Operation Description

Configure description Run the description regular-expression command to configure


for an interface. description for an interface.
You can view the description of an interface using the following
commands:
l display interface description [ interface-type [ interface-
number ] | slot slot-id [ card card-number ] ]
l display ip interface description [ interface-type [ interface-
number ] | interface-name | slot slot-number [ card card-
number ] | ip-configured [ except interface-type ] ]
NOTE
The parameters slot slot-id and card card-number in the preceding
commands are supported only on the Admin VS in VS mode.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 17


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Operation Description

Set an MTU for an Run the mtu mtu or ipv6 mtu mtu command to set an MTU for
interface. an interface.
The default MTU is 1500 bytes. Run the mtu mtu spread or
ipv6 mtu mtu spread command to set an MTU for an interface
and apply the MTU to all the sub-interfaces on the interface.
NOTE
l After changing the MTU of a interface using the mtu or mtu spread
command, run the shutdown and undo shutdown commands in
sequence in the interface view, or run the restart command alone in
the interface view to restart the interface for the new MTU to take
effect.
l If IPv4 attributes are configured on an interface, run the mtu or mtu
spread command to set an MTU for IPv4 packets to be sent by an
interface.
l If IPv6 attributes are configured on an interface, run the ipv6 mtu or
ipv6 mtu spread command to set an MTU for IPv6 packets to be
sent by an interface.

Set configuration Run the bandwidth command to set configuration bandwidth for
bandwidth for an an interface.
interface. NOTE
To view the command configurations, you can check the ifSpeed and
ifHighSpeed objects in the IF-MIB on the NMS.

Configure whether the Run the enable snmp trap updown command to enable the
device sends a trap device to send a trap message to the NMS when the interface
message to the NMS status changes.
when the interface NOTE
status changes. When an interface alternates between Up and Down, the device will
frequently send trap messages to the NMS, which increases the
processing load on the NMS. In this situation, you can run the undo
enable snmp trap updown command to disable the device from sending
trap message to the NMS to avoid adverse impact on the NMS.

Set the interval at Run the set flow-stat interval interval command to set the
which traffic statistics interval at which traffic statistics are collected.
are collected. NOTE
l To globally set the interval at which traffic statistics are collected, run
the set flow-stat interval interval command in the system view. To
set the interval at which traffic statistics are collected for an interface,
run the interface interface-type interface-number command to
specify an interface and run the set flow-stat interval interval
command on the interface. The global interval applies to all
interfaces for which the interval at which traffic statistics are
collected is not set.
l The new interval takes effect after the original interval expires. For a
logical interface, traffic statistics will be updated after the new
interval takes effect and the first interval expires. For a physical
interface, traffic statistics are updated immediately after the new
interval takes effect.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 18


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Operation Description

Enable the control-flap Run the control-flap [ suppress reuse ceiling decay-ok decay-
function. ng ] command to enable the control-flap function on an interface.
The value of suppress is 1000 times the interface suppression
threshold. It ranges from 1 to 20000. The default value is 2000.
The value of suppress must be greater than the value of reuse
and less than the value of ceiling.
The value of reuse is 1000 times the interface reuse threshold. It
ranges from 1 to 20000. The default value is 750. The value of
reuse must be less than the value of suppress.
The value of ceiling is 1000 times the maximum interface
suppression penalty value. It ranges from 1001 to 20000. The
default value is 6000. The value of ceiling must be greater than
the value of suppress.
decay-ok specifies the half life for the penalty value when an
interface is Up. It ranges from 1 to 900, in seconds. The default
value is 54.
decay-ng specifies the half life for the penalty value when an
interface is Down. It ranges from 1 to 900, in seconds. The
default value is 54.

Step 4 Run commit


The configuration is committed.

----End

2.3.3 Enabling an Interface


Physical interfaces on a device are initialized and started when the device is powered on.

Context

This configuration process is supported only on the Admin-VS.

Procedure
l By default, interfaces are started.
l If an interface is shut down, perform the following steps to start the interface:
a. Run system-view
The system view is displayed.
b. Run interface interface-type interface-number
The interface view is displayed.
c. Run undo shutdown
The interface is started.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 19


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

d. Run commit
The configuration is committed.
----End

2.3.4 (Optional) Configuring a Device to Send a Trap Message to


an NMS When an Interface Physical Status Changes
You can enable a device to send a trap message to an NMS when the interface physical status
changes. After this function is enabled, the NMS monitors the interface status in real time.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run enable snmp trap physical-updown
The device is enabled to send a trap message to the NMS when the interface physical status
changes.

Step 4 Run commit


The configuration is committed.

----End

2.3.5 (Optional) Configuring IPv4 and IPv6 Traffic Statistics on


The Main Interface
You can configure the function on a main interface to collect the IPv4 and IPv6 traffic
statistics about all the main interfaces.

Context
Do as follows on the Router that needs to be configured with IPv4 and IPv6 traffic statistics.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Run statistic enable
IPv4 and IPv6 traffic statistics about a main interface are collected.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 20


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Step 4 Run statistic mode forward

IPv4 and IPv6 traffic statistics about a specified interface are collected.

Step 5 Run commit

The configuration is committed.

----End

2.3.6 Configuring a Bandwidth Mode for an Interface


Different bandwidth modes can be configured for device interfaces.

Context
Figure 2-1 shows the interface layout on a device panel.
l Every four interfaces in the range 0 to 23 and each interface in the range 24 to 29 are
grouped together to share the 100 Gbit/s bandwidth. The interfaces are arranged into the
following six groups: (0–3, 24), (4–7, 25), (8–11, 26), (12–15, 27), (16–19, 28),
and (20–23, 29).
l Each interface in the range 30 to 43 exclusively occupies 100 Gbit/s bandwidth.

Figure 2-1 Interface layout on a device panel

Default bandwidth of interfaces 0 to 43

The bandwidth of interfaces 0 to 43 is controlled by a license. Table 2-6 shows the default
bandwidth of the interfaces.

Table 2-6 Default bandwidth of interfaces


Interface Default Default Bandwidth When a License Is
Bandwidth Activated
When a
License Is Not
Activated

0–23 100 Mbit/s 25 Gbit/s

24–29 0 0

30–43 100 Mbit/s 100 Gbit/s

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 21


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Bandwidth modes supported on interfaces 0 to 29

Because every four interfaces in the range 0 to 23 and each interface in the range 24 to 29 are
grouped together to share the 100 Gbit/s bandwidth, the bandwidth mode of the interfaces in
the range 24 to 29 can be switched using the port split dimension interface command. Table
2-7 uses the group (0–3, 24) as an example to show the supported bandwidth modes.

Table 2-7 Bandwidth modes supported on interfaces 0 to 29

No. Bandwidth Mode Whether Whether a Breakout


Controlled Fiber or Breakout
by a Box Is Required
License

1 4 x 25G + null (default mode after a Yes No


license is activated). That is, interfaces 0
to 3 each have 25 Gbit/s bandwidth, and
interface 24 has 0 Gbit/s bandwidth.

2 null + 1 x 100G. That is, interfaces 0 to 3 Yes No


each have 0 Gbit/s bandwidth, and
interface 24 has 100 Gbit/s bandwidth.

3 4 x 10G + 1 x 40G. That is, interfaces 0 to No No


3 each have 10 Gbit/s bandwidth, and
interface 24 has 40 Gbit/s bandwidth.

4 4 x 10G + 4 x 10G. That is, interfaces 0 to No Yes


3 each have 10 Gbit/s bandwidth, and
interface 24 is split into four 10G
interfaces.

Bandwidth modes supported on interfaces 30 to 43

After licenses are activated for interfaces 30 to 43, the bandwidth is 100 Gbit/s by default.
You can switch the bandwidth to the following modes using the port split dimension
interface command.

Table 2-8 Bandwidth modes supported on interfaces 30 to 43

No. Bandwidth Mode Whether Whether a Breakout


Controlled Fiber or Breakout
by a Box Is Required
License

1 1 x 100G (default mode after a license is Yes No


activated)

2 1 x 40G No No

3 4 x 10G No Yes

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 22


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run license
The license view is displayed.
Step 3 Run active port-basic slot slot-id card card-id port port-list
The interface-specific basic hardware license is activated.
To deactivate interface-specific basic hardware license, run the undo active port-basic slot
slot-id card card-id [ port port-list ] command in the license view. After the configuration is
committed, the basic hardware license resources are released.

When configuring the bandwidth mode for interfaces 0 to 29, perform both license activation and
interface splitting on interfaces 24 to 29.

Step 4 Run port split dimension interface {{ interface-name1 interface-type interface-number1 }


[ to { interface-name2 interface-type interface-number2 } ] } &<1–12> split-type split-type
A bandwidth mode is configured.
Step 5 Run commit
The configuration is committed.

----End

2.3.7 (Optional) Configuring an Interface Splitting Mode


By configuring an interface splitting mode, you can switch the bandwidth mode of the split
interface.

Context
To switch an interface bandwidth mode, configure an interface splitting mode, which
increases the networking flexibility and saves interface costs.

In VS mode, this configuration process is supported only by the admin-VS.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run port split dimension interface { { interface-name1 | interface-type interface-number1 }
[ to { interface-name2 | interface-type interface-number2 } ] } &<1–12> split-type split-
type
Interface splitting is configured.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 23


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Currently, a 100GE interface can be configured as 1*100GE,1*40GE,4*10GE,null-1*100GE and


4*25GE-null interfaces.

Step 3 Run commit


The configuration is committed.

----End

2.3.8 Verifying the Configuration of an Interface


After the configurations are complete, check the status of the interface, statistics on the
interface, and the control-flap operation.

Procedure
l Run the display interface [ interface-type interface-number ] command to check the
status of the interface and statistics on the interface.
l Run the display control-flap interface interface-type interface-number command to
check the configuration and running status of the control-flap function on interfaces.
l Run the display counters [ bit ] [ inbound | outbound ] [ interface interface-type
[ interface-number ] ] [ slot slot-id ] command to check the interface traffic statistics.
l Run the display counters [ bit ] rate [ inbound | outbound ] [ interface interface-type
[ interface-number | slot slot-id ] | slot slot-id ] command to check the interface traffic
rates.
l Run the display port split or display port split slot command to display the splitting
status of the interface.
l Run the display interface neighbor [ interface-type interface-number | slot slot-id
[ card card-number ] ] command to check information about the neighboring devices
and interfaces of physical interfaces on a device.
----End

2.4 Configuring the Physical Link Detection Function


The physical link detection function helps reduce the number of alarms generated on links and
avoid system performance degradation caused by plenty of alarms that would be otherwise
generated.

Usage Scenario
When plenty of alarms are generated on links, system performance deteriorates because the
system has to process the huge number of alarms. You can set thresholds for different types of
alarms, so that alarms are generated only when the alarm thresholds are reached. In addition,
measures can be taken when necessary to remove faults and guarantee the transmission of
normal traffic.

Pre-configuration Tasks
Before configuring physical link detection, complete the following tasks:

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 24


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

l Powering on the Router, ensuring that the Router works properly and completes self-
check successfully.
l Configure physical attributes for interfaces on the Router.

2.4.1 Configuring the Alarm Function for CRC Errors, SDH


Errors, Input Errors, Output Errors, or Optical Module Power
Exceptions
This section describes how to configure the alarm function for CRC errors, SDH errors, input
errors, output errors, or optical module power exceptions.

Context
If the alarm function is enabled on an interface, the system generates an alarm when the
number of errors or bandwidth usage exceeds or falls below the threshold set on the interface.
If the alarm function is disabled, the system does not generate any alarm, no matter whether
the number of errors or bandwidth utilization exceeds or falls below the set threshold. The
configuration takes effect on all physical interfaces supporting the alarm function.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run snmp-agent trap enable port { crcexc-error | input-error | output-error | sdh-error-
rising | optical-module-abnormal }
The alarm function is enabled on interfaces.
The configuration takes effect on all physical interfaces supporting the alarm function.
Different types of alarms can be set on an interface as necessary.
l crcexc-error: Enables the alarm function for CRC errors on an interface.
l sdh-error-rising: Enables the alarm function for SDH errors on an interface.
l optical-module-abnormal: Enables the alarm function for optical module power
exceptions on an interface.
In VS mode, this command is supported only by the admin VS.
Step 3 Run interface interface-type interface-number
The interface view is displayed.
Step 4 Configure thresholds for different types of interface alarms and the alarm intervals.
l Configure the alarm threshold for inbound and outbound bandwidth usage:
– Run trap-threshold { input-rate | output-rate } bandwidth-in-use [ resume-rate
resume-threshold ]
The inbound and outbound bandwidth usage threshold is set.
To prevent alarms from being generated frequently, keep a large difference between
bandwidth-in-use and resume-threshold.
– Run set flow-stat interval interval

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 25


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

The traffic statistic collection interval is set for the interface, in seconds.
The new traffic statistic collection interval takes effect after the original traffic
statistic collection interval expires. If the interface is logical, traffic statistics about
the interface are updated when the new traffic statistic collection interval takes
effect for the second time. If the interface is physical, traffic statistics about the
interface are updated immediately after the new traffic statistic collection interval
takes effect.
The traffic statistic collection interval set on an interface is effective only on the
interface.

You can configure a global traffic statistic collection interval, which takes effect on all
interfaces, including the interfaces on which no traffic statistic collection interval has been
set. To configure a global traffic statistic collection interval, run the set flow-stat interval
interval command in the system view. The traffic statistic collection interval of an interface
takes preference over a global traffic statistic collection interval.
l Configure CRC alarm thresholds and a detection interval (for Ethernet interfaces using
either of the following methods):
– Run trap-threshold crc-error threshold interval-second interval [ shutdown ]
An alarm threshold is set based on a specified interval.
A device will generate an alarm if the number of packets with CRC errors received
within the interval exceeds the configured alarm threshold.
– Run trap-threshold crc-error high-threshold high-threshold low-threshold low-
threshold interval-second interval [ shutdown ]
The upper threshold and lower threshold for generating a CRC alarm, and the
detection interval are set.

You can run the trap-threshold slot slot-id card card-id crc-error high-threshold high-
threshold low-threshold low-threshold interval-second interval command in the system
view to configure global values for all interfaces on the specified subcard.
l Configure SDH alarm thresholds and a detection interval (for 10GE WAN interfaces
using either of the following methods):
– Run trap-threshold sdh-error threshold interval-second interval
An alarm threshold is set based on a specified interval.
A device will generate an alarm if the number of packets with SDH errors received
within the interval exceeds the configured alarm threshold.
– Run trap-threshold sdh-error high-threshold high-threshold low-threshold low-
threshold interval-second interval
The upper threshold and lower threshold for generating an SDH alarm, and the
detection interval are set.

You can run the trap-threshold slot slot-id card card-id sdh-error high-threshold high-
threshold low-threshold low-threshold interval-second interval command in the system
view to configure global values for all interfaces on the specified subcard.
l Configure symbol alarm thresholds and a detection interval (for Ethernet interfaces
only).

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 26


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

– Run trap-threshold symbol-error high-threshold high-threshold low-threshold


low-threshold interval-second interval
The upper threshold and lower threshold for generating a symbol alarm, and the
detection interval are set.

You can run the trap-threshold slot slot-id card card-id symbol-error high-threshold
high-threshold low-threshold low-threshold interval-second interval command in the
system view to configure global values for all interfaces on the specified subcard.
l Configure input/output alarm thresholds and a detection interval (for Ethernet
interfaces).
– Run trap-threshold { input-error | output-error } high-threshold high-threshold
low-threshold low-threshold interval-second interval
The upper threshold and lower threshold for generating an interface input or output
alarm are set.

You can run the trap-threshold slot slot-id card card-id symbol-error high-threshold
high-threshold low-threshold low-threshold interval-second interval command in the
system view to configure global values for all interfaces on the specified subcard.
l Configure an alarm threshold and a clear alarm threshold for the CRC error packet ratio:
– Run trap-threshold crc-error packet-error-ratio alarm-threshold coefficient-
value power-value [ resume-threshold coefficient-value power-value ] [ trigger-lsp
| trigger-section ]
An alarm threshold and a clear alarm threshold for the CRC error packet ratio are
set.
l Configure parameters for the algorithm to calculate the CRC packet error ratio:
– Run crc-error packet-error-ratio algorithm-parameter sample-window-factor
child-window-max-number child-window-alarm-number child-window-resume-
number
The parameters are set for the algorithm to calculate the CRC packet error ratio.
l Configure CRC alarm threshold in percentages:
– Run trap-threshold crc-error percent percent-value
The CRC alarm threshold in percentages is set.

Step 5 (Optional) Run port-alarm down { crc-error | sdh-error | symbol-error | input-error |


output-error }

An interface is configured to go Down upon receiving the alarms.

l You can run the port-alarm down slot slot-id card card-id { crc-error | sdh-error | symbol-error |
input-error | output-error } command in the system view to apply the configurations to all
interfaces on the subcard.
l After an interface is configured to go Down upon receiving the alarms, you can run the port-alarm
clear { crc-error | sdh-error | symbol-error | input-error | output-error } command to clear the
alarms on the interface.

Step 6 Run commit

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 27


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

The configuration is committed.

----End

2.4.2 Configuring the Alarm Function for Pause-Frame Errors


Received on an Interface
This section describes how to configure the alarm function for pause-frame errors received on
an interface.

Context
A device generates an alarm and sends it to an NMS only when the number of pause-frame
error packets sent or received by the device reaches the upper threshold for three consecutive
detection intervals. The device sends a clear alarm to the NMS only when the number of
pause-frame error packets sent or received by the device falls below the lower threshold for
three consecutive detection intervals.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The view of an interface is displayed.
Step 3 Run trap-threshold pause-frame high-threshold high-threshold low-threshold low-
threshold interval-second interval
The upper threshold, lower threshold, and detection interval for the pause-frame error alarm
are set.
Step 4 Run commit
The configuration is committed.

----End

2.4.3 Configuring the Alarm Function in Case the Number of


SDH B1 or SDH B2 Error Packets That an Interface Receives
Exceeds an Alarm Threshold
You can configure the alarm function in case the number of SDH B1 or SDH B2 error packets
exceeds an alarm threshold. If such an alarm is generated, the link is in a poor condition.

Context
If an interface receives a large number of SDH B1 or SDH B2 error packets, the link is in a
poor condition, affecting service transmission. In this situation, you can configure the alarm
function, alarm threshold, and detection interval on an interface. The system then detects the
number of SDH B1 or SDH B2 error packets that the interface receives at the configured
interval. If the number of SDH B1 or SDH B2 error packets exceeds the configured alarm
threshold, the system generates an alarm and sends it to the NMS, prompting the

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 28


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

administrator to perform maintenance on the interface and troubleshoot the fault. When the
number of SDH B1 or SDH B2 error packets falls below the alarm threshold, the system
generates a clear alarm and sends it to the NMS, notifying the administrator that the alarm has
been cleared.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run snmp-agent trap enable feature-name port trap-name


{ hwifmonitorsdhb1errorrising | hwifmonitorsdhb2errorrising }

The alarm function is configured in case the number of SDH B1 or SDH B2 error packets
exceeds an alarm threshold.

Step 3 Run interface interface-type interface-number

The interface view is displayed.

The interface can be a 10 GE WAN .

Step 4 Run trap-threshold { sdh-b1-error | sdh-b2-error } threshold interval-second interval

A threshold and detection interval for the SDH B1 or SDH B2 error alarm on an interface are
set.

Step 5 Run commit

The configuration is committed.

----End

2.4.4 Configuring the Alarm Function in Case the Number of


Bytes of Error Packets That an Interface Receives Exceeds an
Alarm Threshold
You can configure the alarm function in case the number of bytes of error packets exceeds a
threshold. If such an alarm is generated, the link is in a poor condition.

Context
If an interface receives a large number of bytes of error packets, the link is in a poor
condition, affecting service transmission. In this situation, you can configure the alarm
function, alarm threshold, and detection interval on an interface. The system then detects the
number of bytes of error packets that the interface receives at the configured interval. If the
number of bytes of error packets exceeds the configured alarm threshold, the system generates
an alarm and sends it to the NMS, prompting the administrator to perform maintenance on the
interface and troubleshoot the fault. When the number of bytes of error packets falls below the
alarm threshold, the system generates a clear alarm and sends it to the NMS, notifying the
administrator that the alarm has been cleared.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 29


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run snmp-agent trap enable port bad-bytes
The alarm function is configured in case the number of bytes of error packets exceeds an
alarm threshold.

Step 3 Run interface interface-type interface-number


The interface view is displayed.
Step 4 Run trap-threshold bad-bytes trap-threshold interval-second interval
An alarm threshold is configured for the number of bytes of error packets that the interface
receives, and an interval is configured for the system to detect the number of bytes of error
packets.

Step 5 Run commit


The configuration is committed.

----End

2.4.5 Verifying the Physical Link Detection Configuration


You can check the interface configuration and state information after configuring the physical
link detection function.

Context
You can check the interface configuration and state information after configuring the physical
link detection function.

Procedure
l Run the display trap-info command in the interface view, or run the display trap-info
{ interface-type interface-number | interface-name | slot slot-id card card-id } command
in the system view to check configuration and state information about the specified
interface, including whether the alarm function is enabled on the interface, alarm
threshold, alarm interval, alarm blocking, current alarm state, and the number of current
alarms.
l Run the display port-error-info interface { interface-type interface-number | interface-
name command in the interface view to check the trap information about error codes/
error packets of an interface.
----End

2.5 Configuring MAC Accounting


If the MAC accounting function is enabled on an interface of a device, the device collects
IPv4 or IPv6 traffic statistics corresponding to MAC addresses learned by the interface.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 30


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Usage Scenario

Figure 2-2 MAC accounting usage scenario

MAC accounting can be used in either of the following scenarios:


l When a Huawei device on an ISP network functions as an Internet exchange point (IXP),
the networks connected to the IXP are provided by other carriers. When the ISP leases
the other carriers' networks, for example, Network1 and Network2, they charge the ISP
by traffic volume. To check traffic of MAC addresses, run the mac accounting enable
command to enable the MAC accounting function on the IXP's interface, so that traffic
of the peer routers can be obtained. This facilitates the ISP to verify or analyze traffic.
l If the IXP is under DDoS attacks, the MAC accounting function helps the ISP to check
the traffic of peer routers with specified MAC addresses. If traffic of a specified MAC
address is huge, the attack traffic may be from this device with the specified MAC
address.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The user interface view is displayed.

Step 3 Run mac accounting enable

MAC accounting is enabled.

Step 4 Run commit

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 31


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

The configuration is committed.

----End

Verifying the Configuration


After MAC accounting is enabled, run the display mac accounting command to check MAC
accounting statistics on the interface or its sub-interfaces.

If you need to re-check MAC accounting statistics after a period, run the reset mac
accounting command to delete the existing statistics and then run the display mac
accounting command. This ensures statistics accuracy.

2.6 Configuring Strict Filter for EVC Sub-Interfaces


This section describes how to configure strict filter for EVC sub-interfaces.

Usage Scenario
On a BD scenario, the Router has two sub-interfaces configured in a main interface, one with
the Dot1q encapsulation type and the other with the default encapsulation type. Once the sub-
interface encapsulated Dot1q receives traffic, the sub-interface with the default encapsulation
type also sends out the traffic. This may cause the illusion of return current. Besides, the
Router has two interfaces configured on a BD scenario. The first interface has a sub-interface
that is configured with the Dot1q encapsulation type. The second interface has two sub-
interfaces that are configured with the Dot1q and default encapsulation types respectively.
Once traffic passes through the sub-interface on the first interface, the second interface also
sends two copied traffic from each of its sub-interfaces. This causes traffic to be replicated,
wasting resources and reducing the board's forwarding efficiency. To allow traffic to be sent
through specific interfaces, enable strict filter.

Pre-configuration Tasks
Before configuring strict filter on an interface, configure physical attributes for interfaces on
the Router.

Procedure
l Enable strict filter globally.
a. Run system-view

The system view is displayed.


b. Run ethernet egress-strict-filter

Strict filter is enabled globally.


c. Run commit

The configuration is committed.


l Enable strict filter on an EVC sub-interface.
a. Run system-view

The system view is displayed.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 32


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

b. Run interface interface-type interface-number.sub-interface-number mode l2


The EVC sub-interface view is displayed.
c. Run ethernet egress-strict-filter
Strict filter is enabled for the EVC sub-interface.
d. Run commit. The configuration is committed.

The ethernet egress-strict-filter { enable | disable } command run on an EVC sub-


interface view takes precedence over the ethernet egress-strict-filter command running in
the system view. The strict filter configuration on an EVC sub-interface takes effect,
irrespective of the global strict filter configuration.

----End

2.7 Enabling the Signal Sending Delay Function


This section describes how to configure the signal sending delay function.

Usage Scenario
After a device is restarted or a board is replaced, if an interface sends signals immediately
after initialization before the link completes a switchover or configuration restoration, data
loss may occur. To prevent data loss, configure the signal sending delay function.

l Only physical interfaces can be configured with signal sending delays. Logical interfaces do not
support this function.
l Configuring a signal sending delay does not affect an interface that has sent signals to the peer, and
the configuration takes effect after the interface is initialized.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Perform either of the following configurations as required.
1. Run interface interface-type interface-number
The GE, 10GE WAN or 10G LAN interface view is displayed.
Step 3 Run port-tx-enabling-delay port-tx-delay-time
The signal sending delay function is enabled, and the signal sending delay is configured.

----End

Verifying the Configurations


Run the display port-tx-enabling-delay interface { ethernet | gigabitethernet } interface-
number command to check information about the signal sending delay configured on the
interface.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 33


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

The preceding command output shows that the signal sending delay configured on GE 0/1/0 is
100 ms and that the interface sends signals in 20 ms.

2.8 Enabling or Disabling the Optical Module Laser


This section describes how to enable or disable the optical module laser.

Usage Scenario
Before locating or troubleshooting a link failure, maintenance engineers should ensure that the
optical module laser is disabled so that it cannot cause injury. The optical module can be
configured to disable the laser automatically if it detects a link failure. The laser can also be
disabled manually. If the optical module is configured to disable the laser automatically, the
laser is not immediately re-enabled when the link failure is cleared. However, maintenance
engineers can enable the optical module laser manually to check whether services have
recovered.

Pre-configuration Tasks
Before enabling or disabling the optical module laser, complete the following tasks:
l Power on the Router.
l Ensure that the optical module has been installed and that the interface is Up.

2.8.1 Disabling the Optical Module Laser


Disabling the optical module laser before troubleshooting a link failure protects maintenance
engineers from the laser.

Context
Before locating or troubleshooting a link failure, maintenance engineers should ensure that the
optical module laser is disabled so that it cannot cause injury. The optical module can be
configured to disable the laser automatically if it detects a link failure. The laser can also be
disabled manually.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number
The interface view is displayed.
Step 3 Perform either of the following operations:
l Configure the optical module to disable the laser automatically.
a. To configure the optical module to disable the laser automatically, run the laser
autoshutdown enable command.
b. (Optional) To configure intervals at which the optical module laser is disabled or
enabled and the system checks for link failures, run the laser auto-shutdown-
interval { open opentime-interval | close closetime-interval } command.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 34


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

l Disable the optical module laser manually.


To disable the optical module laser manually, run the laser turn-off command.

NOTICE

Running the laser turn-off command interrupts services on the interface. Therefore, do
not run the command when the interface is working properly.

Step 4 Run commit

The configuration is committed.

----End

2.8.2 (Optional) Enabling the Optical Module Laser


After enabling the optical module laser, you can check whether the link failure is cleared.

Context
If the optical module is configured to disable the laser automatically, the laser is not
immediately re-enabled when the link failure is cleared. However, maintenance engineers can
enable the optical module laser manually to check whether services have recovered.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

The interface can be a GE optical interface.

Step 3 Run laser turn-on [ duration duration ]

The optical module laser is enabled, and the duration for which the optical module laser will
be temporarily enabled is configured.

The duration takes effect only after the laser autoshutdown enable command is run.

Step 4 Run commit

The configuration is committed.

----End

2.8.3 Verifying the Configuration of Enabling or Disabling the


Optical Module Laser
After enabling or disabling the optical module laser, check its status.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 35


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Prerequisites
The optical module laser has been enabled or disabled as required.

Context
The following operations affect the status of the optical module laser:
l Run the laser turn-on command to enable the optical module laser.
l Run the laser turn-off command to disable the optical module laser.
l Run the laser autoshutdown enable command to configure the optical module to
disable the laser automatically if it detects a link failure.
l Run the shutdown command to deactivate the interface.

Procedure
l Run the display laser status { interface interface-type interface-number } command in
any view to check the status of the optical module laser.
----End

2.9 Enabling the Optical Module Alarm Threshold


Standardization Function
You can enable the alarm standardization function for an optical module to prevent the optical
module from reporting alarms when its optical power exceeds the threshold.

Context
Enabling alarm threshold standardization implements optical power-related alarm threshold
standardization and changes the mode of obtaining thresholds for sending and receiving
optical power. If the optical-module threshold-standardization enable command is not run,
thresholds are calculated based on data read from the optical module registers, which is the
default mode of obtaining a threshold. If the optical-module threshold-standardization
enable command is run, optical power thresholds use a standardized value that is calculated
based on the optical module transmission distance and bandwidth.

The device has two types of optical module power alarms: warning and alarm. A warning is reported
when the difference between the actual power and vendor-defined threshold is not great. It can also be
considered as a precaution. Some optical modules can continue working properly when the actual optical
power is at the warning level. You can disable the alarm function for these optical modules to prevent
these optical modules from frequently reporting warnings by executing the following command.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run optical-module alarm-threshold standardization enable
The alarm threshold standardization function is enabled for the optical module.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 36


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Step 3 Run commit

The configuration is committed.

----End

2.10 Disabling the Optical Module Alarm Function


You can disable the alarm function for an optical module to prevent the optical module from
reporting alarms when its optical power exceeds the threshold.

Context
The system automatically obtains the vendor-defined power threshold of an optical module
and compares it with the actual power. If the actual power exceeds the vendor-defined
threshold, an alarm will be generated. Generally, the actual power is greater than the vendor-
defined threshold, which means frequent alarm reporting. It is unfeasible to install an
attenuator on each optical module to prevent frequent reporting of such power alarms. You
can disable the alarm function for the optical module by executing the following command.

The device has two types of optical module power alarms: warning and alarm. A warning is reported
when the difference between the actual power and vendor-defined threshold is not great. It can also be
considered as a precaution. Some optical modules can continue working properly when the actual optical
power is at the warning level. You can disable the alarm function for these optical modules to prevent
these optical modules from frequently reporting warnings by executing the following command.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface interface-type interface-number

The interface view is displayed.

Step 3 Run port-alarm disable optical-module { rx-power-high-warning | rx-power-low-


warning | tx-power-high-warning | tx-power-low-warning | voltage-high-warning |
voltage-low-warning }*

The alarm function is disabled for the optical module.

Step 4 Run commit

The configuration is committed.

----End

2.11 Managing Non-Huawei-Certified Optical Modules


To manage non-Huawei-certified optical modules, you can suppress the alarms for non-
Huawei-certified optical modules and enable the function of setting interfaces with the optical
modules inserted to Down.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 37


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Context
When an interface is inserted with a non-Huawei-certified optical module, the system
automatically reports an alarm. If you want to suppress the alarm, you can disable the function
of reporting the alarm for the non-Huawei-certified optical module. If you do not want to use
the interface with the optical module inserted, you can enable the function of setting the
interface to Down.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run transceiver non-certified-alarm disable

The function of reporting an alarm for a non-Huawei-certified optical module is disabled.

Step 3 Run transceiver non-certified-alarm port-down enable

The function of setting an interface with a non-Huawei-certified optical module inserted to


Down is enabled.

Step 4 Run commit

The configuration is committed.

----End

2.12 Configuring the Control-Flap Function


This section describes how to configure the control-flap function.

Usage Scenario
The flapping of routing protocols, MPLS, and other protocols caused by the frequent change
of the interface status may influence the stability of the whole network. To resolve this
problem, you can configure the control-flap function.

Pre-configuration Tasks
Before configuring the control-flap function, configure the physical attributes for the Router
interfaces.

Procedure
l Configure the control-flap function.
a. Run system-view

The system view is displayed.


b. Run interface interface-type interface-number

The interface view is displayed.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 38


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

The null interface and loopback interface do not support the control-flap function.
c. Run control-flap [ suppress reuse ceiling decay-ok decay-ng ]
The control-flap function is enabled on the interface.
The value of suppress is 1000 times the suppress threshold of the interface. It
ranges from 1 to 20000. The default value is 2000. The value of suppress must be
greater than the value of reuse and smaller than the value of ceiling.
The value of reuse is 1000 times the reuse threshold of the interface. It ranges from
1 to 20000. The default value is 750. The value of reuse must be smaller than the
value of suppress.
The value of ceiling is 1000 times the suppress penalty value of the interface. It
ranges from 1001 to 20000. The default value is 6000. The value of ceiling must be
greater than the value of suppress.
The value of decay-ok is the time taken to decay the penalty value to half when the
interface is Up. It ranges from 1 to 900 seconds. The default value is 54 seconds.
The value of decay-ng is the time taken to decay the penalty value to half when the
interface is Down. It ranges from 1 to 900 seconds. The default value is 54 seconds.
d. Run commit
The configuration is committed.
l Configure the damp-interface function.
a. Run system-view
The system view is displayed.
b. (Optional) Run interface interface-type interface-number
The view of an interface is displayed.
c. Run damp-interface enable
Suppression on interfaces' physical status flappings is enabled.
d. (Optional) Run damp-interface level { light | middle | heavy | manual { half-life-
period suppress reuse max-suppress-time } }
A suppression level is configured for interfaces' physical status flappings.
n light: If light suppression is configured, the system triggers suppression only
when an interface's status flaps frequently and rapidly. The light suppression
level is the default setting and applies to flappings that have the maximum
impact on the system.
n heavy: If heavy suppression is configured, the system triggers suppression
when detecting an interface's status begins to flap, even if the flapping is not
severe. On the heavy suppression level, an interface is prone to be suppressed.
This level applies to services that are sensitive to flappings. Enabling heavy
suppression prevents service interruptions or resource waste caused by
interface flappings.
n middle: Intensity of middle suppression is between the light and heavy levels.
n manual: If light, middle, or heavy suppression cannot meet your requirement,
you can specify manual.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 39


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

e. (Optional) Run damp-interface mode tx-off


Interfaces are disabled from sending signals if the interfaces' physical status
flappings are suppressed.
If an interface's physical status flappings are suppressed, the interface can be
disabled from sending signals, so that the remote interface can detect that the local
interface is unavailable.
If the local interface is disabled from sending signals, the remote interface considers
it Down.
If suppression on the local interface's physical status flappings is canceled, this
interface automatically begins to send signals to the remote interface. The remote
interface then considers this interface Up.
f. Run commit
The configuration is committed.
----End

Checking the Configurations


Run the display control-flap interface interface-type interface-number command to check
the previous configuration.
Run the display damp-interface [ interface interface-type interface-number ] command to
check the status and statistics about status flapping suppression on the interface.

2.13 Configuring Logical Interfaces


This section describes how to configure logical interfaces. Logical interfaces are manually
configured interfaces, which are used to exchange data. Logical interfaces do not exist
physically.

Usage Scenario
For usage scenarios of logical interfaces, see "Logical Interface" in NE40E-Feature
Description-Interface Management.

Table 2-9 Logical interface list


Feature Interface Name Configuration Guide

System DCN serial interface This interface is automatically created by the


management system.

Interface Virtual Ethernet (VE) Creating an L2VE Interface


management interface Creating an L3VE Interface

Interface Global VE interface Creating a Global-VE interface


management

Interface Loopback interface Creating a Loopback Interface and


management Configuring Its IP Address

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 40


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Feature Interface Name Configuration Guide

Interface Null0 interface Entering the NULL Interface View


management

LAN access and Ethernet sub-interface Configuring Ethernet Sub-interfaces to


MAN access Support Communication Between VLANs

LAN access and Eth-Trunk interface Eth-Trunk Interface Configuration


MAN access

LAN access and VLANIF interface Configuring Layer 3 Communication Between


MAN access VLANIF Interfaces

MPLS Tunnel interface MPLS TE Configuration

Pre-configuration Tasks
Before configuring logical interfaces, connect interfaces and set their physical parameters to
ensure that these interfaces are physically up.

2.13.1 Creating a Global-VE interface


Global-VE interfaces are independent of boards. You can create Global-VE interfaces only if
the Router is powered on.

Procedure
Step 1 Run system-view

The system view is displayed.

Step 2 Run interface global-ve ve-number

A Global-VE interface is created and the Global-VE interface view is displayed.

Step 3 Run commit

The configuration is committed.

----End

2.13.2 Configuring a VLAN Channelized Sub-Interface


This section describes how to configure a VLAN channelized sub-interface.

Context
To prevent services from affecting each other, a mechanism to isolate different types of
services is in need. Different service flows are forwarded through specific VLAN channelized
sub-interfaces with dot1q encapsulation. Each channelized sub-interface implements
independent HQoS scheduling to isolate services of different types.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 41


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface interface-type interface-number.subinterface-number
The view of a physical sub-interface is displayed.
Step 3 Run vlan-type dot1q
The encapsulation mode of the physical sub-interface is set to dot1q.
Step 4 Run quit
Return to the system view.
Step 5 Run license
The license view is displayed.

There is no need to activate the license for a channelized sub-interface on a GE interface.

Step 6 Run active port-mode-channel


The license for a channelized sub-interface is activated.
Step 7 Run quit
Return to the system view.
Step 8 Run interface interface-type interface-number.subinterface-number
The physical sub-interface view is displayed.
Step 9 Run mode channel enable
The physical sub-interface is configured as a VLAN channelized sub-interface.
Step 10 Run commit
The configuration is committed.

----End

2.13.3 Creating a Loopback Interface and Configuring Its IP


Address
In most cases, you need to assign IP addresses to loopback interfaces, and then use the
loopback interfaces that are always Up to communicate with other devices.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface loopback loopback-number

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 42


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

A loopback interface is created.


You can create or delete loopback interfaces dynamically. Once a loopback interface is
created, it remains Up all the time. When a loopback interface monitors an interface
monitoring group, the status of the interface monitored group changes to Down. In other
cases, the physical status and link protocol status of the loopback interface are Up.
Step 3 Run ip address ip-address { mask | mask-length }
The IP address of the loopback interface is configured.
Step 4 Run commit
The configuration is committed.

----End

2.13.4 Entering the NULL Interface View


The system automatically creates a NULL0 interface. The NULL interface is used for
preventing routing loops and filtering traffic.

Procedure
Step 1 Run system-view
The system view is displayed.
Step 2 Run interface null 0
The NULL interface view is displayed.
The NULL interface is always in the Up state but does not forward any data packets. In
addition, IP addresses cannot be configured on the NULL interface, and data link layer
protocol cannot be encapsulated on the NULL interface.

----End

Follow-up Procedure
The NULL interface is used to prevent routing loops and filtering traffic. If the ip route-static
192.168.0.0 255.255.0.0 NULL 0 command is run, the device will discard all packets
destined for the network segments 192.168.0.1 to 192.168.255.255.

2.13.5 Verifying the Logical Interface Configuration


After the configuration on the interface is completed, check the configurations.

Prerequisites
Configuration of the Global-VE interface, Loopback interface or NULL interface is
completed.

Procedure
l Run the display interface global-ve [ ve-number ] command to check the status of the
Global-VE interface.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 43


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

l Run the display interface loopback [ loopback-number ] command to check the status
of the Loopback interface.
l Run the display interface null [ 0 ] command to check the status of the NULL interface.

----End

2.14 Configuring an Interface Group


An interface group can be used to perform interface configuration in batches, simplifying
interface configurations and reducing management costs.

Context
Interface groups are classified into permanent and temporary interface groups. Multiple
interfaces can be added to the same permanent or temporary interface group to enable batch
command configurations for the interfaces. The differences between permanent and
temporary interface groups are described as follows:
l After a user exits the view of a temporary interface group, the system automatically
deletes the temporary interface group. A permanent interface group, however, can be
deleted only by using the undo port-group command.
l Information about a permanent interface group can be viewed using the display port-
group command, whereas information about a temporary interface group cannot.
l After a permanent interface group is configured, a configuration file is generated.
However, no configuration file is generated after a temporary interface group is
configured.

Procedure
l Configure a permanent interface group.
a. Run system-view

The system view is displayed.


b. Run port-group port-group-name

A permanent interface group is created and the view of the permanent interface
group is displayed.
c. Run group-member { interface-type interface-number1 [ to interface-type
interface-number2 ] } &<1-10>

Specified interfaces are added to the permanent interface group.


d. Run commit

The configuration is committed.


l Configure a temporary interface group.
a. Run system-view

The system view is displayed.


b. Run port-group group-member { interface-type-start interface-number-start [ to
interface-type-end interface-number-end ] } &<1-10> or

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 44


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

A temporary interface group is created and specified interfaces are added to the
temporary interface group.
----End

Checking the Configuration


After the configuration is complete, run the display port-group [ all | port-group-name ]
command to view information about a specified permanent interface group or all permanent
interface groups.

2.15 Configuring an Interface Monitoring Group


In a dual-device backup scenario, you can configure an interface monitoring group to allow
the user-side interface status to change with the network-side interface status so that traffic
can be switched between the master and backup links.

Usage Scenario
In a dual-device backup scenario, when a network-side interface goes Down, user-side
devices cannot detect the Down event and therefore do not switch traffic to the backup link.
As a result, traffic overloads or interruptions occur. To prevent these problems, you can
configure an interface monitoring group to monitor the network-side interface status and
instruct the user-side interface to change its status accordingly. An interface monitoring group
allows traffic to be switched between the master and backup links and prevents traffic
overloads or interruptions.
On the network shown in Figure 2-3, PE2 backs up PE1. NPE1 through NPEM on the user
side is dual-homed to the two PEs to load-balance traffic, and the two PEs are connected to
DeviceA through DeviceN on the network side. When only the link between PE1 and
DeviceN is available and all the links between PE1 and all the other routers fail, the NPEs do
not detect the failure and continue sending packets to DeviceN through PE1. As a result, the
link between PE1 and DeviceN becomes overloaded.

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 45


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Figure 2-3 Typical application of an interface monitoring group

To resolve this problem, you can configure an interface monitoring group and add multiple
network-side interfaces on the PEs to the interface monitoring group. When a link failure
occurs on the network side and the interface monitoring group detects that the status of a
certain proportion of network-side interfaces changes, the system instructs the user-side
interfaces associated with the interface monitoring group to change their status accordingly
and allows traffic to be switched between the master and backup links. Therefore, the
interface monitoring group can be used to prevent traffic overloads or interruptions.

Pre-configuration Tasks
Before configuring an interface monitoring group, configure physical attributes for interfaces
on the Router.

Procedure
Step 1 Run system-view

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 46


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

The system view is displayed.


Step 2 Run monitor-group monitor-group-name
An interface monitoring group is created, and the interface monitoring group view is
displayed.
Step 3 Run binding interface interface-type interface-number [ down-weight down-weight-value ]
An interface is added to the interface monitoring group.
The interface added to an interface monitoring group is called a binding interface. A binding
interface is located on the network side and a track interface on the user side. An interface
monitoring group monitors the binding interface status and allows the track interfaces to
change their status accordingly.
You can repeat this step to add multiple binding interfaces to an interface monitoring group.
Step 4 Run quit
Exit from the interface monitoring group view.
Step 5 Run interface interface-type interface-number
The view of the specified interface on the user side is displayed.
Step 6 Run track monitor-group monitor-group-name [ trigger-down-weight trigger-down-weight-
value ]
The interface is associated with an interface monitoring group.
The user-side interface associated with an interface monitoring group is called a track
interface.
You can repeat steps 5 and 6 to associate multiple track interfaces to an interface monitoring
group.
If the down weight sum of all the binding interfaces in the monitoring group is greater than or
equal to the value specified using trigger-down-weight-value on the track interface, the track
interface goes down, and service traffic is switched to the backup link. Otherwise, the track
interface goes up, and service traffic is switched back to the primary link.
Step 7 Run quit
Exit from the interface view.
Step 8 Run monitor-group monitor-group-name
The view of the created interface monitoring group is displayed.
Step 9 (Optional) Run trigger-up-delay trigger-up-delay-value
The delay after which a track interface goes Up is set.
Step 10 Run monitor enable
The monitoring function is enabled.
Step 11 Run commit
The configuration is committed.

----End

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 47


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Checking the Configurations


Run the display monitor-group [ monitor-group-name ] command to view information about
an interface monitoring group.

2.16 Maintaining Interfaces


The reset commands help locate faults on interfaces.

2.16.1 Clearing Interface Statistics


Before collecting traffic statistics within a specified period of time on an interface, you must
clear existing statistics on the interface.

Context

NOTICE

Statistics cannot be restored after being cleared. Exercise caution when running the following
commands.

Procedure
l To clear the traffic statistics on an interface, run the reset counters interface command
in the user view.
----End

2.16.2 Monitoring Interface Information


Monitoring interface statistics helps you analyze network information based on traffic
statistics and rates.

Procedure
l Run the monitor interface-statistics interface-type interface-number &<1-5> [ interval
interval-value | times { times-value | infinity } ] * command in any view to check traffic
statistics on a specified interface.
l Run the monitor interface-statistics batch [ interface-type [ interface-number-begin
[ to interface-number-end ] ] ] [ interval interval-value | times { times-value |
infinity } ] * [ main ] command in any view to check traffic statistics on interfaces in a
batch.
l Run the monitor interface-information interface interface-type interface-number
[ interval interval-value | times { times-value | infinity } ] * command in any view to
check detailed information, including the running status and traffic statistics, on a
specified interface.
l Run the monitor counters bit [ rate ] interface interface-type interface-number
[ interval interval-value | times { times-value | infinity } ] * command in any view to
monitor traffic statistics on an interface. The traffic statistics include the number of

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 48


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

unicast, multicast, and broadcast packets sent or received by the interface and the packet
transmission rate.

----End

2.17 Configuration Examples for Interface Management


This section provides interface management examples.

2.17.1 Example for Managing Interfaces


This section uses an example to describe how to configure interface parameters, such as the
interface description, maximum transmission unit (MTU), and interval at which traffic
statistics are collected.

Networking Requirements
To ensure smooth communication between devices on a network, you need to configure both
physical and logical interfaces properly and set the following parameters:
l Interface description
l MTU
l Trap threshold for the outbound and inbound bandwidth usage on a specified interface
l Interval at which traffic statistics are collected
l Whether the device sends a trap message to the network management system (NMS)
when the interface status changes
l Whether the control-flap function is enabled

Configuration Roadmap
The configuration roadmap is as follows:

1. Configure description for an interface.


2. Set an MTU for the interface to ensure successful packet transmission over the interface.
3. Set the interval at which traffic statistics (including the traffic volumes and rates) are
collected globally.
4. Create a sub-interface and set an MTU for the sub-interface so that packets can reach the
receiver.

Data Preparation
To complete the configuration, you need the following data:

l Interface name
l Interface description
l Interface MTU
l Interval at which traffic statistics are collected globally
l Sub-interface MTU

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 49


HUAWEI NE40E-F1 Series Universal Service Router
Configuration Guide - Interface and Data Link 2 Interface Management

Procedure
Step 1 Configure description for an interface.
<HUAWEI> system-view
[~HUAWEI] interface gigabitethernet 0/2/0
[~HUAWEI-GigabitEthernet0/2/0] description for IFM
[*HUAWEI-GigabitEthernet0/2/0] commit

Step 2 Set an MTU for the interface.


[*HUAWEI-GigabitEthernet0/2/0] mtu 1000
[*HUAWEI-GigabitEthernet0/2/0] commit
[~HUAWEI-GigabitEthernet20/2/0] quit

Step 3 Set the interval at which traffic statistics are collected globally.
[*HUAWEI] set flow-stat interval 100
[*HUAWEI] commit

Step 4 Create a sub-interface and set the MTU of the sub-interface.


[*HUAWEI] interface gigabitethernet 0/2/0.1
[*HUAWEI-GigabitEthernet0/2/0.1] mtu 800
[*HUAWEI-GigabitEthernet0/2/0.1] commit

----End

Configuration Files
#
sysname HUAWEI
#
set flow-stat interval 100
#
interface gigabitethernet0/2/0
description for IFM
mtu 1000
#
interface gigabitethernet0/2/0.1
mtu 800
#
return

Issue 02 (2019-09-30) Copyright © Huawei Technologies Co., Ltd. 50

You might also like