Sei sulla pagina 1di 49

ZXR10 5900E Series

Easy-Maintenance MPLS Routing Switch


Configuration Guide (Interface Configuration)

Version: 3.00.11

ZTE CORPORATION
No. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: http://support.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION
Copyright © 2014 ZTE CORPORATION.
The contents of this document are protected by copyright laws and international treaties. Any reproduction or
distribution of this document or any portion of this document, in any form by any means, without the prior written
consent of ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by
contractual confidentiality obligations.
All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE
CORPORATION or of their respective owners.
This document is provided “as is”, and all express, implied, or statutory warranties, representations or conditions
are disclaimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose,
title or non-infringement. ZTE CORPORATION and its licensors shall not be liable for damages resulting from the
use of or reliance on the information contained herein.
ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications
covering the subject matter of this document. Except as expressly provided in any written license between ZTE
CORPORATION and its licensee, the user of this document shall not acquire any license to the subject matter
herein.
ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.
Users may visit the ZTE technical support website http://support.zte.com.cn to inquire for related information.
The ultimate right to interpret this product resides in ZTE CORPORATION.

Revision History

Revision No. Revision Date Revision Reason

R1.0 2015–01–15 First edition

Serial Number: SJ-20150114102049-006

Publishing Date: 2015-01-15 (R1.0)

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Contents
About This Manual ......................................................................................... I
Chapter 1 Interface Introduction ............................................................... 1-1
1.1 Interface Types .................................................................................................. 1-1
1.2 Interface Naming Rule ........................................................................................ 1-1
1.3 Viewing Interface Information .............................................................................. 1-2
1.4 Viewing Interface Description .............................................................................. 1-4

Chapter 2 Ethernet Interface Configuration............................................. 2-1


2.1 Ethernet Interface Overview................................................................................ 2-1
2.2 Configuring an Ethernet Interface ........................................................................ 2-2
2.3 Configuring Ethernet Interfaces in Batches......................................................... 2-15
2.4 Ethernet Interface Maintenance......................................................................... 2-20
2.5 Ethernet Interface Configuration Example .......................................................... 2-24

Chapter 3 Logical Interface Configuration............................................... 3-1


3.1 Loopback Interface Configuration ........................................................................ 3-1
3.1.1 Loopback Interface Overview .................................................................... 3-1
3.1.2 Configuring Loopback Interface................................................................. 3-2
3.1.3 Maintaining Loopback Interface................................................................. 3-3
3.1.4 Loopback Interface Configuration Examples .............................................. 3-4
3.2 NULL Interface Configuration .............................................................................. 3-5
3.2.1 NULL Interface Overview .......................................................................... 3-5
3.2.2 Configuring NULL Interface....................................................................... 3-5
3.2.3 Maintaining NULL Interface....................................................................... 3-5
3.2.4 NULL Interface Configuration Example ...................................................... 3-6

Figures............................................................................................................. I
Glossary ........................................................................................................ III

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


This page intentionally left blank.

II

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


About This Manual
Purpose
This manual is the ZXR10 5900E Series (V3.00.11) Easy-Maintenance MPLS Routing
Switch Configuration Guide (Interface Configuration), which is applicable to the ZXR10
5900E (V3.00.11) series switches.

Intended Audience
This manual is intended for:
l Network planning engineer
l Debugging engineer
l Attendant

What Is in This Manual


This manual contains the following chapters:

Chapter 1, Interface Describes the interface type and interface naming rule. In addition,
Introduction this chapter describes how to view interface information, interface
description information, and interface state.

Chapter 2, Ethernet Describes the Ethernet interface, Ethernet interface principle, Ethernet
Interface Configuration interface maintenance, Ethernet interface configuration example. In
addition, this chapter describes how to configure the Ethernet interface,
MAC offset, and interface MTU.

Chapter 3, Logical Describes the logical interface. In addition, this chapter describes how
Interface Configuration to configure the loopback interface and NULL interface.

Conventions
This manual uses the following typographical conventions:

Italics Variables in commands. It may also refer to other related manuals and documents.

Bold Menus, menu options, function names, input fields, option button names, check boxes,
drop-down lists, dialog box names, window names, parameters, and commands.

Constant Text that you type, program codes, filenames, directory names, and function names.
width

[] Optional parameters.

{} Mandatory parameters.

| Separates individual parameter in series of parameters.

Note: provides additional information about a certain topic.

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


This page intentionally left blank.

II

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 1
Interface Introduction
Table of Contents
Interface Types...........................................................................................................1-1
Interface Naming Rule................................................................................................1-1
Viewing Interface Information .....................................................................................1-2
Viewing Interface Description .....................................................................................1-4

1.1 Interface Types


Interfaces are divided into following types on ZXR10 5900E,
l Physical interfaces
These refer to interfaces, which exist actually, such as Ethernet interface in Local Area
Network (LAN) and Packet over SDH (POS).
l Logical interfaces
These refer to interfaces, which exist due to configuration; they are also called virtual
interfaces, such as Loopback interfaces and SuperVLAN interfaces.

1.2 Interface Naming Rule


ZXR10 5900E are named in the following rules.

1. Physical interfaces of ZXR10 5900E are named in the following rule.


<Interface type>_<frame ID>/<Slot ID><Sub-card ID>/<Port ID>.<Sub-interface ID>
l The physical interface types and descriptions are shown below.

Interface Type Description

gei Gigabit Ethernet

xgei 10 Gigabit Ethernet

xlgeis 40G Ethernet

l <frame ID> is the frame ID, which is decided by clustering number. The range is
0–15.
l <Slot ID> refers to physical slots where line interface module is installed. the
value of ZXR10 5900E is 1.

1-1

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

l <Sub-card ID> is decided by the subcard installing on line card. The range is
1–3. 1 represents the whole interface card, 2 represents the upper subcard, and
3 represents the lower subcard.
l <Port ID> refers to number allocated to line interface module connector. The value
range and assignment of port IDs depend upon different types of line interface
modules.
2. Logical interfaces of ZXR10 5900E are named in the following rule <Interface type>
<Port ID>.
l The logical interface types and descriptions are shown below.

Interface Type Description

loopback loopback interface

gre_tunnel GRE tunnel

smartgroup Smartgroup interface

supervlan Supervlan interface

null NULL interface

te_tunnel TE tunnel

v6_tunnel V6 tunnel

vlan VLAN interface

l <Port ID> refers to port ID.


For example,
à gei–0/1/1/1: No.1 port on No.1 Gigabit Ethernet subcard on No.1 slot on No.0
frame
à xgei–0/1/2/4: No.4 port on No.2 10 Gigabit Ethernet subcard on No.1 slot on
No.0 frame
à loopback2: No.2 Loopback interface
à smartgroup6: No.6 Smartgroup interface

1.3 Viewing Interface Information


To view the information about the specified or all interfaces, run the following commands:

Command Function

ZXR10#show interface Displays the information about all


interfaces.

ZXR10#show interface <interface-name> Displays the information about the


specified interface.

ZXR10#show interface brief Displays the summary information


about all interfaces.

1-2

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 1 Interface Introduction

Command Function

ZXR10#show interface brief [shelf <shelf number>][slot <slot Displays the summary information
number>] about the interface on the slot of
the shelf.

The following is sample output from the show interface command.


ZXR10#show interface gei-0/1/1/11
gei-0/1/1/11 is down, line protocol is down, IPv4 protocol is down,
IPv6 protocol is down
Hardware is Gigabit Ethernet, address is 00d0.d0c7.ffe0
BW 1000000 Kbps
MTU 1600 bytes
The port is electric
Duplex full
Negotiation auto
Mdi type:auto
Last Clear Time : 2010-01-01 00:02:03 Last Refresh Time: 2010-01-01 04:58:50
120s input rate : 0Bps 0Pps
120s output rate: 0Bps 0Pps
Peak rate:
input 0Bps peak time N/A
output 0Bps peak time N/A
Intf utilization: input 0% output 0%
HardWareCounters:
In_Bytes 0 In_Packets 0
In_Unicasts 0 In_Broadcasts 0
In_Multicasts 0 In_Undersize 0
In_CRC_ERROR 0 In_DropEvents 0
In_Fragments 0 In_Jabbers 0
In_MacRxError 0 In_64B 0
In_65_127B 0 In_128_255B 0
In_256_511B 0 In_512_1023B 0
In_1024_1518B 0 In_Oversize 0
E_Bytes 0 E_Packets 0
E_Unicasts 0 E_Broadcasts 0
E_Multicasts 0 E_SingCollision 0
E_LateCollision 0 E_64B 0
E_65_127B 0 E_128_255B 0
E_256_511B 0 E_512_1023B 0
E_1024_1518B 0 E_Oversize 0

For a description of the parameters in the execution result, refer to the following table:

Command Output Description

AdminStatus is up The administrative status of the interface is up.

1-3

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Command Output Description

PhyStatus is down The physical status of the interface is down.

line protocol is up The status of the link-layer protocol is up.

MTU Layer-2 MTU of the interface.

BW Interface bandwidth.

The following is sample output from the show interface brief command.
ZXR10#show interface b
Interface Portattribute Mode BW(Mbits) Admin Phy Prot Description
xgei-0/1/2/1 optical Duplex/full 10000 up down down
xgei-0/1/2/2 optical Duplex/full 10000 down down down
xgei-0/1/2/3 optical Duplex/full 10000 up down down

1.4 Viewing Interface Description


To view the description about the specified or all interfaces, run the following command:

Command Function

ZXR10# show interface description [<interface-name>] Displays the status of the interface.
If no interface is specified, the
information about all non-internal
and non-empty interfaces is
displayed.

The following example shows how to display the information about the gei-0/1/1/1 interface:
ZXR10(config)#show interface description gei-0/1/1/1
Interface AdminStatus PhyStatus Protocol Description
gei-0/1/1/1 up up up

The following example shows how to display the information about all non-internal and
non-empty interfaces:
ZXR10(config)#show interface description
Interface AdminStatus PhyStatus Protocol Description
gei-0/1/1/1 up up up
gei-0/1/1/2 up down down
gei-0/1/1/3 up down down
gei-0/1/1/4 down down down
loopback1 up up up

For a description of the parameters in the execution result, refer to the following table:

Command Output Description

Interface Interface name.

1-4

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 1 Interface Introduction

Command Output Description

AdminStatus Administrative status of the interface: up or down.

PhyStatus Physical status of the interface: up or down.

Protocol Status of the link-layer protocol: up or down.

Description Description for the interface.

1-5

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

This page intentionally left blank.

1-6

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2
Ethernet Interface
Configuration
Table of Contents
Ethernet Interface Overview .......................................................................................2-1
Configuring an Ethernet Interface ...............................................................................2-2
Configuring Ethernet Interfaces in Batches...............................................................2-15
Ethernet Interface Maintenance................................................................................2-20
Ethernet Interface Configuration Example ................................................................2-24

2.1 Ethernet Interface Overview


Introduction to Ethernet Interface
The ZXR10 5900E provides the 1000M Ethernet electrical/optical interface, and 10G
Ethernet optical interface. They are detailed as follows.
1. The 1000M Ethernet electrical interface supports the full duplex/half duplex,
10M/100M/1000M rate, and MDI/MDIX adaption function. By default, it works in the
auto-negotiation mode, that is, it needs to negotiate the working mode and speed
with the peer device.
2. The 1000M Ethernet optical interface works in the 1000M full duplex mode. It does
not support the configuration for duplex mode and speed but it can be configured to
work in the auto-negotiation mode.
3. The 10G Ethernet optical interface works in the 1000M full duplex mode. It does not
support the configuration for auto-negotiation mode, duplex mode, and speed.
The system adds interfaces automatically. To be specific, after an interface board is
inserted into the related slot and then starts up, the interfaces on the interface board will
be automatically added to the interface list in the system. The ZXR10 5900E names
the interfaces in the following rule: <Interface type>-<Device ID>/<Slot ID>/<Sub-card
ID>/<Interface ID>.
l Interface type: It is divided into gei 1000M Ethernet interface, and xgei 10G Ethernet
interface.
l Device ID: The ID for a single device is 0.
l Slot ID: The slots on the ZXR10 5900E.
l Sub-card ID: The ID for sub-card is 1-3.
l Interface ID: The interfaces on the interface board are numbered from 1.

2-1

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

For example:
l gei-0/1/1/1: No.1 interface on the 1000M Ethernet interface board in sub-card 1.
l xgei-0/1/2/2: No.2 interface on the 10G Ethernet interface board in sub-card slot 2.

Ethernet Interface Principle


In Open System Interconnection (OSI) seven layer model defined by International
Organization for Standardization (ISO), physical layer defines the physical interfaces
between two devices and their electrical, procedural and mechanical characteristics and
so on. The functions of Ethernet physical layer is similar to that defined by ISO. Ethernet
physical layer provides a standard. The network devices can communicated each other if
manufactories produce them according to the same standard.
Ethernet physical layer has two working modes, full-duplex and half-duplex mode. The
different medium access modes are provided for them,
l Use Carrier Sense Multiple Access/Collision Detect (CSMA/CD) access mode in
half-duplex mode.
l The packets can be sent and received in full-duplex mode directly.
Full-duplex and half-duplex are physical layer concepts, and provide different access
modes for duplex modes in physical layer that is data link layer concept. In this way, an
important Ethernet feature is formed, data link layer and physical layer are related.
This Ethernet feature brings some inconvenience to design and application. To avoid
the inconvenience, some organizations and manufactories advance another mode that
delaminate the data link layer to be logical link control sub-layer and medium access
control sub-layer. Thus, the different physical layer corresponds to different Medium
Access Control (MAC) sub-layer, and Logic Link Control (LLC) sub-layer is totally
independent.
MAC sub-layer relates to physical layer, that is to say, different physical layer has different
MAC sub-layers to access. For example, twisted-pair working in half-duplex mode in
physical layer, its corresponding MAC sub-layer is half-duplex MAC. A token ring MAC
accesses a token ring physical layer. LLC sub-layer encapsulate MAC frame to LLC frame,
which uses MAC sub-layer to screen the differences about bottom layer. LLC sub-layer is
responsible for sending and receiving frame only.

2.2 Configuring an Ethernet Interface


The following sections describe how to configure an Ethernet interface.

Enabling Auto-Negotiation
To enable auto-negotiation of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2-2

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Step Command Function

2 ZXR10(config-if-port-name)#negotiation auto Enables auto-negotiation of the


Ethernet interface.

Note:
To disable auto-negotiation of an Ethernet interface, run the no negotiation auto or negotia
tion auto disable command.

For a description of the parameter in Step 1, refer to the following table:

Parameter Description

< port-name> Interface name.

Note:
A 10G Ethernet optical interface does not support the auto-negotiation function, and it
works in 10G full-duplex mode only.

The following example shows how to enable auto-negotiation of the gei-0/1/1/1 interface:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#negotiation auto

Configuring the Duplex Mode


To configure the duplex mode of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#duplex { half| full} Configures the duplex mode of


the Ethernet interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

< port-name> Interface name.

half Half-duplex mode.

full Full-duplex mode.

2-3

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Note:
Before the duplex mode configuration, the auto-negotiation function of the Ethernet
interface must be disabled.

The following example shows how to set the duplex mode of the gei-0/1/1/1 interface to
full:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#duplex full

Configuring the Speed


To configure the speed of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#speed{10| 100 | 1000} Specifies the speed of the


Ethernet interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

< port-name> Interface name.

10 10 Mbit/s.

100 100 Mbit/s.

1000 1000 Mbit/s.

Note:
Before the speed configuration, the auto-negotiation function of the Ethernet interface must
be disabled.

The following example shows how to set the speed of the gei-0/1/1/1 interface to 10 Mbits:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#speed 10

Enabling Traffic Control


To enable traffic control on an Ethernet interface, perform the following steps:

2-4

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#flowcontrol { enable | Enables or disables traffic


disable} control on the Ethernet
interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

enable Enables the traffic control function.

disable Disables the traffic control function.

Note:

To disable flow control on an Ethernet interface, you should run the no flowcontrol
command in interface configuration mode.
When the message-sending buffer is full, the Ethernet interface that has flow control
enabled sends a pause packet, informing the remote port to suspend sending packets
for a period of time.

The following example shows how to enable traffic control on the gei-0/1/1/1 interface:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#flowcontrol enable

Enabling the Jumbo Frame Function


To enable the jumbo frame function on an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#jumbo-frame enable Enables the jumbo frame


function (that is, allowing jumbo
frames to pass through the
Ethernet interface).
A jumbo frame with a maximum
length of 12288 bytes can pass
through the Ethernet interface.

2-5

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Note:
To disable the jumbo frame function on an Ethernet interface, run the jumbo-frame disable
command.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

< port-name> Interface name.

enable Allows jumbo frames to pass through the Ethernet interface.

disable Restricts jumbo frames to pass through the Ethernet


interface.

Note:
By default, only a frame with a maximum length of 1560 bytes can pass through the
Ethernet interface.

The following example shows how to enable the jumbo frame function on the gei-0/1/1/1
interface:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#jumbo-frame enable

Configuring Broadcast Packets Suppression


To configure the suppression of broadcast packets on an Ethernet interface, perform the
following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#broadcast-limit<percent- Configures the suppression


value|pps|value> of broadcast packets on the
Ethernet interface.

For a description of the parameter in Steps 1 and 2, refer to the following table:

Parameter Description

< port-name> Interface name.

2-6

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Parameter Description

<percent-value> Suppression ratio of forwarding broadcast packets, range:


1–100, default: 10.
The lower the value, the smaller the amount of broadcast
packets that can pass through the interface. When the value
reaches 100 percent, broadcast packet suppression is not
enabled for the interface.

pps Maximum number of broadcast packets forwarded by the


Ethernet interface per second. The unit is pps.

value Maximum speed of forwarding broadcast packets over the


Ethernet interface. The unit is Mbps.

Note:
These commands can be used to control the size of broadcast traffic allowed on an
Ethernet interface. When the broadcast traffic exceeds the pre-configured threshold, the
system discards the excessive broadcast traffic to decrease the ratio of broadcast traffic to
a proper range. This effectively suppresses the forwarding of broadcast packets, avoids
network congestion, and therefore ensures the normal operation of network services.

The following example shows how to set the suppression ratio of broadcast packets
forwarded over the gei-0/1/1/1 interface to 20:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#broadcast-limit percent 20

Configuring the Suppression of Multicast Packets


To configure the suppression of multicast packets on an Ethernet interface, perform the
following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#multicast-limit<perc Configures multicast packets


ent-value|pps|value> suppression on the Ethernet
interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

< port-name> Interface name.

2-7

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Parameter Description

<percent-value> Suppression ratio of forwarding multicast packets, range:


1–100, default: 100.

pps Maximum number of multicast packets forwarded by the


Ethernet interface per second. The unit is pps.

value Maximum speed of forwarding multicast packets over the


Ethernet interface. The unit is Mbps.

The following example shows how to set the suppression ratio of multicast packets
forwarded over the gei-0/1/1/1 interface to 30:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#multicast-limit percent 30

Configuring the Suppression of Unknown Packets


To configure the suppression of unknown packets on an Ethernet interface, perform the
following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#unknowncast-limit<per Configures the suppression


cent-value|pps|value> of unknown packets on the
Ethernet interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

< port-name> Interface name.

<percent-value> Suppression ratio of forwarding unknown packets, range:


1–100, default: 10

pps Maximum number of unknown packets forwarded by the


Ethernet interface per second. The unit is pps.

value Maximum speed of unknown packets forwarded over the


Ethernet interface. The unit is Mbps.

The following example shows how to set the suppression ratio of unknown packets
forwarded over the gei-0/1/1/1 interface to 60:

ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#unknowncast-limit percent 60

2-8

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Configuring an Optical or Electrical Interface


To configure an optical or electrical interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#hybrid-attribute { copper | Specifies the optical-electrical


fiber} conversion mode of the
interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

copper Electrical mode.

fiber Optical mode.

The following example shows how to set the optical-electrical conversion mode of the
gei-0/1/1/25 interface to copper:
ZXR10(config)#interface gei-0/1/1/25
ZXR10(config-if-gei-0/1/1/25)#hybrid-attribute copper

Configuring the Master/Slave Mode


To configure the master/slave mode of an interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#master-slaver mode { auto Specifies the master/slave


| master | slave } mode of the interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

auto Enables the auto configuration of the master/slave mode.

master Master mode.

slave Slave mode.

The following example shows how to set the working mode of the gei-0/1/1/2 interface to
master:

2-9

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#master-slave mode master

Configuring the Twisted Pair Mode


To configure the twisted pair mode of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#cable-media mode { Specifies the twisted pair mode


auto|mdi|mdix} of the Ethernet interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

auto The twisted pair mode is auto.

mdi The twisted pair mode is mdi.

mdix The twisted pair mode is mdix.

The following example shows how to set the twisted pair mode of the gei-0/1/1/2 interface
to mdix:
ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#cable-media mode mdix

Configuring the Protection Time


To configure the protection time of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#port-hold time< time> Specifies the protection time of


the Ethernet interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

< time> Protection time (in seconds), range: 0–1200.

The following example shows how to set the protection time of the gei-0/1/1/2 interface to
200:

2-10

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#port-hold time 200

Enabling or Disabling Monitoring on an Optical Module


To enable or disable monitoring on an optical module, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#optical-inform monitor Enables or disables monitoring


{enable | disable} on the optical module.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

enable Enables monitoring on the optical module.

disable Disables monitoring on the optical module.

Note:
Before running the optical-inform monitor command, you must ensure that an optical
module has been installed on the corresponding interface.

The following example shows how to enable monitoring on the gei-0/1/1/2 interface:
ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#optical-inform monitor enable

Enabling or Disabling the Dual-Rate Function


To enable or disable the dual-rate function on an Ethernet interface, perform the following
steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#dualratesfp-attribute Enables the dual-rate function


on the Ethernet interface.

For a description of the parameters in Step 1, refer to the following table:

2-11

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Parameter Description

<port-name> Interface name.

The following example shows how to enable the dual-rate function on the gei-0/1/1/2
interface:
ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#dualratesfp-attribute

Converting an Optical Interface into an Electrical Interface


To convert an optical interface into an electrical interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#change-attribute copper Converts the optical interface


into an electrical interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

copper Converts the optical interface into an electrical interface.

Note:
Before running the change-attribute copper command, you must ensure that the
optical-to-electrical module has been installed on the corresponding interface.

The following example shows how to convert the gei-0/1/1/2 interface (optical interface)
into an electrical interface:
ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#change-attribute copper

Configuring the Bridge Function


To configure the bridge function of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2-12

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Step Command Function

2 ZXR10(config-if-port-name)#port-bridge { enable | Enables or disables the bridge


disable } function of the interface.

For a description of the parameters in Steps 1 and 2, refer to the following table:

Parameter Description

<port-name> Interface name.

enable Enables the bridge function.

disable Disables the bridge function.

The following example shows how to enable the bridge function of the gei-0/1/1/2 interface:
ZXR10(config)#interface gei-0/1/1/2
ZXR10(config-if-gei-0/1/1/2)#port-bridge enable

Configuring the Power-Saving Function


To configure the power-saving function on an Ethernet interface, perform the following
steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#eee {enable[TxIdleTim Enables or disables the


e]<0-100>[TxWakeTime]<0-100>| disable} power-saving function on the
Ethernet interface.

3 ZXR10(config)#clear eee statistics {shelf<0-1>|[npc<1-12 Clears the power-saving


>]|interface<interface_name>} statistics on the Ethernet
interface.

4 ZXR10(config)#show eee statistics {shelf<0-1>|[npc<1-12 Displays the power-saving


>]|interface<interface_name>} statistics on the Ethernet
interface.

For a description of the parameters in Steps 1, 2, 3, and 4, refer to the following table:

Parameter Description

enable Enables the power-saving function.

TxIdleTime Time for switching to the power-saving idle status.

TxWakeTime Wait time for exiting the power-saving idle mode.

disable Disables the power-saving function.

shelf Shelf number.

2-13

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Parameter Description

npc Line card number.

interface Interface name.

The following example shows how to enable the power-saving function on the gei-0/1/1/1
interface:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#eee enable TxIdleTime 20 TxWakeTime 30

The following example shows how to clear the power-saving statistics on the interfaces
(line card 2, shelf 0) that have the power-saving function enabled:
ZXR10#clear eee statistics shelf 0 npc 2

The following example shows how to display the power-saving statistics on the gei-0/1/1/1
interface (Gigabit Ethernet):
ZXR10(config-if-gei-0/1/1/1)#show eee statistics interface gei-0/1/1/1
Interface Tx events TX Duration RX events RX Duration
(10us) (10us)
----------------------------------------------------------------------------
gei-0/1/1/1 0 0 0 0

Restoring the Default Attributes


To restore the default attributes of an Ethernet interface, perform the following steps:

Step Command Function

1 ZXR10(config)#interface < port-name> Enters interface configuration


mode.

2 ZXR10(config-if-port-name)#default {broadcast-limit|c Restores the default attributes


able-media|duplex|flowcontrol|hold-time|hybrid-attribute|j of the Ethernet interface.
umbo-frame|master-slave|multicast-limit|negotiation|optica
l-monitor|port-bridge|interface-speed|unknowncast-limit}

For a description of the parameters in Step 2, refer to the following table:

Parameter Description

broadcast-limit Enables the suppression on broadcast packets.

cable-media Restores the twisted-pair cable setting

duplex Restores the duplex mode setting.

flowcontrol Restores the flow control setting.

hold-time Restores the protection time.

hybrid-attribute Restores the hybrid port (optical/electrical port) setting.

jumbo-frame Enables the jumbo frame function.

2-14

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

The following example shows how to restore the default auto-negotiation settings of the
gei-0/1/1/1 interface:
ZXR10(config)#interface gei-0/1/1/1
ZXR10(config-if-gei-0/1/1/1)#default negotiation

2.3 Configuring Ethernet Interfaces in Batches


The following sections describe how to configure the properties of Ethernet interfaces in
batches.

Configuring the Auto-negotiation Function


To configure the auto-negotiation function of Ethernet interfaces in batches, run the
following command:

Command Function

ZXR10(config)#set interface negotiation { enable | disable}< Enables or disables the


port-list> auto-negotiation function of
the Ethernet interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

enable Enables the auto-negotiation function.

disable Disables the auto-negotiation function.

<port-list> Interface list.

Note:
A; 10G Ethernet optical interface does not support the auto-negotiation function, and it
works in 10G full-duplex mode only.

The following example shows how to enable the auto-negotiation function of gei-0/1/1/1,
gei-0/1/1/2, and gei-0/1/1/3 interfaces:
ZXR10(config)#set interface negotiation enable gei-0/1/1/1-3

Configuring the Speed


To configure the speed of Ethernet interfaces in batches, run the following command:

Command Function

ZXR10(config)#set interface speed< speed-value>< port-list> Specifies the speed of the Ethernet
interfaces.

2-15

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

For a description of the parameters, refer to the following table:

Parameter Description

<speed-value> Interface speed, options:


l 10 Mbit/s
l 100 Mbit/s
l 1000 Mbit/s

<port-list> Interface list.

Note:
The default speed of an FE electrical interface is 100 Mbit/s, and the default speed of a
GE electrical interface is 1000 Mbit/s.

The following example shows how to set the speed of gei-0/1/1/1, gei-0/1/1/2, and
gei-0/1/1/3 interfaces to 100 Mbit/s:
ZXR10(config)#set interface speed 100 gei-0/1/1/1-3

Configuring the Duplex Mode


To configure the duplex mode of Ethernet interfaces in batches, run the following
command:

Command Function

ZXR10(config)#set interface duplex < half|full>< port-list> Configures the duplex mode of the
Ethernet interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

half Half-duplex mode.

full Full-duplex mode.

<port-list> Interface list.

Note:
By default, all Ethernet interfaces operate in full duplex mode.

The following example shows how to set the working modes of gei-0/1/1/1, gei-0/1/1/2,
and gei-0/1/1/3 interfaces to half duplex:

2-16

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

ZXR10(config)#set interface duplex half gei-0/1/1/1-3

Enabling or Disabling the Jumbo Frame Function


To enable or disable the jumbo frame function on Ethernet interfaces in batches, run the
following command:

Command Function

ZXR10(config)#set interface jumbo-frame { enable | disable}< Enables or disables the jumbo


port-list> frame function on the Ethernet
interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

enable Enables the jumbo frame function.

disable Disables the jumbo frame function.

<port-list> Interface list.

Note:

By default, the jumbo frame function is disabled on all Ethernet interfaces.

The following example shows how to enable the jumbo frame function on gei-0/1/1/1,
gei-0/1/1/2, and gei-0/1/1/3 interfaces:
ZXR10(config)#set interface jumbo-frame enable gei-0/1/1/1-3

Configuring Traffic Control


To configure traffic control on Ethernet interfaces in batches, run the following command:

Command Function

ZXR10(config)#set interface flowcontrol { enable | disable}< Configures traffic control on


port-list> Ethernet interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

enable Enables traffic control.

disable Disables traffic control.

<port-list> Interface list.

2-17

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Note:
By default, traffic control is disabled on all Ethernet interfaces.

The following example shows how to enable traffic control on gei-0/1/1/1, gei-0/1/1/2, and
gei-0/1/1/3 interfaces:
ZXR10(config)#set interface flowcontrol enable gei_0/1/1/1-3

Configuring the Suppression Ratio (Percent/Packet Rate/Stream Rate) of Forwarding


Broadcast Packets
To configure the suppression ratio (percent/packet rate/stream rate) of forwarding
broadcast packets over Ethernet interfaces in batches, run the following command:

Command Function

ZXR10(config)#set interface broadcast-limit < percent-value|pps Specifies the suppression ratio


|value>< port-list> (percent/packet rate/stream rate)
of forwarding broadcast packets
over the Ethernet interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

< percent-value> Suppression ratio of transmitting broadcast packets, range:


1–100, default: 10.

pps Maximum number of broadcast packets forwarded by the


Ethernet interfaces per second. The unit is pps.

value Maximum speed of forwarding broadcast packets over the


Ethernet interfaces per second. The unit is Mbps.

<port-list> Interface list.

The following example shows how to set the suppression ratio of broadcast packets
forwarded over gei-0/1/1/1-3 and gei-0/1/2/1-4 interfaces to 80:

ZXR10(config)#set interface broadcast-limit 80 gei-0/1/1/1-3,gei-0/1/2/1-4

Configuring the Suppression Ratio (Percent/Packet Rate/Stream Rate) of Forwarding


Unknown Packets
To configure the suppression ratio (percentage/packet rate/traffic rate) of forwarding
unknown packets over Ethernet interfaces in batches, run the following command:

2-18

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Command Function

ZXR10(config)#set interface unknowncast-limit < Configures the suppression ratio


percent-value|pps|value>< port-list> (percentage/packet rate/stream
rate) of forwarding unknown
packets over the Ethernet
interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

< percent-value> Suppression ratio of forwarding unknown packets, range:


1 to 100, default: 10.

pps Maximum numbers of unknown packets forwarded by the


Ethernet interfaces per second. The unit is pps.

value Maximum speed of forwarding unknown packets over the


Ethernet interfaces per second. The unit is Mbps.

<port-list> Interface list.

The following example shows how to set the suppression ratio of unknown packets
forwarded over gei-0/1/1/1-3 and gei-0/1/2/1-4 interfaces to 80:
ZXR10(config)#set interface unknowncast-limit 80 gei-0/1/1/1-3,gei-0/1/2/1-4

Configuring the Suppression Ratio (Percent/Packet Rate/Stream Rate) of Forwarding


Multicast Packets
To configure the suppression ratio (percent/packet rate/stream rate) of forwarding multicast
packets over Ethernet interfaces in batches, run the following command:

Command Function

ZXR10(config)#set interface multicast-limit < percent-value|pps Configures the suppression ratio


|value>< port-list> (percent/packet rate/stream rate)
of forwarding multicast packets
over the Ethernet interfaces.

For a description of the parameters, refer to the following table:

Parameter Description

< percent-value> Suppression ratio of forwarding multicast packets, range:


1 to 100, default: 100.

pps Maximum number of multicast packets forwarded by the


Ethernet interfaces per second. The unit is pps.

value Maximum speed of forwarding multicast packets over the


Ethernet interfaces. The unit is Mbps.

2-19

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Parameter Description

<port-list> Interface list.

The following example shows how to set the suppression ratio of multicast packets
forwarded over gei-0/1/1/1-3 and gei-0/1/2/1-4 interfaces to 80:
ZXR10(config)#set interface multicast-limit 80 gei-0/1/1/1-3,gei-0/1/2/1-4

2.4 Ethernet Interface Maintenance


When encountering a fault related to Ethernet interface, you can use commands to locate
and troubleshoot the fault. Wherein, the commonly used command is show, which helps
view the currently configured interface. The show commands used to view Ethernet
interfaces include show interface and show running-config-interface.
The commands used to view DOM information include show optical-inform, show optical-i
nform brief, show optical-inform details, and show optical-inform threshold.
The command used to show link diagnosis information is show vct interface.

Viewing Interface Information


On the ZXR10 5900E, use the following commands to view interface information.

Command Function

ZXR10#show interface [< port-name>] This shows the status information


of an Ethernet interface.

ZXR10#show linkage-group [ id] This shows linkage configuration


of an Ethernet interface.

ZXR10#show running-config-interface <port-name> This shows the configuration of an


Ethernet interface.

Use the clear statistics interface command to clear the statistics of an interface.
Configuration Example
1. View the status and statistics of interface gei-0/1/1/1:
ZXR10(config)#show interface gei-0/1/1/1
gei-0/1/1/1 is administratively down, line protocol is down
Description is none
Hardware is Gigabit Ethernet, address is 00d0.d0c0.0c80
Internet address is unassigned
IP MTU 1500 bytes
MTU 1600 bytes
BW1000000 Kbits
MPLS MTU 1500 bytes
The port is optical

2-20

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Duplex auto
Negotiation auto
Last Clear Time : 2012-04-25 09:27:04 Last Refresh Time: 2012-04-25 14:37:41
120s input rate : 0Bps 0Pps
120s output rate: 0Bps 0Pps
Intf utilization: input 0% output 0%
In_Bytes 0 In_Packets 0
In_Unicasts 0 In_Broadcasts 0
In_Multicasts 0 In_Undersize 0
In_CRC_ERROR 0 In_DropEvents 0
In_Fragments 0 In_Jabbers 0
In_MacRxError 0 In_64B 0
In_65_127B 0 In_128_255B 0
In_256_511B 0 In_512_1023B 0
In_1024_1518B 0 In_Oversize 0
E_Bytes 0 E_Packets 0
E_Unicasts 0 E_Broadcasts 0
E_Multicasts 0 E_SCollPks 0
E_LateCollPks 0 E_64B 0
E_65_127B 0 E_128_255B 0
E_256_511B 0 E_512_1023B 0
E_1024_1518B 0 E_Oversize 0
2. Show the configuration of interface gei-0/1/1/1:
ZXR10(config)#show running-config-interface gei-0/1/1/1
! <ETHER-PORT>
interface gei-0/1/1/1
change-attribute copper
no negotiation auto
speed 100
broadcast-limit percent 100
unknowncast-limit percent 100
! <ETHER-PORT>
! <INTERFACE>
interface gei-0/1/1/1
$
! <INTERFACE>
ZXR10(config)#

Optical Module Information


On the ZXR10 5900E, use the following commands to view the basic information and
diagnosis information of an optical module.

2-21

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

Command Function

ZXR10#show optical-inform [ interface < interface-name>| shelf< This shows the basic optical
shelf>[npc< slot>]] module information of an Ethernet
interface.

ZXR10#show optical-inform brief[ interface < interface-name>| This shows the optical module
shelf< shelf>[npc< slot>]] information of an interface, such
as the temperature, voltage,
current, transmit/receive power,
and detailed information of various
thresholds.
You can view the optical module
information of a single interface or
and a board.

ZXR10#show optical-inform details[ temperature | voltage | current This shows the optical module
|rx-power | tx-power ][ shelf< shelf>[npc< slot>]|interface < information of an interface, such
interface-name>] as the temperature, voltage,
current, transmit/receive power,
and detailed information of various
thresholds.
You can view the optical module
information of a single interface or
and a board.

ZXR10#show optical-inform threshold-alarm [ shelf< shelf>[npc< This shows the optical module
slot>]| interface < interface-name>] information of an interface, such as
the temperature, voltage, current,
transmit/receive power, and alarm
information of various thresholds.
You can view the optical module
information of a single interface or
and a board.

Configuration Example

1. Show the vendor information of an optical module:


ZXR10(config)#show optical-inform interface gei-0/1/1/2
Portname Online EtherProperty Vendor VendorPN VendorSN
Type Length WaveLen(single) (OM2) (OM1) (OM3) (copper)
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
gei-0/1/1/2 NO SFP-OC3-SL NEOPHOTONICS PT7620-31-2V-C51 A0409119978
single 100km 1510nm N/A N/A N/A N/A
2. Show the basic optical module information of an interface, such as current and voltage:
ZXR10(config)#show optical-inform brief shelf 0 npc 3
If device is externally calibrated, only calibrated values are printed.

2-22

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

-Inf: not applicable, Tx: transmit, Rx: receive.


Optical Optical
Interface Temperature Voltage Voltage Current Tx Power Rx Power
Name (Celsius) (3.3 Volts)(5 Volts) (mA) (dBm) (dBm)
--------------------------------------------------------------------------------
gei-0/1/1/2 40.53 3.27 N/A 0.00 -INF -INF
gei-0/1/1/3 35.44 3.28 N/A 0.00 -INF -INF
gei-0/1/1/4 35.72 3.28 N/A 0.00 -INF -INF
gei-0/1/1/5 36.94 3.27 N/A 0.00 -INF -INF
3. Show the temperature threshold of the optical module connected to an interface:
ZXR10(config)#show optical-inform details temperature shelf 0 npc 3
High AlarmHigh Warn Low Warn Low Alarm
Interface Temperature Threshold Threshold Threshold Threshold
Name (Celsius) (Celsius) (Celsius) (Celsius) (Celsius)
----------------------------------------------------------------
gei-0/1/1/2 40.53 100.00 95.00 0.00 -10.00
gei-0/1/1/3 35.44 85.00 80.00 0.00 -5.00
gei-0/1/1/4 35.72 85.00 80.00 0.00 -5.00
gei-0/1/1/5 36.94 90.00 80.00 0.00 -5.00
ZXR10(config)#
4. Show the alarm information when the indicators for the optical module connected to
the interface exceed the threshold.
ZXR10(config)#show optical-inform threshold-alarm shelf 0 npc 3
Description:
tem : temperature vol : voltage cur: current tx : transmit power
rx : receive power h-w : high-warning(+) h-a : high-alarm(++)
l-w : low-warning(-) l-a : low-alarm(--) -Inf : not applicable
Interface Time in slot Threshold Violation Type(s) of Last Known
Name (HH:MM:SS DDDD) (HH:MM:SS DDDD) Threshold Violation
----------------------------------------------------------------------------
gei-0/1/1/2 16:58:43 04/25/2012 16:56:28 04/25/2012 cur l-a 0.00mA<=0.00mA
gei-0/1/1/3 16:58:43 04/25/2012 16:56:37 04/25/2012 cur l-a 0.00mA<=1.00mA
gei-0/1/1/4 16:58:43 04/25/2012 16:56:43 04/25/2012 cur l-a 0.00mA<=1.00mA
gei-0/1/1/5 16:58:43 04/25/2012 16:56:48 04/25/2012 cur l-a 0.00mA<=0.10mA
ZXR10(config)

Line Diagnosis and Analysis Test


The ZXR10 5900E supports the line diagnosis and analysis test on cables. It can detect
lines, check whether cables are connected properly, and locate the point where a fault
occurs. This facilitates network management and fault locating.
Both of the fast Ethernet electrical interface and the 1000M Ethernet electrical interface are
connected with other devices by using network cables. There are four pairs of twisted-pair
cables. Wherein, the fast Ethernet electrical interface uses the 1-2 and 3-6 twisted-pair

2-23

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

cables, and the 1000M Ethernet electrical interface uses all the 1-2, 3-6, 4-5, and 7-8
twisted-pair cables.
The line detection function can help detect the state of each pair of twisted-pair cables.
The line state is divided into the following types:
l Open: Indicates that the circuit is open.
l Short: Indicates that the cable is short circuited.
l Mismatch: Indicates that the impedance of the line does not match.
l Good: Indicates that the line is normal.
l Broken: Indicates that circuit is broken.
l Unknown: Indicates that the circuit state is unknown or no result is output.
l Fail: Indicates that the detection fails.

If the line is faulty, the test result shows the point where the fault occurs. If the line is
normal, the test result shows the rough length of the line.
The line diagnosis and analysis test requires no configuration and can be performed
directly in the privileged or global config mode.

Command Function

ZXR10(config)#show vct interface < port-name> This performs the line diagnosis
and analysis test.

Note:
After a line diagnosis and analysis test is performed, the related interface will be restarted.
At this time, the links on the interface are disconnected and then recover. Usually, this
function is used to test an interface where a fault occurs. If the interface has provisioned
to users, exercise caution when you use this function.

Configuration Example
Check the line of interface gei-0/1/1/1.
ZXR10(config)#show vct interface gei-0/1/1/1
CableStatus Fault
Pair 1-2 3-6 4-5 7-8
Status Open Open Open Open
Length 0m 0m 0m

2.5 Ethernet Interface Configuration Example


Configuration Example
As shown in Figure 2-1, two switches connect each other through Ethernet interfaces.

2-24

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 2 Ethernet Interface Configuration

Figure 2-1 Ethernet Interface Configuration Example

Configuration Thought
1. Enter global config mode.
2. Enter interface config mode.
3. Perform the required configuration.

Configuration Commands
Switch1 configuration,
switch1(config)#interface gei-0/1/1/2
switch1(config-if-gei-0/1/1/2)#no negotiation auto
switch1(config-if-gei-0/1/1/2)#speed 100
switch1(config-if-gei-0/1/1/2)#duplex half
switch1(config-if-gei-0/1/1/2)#jumbo-frame enable
switch1(config-if-gei-0/1/1/2)#flowcontrol enable
switch1(config-if-gei-0/1/1/2)#change-attribute copper

Configuration Verification
Use show command to validate configuration.

ZXR10(config)#show running-config gei-0/1/1/2


!<ETHER-PORT>
interface gei-0/1/1/2
change-attribute copper
no negotiation auto
speed 100
broadcast-limit percent 100
unknowncast-limit percent 100
!
!<ETHER-PORT>
!<INTERFACE>
interface gei-0/1/1/2
no shutdown
$
!<INTERFACE>

2-25

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

This page intentionally left blank.

2-26

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 3
Logical Interface
Configuration
Logical interface is not real existent, which is configured by user manually. ZXR10 5900E
supports the following logical interfaces, Loopback, NULL and SuperVLAN, SmartGroup
interfaces and so on. These logical interfaces have some common points,

1. There is no a real physical interface to correspond to the logical interface. Sometimes,


mapping relationship exists between the real and logical interfaces..
2. Due to the first point, logical interface can not generated according to the physical
interface. It has to be created manually according to the actual requirement.
3. The interface is always in up state (both physical and protocol states are up). The
interface will never be down. Tunnel interface is an exception, its physical state is
always up, but its protocol state is decided by the actual running condition.
Table of Contents
Loopback Interface Configuration ...............................................................................3-1
NULL Interface Configuration .....................................................................................3-5

3.1 Loopback Interface Configuration


3.1.1 Loopback Interface Overview
Loopback interface is the most widely used virtual interface. It is almost used by every
switch. Loopback interface can be used to construct blackhole route, and it aslo can
be used to provide a known and stable ID for Open Shortest Path First (OSPF) route.
Additionally, loopback interface can be used in any time if the data transmission requires
a intermediate output interface.

Loopback interface is applied to the following cases,

l To be convenient for network management, administrator will create a Loopback


interface for each switch after finishing the network planning. Administrator specifies
a IP address on the Loopback interface as administration address. The administration
address can be used by administrator to login switch by Telecommunication Network
Protocol (TELNET). In fact, the administration address is similar to a device name.
A switch has many interface and IP addresses, but people can not select any one to
login switch by TELNET. That is because TELNET uses Transmission Control Protocol
(TCP) packets. Sometimes, one interface of router is down caused by fault, but
other interface still can be used for TELNET. That is to say, the TCP connection

3-1

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

is still existent. Therefore, the TELNET address to be selected has to be never be


down. Virtual interface can satisfy the requirement. Virtual does not need to connect
and communicate with the peer. To save address resource, IP address of Loopback
interface is usually specified to be 32 bites mask.
l The IP address of Loopback interface acts as Router-ID of dynamic routing protocol
(OSPF, Border Gateway Protocol (BGP)).
In dynamic routing protocol running process (OSPF and BGP), a Router-ID needs to
be specified to act as the unique identifier of the router. The Router-ID is unique in
the entity Autonomous System. The Router-ID is a 32 bits unsigned integer, which
is very similar to IP address. IP address can not be repeated, therefore, Router-ID
is usually specified to be the IP address of a interface on switch. The IP address of
Loopback interface is usually regarded as identifier of switch, so it is the best choice
of Router-ID.
l It can act as the source address to be used by BGP to create TCP connection.
In BGP, the neighborhood is created by TCP connection between two switches
running BGP. Specify Loopback interfaces to be the source addresses to create TCP
connection. It is usually applied to Interior Border Gateway Protocol (IBGP), which
can enhance the robustness of TCP connection.

3.1.2 Configuring Loopback Interface


To configure a Loopback interface on ZXR10 5900E, perform the following steps.

Step Command Function

1 ZXR10(config)# interface {<interface-name>| byname This enters interface


<byname>} configuration mode, configures
Loopback interface.
The Loopback range is 1-64.

2 ZXR10(config-if-interface-name)#ip address This configures IP address and


<ip-address><net-mask>[<broadcast-address>| secondary] mask of Loopback interface.

3 ZXR10(config-if-interface-name)#ipv6 enable This enables IPv6.

4 ZXR10(config-if-interface-name)#ipv6 address < This configures interface IPv6


X:X::X:X/<1-128>> address.

5 ZXR10(config-if-interface-name)#ipv6 address This configures interface IPv6


link-local < X:X::X:X > link local address.

6 ZXR10(config-if-interface-name)#ipv6 mtu This configures interface max


<1280-9216> transmit unit of uploading IPv6
packet.

Description of the parameters in Step 1:

3-2

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 3 Logical Interface Configuration

Parameter Description

<interface-name> Interface name

byname <byname> Interface alias

Description of the parameters in Step 2:

Parameter Description

<ip-address> IP address, in dotted decimal notation

<net-mask> IP subnetwork mask, in dotted decimal notation

<broadcast-address> The broadcast address to be associated to the interface, in


dotted decimal notation.

secondary The secondary address of the interface

Description of the parameters in Step 4:

Parameter Description

< X:X::X:X/<1-128>> X:X::X:X indicates the address to be configured on the


interface. The address format must comply with the
specifications in RFC2373. That is, 16 bits form a group
and the groups are separated by colons. The simple format
supported in the RFC2373 can be used.
<1-128> indicates the prefix length of an IPv6 address. The
decimal digit specifies the number of high-order bits that form
the prefix for consecutive IPv6 addresses.

Description of the parameters in Step 5:

Parameter Description

< X:X::X:X > link-local address. The value of this parameter is the prefix of
the fe80::/10 address.

3.1.3 Maintaining Loopback Interface


Use show commands to locate and solve faults when Loopback interfaces are failed. There
are two common-used show commands.
l show ip interface
l show running-config-interface

By using these two commands, the interface configuration can be viewed.

3-3

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

3.1.4 Loopback Interface Configuration Examples


Blackhole Route Construction
l Configuration Description
Loopback interface can be used for IP address borrowing and Router-IN. Loopback
interface usually acts as the route next hop, which can have the effect of blackhole
route.

As shown in Figure 3-1, construct a blackhole route on S1, introduce the host route
which destination address is 192.11.1.2 to the blackhole route.

Figure 3-1 Loopback Interface Configuration Example

l Configuration Thought
1. Create Loopback interface and configure IP address.
2. Configure the Loopback interface to be the next hop of route.
l Configuration Commands
S1 configuration,
S1(config)#interface loopback1
S1(config-if-loopback1)#ip address 192.1.1.2 255.255.255.0
S1(config-if-loopback1)#exit
S1(config)#ip route 192.11.1.2 255.255.255.255 loopback1
l Configuration Verification
Use the show command to validate the configuration,
S1(config)#show running-config-interface loopback1
! <INTERFACE>
interface loopback1
ip address 192.1.1.2 255.255.255.0
$
! </INTERFACE>
S1(config)#show ip forwarding route 192.11.1.2
IPv4 Routing Table:
Dest Gw Interface Owner Pri Metric
192.11.1.2/32 192.1.1.2 loopback1 static 1 0

Loopback Interface Acting as Router-ID


l Configuration Description

As shown in Figure 3-2, configure Loopback interface as Router-ID on S1.

3-4

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 3 Logical Interface Configuration

Figure 3-2 Loopback Interface Acting as Router-ID

l Configuration Thought
1. Create Loopback interface and configure IP address.
2. Configure Loopback interface as Router-ID of routing protocol.
l Configuration Commands
S1 configuration,
S1(config)#interface loopback1
S1(config-if-loopback1)#ip adderss 1.1.1.2 255.255.255.255
S1(config-if-loopback1)#exit
S1(config)#router ospf 10
S1(config-ospf-10)#router-id 1.1.1.2
S1(config-ospf-10)#network 30.0.0.0 0.0.0.3 area 0
S1(config-ospf-10)#redistribute connected
S1(config-ospf-10)#exit

3.2 NULL Interface Configuration


3.2.1 NULL Interface Overview
NULL interface is a logical interface, which is emulated by software. Usually, any interface
is allocated to a IP address, but NULL interface is the exception. IP address can not be
configured on NULL interface. NULL interface is applied to BGP that saves a IP address,
and it also can be used to configure blackhole route that avoid loop.
All the data packets transmitting to NULL interface are discarded. For example, use ip
route 192.101.0.0 255.255.0.0 null1 command to discard all the packets transmitting to
192.101.0.0.

3.2.2 Configuring NULL Interface


No configuration is needed on a Null interface.

3.2.3 Maintaining NULL Interface


To maintain NULL interface on ZXR10 5900E, use the following command.

Command Function

ZXR10#show running-config This shows the information of NULL interface.

3-5

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

NULL interface is always in up state, and it is always on-line. NULL interface can not be
deleted.
This example describes how to view NULL interface.
ZXR10(config)#show running-config-interface null1
! <INTERFACE>
interface null1
$
! </INTERFACE>

3.2.4 NULL Interface Configuration Example


Configuration Description
NULL interface does not forward any packet. All the packets transmitting to NULL interface
are discarded. Due to this feature, NULL interface is applied to the following two cases,
l Prevent route ring
l Filter traffic
NULL interface usually acts as the next hop of route, which has the effect of blackhole
route. As shown in Figure 3-3, construct a blackhole route on S1 to introduce the host
route which destination address is 192.11.1.2 to the blackhole route.

Figure 3-3 NULL Interface Configuration Example

Configuration Thought
Configure NULL interface as the next hop of static route.

Configuration Commands
S1 configuration,
S1(config)#ip route 192.11.1.2 255.255.255.255 null?
<1-1>
S1(config)#ip route 192.11.1.2 255.255.255.255 null1

Configuration Verification
Use the show command to validate the configuration,
S1(config)#show running-config-interface null1
!<INTERFACE>
interface null1
$

3-6

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Chapter 3 Logical Interface Configuration

!</INTERFACE>
S1(config)#show ip forwarding route 192.11.1.2
IPv4 Routing Table:
Dest Gw Interface Owner Pri Metric
192.11.1.2/32 0.0.0.0 null1 static 1 0

3-7

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


ZXR10 5900E Series Configuration Guide (Interface Configuration)

This page intentionally left blank.

3-8

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Figures
Figure 2-1 Ethernet Interface Configuration Example ............................................. 2-25
Figure 3-1 Loopback Interface Configuration Example ............................................. 3-4
Figure 3-2 Loopback Interface Acting as Router-ID................................................... 3-5
Figure 3-3 NULL Interface Configuration Example .................................................... 3-6

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Figures

This page intentionally left blank.

II

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential


Glossary
BGP
- Border Gateway Protocol
CSMA/CD
- Carrier Sense Multiple Access/Collision Detect
IBGP
- Interior Border Gateway Protocol
ISO
- International Organization for Standardization
LAN
- Local Area Network
LLC
- Logic Link Control
MAC
- Media Access Control
MPLS
- Multiprotocol Label Switching

MTU
- Maximum Transmission Unit

OSI
- Open System Interconnection
OSPF
- Open Shortest Path First
POS
- Packet Over SDH
TCP
- Transmission Control Protocol
TELNET
- Telecommunication Network Protocol

III

SJ-20150114102049-006|2015-01-15 (R1.0) ZTE Proprietary and Confidential

Potrebbero piacerti anche