Anda di halaman 1dari 141

ZXR10 8900 Series

10 Gigabit Routing Switch


Command Reference (Ethernet Switching)

Version 2.8.02.C

ZTE CORPORATION
NO. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: (86) 755 26771900
Fax: (86) 755 26770801
URL: http://ensupport.zte.com.cn
E-mail: support@zte.com.cn
LEGAL INFORMATION

Copyright 2010 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 CORPO-
RATION 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 dis-
claimed, including without limitation any implied warranty of merchantability, fitness for a particular purpose, title or non-in-
fringement. 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 ZTE technical support website http://ensupport.zte.com.cn to inquire related information.

The ultimate right to interpret this product resides in ZTE CORPORATION.

Revision History

Revision No. Revision Date Revision Reason


R1.3 20100205 Edition update

Serial Number: sjzl20093845


Contents

About This Manual............................................. I


Command Introduction .....................................1
Manual Use Guide........................................................... 1
Man-Machine Command Description .................................. 1
Auxiliary Functions ......................................................... 2
Command Modes............................................................ 3
MAC Configuration.............................................9
mac add........................................................................ 9
mac aging-time .............................................................10
mac clear .....................................................................10
mac delete ...................................................................11
mac filter .....................................................................11
mac learn .....................................................................12
mac learning.................................................................12
mac learning mode ........................................................13
mac limit-num ..............................................................14
mac protect ..................................................................14
mac protect time ...........................................................15
mac to-static ................................................................15
mac learning-strategy ....................................................16
mac transparent-control .................................................16
mac unknow-filter-limit-num ...........................................17
mac unknowsource-filter ................................................17
show mac.....................................................................18
show mac aging-time .....................................................19
show mac count ............................................................20
show mac learning.........................................................20
show mac limit-num ......................................................21
show mac port-info........................................................21
show mac protect ..........................................................22
show mac running .........................................................22

Confidential and Proprietary Information of ZTE CORPORATION I


ZXR10 8900 Series Command Reference (Ethernet Switching)

ESM Configuration ........................................... 23


esm .............................................................................23
esm mode ....................................................................23
esm init extt slot ...........................................................24
esm udf mode...............................................................24
config ..........................................................................24
config acl .....................................................................25
show esm info...............................................................26
VLAN Configuration ......................................... 27
acceptable frame types ..................................................27
bind dpi-template ..........................................................28
clear stat vlan ...............................................................28
ingress filtering .............................................................29
interface ......................................................................29
name ...........................................................................30
show qinq.....................................................................30
show stat vlan ..............................................................31
show vlan.....................................................................31
show vlan private-map ...................................................32
show vlan protocol-map .................................................33
show vlan subnet-map ...................................................34
show vlan translate........................................................35
swicthport ....................................................................36
switchport access vlan ...................................................36
switchport hybrid native vlan ..........................................37
switchport hybrid vlan ....................................................37
switchport mode............................................................38
switchport qinq (Global Configuration)..............................39
switchport qinq (Port Configuration) .................................39
switchport trunk native vlan............................................40
switchport trunk vlan .....................................................41
vlan (Global Configuration) .............................................41
vlan (VLAN Database Configuration).................................42
vlan database ...............................................................42
vlan list........................................................................43
vlan private-map ...........................................................43
vlan protocol-map .........................................................45
vlan protocol-map(Port Enabling).....................................45
vlan qinq ......................................................................46
vlan subnet-map ...........................................................48

II Confidential and Proprietary Information of ZTE CORPORATION


vlan subnet-map (Port Enabling) .....................................49
vlan translate................................................................49
vlan database ...............................................................50
vlan translate enhanced .................................................51
SuperVLAN Configuration ................................ 53
arp-broacast .................................................................53
vrrp-advertisement send ................................................54
interface supervlan ........................................................54
inter-subvlan-routing .....................................................55
ip supervlan pool ...........................................................56
ip-pool-filter .................................................................56
show supervlan .............................................................57
show supervlan ip-pool...................................................58
subvlan ........................................................................59
supervlan .....................................................................59
supervlan inter-subvlan-routing.......................................60
STP Configuration............................................ 61
instance .......................................................................61
name ...........................................................................62
revision........................................................................63
show spanning-tree inconsistentports...............................63
show spanning-tree instance ...........................................64
show spanning-tree interface ..........................................64
show spanning-tree mst configuration ..............................65
show spanning-tree statistics ..........................................65
show spanning-tree transparent ......................................66
spanning-tree ...............................................................67
spanning-tree bpduguard ...............................................67
spanning-tree edged-port ...............................................68
spanning-tree forward-delay ...........................................69
spanning-tree guard ......................................................69
spanning-tree hello-time ................................................70
spanning-tree linktype ...................................................70
spanning-tree max-age ..................................................71
spanning-tree mode.......................................................71
spanning-tree mst configuration ......................................72
spanning-tree mst hmd5-digest.......................................72
spanning-tree mst hmd5-key ..........................................73
spanning-tree mst instance (Global Configuration) .............73
spanning-tree mst instance (Port Configuration) ................74

Confidential and Proprietary Information of ZTE CORPORATION III


ZXR10 8900 Series Command Reference (Ethernet Switching)

spanning-tree mst max-hops ..........................................75


spanning-tree packet-type ..............................................75
spanning-tree transparent ..............................................76
LACP Configuration ......................................... 77
clear lacp .....................................................................77
interface ......................................................................77
lacp port-priority ...........................................................78
lacp system-priority .......................................................78
lacp timeout .................................................................79
show lacp .....................................................................79
smartgroup...................................................................80
smartgroup load-balance ................................................81
smartgroup mode ..........................................................81
VBAS Configuration ......................................... 83
vbas enable ..................................................................83
vbas port-type ..............................................................83
MAC PING Configuration.................................. 85
mac-ping......................................................................85
l2trace .........................................................................86
UDLD Configuration ......................................... 87
udld enable...................................................................87
udld message timer .......................................................88
udld mode ....................................................................88
udld recovery enable......................................................89
udld recovery timer .......................................................90
udld reset.....................................................................90
show udld.....................................................................91
Link Protection Configuration .......................... 93
zesr ctrl-vlan ................................................................93
zesr restart-time ...........................................................94
zess domain .................................................................94
clear zesr-switchtimes all................................................95
Ethernet OAM Configuration ............................ 97
clear ethernet-oam ........................................................97
set ethernet-oam debug .................................................98
set ethernet-oam enable ................................................98
set ethernet oam enable(interface configuration) ...............98
set ethernet-oam link-monitor enable ..............................99
set ethernet-oam link-monitor frame-period......................99

IV Confidential and Proprietary Information of ZTE CORPORATION


set ethernet-oam link-monitor frame-seconds ................. 100
set ethernet-oam link-monitor symbol-period ................. 101
set ethernet-oam oui ................................................... 101
set ethernet-oam period timeout mode........................... 102
set ethernet-oam port link-monitor frame ....................... 102
set ethernet-oam remote-loopback start......................... 103
set ethernet-oam remote-loopback time-out ................... 103
show ethernet-oam...................................................... 104
show ethernet-oam interface discovery .......................... 104
show ethernet-oam interface link-monitor....................... 104
show ethernet-oam interface statistics ........................... 105
Ethernet Service Level OAM (CFM)
Configuration ................................................ 107
cfm enable ................................................................. 108
cfm create md............................................................. 108
cfm delete md............................................................. 108
cfm md session ........................................................... 109
ma create session........................................................ 109
ma delete ................................................................... 110
ma session ................................................................. 110
ma protect ................................................................. 110
primary vlan ............................................................... 111
speed ........................................................................ 111
ccm timer-interval ....................................................... 112
create mep session ...................................................... 112
create rmep session..................................................... 112
delete mep ................................................................. 113
assign mep ................................................................. 113
no assign mep ............................................................ 114
mep state................................................................... 114
mep alarm-lowest-pri................................................... 115
mep priority................................................................ 115
mep ccm-send ............................................................ 115
mep ccm-check ........................................................... 116
mep relate-to rmep ..................................................... 116
cfm lbm ..................................................................... 117
cfm ltm ...................................................................... 117
cfm ltr-read trans-id .................................................... 118
show md .................................................................... 119
show ma .................................................................... 119

Confidential and Proprietary Information of ZTE CORPORATION V


ZXR10 8900 Series Command Reference (Ethernet Switching)

show mp .................................................................... 119


mep one-lm ................................................................ 120
mep two-lm ................................................................ 120
mep one-dm ............................................................... 121
mep two-dm ............................................................... 121
mep clear lm-result|dm-result....................................... 122
debug cfm pkt............................................................. 122
clear pbt-cfm .............................................................. 123
Hot Patch Configuration ................................ 125
patch activate ............................................................. 125
patch deactive ............................................................ 126
patch information ........................................................ 127
patch load .................................................................. 128
patch unload............................................................... 129

VI Confidential and Proprietary Information of ZTE CORPORATION


About This Manual

Purpose This manual is ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing


Switch Command Reference (Ethernet Switching) and applies to
ZXR10 8902/8905/8908/8912 10 Gigabit routing switch.
Intended This manual is intended for the following engineers:
Audience
On-site maintenance engineers
Network monitoring engineers
System maintenance engineers
What Is in This This manual contains the following contents:
Manual

Chapter Summary

Chapter 1 Command This chapter describes the use method


Introduction of the command manual, command
description, format convention, auxiliary
function and mode.

Chapter 2 MAC This chapter describes the configuration


Configuration and view commands related to MAC.

Chapter 3 ESM This chapter describes the configuration


Configuration and view commands related to ESM.

Chapter 4 VLAN This chapter describes configuration and


Configuration view commands related to VLAN.

Chapter 5 SuperVLAN This chapter describes configuration and


Configuration view commands related to SuperVLAN.

Chapter 6 STP This chapter describes the configuration


Configuration and view commands related to Spanning
Tree Protocol.

Chapter 7 LACP This chapter describes the configuration


Configuration and view commands related to LACP
configuration.

Chapter 8 VBAS This chapter describes the configuration


Configuration and view commands related to virtual
broadband access server.

Chapter 9 MAC PING This chapter describes the configuration


Configuration and view commands related to MAC PING.

Chapter 10 UDLD This chapter describes the configuration


Configuration and view commands related to
unidirectional link detection.

Chapter 11 Link This chapter describes the configuration


Protection Configuration and view commands related to link
protection configuration.

Confidential and Proprietary Information of ZTE CORPORATION I


ZXR10 8900 Series Command Reference (Ethernet Switching)

Chapter Summary

Chapter 12 Ethernet OAM This chapter describes the configuration


Configuration. and view commands related to Ethernet
OAM configuration.

Chapter 13 Ethernet This chapter describes the configuration


Service Level OAM (CFM) and view commands related to Ethernet
Configuration service level OAM (CFM) configuration.

Chapter 14 Hot Patch This chapter describes the configuration


Configuration and view commands related to hot patch
configuration.

Related The following documentation is related to this manual:


Documentation
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Hardware Installation Manual
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Hardware Manual
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (Basic Configuration)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (Ethernet Switching)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (IPv4 Routing)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (IPv6)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (MPLS)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (DPI)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch User
Manual (Firewall)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Index)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Basic Configuration Volume I)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Basic Configuration Volume II)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Basic Configuration Volume III)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Ethernet Switching)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (IPv4 Routing Volume I)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (IPv4 Routing Volume II)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (IPv6)

II Confidential and Proprietary Information of ZTE CORPORATION


About This Manual

ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch


Command Reference (MPLS)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Network Management)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (QoS)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Security)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Voice and Video)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Multicast)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (DPI)
ZXR10 8900 Series (V2.8.02.C) 10 Gigabit Routing Switch
Command Reference (Firewall)

Confidential and Proprietary Information of ZTE CORPORATION III


ZXR10 8900 Series Command Reference (Ethernet Switching)

This page is intentionally blank.

IV Confidential and Proprietary Information of ZTE CORPORATION


Chapter 1

Command Introduction

Table of Contents
Manual Use Guide............................................................... 1
Man-Machine Command Description ...................................... 1
Auxiliary Functions ............................................................. 2
Command Modes................................................................ 3

Manual Use Guide


The command manual for ZXR10 8900 Series 10 Gigabit Routing
Switch is classified into sixteen volumes according to the contents.
For the contents in each volume, please refer to the preface of this
manual.
The commands in other volumes are classified by functional mod-
ules, and each functional module corresponds to a chapter and
the commands in the chapter are organized in the form of level 2
directory and in the order of az.
To search a command, do as follows:
1. Find the desired command by referring to ZXR10 Router/Eth-
ernet Switch Command Manual-Command Index.
2. Find command details by the volume, chapter/section and page
of the obtained command.

Man-Machine Command
Description
Each man-machine command is described by the following items:
Function
It describes the function implemented by this command.
Command Mode
It describes the mode in which this command can be executed.
Syntax

Confidential and Proprietary Information of ZTE CORPORATION 1


ZXR10 8900 Series Command Reference (Ethernet Switching)

It describes the complete format of this command, including


the no format if possible.
Syntax Description
It describes parameters in this command in a form and pre-
scribes the range and default value. If different products have
different parameter ranges or default values, an additional
form is used for description.
Default
The default value is available in the case that this command is
not set. The default parameter value is not described here for
value selection.
Additional description shall be given if different products have
different default values.
Instructions
First describes the platform version information about this
command. For example, that The platform version X.X.XX
or later supports this command indicates this command is
provided from the beginning of the platform version X.X.XX.
This command is provided from the platform version 2.6 by
default.
Second describes the use method and precautions of this com-
mand.
Example
It describes the use of this command in an example.
Related Commands
Lists the command(s) related to this command.
History Command
It describes history version information related to this com-
mand if a command is changed after version upgrade.

Note:
The history command(s) is not described if this entry does not
exist.

Auxiliary Functions
The auxiliary function for ZXR10 devices is as follows.
1. In any command mode, enter a question mark (?) after the
DOS prompt of the system, a list of available commands in the
command mode will be displayed. With the context-sensitive
help function, the keywords and parameter lists of any com-
mands can be obtained.
i. In any command mode, enter a question mark "?" after the
DOS prompt of the system, and a list of all commands in

2 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 1 Command Introduction

the mode and the brief description of the commands will


be displayed.
ii. Input the question mark behind a character or character
string to view the list of commands or keywords beginning
with this character or character string. Note that there is
no space between the character (string) and the question
mark.
iii. Press Tab behind the character string. If the command or
keyword beginning with this character string is unique, it
shall be completed with a space at the end. Note that there
is no space between the character string and the Tab.
iv. Input a question mark after a command, a keyword or a
parameter, the next keyword or parameter to be input will
be listed, and also a brief explanation will be given. Note
that a space must be entered before the question mark.
2. If incorrect command, keyword or parameter is input, the error
isolation is offered with ^ in the user interface after you press
ENTER. The ^ is below the first character of the input incorrect
command, keyword or parameter.
3. ZXR10 router/Ethernet switch allows the command or key-
word to be abbreviated into a character or character string that
uniquely identifies this command or keyword. For example, the
show command can be abbreviated to sh or sho.
4. The user interface supports the function of recording input
commands. A maximum of ten history commands can be
recorded. The function is very useful in re-invocation of a long
or complicated command or ingress.
To re-invoke a command from the record buffer, conduct one
of the following operations, as shown below.

Command Function

Press <Ctrl+P> or Re-invokes the latest command in the


the up arrow key record buffer. Repeat these keys to
invoke old commands forwards.

Press <Ctrl+N> or Rolls the commands downward. When the


the down arrow key last command line is reached, one more
operation will roll the commands from the
begging of the buffer cyclically.

In any mode, execute the show history command to list the


latest commands input in this mode.

Command Modes
The command modes in this manual are shown below.

Confidential and Proprietary Information of ZTE CORPORATION 3


ZXR10 8900 Series Command Reference (Ethernet Switching)

Mode Prompt Admis- Entry Functions


sion Command
Mode

Exec ZXR10> Enters directly Views simple


mode after logging information
the system

Privi- ZXR10# Exec enable Configures


leged mode system
mode parameters

Global ZXR10(config)# Privi- configure Configures


config- leged terminal global service
uration mode parameters
mode

Inter- ZXR10(config- Global interface Configures


face if)# config- port
config- uration parameters
uration mode and selects
mode a port type
depending on
the keyword

Subin- ZXR10 (config- Global interface Configures


terface subif)# config- subinterface
mode uration parameters
mode of the
NPCI/NPCT

VLAN ZXR10(vlan- Privi- vlan datab Creates or


data- db)# leged ase deletes VLANs
base mode in batches
config-
uration
mode

VLAN ZXR10(config- Global vlan Configures


config- vlan)# config- VLAN
uration uration parameters
mode mode

MSTP ZXR10(config- Global spanning-t Configures


config- mstp)# config- ree mst conf MSTP
uration uration iguration parameters
mode mode

Basic ZXR10(config- Global acl basic Defines basic


ACL basic-acl)# config- ACL rule
config- uration
uration mode
mode

Ex- ZXR10(config- Global acl extend Defines


tended ext-acl)# config- extended ACL
ACL uration rule
config- mode
uration
mode

4 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 1 Command Introduction

Mode Prompt Admis- Entry Functions


sion Command
Mode

Line ZXR10(config- Global line console Configures


config- line)# config- 0 parameters
uration uration related to
mode mode line <1~64 serial port
>(GAR) and telnet
connection

Layer ZXR10(config- Global acl link Defines layer


2 ACL link-acl)# config- 2 ACL rule
config- uration
uration mode
mode

Hybrid ZXR10(config- Global acl hybrid Defines hybrid


ACL hybd-acl)# config- ACL rule
config- uration
uration mode
mode

Router ZXR10 (config- Global ip access-list Defines router


stand- std-nacl)# config- standard ACL
ard ACL uration rule
mode mode

Router ZXR10 (config- Global ip access-list Defines router


ex- ext-nacl)# config- extended ACL
tended uration rule
ACL mode
mode

Route ZXR10(config- Global router rip Configures


config- router)# config- RIP
uration uration parameters
mode mode
router ospf Configures
OSPF
parameters

router isis Configures


IS-IS
parameters

router bgp Configures


BGP
parameters

router Configures
pimsm PIM-SM
parameters

ipv6 router Configures


rip RIPng
parameters.

ipv6 router Configures


ospf OSPFv3
parameters

Confidential and Proprietary Information of ZTE CORPORATION 5


ZXR10 8900 Series Command Reference (Ethernet Switching)

Mode Prompt Admis- Entry Functions


sion Command
Mode

VRF ZXR10(config- Global ip vrf Configures


config- vrf)# config- VRF
uration uration parameters
mode mode

VFI con- ZXR10(config- Global vfi Configures


figu- vfi)# config- VPLS related
ration uration parameters
mode mode

IPv4 ad- ZXR10(config- Route address-fam Configures


dress router-af)# config- ily ipv4 vrf RIP VRF
family uration parameters
config- mode
uration (RIP)
mode
Route address-fam Configures
config- ily vpnv4 BGP VPN
uration address-fam and VRF
mode ily ipv4 vrf parameters
(BGP)

IPv6 ZXR10(config- Route address-fam Configures


unicast router-af)# config- ily ipv6 BGP4+
address uration unicast
family mode address family
config- (BGP4+)
uration
mode Route address-fam Configures
config- ily ipv6 IS-ISv6
uration address family
mode
(IS-
ISv6)

Route ZXR10(config- Global route-map Configures


map route-map)# config- route map
config- uration matching item
uration mode and operation
mode

Channe- ZXR10(config- Global control Configures


lization control)# config- channelization
config- uration for ce1, ce3
uration mode and cpos3
mode

Dial ZXR10(config- Global dial-peer Configures


peer voip100)# config- voice business
config- uration related to
uration mode integrated
mode service

Voice ZXR10(config- Global voice-port Configures


port voice-port)# config- voice service
config- uration
uration mode
mode

6 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 1 Command Introduction

Mode Prompt Admis- Entry Functions


sion Command
Mode

IPSec ZXR10(config- Global ipsec Configures


config- ipsec)# config- IPv6 IPSec
uration uration protection
mode mode

Diagno- ZXR10(diag)# Privi- diagnose Tests CPU


sis mode leged and memory
mode usage

Confidential and Proprietary Information of ZTE CORPORATION 7


ZXR10 8900 Series Command Reference (Ethernet Switching)

This page is intentionally blank.

8 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2

MAC Configuration

Table of Contents
mac add............................................................................ 9
mac aging-time .................................................................10
mac clear .........................................................................10
mac delete .......................................................................11
mac filter .........................................................................11
mac learn .........................................................................12
mac learning.....................................................................12
mac learning mode ............................................................13
mac limit-num ..................................................................14
mac protect ......................................................................14
mac protect time ...............................................................15
mac to-static ....................................................................15
mac learning-strategy ........................................................16
mac transparent-control .....................................................16
mac unknow-filter-limit-num...............................................17
mac unknowsource-filter ....................................................17
show mac.........................................................................18
show mac aging-time.........................................................19
show mac count ................................................................20
show mac learning.............................................................20
show mac limit-num ..........................................................21
show mac port-info............................................................21
show mac protect ..............................................................22
show mac running .............................................................22

mac add
Purpose Use this command to add a MAC address entry.
Command Modes Global configuration
Syntax mac add {static | permanent}<mac-address> interface <por
t-name>[vlan <vlan-id>| all-owner-vlans]

Syntax
Description static Static address, which does not take part in
aging, and cannot be written into database

permanent Permanent address, which does not take part


in aging, and can be written into database

<mac-address> MAC address in dotted division format

Confidential and Proprietary Information of ZTE CORPORATION 9


ZXR10 8900 Series Command Reference (Ethernet Switching)

interface <port-na Ethernet physical port


me>

vlan <vlan-id> VLAN ID where the MAC address is located

all-owner-vlans All VLANs where the interface is located

Instructions If the parameter vlan <vlan-id> is not specified, the PVID on the
port is selected. Use the show running-config command to dis-
play the configured permanent MAC address.
Example This example describes how to add the static MAC address
000a.010c.e2c6 to the Ethernet port fei_1/1.
ZXR10(config)#mac add static 000a.010c.e2c6 interface fei_1/1

Related mac delete


Commands
show mac

mac aging-time
Purpose Use this command to configure the dynamic MAC address aging
time of the device.
Command Modes Global configuration
Syntax mac aging-time <time>

Syntax
Description <time> Aging time, in seconds, range: 60~630,
default: 300 seconds

Instructions If the MAC address aging time is set to n seconds, the dynamic
MAC address ages in the time range: n~2n.
Example This example describes how to set the MAC address aging time of
the device to 180 seconds.
ZXR10(config)#mac aging-time 180

Related show mac aging-time


Commands
show mac running

mac clear
Purpose Use this command to clear the statistics number of MAC address
table entries.
Command Mode Global configuration mode
Syntax mac clear max-number
Example This example describes how to clear the statistics number of MAC
address table entries.
ZXR10(config)#mac clear max-number

10 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 MAC Configuration

Related mac add


Commands
show mac count mac-hour
show mac count mac-day

mac delete
Purpose Use this command to delete a MAC address entry.
Command Modes Global configuration
Syntax mac delete {<mac-address>| interface <port-name>|
vlan}[<vlan-id>]

Syntax
Description <mac-address> MAC address in dotted division format

interface <port-na Ethernet physical port


me>

vlan Delete a MAC address entry according to


some VLAN

<vlan-id> VLAN ID where the MAC address is located

Example This example describes how to delete the MAC address


(000a.010c.e2c6) and then delete all MAC addresses on the
Ethernet port fei_1/1.
ZXR10(config)#mac delete 000a.010c.e2c6
ZXR10(config)#mac delete ethernet fei_1/1

Related mac add


Commands
show mac

mac filter
Purpose Use this command to to filter data frames according to the MAC
address.
Command Modes Global configuration
Syntax mac filter {source | both | destination}<mac-address><vlan
-id>

Syntax
Description source Filters data frames according to the source
MAC address.

both Filters data frames according to the source or


destination MAC address

destination Filters data frames according to the


destination MAC address

Confidential and Proprietary Information of ZTE CORPORATION 11


ZXR10 8900 Series Command Reference (Ethernet Switching)

<mac-address> MAC address in dotted division format

<vlan-id> VLAN identifier, range: 1~4094

Instructions There is no need to specify the physical port when running the
mac filter command. The data frames on any port are filtered.
To cancel the MAC address filtering configured by the com-
mand, run the mac delete command to delete the MAC ad-
dress.
Example This example describes how to filter the VLAN 1 data frames with
the MAC address 000a.010c.e2c6.
ZXR10(config)#mac filter source 000a.010c.e2c6 vlan 1

Related mac delete


Commands
show mac

mac learn
Purpose Use this command to configure the HIGIH interface to learn the
MAC address.
Command Modes Global configuration
Syntax mac learn {normal | special}

Syntax
Description normal Permits the HIGIG interface to learn MAC

special Denies the HIGIG interface to learn MAC

Instructions This command is supported by ZXR10 T160G/7800.


Example This example describes how to forbid the HIGIG interface from
learning the MAC address.
ZXR10(config)#mac learn special

Related show mac running


Commands

mac learning
Purpose Use this command to configure the physical port to dynamically
learn the MAC address.
Command Modes Global configuration
Syntax mac learning {[interface <port-name>]|[vlan <vlan-id>]}{di
sable | enable}

12 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 MAC Configuration

Syntax
Description interface <port-na Ethernet physical interface
me>

vlan <vlan-id> Vlan ID, range: 1~4094

disable Disables the MAC address learning

enable Enable the MAC address learning

Instructions After the MAC address learning is disabled on some interface,


this interface does not dynamically learns the MAC address,
but various MAC addresses can be added on the interface by
manual configuration.
ZXR10 T160G only supports the configuration of dynamic MAC
address learning on the physical interface.
Example This example describes how to disable the Ethernet interface
fei_1/1 to learn the MAC address.
ZXR10(config)#mac learning ethernet fei_1/1 disable

Related show mac learning


Commands
show mac running
show mac port-info

mac learning mode


Purpose Use this command to configure the mode to learn a dynamic MAC
address on a physical port.
Command Mode Interface configuration mode (EPON-OLT interface configuration
mode)
Syntax mac learning mode{ ivl | svl}

Syntax
Description ivl IVL mode

svl SVL mode

Example This example describes how to set the mode learn a dynamic MAC
address as IVL on fei_1/1.
ZXR10(config-if)#mac learning mode ivl

Related show mac learning


Commands
show mac running
show mac port-info

Confidential and Proprietary Information of ZTE CORPORATION 13


ZXR10 8900 Series Command Reference (Ethernet Switching)

mac limit-num
Purpose Use this command to configure the number of the MAC addresses
that the physical port can dynamically learn.
Command Modes Global configuration
Syntax mac limit-num [interface <port-name>]<max-number>

Syntax
Description interface <port-na Ethernet physical interface
me>

<max-number> Maximum number of the MAC addresses that


can be dynamically learned, range: 1~6384

Instructions If the <max-number> value is set to 0, it means that the num-


ber of the MAC address learning is not limited on the interface.
ZXR10 T160G only supports to set the number of the MAC ad-
dresses that the physical interface can dynamically learn.
Example This example describes how to set the number of the MAC ad-
dresses that the Ethernet interface fei_1/1 can dynamically learn
to 1000.
ZXR10(config)#mac limit-num ethernet fei_1/1 1000

Related mac protect


Commands
mac protect time
show mac limit-num
show mac running

mac protect
Purpose Use this command to enable or disable the port to enter the dy-
namic MAC address learning protection state.
Command Modes Global configuration
Syntax mac protect [interface <port-name>]{disable | enable}

Syntax
Description interface <port-na Ethernet physical interface
me>

disable Disables the MAC address learning protection

enable Enables the MAC address learning protection

Instructions This command is used together with the mac protect time and m
ac limit-num commands. After the protection of the MAC address
learning is set, the protection time if the MAC address learning on
the interface is in abnormal status and the number of the MAC
addresses that the port can learn need setting.

14 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 MAC Configuration

ZXR10 T160G only supports the configuration of protection state


on the physical interface.
Example This example describes how to configure the Ethernet interface
fei_1/1 to protect the MAC address learning.
ZXR10(config)#mac protect ethernet fei_1/1 enable

Related mac limit-num


Commands
mac protect time
show mac protect

mac protect time


Purpose Use this command to configure the protection time when the MAC
address learning on the interface is in abnormal status.
Command Modes Global configuration
Syntax mac protect time <time>

Syntax
Description <time> Protection time of the MAC address learning,
in seconds, range: 0~3600

Instructions Only one protection time can be set for the whole switch.
The command will not be effective until the mac protect com-
mand is configured.
Example This example describes how to set the number of the MAC ad-
dresses that the Ethernet interface fei_1/1 can learn to 1000, and
configure this interface to protect the MAC address learning. And
the protection time is 500 seconds.
ZXR10(config)#mac limit-num ethernet fei_1/1 1000
ZXR10(config)#mac protect ethernet fei_1/1 enable
ZXR10(config)#mac protect time 500

Related mac limit-num


Commands
mac protect
show mac protect
show mac running

mac to-static
Purpose Use this command to translate all dynamic MAC addresses learned
by the interface into static MAC addresses.
Command Modes Global configuration
Syntax mac to-static [interface <port-name>|<vlan-id>]{disable |
enable}

Confidential and Proprietary Information of ZTE CORPORATION 15


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description interface <port-na Ethernet physical port
me>

<vlan-id> VLAN ID, range: 1~4094

disable Disables the dynamic MAC address to be


translated into the static MAC address

enable Enables the dynamic MAC address to be


translated into the static MAC address

Instructions This command is used to translate the dynamic MAC address on


the port into the static MAC address. And it no longer participates
in the aging. The executing result of this command is not written
into the database.
Example This example describes how to translate the dynamic MAC address
into the static address on the interface fei_1/1.
ZXR10(config)#mac tostatic ethernet fei_1/1 enable

Related show mac


Commands

mac learning-strategy
Purpose Use this command to configure the MAC learning strategy (chip
learning/network processor learning).
Command Modes Global configuration
Syntax mac learning-strategy {driver | micode}

Syntax
Description driver Chip learning

micode Network processor learning

Instructions This command is applied to ZXR10 T160G/7800.


Example This example describes how to configure the MAC learning strategy
to NP method.
ZXR10(config)#mac learn special
ZXR10(config)#mac learning-strategy micode

Related show mac learning-strategy


Commands

mac transparent-control
Purpose Use this command to enable or disable the transparent function of
the MAC address.
Command Modes Global configuration
Syntax mac transparent-control {disable | enable}

16 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 MAC Configuration

Syntax
Description enable Enables the transparent function of the MAC
address

disable Disables the transparent function of the MAC


address

Instructions This command is supported by ZXR10 3900/5900/5200 in single


mode. This command is used to enable or disable the transparent
function of the MAC address.
Example This example describes how to enable the transparent function of
the MAC address.
ZXR10(config)#mac transparent-control enable

Related show mac transparent_control


Commands

mac unknow-filter-limit-num
Purpose Use this command to configure the limitation of the number of
learning and forwarding MAC addresses.
Command Modes Global configuration
Syntax mac unknow-filter-limit-num [interface <port-name>]< limi
t-num >

Syntax
Description interface <port-na Ethernet physical port
me>

< limit-num > Limitation of the number, range: 0~16384

Instructions This command is supported by ZXR10 3900/5900/5200.


Example This example describes how to configure the limitation of MAC ad-
dress numbers on the interface.
ZXR10(config)#mac unknow-filter-limit-num interface fei_1/1 15

Related show mac running


Commands

mac unknowsource-filter
Purpose Use this command to configure the unknown source MAC filter
function.
Command Modes Global configuration
Syntax mac unknowsource-filter interface <port-name>{disable |
enable}

Confidential and Proprietary Information of ZTE CORPORATION 17


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description interface <port-na Ethernet physical port
me>

disable Disables the filtering of unknown source MAC


traffic

enable Enables the filtering unknown source MAC


traffic

Instructions This command is used to control the port to filter the traffic ac-
cording to the unknown source MAC.
Example This example describes how to configure the unknown source MAC
address filter on the interface.
ZXR10(config)#mac unknowsource-filter interface gei_1/1 enable

Related show mac


Commands

show mac
Purpose Use this command to display the MAC address entry.
Command Modes All modes
Syntax show mac [dynamic | static | permanent | to-static | src-f
ilter | dst-filter | <mac-address>[vlan <vlan-id>] | interface
<port-name>| vlan <vlan-id>]

Syntax
Description dynamic Dynamic address

static Static address

permanent Permanent address

to-static Solidified MAC address

src-filter Filters data frames according to the source


MAC address

dst-filter Filters data frames according to the


destination MAC address

<mac-address> MAC address in dotted division format

interface <port-na Ethernet physical port


me>

vlan <vlan-id> VLAN ID, range: 1~4094

Example This example describes how to display all MAC addresses on the
Ethernet interface fei_1/1. (In this example, it is displayed on
ZXR10 T160G , which slightly differs from ZXR10 3900/3200 and
ZXR10 5900/5200).
ZXR10(config)#show mac Ethernet fei_1/1
Total MAC address : 2
Flags:vid --VLAN id,stc--static,per--permanent,toS--to-static,

18 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 MAC Configuration

srF-source filter,dsF-destination filter,time--day:hour:min:sec


Frm --mac from where:0,drv; 1,config; 2,VPN; 3,802.1X; 4,micro

MAC_Address port vid stc per toS srF dsF Frm vpnid Time
------------------------------------------------------------
00d0.d0c0.1320 fei_1/1 1 0 0 1 0 0 1 0 0:00:43:41

Descriptions of the displayed fields are shown below.

Field Description

MAC_Address MAC_address in dotted division format

port Port where the MAC address is located

vid VLAN ID where the MAC address is located

stat Static flag of the MAC address

perma Permanent MAC address flag

toSta Solidified MAC address flag

src_filter Whether to filter the frames of the source


MAC address.

dst_filter Whether to filter the frames of the destination


MAC address

Frm Source of the MAC address (drive,


configuration, VPN, 802.1x and microcode)

vpnid VPN identifier

Time Time when the MAC address is learned

Related mac add


Commands
mac delete
mac to-static
mac filter

show mac aging-time


Purpose Use this command to display the aging time of the dynamic MAC
address of the switch.
Command Modes All modes
Syntax show mac aging-time
Example This example describes how to display the aging time of the MAC
address of the switch.
ZXR10#show mac aging-time
The MAC Address aging time is 60 seconds

Confidential and Proprietary Information of ZTE CORPORATION 19


ZXR10 8900 Series Command Reference (Ethernet Switching)

Related mac aging-time


Commands

show mac count


Purpose Use this command to show the number of dynamic MAC addresses
learnt by the switch.
Command Mode All modes
Syntax show mac count { mac-hour | mac-day }
Example This example describes how to display the number of dynamic MAC
addresses learnt by the switch by hour or by data. Display by hour
means displaying the maximum number of MAC addresses learnt
and the learning time-points in each hour during the last 24 hours;
display by data means displaying the maximum number of MAC
addresses learnt and the learning time-points in each day during
the last 30 days.
ZXR10#show mac count mac-hour
ZXR10#show mac count mac-day

Related show mac


Commands
mac clear max-number

show mac learning


Purpose Use this command to display the setting of the dynamic MAC ad-
dress learned by the port.
Command Modes All modes
Syntax show mac learning {[ interface <port-name>]|<vlan-id>}

Syntax
Description interface <port-na Ethernet physical interface
me>

<vlan-id> VLAN ID, range: 1~4094

Example This example describes how to display the setting of the dynamic
MAC address learned by the port fei_1/1.
ZXR10#show mac learning ethernet fei_1/1
The MAC learning is enabled.

Related mac learning


Commands
show mac port-info

20 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 2 MAC Configuration

show mac limit-num


Purpose Use this command to display the number limitation of the dynamic
MAC address learned by the port.
Command Modes All modes
Syntax show mac limit-num [interface <port-name>]

Syntax
Description <port-name> Ethernet physical interface

Example This example describes how to display the number limit of the
dynamic MAC address learned by the port fei_1/1.
ZXR10#show mac limit-num ethernet fei_1/1
The limit num is: 100.

Related mac limit-num


Commands

show mac port-info


Purpose Use this command to display the configuration and status of the
port.
Command Modes All modes
Syntax show mac port-info {interface <port-name>}

Syntax
Description interface <port-na Ethernet physical interface
me>

Example This example describes how to display the setting of the number
limit of the dynamic MAC address learned by the port fei_1/1.
ZXR10(config)#mac limit ethernet fei_1/1 100
ZXR10(config)#mac bind ethernet fei_1/1 enable
ZXR10(config)#show mac port-info ethernet fei_1/1
The fei_1/1 limit num = 100; current mac num = 10
Mac bind is enable
IP+MAC bind is disable
Mac learn is enable
Mac is learning
Mac protect is disable
Mac is not protecting

Related mac limit-num


Commands
mac protect
mac learn

Confidential and Proprietary Information of ZTE CORPORATION 21


ZXR10 8900 Series Command Reference (Ethernet Switching)

show mac protect


Purpose Use this command to display the protection setting of the dynamic
MAC address learning on the port and the protection time of the
MAC address learning of the switch.
Command Modes All modes
Syntax show mac protect [{interface <port-name>| protect-time}]

Syntax
Description interface <port-na Ethernet physical interface
me>

protect-time MAC address learning protection time

Example This example describes how to display the protection setting of


the dynamic MAC address learning on the interface fei_1/1 and
the protection time of the MAC address learning of the switch.
ZXR10#show mac protect ethernet fei_1/1
The MAC protect is enabled.
ZXR10#show mac protect protect-time
The protect time is 300 seconds.

Related mac protect


commands
mac protect time

show mac running


Purpose Use this command to display the related configuration of the MAC
address of the switch.
Command Modes All modes
Syntax show mac running
Instructions If there is no configuration and various parameters remain default,
nothing is displayed. Only information about the configuration to
be written into the database is displayed.
Example This example describes how to display the related configuration of
the MAC of the switch.
ZXR10#show mac running
mac aging-time 60
mac limit-num ethernet fei_1/1 10
mac protect ethernet fei_1/1 enable

22 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 3

ESM Configuration

Table of Contents
esm.................................................................................23
esm mode ........................................................................23
esm init extt slot ...............................................................24
esm udf mode...................................................................24
config ..............................................................................24
config acl .........................................................................25
show esm info...................................................................26

esm
Purpose Use this command to enter esm configuration mode from global
configuration mode.
Command Mode Global configuration mode
Syntax esm
Example This example describes how to enter and exit esm configuration
mode.
Enter esm configuration mode:
ZXR10(config)#esm
ZXR10(config-esm)#

Exit esm configuration mode:


ZXR10(config-esm)#exit
ZXR10(config)#

esm mode
Purpose Use this command to configure the esm mode.
Command Mode Esm configuration mode
Syntax esm mode { l2-only | l2-acl | l2-acl-ext | l2-l3-acl }

Syntax
Description l2-only It is to allocate ESM to L2. The size of an
extended L2 table can be 512K.

l2-acl It is to allocate ESM to L2 and ACL.

Confidential and Proprietary Information of ZTE CORPORATION 23


ZXR10 8900 Series Command Reference (Ethernet Switching)

l2-acl-ext It is to allocate ESM to L2 and ACL IPv6.

l2-l3-acl It is to allocate ESM to L2, L3 and ACL.

Instructions During esm mode handover, the size changes of tables will affect
the recovery of user configuration. It is recommended to hand
over the mode before user configuration.
Example This example describes how to set the ESM mode as l2only.
ZXR10(config)#esm
ZXR10(config-esm)#esm mode l2-only
ZXR10(config-esm)#exit

esm init extt slot


Purpose Use this command to trigger esm initialization.
Command Mode Esm configuration mode
Syntax esm init extt slot < 1-12>

Syntax
Description < 1-12> It is the number of a slot for initialization, in
the range of 1~12.

Example This example describes how to trigger esm initialization in the Slot
2 of a board.
ZXR10(config-esm)#esm init extt slot 2

esm udf mode


Purpose Use this command to enter esm user-defined mode from esm con-
figuration mode.
Command Mode Esm configuration mode
Syntax esm udf_mode
Example This example describes how to enter esm user-defined mode.
ZXR10(config-esm)#esm udf_mode
ZXR10(config-esm-udf)#

config
Purpose Use this command to configure esm entries in esm user-defined
mode.
Command Mode Esm user-defined mode

24 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 3 ESM Configuration

Syntax config { fwd-l2-entry < entrynum>| fwd-ipv4-entry < entry


num >| fwd-ipv6-entry < entrynum >| fwd-ipv6u-entry< entr
ynum >| acl-l2-entry < entrynum >| acl-ipv4-entry < entry
num >| acl-ipv6s-entry < entrynum >| acl-ipv6f-entry< entr
ynum >| acl-l2c-entry< entrynum >| acl-ipv4c-entry < entry
num >| acl-ipv6c-entry< entrynum >| acl-l2ipv4-entry < entr
ynum >| acl-l2ipv6-entry < entrynum >}

Syntax
Description fwd-l2-entry < The range of fwd-l2-entry, 0~524288
entrynum>

fwd-ipv4-entry < The range of fwd-ipv4-entry, 0~524288


entrynum>

fwd-ipv6-entry < The range of fwd-ipv6-entry, 0~262144


entrynum>

fwd-ipv6u-entry< The range of fwd-ipv6u-entry, 0~524288


entrynum>

acl-l2-entry < The range of acl-l2-entry, 0~131072


entrynum>

acl-ipv4-entry < The range of acl-ipv4-entry, 0~131072


entrynum>

acl-ipv6s-entry < The range of acl-ipv6s-entry, 0~65536


entrynum>

acl-ipv6f-entry< The range of acl-ipv6f-entry, 0~65536


entrynum>

acl-l2c-entry< The range of acl-l2c-entry, 0~262144


entrynum>

acl-ipv4c-entry < The range of acl-ipv4c-entry, 0~262144


entrynum>

acl-ipv6c-entry< The range of acl-ipv6c-entry, 0~262144


entrynum>

acl-l2ipv4-entry < The range of acl-l2ipv4-entry, 0~65536


entrynum>

acl-l2ipv6-entry < The range of acl-l2ipv6-entry, 0~65536


entrynum>

Example This example describes how to set the size of a fwd-l2-entry as


1024K.
ZXR10(config)#voice-port voice_3/1
ZXR10(config-esm-udf)#config fwd-l2-entry 1024

config acl
Purpose Use this command to configure control for ACL entries deployment
in esm user-defined mode.

Confidential and Proprietary Information of ZTE CORPORATION 25


ZXR10 8900 Series Command Reference (Ethernet Switching)

Command Mode Esm user-defined mode


Syntax config acl { standard | extended | link | hybrid | ipv6-stand
ard| ipv6-extended}
no config acl { standard | extended | link| hybrid| ipv6-sta
ndard| ipv6-extended }

Syntax
Description standard It is to set the ACL mode as standard.

extended It is to set the ACL mode as extended.

link It is to set the ACL mode as link.

hybrid It is to set the ACL mode as hybrid.

ipv6-standard It is to set the ACL mode as ipv6-standard.

ipv6-extended It is to set the ACL mode as ipv6-extended.

Example This example describes how to configure control for ACL entries
deployment.
ZXR10(config-esm)#esm mode udf
ZXR10(config-esm-udf)#config acl standard
ZXR10(config-esm-udf)#no configstandard
ZXR10(config-esm-udf)#exit
ZXR10(config-esm)#

show esm info


Purpose Use this command to view esm related information.
Command Mode All modes except Exec mode
Syntax show esm info
Example This example describes how to view esm related information.
ZXR10(config)#show esm info

26 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4

VLAN Configuration

Table of Contents
acceptable frame types ......................................................27
bind dpi-template ..............................................................28
clear stat vlan ...................................................................28
ingress filtering .................................................................29
interface ..........................................................................29
name ...............................................................................30
show qinq.........................................................................30
show stat vlan ..................................................................31
show vlan.........................................................................31
show vlan private-map .......................................................32
show vlan protocol-map .....................................................33
show vlan subnet-map .......................................................34
show vlan translate............................................................35
swicthport ........................................................................36
switchport access vlan .......................................................36
switchport hybrid native vlan ..............................................37
switchport hybrid vlan ........................................................37
switchport mode................................................................38
switchport qinq (Global Configuration)..................................39
switchport qinq (Port Configuration) .....................................39
switchport trunk native vlan................................................40
switchport trunk vlan .........................................................41
vlan (Global Configuration) .................................................41
vlan (VLAN Database Configuration).....................................42
vlan database ...................................................................42
vlan list............................................................................43
vlan private-map ...............................................................43
vlan protocol-map .............................................................45
vlan protocol-map(Port Enabling).........................................45
vlan qinq ..........................................................................46
vlan subnet-map ...............................................................48
vlan subnet-map (Port Enabling) .........................................49
vlan translate....................................................................49
vlan database ...................................................................50
vlan translate enhanced .....................................................51

acceptable frame types


Purpose Use this command to set the frame type be received at an inter-
face.
Command Modes Interface configuration

Confidential and Proprietary Information of ZTE CORPORATION 27


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax acceptable frame types {all | tag}

Syntax
Description all All the frame types can be received

tag tag frames only

Defaults All the frame types are acceptable.


Instructions Use the show running-config command on the interface to dis-
play the configuration.
Example This example describes how to configure the interface fei_1/1 to
receive tag frames only.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#acceptable frame types tag

Related show interface


Commands

bind dpi-template
Purpose Use this command to enter VLAN Layer 3 interface configuration
mode and bind related dpi-template. Remove the binding with no
command.
Command Mode VLAN Layer 3 interface configuration, with prompt ZXR10(config-
if-vlan-n)#.
Syntax bind dpi-template < template-id>
no bind dpi-template

Syntax
Description < template-id> It is the ID of a dpi-template entry, in the
range of 1~4095. Value 0 means invalid.

Example This example describes how to enter VLAN Layer 3 interface con-
figuration mode and bind dpi-template 2 to VLAN 5.
ZXR10(config)#interface vlan 5
ZXR10(config-if-vlan5)#bind dpi-template 2

clear stat vlan


Purpose Use this command to clear VLAN statistics.
Command Mode Global configuration mode
Syntax clear stat vlan <1-4094>

Syntax
Description <1-4094> Vlan ID range

28 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Instruction This configuration will clear statistics information of all ports of this
VLAN, these ports belong to layer 2 physical port and these ports
belong and only belong to this VLAN.

ingress filtering
Purpose Use this command to set the ingress filtering for an interface.
Command Modes Interface configuration
Syntax ingress filtering {enable | disable}

Syntax
Description enable Enables ingress filtering

disable Disables ingress filtering

Defaults The ingress filtering is enabled by default.


Instructions Use the show running-config command on the interface to dis-
play the configuration.
Example This example describes how to enable ingress filtering on the in-
terface fei_1/1.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#ingress filtering enable

Related show run interface


Commands

interface
Purpose Use this command to create a VLAN interface and enter VLAN in-
terface configuration mode. Delete the VLAN interface with the no
form of this command.
Command Modes Global configuration
Syntax interface {vlan <vlan-id>|<vlan-if>}
no interface {vlan <vlan-id>|<vlan-if>}

Syntax
Description vlan <vlan-id> VLAN ID, range: 1~4094

<vlan-if> VLAN interface name

Instructions The parameter <vlan-if> is in the format of vlan + VLAN ID, such
as vlan10.
Example This example describes how to create a VLAN interface vlan1, and
enter VLAN interface configuration mode.
ZXR10(config)#interface vlan 1
ZXR10(config-if)#

Confidential and Proprietary Information of ZTE CORPORATION 29


ZXR10 8900 Series Command Reference (Ethernet Switching)

Related exit
Commands
end

name
Purpose Use this command to configure the alias of some VLAN. Restore
the default with the no form of this command.
Command Modes VLAN configuration
Syntax name <vlan-name>
no name

Syntax
Description <vlan-name> VLAN name, not more than 32 characters, it
starts with a character

Defaults VLAN0001 is the alias of vlan 1; VLAN0100 is the default alias of


vlan 100, and so on.
Instructions The VLAN alias cannot be the same as that of other VLAN, it must
not be configured to be the default name of any other VLANs (even
if the VLAN does not exist).
Example This example describes how to create vlan 2 and set its alias to v2.
ZXR10(config)#vlan 2
ZXR10(config-vlan)#name v2

Related show vlan


Commands

show qinq
Purpose Use this command to display information about QinQ configuration
on an interface.
Command Modes All modes except user EXEC
Syntax show qinq [<interface-name>]

Syntax
Description <interface-name> Name of the specified interface

Instructions QinQ configuration information of all interfaces is displayed if this


command has no parameter.
Example This example describes how to display QinQ configuration in-
formation of all interfaces.
ZXR10#show qinq
Interface QinqMode QinqId Pvid
fei_1/1 normal 0x8100 1
Fei_1/2 uplink 0x9100 1
fei_1/3 customer 0x9100 1

30 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

This example describes how to display QinQ configuration in-


formation of a given interface.
ZXR10#show qinq fei_1/1
Interface QinqMode QinqId Pvid
fei_1/1 normal 0x8100 1

The displayed information descriptions are displayed as fol-


lows.

Field Description

Interface Interface name

QinqMode QinQ mode of the interface

QinqId QinQ ID of the interface

Pvid PVID

Related switchport qinq


Commands

show stat vlan


Purpose Use this command to display the statistics information of all ports
of one VLAN.
Command Modes Management mode
Syntax show stat vlan <1-4094>

Syntax
Description <1-4094> VLAN ID range

Instructions This command will show statistics information of all ports of this
VLAN, these ports belong to layer 2 physical port and these ports
belong and only belong to this VLAN.

show vlan
Purpose Use this command to display information about VLAN configura-
tion.
Command Modes All modes except user EXEC
Syntax show vlan [brief | access | trunk | hybrid | id <vlan-id>| name
<vlan-name>]

Syntax
Description brief Displays major information about a VLAN

access Displays the access port of the VLAN

trunk Displays the trunk port of the VLAN

Confidential and Proprietary Information of ZTE CORPORATION 31


ZXR10 8900 Series Command Reference (Ethernet Switching)

hybrid Displays the hybrid port of the VLAN

id <vlan-id> VLAN ID, range: 1~4094

name <vlan-name> VLAN name, not more than 32 characters

Instructions All information about the VLAN is displayed if this command has
no parameter.
Example This example describes how to display all information about
the VLAN.
ZXR10#show vlan
VLAN Name Status Said MTU IfIndex PvidPorts UntagPorts TagPorts
1 v1 active 1400 1 fei_1/1 fei_1/2

This example describes how to display major information about


a VLAN.
ZXR10#show vlan brief
VLAN Name Status PvidPorts UntagPorts TagPorts
1 v1 active fei_1/1 fei_1/2

The displayed field descriptions are shown below.

Field Description

VLAN VLAN ID

Name VLAN name

PvidPorts Port whose PVID is the specified VLAN

UntagPorts untag port of the VLAN

TagPorts tag port of the VLAN

show vlan private-map


Purpose Use this command to display information about the configuration
of the private VLAN.
Command Modes All modes except user EXEC
Syntax show vlan private-map [<session id>]

Syntax
Description <session id> Session ID of the designated PVLAN

Instructions If there is no parameter after this command, information about


the configuration of isolate/promicuous ports of all sessions is dis-
played.
Example This example describes how to display information about the
configuration of all private VLANs.
ZXR10#show vlan private-map
Session_id Isolate_Ports Promis_Ports
-----------------------------------------
1 fei_1/1 fei_2/1
2 fei_1/2 fei_2/2

32 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

This example describes how to display information about the


configuration of a private VLAN.
ZXR10#show vlan private-map 1
Session_id Isolate_Ports Promis_Ports
-----------------------------------------
1 fei_1/1 fei_2/1

The displayed field descriptions are displayed as follows.

Field Description

Session-id Session ID of the PVLAN, range: 1~20

Isolate port Isolate port

Promis port Promiscuous port

show vlan protocol-map


Purpose Use this command to display information about the configuration
of the protocol-based VLAN partion.
Command Modes All modes except user EXEC
Syntax show vlan protocol-map [<session id>]

Syntax
Description <session id> Session ID of the designated PVLAN

Instructions The platform version 4.6.02 and upgrade versions support this
command.
If there is no parameter after this command, information about
the configuration of all protocol-based VLANs is displayed.
The session ID is 1~12 for ZXR10 3900, and 1~16 for ZXR10
5900/T160G/T64G/T40G.
Example This example describes how to display information about the
configuration of all protocol-based VLANs.
ZXR10#show vlan protocol-map
Session_no Frame-type Ethernet-type VLAN
1 ethernet2 0x0800 2
2 ethernet2 0x0900 3

This example describes how to display information about the


configuration of one protocol-based VLAN.
ZXR10#show vlan protocol-map 1
Session_no Frame-type Ethernet-type VLAN
1 ethernet2 0x0800 2

The displayed field descriptions are displayed as follows.

Field Description

Session_no Session number

Frame-type Frame type

Confidential and Proprietary Information of ZTE CORPORATION 33


ZXR10 8900 Series Command Reference (Ethernet Switching)

Field Description

Ethernet-type Ethernet encapsulation type

VLAN Native VLAN ID

Related vlan protocol-map


Commands

show vlan subnet-map


Purpose Use this command to display information about the configuration
of the subnet-based VLAN.
Command Modes All modes except user EXEC
Syntax show vlan subnet-map [<session id>]

Syntax
Description <session id> Session ID of the designated PVLAN

Instructions The platform version 4.6.02 and upgrade versions support this
command.
If there is no parameter after this command, information about
the configuration of all subnet-based VLANs is displayed.
The session ID is 1~12 for ZXR10 3900, and 1~256 for ZXR10
5900/T240G/T160G/T64G/T40G.
Example This example describes how to display information about the
configuration of all subnet-based VLANs.
ZXR10#show vlan subnet-map
Session_no IpAddr IpMask VLAN
1 10.1.0.0 255.255.0.0 2
2 10.2.0.0 255.255.0.0 3

This example describes how to display information about the


configuration of one subnet-based VLAN.
ZXR10#show vlan subnet-map 1
Session_no IpAddr IpMask VLAN
1 10.1.0.0 255.255.0.0 2

The displayed field descriptions are displayed as follows.

Field Description

Session_no Session number

ipAddr Prefix of the subnet IP address

Mask Subnet mask

VLAN Native VLAN ID

34 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Related vlan subnet-map


Commands

show vlan translate


Purpose Use this command to display information about the configuration
of the VLAN translation.
Command Modes All modes except user EXEC
Syntax show vlan translate [<session id>]

Syntax
Description <session id> Session ID of the designated PVLAN

Instructions The platform version 4.6.02 and upgrade versions support this
command.
If there is no parameter after this command, information about
the configuration of all VLAN translations is displayed.
ZXR10 3900 does not support this command.
Example This example describes how to display information about the
configuration of all VLAN translations.
ZXR10#show vlan translate
Session_no In_Port E_Port In_vlan E_vlan Advance Uplink-ports
-------------------------------------------------------------
1 gei_4/1 10-20 2 1 gei_4/2
2 gei_4/5 30 3 0
3 gei_4/6 6-7 10 0

This example describes how to display information about the


configuration of one VLAN translation.
ZXR10#show vlan trans 1
Session_no In_Port E_Port In_vlan E_vlan Advance Uplink-ports
-------------------------------------------------------------
1 gei_4/1 10-20 2 1 gei_4/2

The displayed field descriptions are displayed as follows.

Field Description

Session-no Session number

Ingress- Ingress port


port(In_Port)

egress-port(E_Port) Egress port

Ingress- Ingress VLAN


vlan(In_vlan)

Egress-vlan(E_vlan) Egress VLAN

Advance Uplink-port symbol

Uplink-ports Uplink port

Confidential and Proprietary Information of ZTE CORPORATION 35


ZXR10 8900 Series Command Reference (Ethernet Switching)

Related vlan translate


Commands

swicthport
Purpose Use this command to set batch processing for VLAN ports.
Command Modes VLAN configuration
Syntax switchport {pvid | tag | untag}<port-list>
no switchport {pvid | untag | tag}<port-list>

Syntax
Description pvid Sets the PVID of a port

tag Sets the port in the VLAN to untag

untag Sets the port in the VLAN to tag

<port-list> Port list

Instructions The configuration of the PVID takes effect o0n all ports. The config-
uration of the tag port takes effect on ports in trunk/hybrid mode.
The configuration of the untag port takes effect on hybrid ports.
If the mode is wrong, the system prompts error information for
users.
Example This example describes how to set the PVID of ports 1~10 on the
line interface board fei_1 to 2.
ZXR10(config)#vlan 2
ZXR10(config-vlan)#switchport pvid fei_1/1-10

Related show vlan


Commands

switchport access vlan


Purpose Use this command to add the access port to some VLAN. If the
VLAN does not exist, it is created. Remove the access port from a
VLAN with the no form of this command.
Command Modes Interface configuration
Syntax switchport access vlan {<vlan-id>|<vlan-name>}
no switchport access vlan

Syntax
Description <vlan-id> VLAN ID, range: 1~4094

<vlan-name> VLAN name

Defaults The Layer 2 port is in VLAN 1 by default.


Instructions Use the show running-config command to display information
about the configuration on the interface.

36 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Example This example describes how to add the access port fei_1/1 to vlan
10.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switchport access vlan 10

Related show vlan


Commands

switchport hybrid native vlan


Purpose Use this command to configure the native VLAN for the hybrid port.
If the VLAN does not exist, it is created. Restore default with the
no form of this command.
Command Modes Interface configuration
Syntax switchport hybrid native vlan {<vlan-id>|<vlan-name>}
no switchport hybrid native vlan

Syntax
Description <vlan-id> VLAN ID, range: 1~4094

<vlan-name> VLAN name

Defaults The native VLAN is VLAN 1 by default.


Instructions The ports on which this command is executed must be in hybrid
mode. Otherwise, the system prompts error information.
Use the show running-config command to display the con-
figuration on the interface.
Example This example describes how to set the native VLAN of the hybrid
port fei_1/1 to VALN 10.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switch hybrid native vlan 10

Related show vlan


Commands

switchport hybrid vlan


Purpose Use this command to add a hybrid port to a VLAN. If the VLAN
does not exist, it is created. Remove a hybrid port from a VLAN
with the no form of this command.
Command Modes Interface configuration
Syntax switchport hybrid vlan <vlan-list>[tag | untag]
no switchport hybrid vlan <vlan-list>

Confidential and Proprietary Information of ZTE CORPORATION 37


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <vlan-list> VLAN list, which can be a list of VLAN IDs
(range: 1~4094) or VLAN aliases

tag Ports labeled as tag

untag Ports labeled as untag

Defaults The Layer 2 port is in VLAN 1 by default.


Instructions The ports on which this command is executed must be in hybrid
mode. Otherwise, the system prompts error information.
Use the show running-config command to display informa-
tion about the configuration on the interface. If there is no
tag/untag keyword after this command, it is tag by default.
At most 4000 VLANs can be configured on each interface. Un-
der this circumstance, the efficiency of batch deletion is low.
There are at most 8 ports on which 4000 VLANs are configured.
If the number of these ports exceeds 8, the system gives a
warning.
Example This example describes how to add the hybrid port fei_1/1 to VLAN
10.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switchport hybrid vlan 10

Related show vlan


Commands

switchport mode
Purpose Use this command to set the VLAN link mode for the port. Restore
default with the no form of this command.
Command Modes Interface configuration
Syntax switchport mode {access | trunk | hybrid}
no switchport mode

Syntax
Description access Sets a port to access (mode)

trunk Sets a port to trunk (mode)

hybrid Sets a port to hybrid (mode)

Defaults The Layer 2 port works in access mode.


Instructions If a trunk/hybrid port is changed to an access port, it is necessary
to delete the tag and untag VLANs of this port at the same time
because the access port can belong to one VLAN only.
Example This example describes how to set the VLAN link mode of the in-
terface fei_1/1 to trunk.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switchport mode trunk

38 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Related show vlan


Commands
show interface

switchport qinq (Global


Configuration)
Purpose Use this command to configure the QinQ function for the desig-
nated port.
Command Modes Global configuration
Syntax switchport <port-list> qinq {normal | uplink | customer | tpid
<tpid>}

Syntax
Description <port-list> Port list

normal Sets a port to normal

uplink Sets a port to uplink

customer Sets a port to customer

tpid <tpid> Tag protocol identifier, a hexadecimal number,


range: 0x0001~0xffff, default: 0x8100

Defaults The port is in normal mode by default.


Instructions The QINQ attribute of the port is configured in batches. For ZXR10
3900, there is no tpid parameter in this command. For ZXR10
5900, the tpid parameter must not be modified if the port is in
normal or customer mode.
Example This example describes how to set ports fei_1/12 in uplink mode,
and the tpid to 0x9100.
ZXR10(config)#switchport fei_1/1-2 qinq uplink
ZXR10(config)#switchport fei_1/1-2 qinq tpid 0x9100

Related show qinq


Commands

switchport qinq (Port


Configuration)
Purpose Use this command to set the QinQ function for the port.
Command Modes Interface configuration
Syntax switchport qinq {normal | uplink | customer | tpid <tpid>}

Confidential and Proprietary Information of ZTE CORPORATION 39


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description normal Sets a port to normal

uplink Sets a port to uplink

customer Sets a port to customer

tpid <tpid> Tag protocol identifier, a hexadecimal number,


range: 0x0001~0xffff, default: 0x8100

Defaults The port is in normal mode by default.


Instructions The switchport qinq command in interface configuration
mode takes effect on this port only, while the switchport
qinq command in global configuration mode can designate
multiple ports once.
ZXR10 3900 does not support this command. For ZXR10 5900,
the parameter tpid cannot be modified if the port mode is in
normal or customer mode.
Example This example describes how to set the port fei_1/1 in uplink mode,
and the tpid to 0x9100.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switchport qinq uplink
ZXR10(config-if)#switchport qinq tpid 0x9100

Related show qinq


Commands

switchport trunk native vlan


Purpose Use this command to set the native VLAN for the trunk port. If
the VLAN does not exist, it is created. Restore default with the no
form of this command.
Command Modes Interface configuration
Syntax switchport trunk native vlan {<vlan-id>|<vlan-name>}
no switchport trunk native vlan

Syntax
Description <vlan-id> VLAN ID, range: 1~4094

<vlan-name> VLAN name

Defaults The native VLAN is VLAN 1 by default.


Instructions This command takes effect on trunk ports only.
Example This example describes how to set the native VLAN of the trunk
port fei_1/1 to vlan 10.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switchport trunk native vlan 10

40 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Related show vlan


Commands

switchport trunk vlan


Purpose Use this command to add a trunk port to some VLAN. If the VLAN
does not exist, it is created. Remove the trunk port from a VLAN
with the no form of this command.
Command Modes Interface configuration
Syntax switchport trunk vlan <vlan-list>
no switchport trunk vlan <vlan-list>

Syntax
Description <vlan-list> VLAN list, which can be a list of VLAN IDs
(range: 1~4094) or VLAN aliases

Defaults The Layer 2 port is in VLAN 1 by default.


Instructions The port on which this command is executed must be in trunk
mode. There are at most 4000 VLANs configured on each port.
Before 4000 VLANs are bound on the interface, make sure that
there is no operation of batch deletion or creation. If there is such
operation of batch deletion or creation, execute the binding in 2
or 3 minutes to avoid the VLAN queue to be full. Otherwise, the
system prompts busy alarms.
Example This example describes how to add the trunk port fei_1/1 to vlan
10.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#switchport trunk vlan 10

Related show vlan


Commands

vlan (Global Configuration)


Purpose Use this command to create a VLAN and enter VLAN configuration
mode. Remove the VLAN with the no form of this command.
Command Modes Global configuration
Syntax vlan {<vlan-id>|<vlan-name>}
no vlan {<vlan-id>|<vlan-name>}

Syntax
Description <vlan-id> VLAN ID, range: 1~4094

<vlan-name> VLAN name

Instructions When you delete some VLAN, If this VLAN is VLAN 1 or a Lyaer 3
interface is created in this VLAN, the system prompts error infor-
mation.

Confidential and Proprietary Information of ZTE CORPORATION 41


ZXR10 8900 Series Command Reference (Ethernet Switching)

Example This example describes how to create VLAN 2.


ZXR10(config)#vlan 2
ZXR10(config-vlan)#

Related show vlan


Commands

vlan (VLAN Database


Configuration)
Purpose Use this command to create VLANs in batches. Delete VLANs in
batches with the no form of this command.
Command Modes VLAN database configuration
Syntax vlan <vlan-list>[name <vlan-name>]
no vlan <vlan-list>[name]

Syntax
Description <vlan-list> VLAN list, which can be a list of VLAN IDs
(range: 1~4094) or VLAN names

name <vlan-name> VLAN name

Instructions The alias is configured for single VLAN only. It is not allowed that
multiple VLANs have the same alias. When users delete a batch
of VLANs, if one VLAN is VLAN 1 or there is the Layer 3 interface,
the system prompts error information.
Example This example describes how to enter VLAN database configuration
mode, and create VLANs 2~100.
ZXR10#vlan database
ZXR10(vlan-db)#vlan 2-100

Related vlan database


Commands

vlan database
Purpose Use this command to enter VLAN database configuration mode.
Command Modes Privileged EXEC
Syntax vlan database
Instructions After the enter of this mode , VLANs can be created or deleted in
batch. Notice that after the batch configuration, the operation of
hot-plug or Active/standby Changeover is performed after a while.
Otherwise, part of entries are lost because the database synchro-
nization has not been finished. There must be interval between
continuous batch operations.
Example This example describes how to enter VLAN database configuration
mode.
ZXR10#vlan database

42 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

ZXR10(vlan-db)#

vlan list
Purpose Use this command to enter VLAN global configuration mode.
Command Modes Global configuration
Syntax vlan list <vlan-list>

Syntax
Description <vlan-list> Creates the VlAN identifier.It can be
configured in batches

Instructions After the enter of this mode , VLANs can be created or deleted in
batch. Notice that after the batch configuration, the operation of
hot-plug or Active/standby Changeover is performed after a while.
Otherwise, part of entries are lost because the database synchro-
nization has not been finished.
Example This example describes how to enter VLAN global configuration
mode.
ZXR10(config)#vlan list

vlan private-map
Purpose Use this command to set the isolate and promiscuous ports for
the Private VLAN. Remove the setting with the no form of this
command.
Command Modes Global configuration
Syntax The command format on ZXR10 5900:
vlan private-map session-id <id>[isolate <port-list>][promis
<port-list>]
no vlan private-map session-id <id>
The command format on ZXR10 T240G/T160G:
vlan private-map session-id <id>[isolate <port-list>][promis
<port-list>][community <port-list>][vlan <vlan-list>]
vlan private-map change {add | del}<id>{[isolate <port-list
>]|[promis <port-list>]|[community <port-list>]|[vlan <vlan-
list>]}
no vlan private-map session-id <id>
The command format on ZXR10 3900:
vlan private-map session-id <id><isolate <port-list>><pro
mis <port-list>>
no vlan private-map session-id <id>

Confidential and Proprietary Information of ZTE CORPORATION 43


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description session-id <id> PVLAN session ID, range: 1~20

isolate <port-list> Isolate port, it may be created in batches

promis <port-list> Promis port, it may be created in batches

community Community port, it may be created in batches


<port-list>

vlan <vlan-list> VLAN identifier, it may be created in batches

Instructions ZXR10 6900 supports the PVLAN and change commands with
VLANs. It also supports the configuration of the community
ports. For ZXR10 6900, community port only supports PVLAN
based on the port, it does not support PVLAN based on the
VLAN.
ZXR10 5900 does not support the PVLAN command with
VLANs. But the platform version 4.8.20 and upgrade versions
of ZXR10 5900 support the change command.
At most one session and not more than eight promiscuous ports
can be configured for ZXR10 T160G.
ZXR10 3900 can have one promiscuous port at most, and it is
required that isolate and promiscuous ports in the session be
effective at the same time. At present, isolate and promiscuous
ports belong to one session only. When there is only one isolate
port, this port must not be deleted.
Example This example describes how to create session 1 and configure
isolate and promiscuous ports for ZXR10 5900.
ZXR10(config-vlan)#vlan private-map session-id 1
ZXR10(config-vlan)#vlan private-map session-id 1
isolate fei_1/1-2
ZXR10(config-vlan)#vlan private-map session-id 1
promis fei_2/1-2
ZXR10(config-vlan)#vlan private-map session-id 100
isolate fei_1/5 promis fei_1/6

This example describes how to create session 1 and configure


isolate, promiscuous and community ports for ZXR10 T160G.
ZXR10(config-vlan)#vlan private-map session-id 1
ZXR10(config-vlan)#vlan private-map session-id 1
isolate fei_1/1-2
ZXR10(config-vlan)#vlan private-map session-id 1
promis fei_2/1-2
ZXR10(config-vlan)#vlan private-map session-id 1
community fei_3/1
ZXR10(config-vlan)#vlan private-map session-id 1 vlan 5-9
ZXR10(config-vlan)#vlan private-map cha add 1 isolate fei_1/3-4
ZXR10(config-vlan)#vlan private-map cha del 1 promis fei_2/1
ZXR10(config-vlan)#vlan private-map cha add 1 community fei_3/2
ZXR10(config-vlan)#vlan private-map cha del 1 community fei_3/1
ZXR10(config-vlan)#vlan private-map session-id 100 isolate
fei_1/5 promis fei_1/6 vlan 300
ZXR10(config-vlan)#vlan private-map session-id 200 isolate
fei_2/5 promis fei_2/6 community fei_2/7

This example describes how to create session 1 and configure


isolate and promiscuous ports for ZXR10 3900.
ZXR10(config-vlan)#vlan private-map session-id 1 isolate
fei_1/1-2 promis fei_2/1

44 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Related show vlan private-map


Commands

vlan protocol-map
Purpose Use this command to set protocol-based VLAN division. Delete the
setting with the no form of this command.
Command Modes Global configuration
Syntax vlan protocol-map session-no <session-no>{ethernet2 | llc
| snap}<0xHHHH> vlan {<vlanId>|<name>}

Syntax
Description session-no Session number, the different total number
<session-no> of sessions is supported depending on
the different project. It is 1~12 for
ZXR10 3900/3200, 1~16 for ZXR10
T240G/T160G/5900

ethernet2 Ethernet II

llc LLC type

snap SNAP type

<0xHHHH> Ethernet encapsulation type, such as 0x0800


and 0x0806

<vlanId> VLAN ID

<name> VLAN name

Instructions The platform version 4.6.02 and upgrade versions support this
command.
At present, the VLAN division based on multiple protocol types
can be configured for one VLAN.
The Ethernet encapsulation type cannot be 0x8100.
Example This example describes how to set Ethernet 2 and IPv4 for VLAN
2.
ZXR10(config)# vlan protocol-map session-no 1 ethernet2
0x0800 vlan 2

Related show vlan protocol-map


Commands

vlan protocol-map(Port
Enabling)
Purpose Use this command to enable/disable protocol-based VLAN division
on the interface.

Confidential and Proprietary Information of ZTE CORPORATION 45


ZXR10 8900 Series Command Reference (Ethernet Switching)

Command Modes Interface configuration


Syntax vlan protocol-map {enable | disable}

Syntax
Description enable Enables this function on the interface

disable Disables this function on the interface

Defaults This function is enabled by default.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to enable the protocol-based VLAN
division on the interface fei_1/1.
ZXR10(config)#interface fei_1/1
ZXR10(config-vlan)#vlan protocol-map enable

Related show vlan protocol-map


Commands

vlan qinq
Purpose Use this command to set the Selective VLAN (SVLAN) rule. Delete
the setting with the no form of this command.
Command Modes Global configuration
Syntax The command format on ZXR10 T240G/T160G:
vlan qinq session-no <session_id> customer-port <interface
-name> uplink-port <interface-name> in-vlan <vlan-list>{ov
lan {<vlanId>|<name>}[priority {<priority-list>| mapping}]|
untag}
no vlan qinq session-no {<session_id>| all}
The command format on ZXR10 3900:
vlan qinq session-no <session_id> customer-port <interface
-name> uplink-port <interface-name> in-vlan <vlan-list>{[ov
lan {<vlanId>|<name>} customerbrg-port <interface-name>
uplinkbrg-port <interface-name>[mapping]]| untag}
no vlan qinq session-no {<session_id>| all}
The command format on ZXR10 5900:
vlan qinq session-no <session_id> customer-port <interface
-name> uplink-port <interface-name> in-vlan <vlan-list>{ov
lan {<vlanId>|<name>}[priority <priority-list>]| untag}
no vlan qinq session-no <session_id>
Syntax For ZXR10 T160G:
Description

<session_id> Session ID, range: 1~1000

customer-port Customer port


<interface-name>

46 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

uplink-port Uplink port


<interface-name>

<vlan-list> Ingress VLAN list

<vlanId> External label VLAN ID

<name> External label VLAN name

<priority-list> Packet priority, range: 0~7

For ZXR10 3900:

<session_id> Session ID, range: 1~100

customer-port Customer port


<interface-name>

uplink-port Uplink port


<interface-name>

<vlan-list> External label VLAN ID

<vlanId> External label VLAN name

customerbrg-port Bridge port of the customer port


<interface-name>

uplinkbrg-port Bridge port of the uplink port


<interface-name>

For ZXR10 5900:

<session_id> Session ID, range: 1~78

customer-port Customer port


<interface-name>

uplink-port Uplink port


<interface-name>

<vlan-list> External label VLAN ID

<vlanId> External label VLAN name

Instructions The platform version 4.6.02 and upgrade versions support this
command.
The SVLAN configuration uses different formats for ZXR10
T160G and ZXR10 3900.
Example This example describes how to create session 1, set the cus-
tomer port to gei_5/1, set the uplink port to gei_5/2, attach
the external label ovlan 1000 to packets from invlans 100~200
and map the priority from the internal side to the external side:
for: ZXR10 69 series:
ZXR10(config)# vlan qinq session-no 1 customerbrg-port gei_5/1
uplinkbrg-port gei_5/2 invlan 100-200 ovlan 1000 priority mapping

for ZXR10 39 series:

Confidential and Proprietary Information of ZTE CORPORATION 47


ZXR10 8900 Series Command Reference (Ethernet Switching)

ZXR10(config)# vlan qinq session-no 1 customerbrg-port gei_5/1


uplinkbrg-port gei_5/2 invlan 100-200 ovlan 1000 customerbrg-port
gei_5/3 uplinkbrg-port gei_5/4 mapping

This example describes how to create session 2, set the cus-


tomer port to gei_5/1, set the uplink port to gei_5/2, not attach
the external tag to packets from invlans 100~200 and transmit
them in single-tagged mode.
for 69 series:
ZXR10(config)# vlan qinq session-no 2 customerbrg-port gei_5/1
uplinkbrg-port gei_5/2 invlan 100-200 untag

for 39 series:
ZXR10(config)# vlan qinq session-no 2 customerbrg-port
gei_5/1 uplinkbrg-port gei_5/2 invlan 100-200 untag

Related show vlan qinq


Commands

vlan subnet-map
Purpose Use this command to configure subnet-based VLAN division.
Delete the setting with the no form of this command.
Command Modes Global configuration
Syntax vlan subnet-map session-no <session-no><ipaddr><mask>
vlan {<vlanId>|<name>}
no vlan subnet-map session-no <session-no>

Syntax
Description session-no Session number, the different total number
<session-no> of sessions is supported depending on the
different project. It is 1~12 for ZXR10
3900/3200, 1~128 for ZXR10 T160G/5900

<ipaddr> Prefix of the subnet IP address

<mask> Subnet mask

<vlanId> VLAN ID

<name> VLAN name

Instructions The platform version 4.6.02 and upgrade versions support this
command.
At present, multiple subnets can be configured for one VLAN.
The subnet division of multiple VLANs is configured according
to the longest match rule.
Example This example describes how to set a subnet 10.1.0.0/16 divided
for VLAN 2.
ZXR10(config)#vlan subnet-map session-no 1 10.1.0.0 255.255.0.0
vlan 2

48 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Related show vlan subnet-map


Commands

vlan subnet-map (Port


Enabling)
Purpose Use this command to enable/disable subnet-based VLAN division
on the interface.
Command Modes Interface configuration
Syntax vlan subnet-map {enable | disable}

Syntax
Description enable Enables this function on the interface

disable Disables this function on the interface

Defaults This function is enabled on the interface by default.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to disable subnet-based VLAN division
on interface fei_1/1.
ZXR10(config)#int fei_1/1
ZXR10(config-vlan)#vlan subnet-map disable

Related show vlan subnet-map


Commands

vlan translate
Purpose Use this command to set the VLAN translation rule. Delete the
setting with the no form of this command.
Command Modes Global configuration
Syntax vlan translate session-no <session_id> ingress-port| egress
-port <interface-name> ingress-vlan <vlan-list> egress-vlan
<vlanId>[uplink-port <interface-name>]
no vlan translate session-no <session_id>[ingress-port|
egress-port <interface-name> ingress-vlan <vlan-list>][upli
nk-port <interface-name>]]
The command format on ZXR10 T160G:
vlan translate session-no <session_id>[ingress-port <interfa
ce-name>|[egress-port <interface-name>] ingress-vlan <vlan
-list> egress-vlan <vlanId> advance <interface-name>
vlan translate change {add | del}<session_id>{ingress-vlan
<vlan-list>| egress-vlan <vlanId>| advance <interface-nam
e>}
no vlan translate session-no <session_id>

Confidential and Proprietary Information of ZTE CORPORATION 49


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <session_id> Session identifier, range: 1~1024

<interface-name> Ingress port

<vlan-list> Ingress VLAN list

<vlanId> Egress VLAN ID

Defaults The VLAN translation function is disabled by default.


Instructions ZXR10 5900 does not support VLAN translation on the uplink
interface.
At present, this function is supported only by some line cards of
ZXR10 5900 and ZXR10 T160G (including 12GE+4GE (electri-
cal interface), 24GE+4GE (electrical interface) and 12GE+4GE
(electrical interface) + Ezchip).
In the case of ingress port and ingress VLAN matching, ZXR10
T160G can configure at most 1000 rules and ZXR10 5900 can
support 768 rules (the egress VLAN is unique).
For ZXR10 5900, if a VLAN in some rule of SVLAN is configured
as the Invlan of some port, any other VLAN translation entries
must not configure this VLAN translation rule of this port.
If the VLAN translation function is configured, the ingress port
replaces the VLAN ID of the received packet according to the
VLAN translation principle.
The new function of VLAN translation is launched on ZXR10
6900, that is, ZXR10 6900 supports the function of egress
VLAN translation.
Example This example describes how to create session 1, and translate
VLANs 1~5 of gei_1/1 to VLAN 100.
ZXR10(config)# vlan translate session-no 1 ingress-port gei_1/1
ingress-vlan 1-5 egress-vlan 10

This example describes how to create session 2, and translate


VLANs 20~25 on the interface gei_1/2 to VLAN 200.
ZXR10(config)#vlan translate session-no 2 ingress-port gei_1/2
ingres-vlan 20-25 egress-vlan 200
ZXR10(config)#vlan translate session-no 100 ingress-port
gei_1/3 ingress-vlan 10-12 egress-vlan 20 advance gei_1/4

Related show vlan translate


Commands

vlan database
Purpose Use this command to configure a VLAN database.
Command Mode Exec mode

50 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 4 VLAN Configuration

Syntax vlan database

vlan translate enhanced


Purpose Use this command to configure enhanced VLAN translation rule.
Use the no command to delete the configuration.
Command Mode Global configuration mode
Syntax vlan translate enhanced session-no <session_id>{ingress-p
ort <interface-name>|egress-port<interface-name>}{ingress
-vlan<vlanId> egress-invlan <vlanId> egress-outvlan <vlanI
d>|ingress-invlan <vlanId> ingress-outvlan <vlanId> egres
s-invlan <vlanId> egress-outvlan {<vlanId>|untag}}
no vlan translate enhanced session-no <session_id>

Syntax
Description <session_id> Session identifier, range: 1~1024

ingress-port Ingress enhanced VLAN translation port


number

egress-port Egress enhanced VLAN translation port


number

ingress-vlan VLAN tag of imported single layer tag message

ingress-invlan Inner VLAN tag of imported double-layer tag


message

ingress-outvlan Outer VLAN tag of imported double-layer tag


message

egress-invlan Inner Vlan tag of message after translation

egress-outvlan Outer Vlan tag of message after translation

Defaults Enhanced VLAN translation is not done.


Instructions Currently only ZXR10T160G with line card type of H board can
support this function.
Ingress port and ingress VLAN match, of which double tags
message need inner and outer VLAN match at the same time.
ZXR10T160G with line card type of H board can configure up to
4k pieces of rules, at the same time the original VLAN translation
can configure up to 4k pieces of rules. 4k pieces of rules can be
configured in hybrid configuration.
Enhanced VLAN translation supports ingress and egress VLAN
translations at the same time.
For same port and same service, only one of enhanced VLAN trans-
lation, SVLAN and PVLAN can be enabled , otherwise other services
will become invalid.
Example Create session 1, configure ingress enhanced VLAN translation,
translate single tag message with vlan 10 imported from gei_1/1
into vlan 100 and add outer tag 200.

Confidential and Proprietary Information of ZTE CORPORATION 51


ZXR10 8900 Series Command Reference (Ethernet Switching)

Create session 2, configure egress enhanced VLAN translation,


translate single tag message with vlan 10 imported from gei_1/1
into vlan 100 and add outer tag 200.
ZXR10(config)#vlan translate enhanced session-no 1 ingress-port
gei_1/1 ingress-vlan 10 egress-invlan 100 egress-outvlan 200
ZXR10(config)#vlan translate enhanced session-no 3 egress-port
gei_1/1 ingress-vlan 10 egress-invlan 100 egress-outvlan 200

Create session 3, configure ingress enhanced VLAN translation,


translate double-layer tag message with inner VLAN 10 and outer
VLAN 20 imported by gei_1/1 into inner VLAN 100 and outer VLAN
200 .
Create session 4, configure egress enhanced VLAN translation,
translate double-layer tag message with inner VLAN 10 and outer
VLAN 20 imported by gei_1/1 into inner VLAN 100 and outer VLAN
200 .
ZXR10(config)#vlan translate enhanced session-no 3 ingress-port
gei_1/1 ingress-invlan 10 ingress-outvlan 20 egress-invlan 100
egress-outvlan 200
ZXR10(config)#vlan translate enhanced session-no 3 egress-port
gei_1/1 ingress-invlan 10 ingress-outvlan 20egress-invlan 100
egress-outvlan 200

When realizing the above seven functions by command configura-


tion, for imported single layer tag message, if only add outer tag,
configure the value of egress-invlan same as that of ingress-vlan.
For imported double-layer tag message, if only need to modify
one of them, configure another translated tag same as the vlaue
before translation. If need to delete outer tag, set the value of
egress-outvlan as untag.
Related show vlan enhanced-trans
Commands

52 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 5

SuperVLAN
Configuration

Table of Contents
arp-broacast .....................................................................53
vrrp-advertisement send ....................................................54
interface supervlan ............................................................54
inter-subvlan-routing .........................................................55
ip supervlan pool ...............................................................56
ip-pool-filter .....................................................................56
show supervlan .................................................................57
show supervlan ip-pool.......................................................58
subvlan ............................................................................59
supervlan .........................................................................59
supervlan inter-subvlan-routing...........................................60

arp-broacast
Purpose Use this command to enable/disable the SuperVLAN to make ARP
broadcast for all its sub-VLANs/real interfaces.
Command Modes SuperVLAN interface
Syntax arp-broadcast {enable | disable}

Syntax
Description enable Enables broadcast between sub-VLANs

disable Disables broadcast between sub-VLANs

Defaults The SuperVLAN is not allowed to make ARP broadcast for all its
sub-VLANs/real interfaces.
Instructions This command is to prevent the broadcast storm from decreas-
ing the system processing efficiency, and provide a config-
urable ARP broadcast function for users.
Use the show running-config command on the supervlan in-
terface to display this configuration.
For routers, use the command arp-broadcast {enable | disa
ble} in Superpvc interface configuration mode to enable or
disable SUPERPVC implement ARP broadcast to its all ATM sub
interfaces.

Confidential and Proprietary Information of ZTE CORPORATION 53


ZXR10 8900 Series Command Reference (Ethernet Switching)

Example This example describes how to enable ARP broadcast for SUPER-
VLAN 1.
ZXR10(config)#interface supervlan1
ZXR10(config-if)#arp-broadcast enable

Related show interface


Commands
show supervlan

vrrp-advertisement send
Purpose To configure SuperVLAN interface sending VRRP heartbeat mes-
sage mode. Use the command no to recover to default mode.
Command Mode SuperVLAN interface mode
Syntax vrrp-advertisement send {rotation | subvlan <vlan-id>}
no vrrp-advertisement send

Syntax
Description rotation Round robin mode

<vlan-id> VLAN ID of SubVLAN to be sent

Default Copy and send VRRP heartbeat message to all SubVLANs of Su-
perVLAN.
Instructions Send VRRP heartbeat message by specifying SubVLAN or round-
robin mode to ensure sending VRRP heartbeat message from only
one SubVLAN once, which avoids affecting system performance.
Example Send VRRP heartbeat message on SUPERVLAN 1 by round robin.
ZXR10(config)#interface supervlan1
ZXR10(config-if)#vrrp-advertisement send rotation

interface supervlan
Purpose Use this command to create a SuperVLAN and enter SuperVLAN
configuration mode. Remove the SuperVLAN with the no form of
this command.
Command Mode Global configuration
Syntax interface {supervlan <supervlan-id>|<supervlan-name>}
no interface {supervlan <supervlan-id>|<supervlan-name>}

Syntax
Description supervlan SuperVLAN ID, range: 1~255
<supervlan-id>

<supervlan-name> SuperVLAN name

54 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 5 SuperVLAN Configuration

Instructions <supervlan-name> is in the format of SuperVLAN + Super-


VLAN ID, such as supervlan10.
For T1200/T600/T128/T64E, the range of <supervlan-id> is
1~4096.
For switch series, such as ZXR10 5928, the range of <superv
lan-id> is 1~255.
For the router series, use the command interface {supervlan
<supervlan-id>|<supervlan-name>} to create a SUPERVC in-
terface. Use the command no interface {supervlan <super
vlan-id>|<supervlan-name>} to remove the SuperPVC inter-
face. The parameter <supervlan-id> ranges from 1 to 64.
Example This example describes how to create the SuperVLAN 10 and enter
SuperVLAN configuration mode.
ZXR10(config)#interface supervlan 10
ZXR10(config-if)#

Related exit
Commands
end

inter-subvlan-routing
Purpose Use this command to enable/disable routing between sub-VLANs.
Command Modes SuperVLAN interface
Syntax inter-subvlan-routing {enable | disable}

Syntax
Description enable Enables routing between sub-VLANs

disable Disables routing between sub-VLANs

Defaults The routing between sub-VLANs is enabled.


Instructions View this configuration with the show running-config com-
mand on the SuperVLAN interface.
Use this command under SUPERVC interface mode to enable
or disable the routing function between ATM sub interfaces on
router.
Example This example describes how to enable routing between sub-VLANs
for SuperVLAN 1.
ZXR10(config)#interface supervlan1
ZXR10(config-if)#inter-subvlan-routing enable

Related show interface


Commands
show supervlan

Confidential and Proprietary Information of ZTE CORPORATION 55


ZXR10 8900 Series Command Reference (Ethernet Switching)

ip supervlan pool
Purpose Use this command to bind an IP address to a VLAN real interface.
Command Modes VLAN configuration sub-mode
Syntax ip supervlan pool < ip-address>< ip-address>

Syntax
Description < ip-address> Start and end IP addresses of the IP address,
in the format of A.B.C.D

Instructions For the router in ATM sub interface mode, if the interface has
been bound to the Supervc interface, use the ip superpvc
pool < ip-address >< ip-address > command to bind a seg-
ment of IP addresses to an ATM sub interface.
Use the no supervlansuperpvc pool < ip-address >< ip-ad
dress > command to delete a configured IP pool on the inter-
face or sub interface. Use the no supervlan superpvc pool
all command to delete all IP-pools on the interface or sub in-
terface.
Example This example describes how to bind the IP address segment from
192.168.1.1 to 192.168.1.128 to VLAN 4.
ZXR10(config)#vlan 4
ZXR10(config-vlan)#ip supervlan pool 192.168.1.1 192.168.1.128

Related show supervlan ip-pool


Commands

ip-pool-filter
Purpose Use this command to enable/disable the SuperVLAN IP POOL fil-
tering.
Command Modes SuperVLAN interface
Syntax ip-pool-filter {enable | disable}

Syntax
Description enable Enables the filtering of the communication
address between sub-VLANs

disable Disables the filtering of the communication


address between sub-VLANs

Defaults The SuperVLAN IP POOL filtering is enabled.


Instructions After the SuperVLAN IP POOL is set, packets which are not in
the address segment are discarded.
View this configuration with the show running-config com-
mand on the SuperVLAN interface.
Use this command Superpvc in interface configuration mode to
disable or enable Superpvc IP POOL filter function.
Example This example describes how to enable the filtering of the commu-
nication address between sub-VLANs on the SuperVLAN interface.

56 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 5 SuperVLAN Configuration

ZXR10(config)#interface supervlan1
ZXR10(config-if)#ip-pool-filter enable

Related ip supervlan pool


Commands
show interface
show supervlan

show supervlan
Purpose Use this command to display information about SuperVLAN con-
figurations.
Command Modes All modes except user EXEC
Syntax show supervlan [<supervlan-id>]

Syntax
Description <supervlan-id> SuperVLAN ID

Instructions Without the parameter <supervlan-id>, this command


displays information about relevant configurations of all Su-
perVLAN interfaces.
For ZXR10 T1200/T600//T128/T64E, the parameter <supervl
an-id> ranges from 1 to 4096.
For the switch series, such as ZXR10 5928, the parameter
ranges from 1 to 255.
Use the show supervlan [<supervlan-id>] command on the
router to display information about the configuration of Super-
PVC. <supervlan-id> ranges from 1 to 64.
Example This example describes how to displays information about con-
figurations of all SuperVLAN interfaces.
ZXR10(config)# show supervlan 2
interface supervlan2
inter-subvlan-routing enable
arp-broadcast disable
ip-pool-filter enable
fei_1/2.1 inner-vlan-id 1 outer-vlan-id 2
fei_1/2

The displayed information descriptions are displayed as fol-


lows.

Field Description

inter-subvlan- Enables or disables routing between


routing sub-vlans

subvlan Sub-Vlans under the supervlan interface

Arp-broadcast ARP broadcast status

Ip-pool-filter IP POOL filter flag

Confidential and Proprietary Information of ZTE CORPORATION 57


ZXR10 8900 Series Command Reference (Ethernet Switching)

Field Description

SuperVLAN Supervlan identifier

fei_1/2.1 inner-vlan The sub interface bound. If it is a virtual


1 outer-vlan 2 interface, then the encapsulated VLAN
ID and QinQ are given. If it is a physical
interface, there is no encapsulated content

The information about VLAN range or QinQ range is displayed


as follows.
ZXR10(config)#show supervlan 2
interface supervlan2
inter-subvlan-routing enable
arp-broadcast disable
ip-pool-filter enable
fei_1/2.2 inner-vlan 20-40 outer-vlan 60-80

show supervlan ip-pool


Purpose Use this command to display the IP POOL bound to the VLAN.
Command Modes All modes
Syntax show supervlan ip pool
Instructions Use show superpvc ip-pool command on the router to display
the IP-pool configuration on ATM sub interface of Superpvc.
Example This example describes how to display the IP pool bound to the
VLAN.
ZXR10(config)#show supervlan ip-pool
Session-no Add-begin Add-end InvId OutvID Intf SupervlanNum
1 192.168.1.1 192.168.1.128 4 1 fei_1/1 2

The displayed field descriptions are shown below.

Session-no Session number

Address-begin Start address of the IP POOL

Address-end End address of the IP POOL

InvId Inner layer VLAN ID, it is a sub VLAN number


for the switch

OutvID Outer layer VLAN ID for QinQ

Intf Interface name, when the switch binds the


sub VLAN, this is empty.

SupervlanNum Supervlan number

58 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 5 SuperVLAN Configuration

Related ip supervlan pool


Commands

subvlan
Purpose Use this command to bind VLANs to a designated SuperVLAN in
batches. Cancel the binding of these VLANs with the no form of
this command.
Command Modes SuperVLAN interface
Syntax subvlan <vlan-id>
no subvlan <vlan-id>

Syntax
Description <vlan-id> VLAN ID to be bound, range: 1~4094

Instructions One VLAN can belong to one SuperVLAN only, and one Super-
VLAN can bind at most 4094 sub-VLANs. This command can
be used on the switch only.
The VLAN to be bound cannot have the L9ayer 3 interface.
Example This example describes how to bind VLANs 2~100 to SuperVLAN
1.
ZXR10(config)#interface supervlan1
ZXR10(config-if)#subvlan 2-100

Related show supervlan


Commands

supervlan
Purpose Use this command to bind some VLAN or physical interface to a
designated SuperVLAN. Cancel the binding of the VLAN or physical
interface with the no form of this command.
Command Modes VLAN configuration/Interface configuration
Syntax supervlan <supervlan-id>
no supervlan

Syntax
Description <supervlan-id> SuperVLAN ID

Instructions For ZXR10 T1200/T600/T128/T64E, the parameter <supervla


n-id> ranges from 1 to 4096.
For the switch series, such as ZXR10 5928, the parameter <sup
ervlan-id> ranges from 1 to 255.
The VLAN to be bound must not have the Layer 3 interface on
the switch.
The physical interface can be bound with SuperVLAN directly.
The sub interface has to be encapsulated by VLANID or QinQ.

Confidential and Proprietary Information of ZTE CORPORATION 59


ZXR10 8900 Series Command Reference (Ethernet Switching)

SmartGroup interfaces or subinterfaces can also be bound


to the SuperVLAN by directly executing the SuperVLAN
command in SmartGroup interface/subinterface mode. Smart-
Group interfaces must be encapsulated with VLAN ID or QinQ
before they are bounded.
A bridged ATM sub interface can be bound with Superpvc by
using the Superpvc <superpvc-id> command on the router.
The parameter <supervlan-id> ranges from 1 to 64.
Example This example describes how to bind VLAN 2 to SuperVLAN1.
ZXR10(config)#vlan 2
ZXR10(config-vlan)#supervlan 1
ZXR10(config-vlan)exit
ZXR10(config)#interface fei_1/1
ZXR10(config-subif)#supervlan 1
ZXR10(config-subif)exit
ZXR10(config)#interface fei_1/1.1
ZXR10(config-subif)qinq in 1 ex 1
ZXR10(config-subif)#supervlan 1

Related show supervlan


Commands

supervlan inter-subvlan-rout
ing
Purpose Use this command to enable/disable routing between sub-VLANs.
This command is used only on the switch.
Command Modes Global configuration
Syntax supervlan inter-subvlan-routing {enable | disable}

Syntax
Description enable Enables routing between sub-VLANs

disable Disables routing between sub-VLANs

Defaults The routing between sub-VLANs is enabled by default. This com-


mand is used only on the switch.
Instructions View this configuration with the show running-config com-
mand on the SuperVLAN interface.
This command can be used only on the switch.
Example This example describes how to enable routing function between
sub-VLANs.
ZXR10(config)#supervlan inter-subvlan-routing enable

Related show interface


Commands
show supervlan

60 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6

STP Configuration

Table of Contents
instance ...........................................................................61
name ...............................................................................62
revision............................................................................63
show spanning-tree inconsistentports...................................63
show spanning-tree instance...............................................64
show spanning-tree interface ..............................................64
show spanning-tree mst configuration ..................................65
show spanning-tree statistics ..............................................65
show spanning-tree transparent ..........................................66
spanning-tree ...................................................................67
spanning-tree bpduguard ...................................................67
spanning-tree edged-port ...................................................68
spanning-tree forward-delay ...............................................69
spanning-tree guard ..........................................................69
spanning-tree hello-time ....................................................70
spanning-tree linktype .......................................................70
spanning-tree max-age ......................................................71
spanning-tree mode...........................................................71
spanning-tree mst configuration ..........................................72
spanning-tree mst hmd5-digest...........................................72
spanning-tree mst hmd5-key ..............................................73
spanning-tree mst instance (Global Configuration) .................73
spanning-tree mst instance (Port Configuration) ....................74
spanning-tree mst max-hops ..............................................75
spanning-tree packet-type ..................................................75
spanning-tree transparent ..................................................76

instance
Purpose Use this command to create an instance in MSTP mode, and map
it to the corresponding VLAN table. Remove the instance with the
no form of this command.
Command Modes MSTP configuration
Syntax instance <instance> vlans <vlan-id>
no instance <instance>

Confidential and Proprietary Information of ZTE CORPORATION 61


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <instance> Instance number, range: 1~63

vlans <vlan-id> VLAN mapping table to which the instance


corresponds, in the range of 1 to 4094

Instructions The platform version 4.6.02 and upgrade versions support this
command.
The instance 0 exists permanently and cannot be deleted.
The mst_config_id is composed of three parts: MST con-
figuration name, MST configuration version number and
configuration digest (16-byte-long signature generated by the
VLAN mapping table to which the instance corresponds and
processed by MD5).
If two or more adjacent bridges have the same mst_config_id,
they can form one MST area.
Example This example describes how to create instance 1, and map it to
VLANs 10~20.
ZXR10(config)#spanning-tree mst configuration
ZXR10(config-mstp)#instance 1 vlans 10-20

Related show spanning-tree mst configuration


Commands
spanning-tree mst configuration

name
Purpose Use this command to set a configuration name for the mst_con-
fig_id. Restore default with the no form of this command.
Command Modes MSTP configuration
Syntax name <string>
no name

Syntax
Description <string> Configuration name, not more than 32
characters

Defaults The configured name is bases on the MAC address by default.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
In MSTP configuration mode, to configure multiple switches in
one area, this parameter has to be configured so that config-
urations of these switches are consistent.
Example This example describes how to set the MST configuration name to
zte.
ZXR10(config)#spanning-tree mst configuration
ZXR10(config-mstp)#name zte

Related show spanning-tree mst configuration


Commands
spanning-tree mst configuration

62 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

revision
Purpose Use this command to set a configuration version number for the
mst_config_id. Restore default with the no form of this command.
Command Modes MSTP configuration
Syntax revision <version>
no revision

Syntax
Description <version> Configuration version number, in the range of
0~65535 (0 by default)

Instructions The platform version 4.6.02 and upgrade versions support this
command.
In MSTP configuration mode, to configure multiple switches in
one area, this parameter has to be configured so that config-
urations of these switches are consistent.
Example This example describes how to set the MST configuration version
number to 10.
ZXR10(config)#spanning-tree mst configuration
ZXR10(config-mstp)#revision 10

Related show spanning-tree mst configuration


Commands
spanning-tree mst configuration

show spanning-tree
inconsistentports
Purpose Use this command to display information about the port blocked
by the root-port or loop protection function.
Command Modes All modes
Syntax show spanning-tree inconsistentports
Instructions The platform version 4.6.03B and upgrade versions support this
command.
Example This example describes how to display information about the port
blocked by the root-port or loop protection function.
ZXR10#show spanning-tree inconsistentports
Mst Instance interface
Name name Inconsistency
----------------------------------------------
MST00 fei_1/1 Root Inconsistent

Related show spanning-tree instance


Commands
show spanning-tree interface

Confidential and Proprietary Information of ZTE CORPORATION 63


ZXR10 8900 Series Command Reference (Ethernet Switching)

show spanning-tree instance


Purpose Use this command to display information about an instance and
its ports.
Command Mode All modes
Syntax show spanning-tree instance <instance>

Syntax
Description <instance> Instance number, in the range of 1~63 (the
instance 0 exists permanently)

Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to display information about instances
0 and 1.
ZXR10#show spanning-tree instance 0
Spanning tree enabled protocol mstp
Root ID: Priority 32768; Address 00-0d-0d-f0-01-01
Hello Time 2 sec; Max Age 20 sec
Forward-Delay 15sec;

RegRootID: Priority 32768; Address 00-0d-0d-f0-01-01


RemainHops 19

BridgeID: Priority 32768; Address 00-0d-0d-f0-01-02


Hello Time 2 sec; Max Age 20 sec
Forward-Delay 15 sec; MaxHops 19

Interface Port ID
Name Prio.Nbr Cost Sts Role LinkType Bound
--------------------------------------------------------------
Fei_1/1 128.31 200000 forward root p2p MSTP

ZXR10#show spanning-tree instance 1


Spanning tree enabled protocol mstp
RegRootID: Priority 32768; Address 00-0d-0d-f0-01-01
Hello Time 2 sec; Max Age 20 sec
Forward-Delay 15 sec; RemainHops 19

BridgeID: Priority 32768; Address 00-0d-0d-f0-01-02


Hello Time 2 sec; Max Age 20 sec
Forward-Delay 15 sec; MaxHops 19

Interface Port ID
Name Prio.Nbr Cost Sts Role LinkType Bound
--------------------------------------------------------------
Fei_1/1 128.31 200000 forward root p2p MSTP
ZXR10#

Related show spanning-tree interface


Commands

show spanning-tree interface


Purpose Use this command to display information about all instances of a
designated port.
Command Modes All modes
Syntax show spanning-tree interface <port-name>

64 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

Syntax
Description <port-name> Port name

Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to display information about the in-
stance of the interface fei_3/1.
ZXR10#show spanning-tree interface fei_3/1
Mst Instance Port ID
Name Prio.Nbr Cost Sts Role
----------------------------------------------------------------
MST00 128.31 200000 forward root
MST01 112.31 200000 forward root
----------------------------------------------------------------
ZXR10#

Related show spanning-tree instance


Commands

show spanning-tree mst


configuration
Purpose Use this command to display information about relevant configu-
rations in MSTP mode.
Command Modes All modes
Syntax show spanning-tree mst configuration
Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to display information about the cur-
rent MST configuration.
ZXR10#show spanning-tree mst configuration
spanning-tree mode: [MSTP]
transparent flag:DISABLE
Name: [000d0df00101]
Revision: 0
Packet-type : IEEE-type
Hmd5-key: 0x13ac06a62e47fd51f95d2ba243cd0346
Instance Vlans mapped
------------------------------------------------
0 1-9,21-4094
1 10-20
ZXR10#

Related show spanning-tree instance


Commands
show spanning-tree interface

show spanning-tree statistics


Purpose Use this command to display statistics of an STP port.
Command Modes All modes

Confidential and Proprietary Information of ZTE CORPORATION 65


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax show spanning-tree statistics <port-name>

Syntax
Description <port-name> Port name

Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to display statistics of the STP port
fei_3/1.
ZXR10#show spanning-tree statistics fei_3/1
statistic of port fei_3/1
----------------------------------------------------------
BPDU-related parameters
----------------------------------------------------------
port spanning tree enable
state forward
port_priority 128
port_number 31
path cost 200000
designated_root 00-0d-0d-f0-01-01
designated_ext_cost 0
designated_int_cost 200000
designated_bridge 00-0d-0d-f0-01-01
designated_port 41
----------------------------------------------------------
PORT based information & statistics
----------------------------------------------------------
All bpdu's xmitted 2
All bpdu's received 123
Mst bpdu's xmitted 2
Mst bpdu's received 123
Rst bpdu's xmitted 0
Rst bpdu's received 0
config bpdu's xmitted 0
config bpdu's received 0
tcn bpdu's xmitted 0
tcn bpdu's received 0
-----------------------------------------------------------
spanningtree based information & statistics
-----------------------------------------------------------
spanningtree type MSTP
multicast_mac_addr 01-80-c2-00-00-00
bridge priority 32768
bridge mac address 00-0d-0d-f0-01-01
bridge hello time 2 sec
bridge forward delay 15 sec
bridge Max age 20 sec
bridge Max hop 20
------------------------------------------------------------
ZXR10#

Related show spanning-tree instance


Commands
show spanning-tree interface

show spanning-tree
transparent
Purpose Use this command to display the transparent transmission flag of
current STP.
Command Modes All modes

66 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

Syntax show spanning-tree transparent


Instructions The platform version 4.6.02 and upgrade versions support this
command.
After this command is configured, the chip does not send re-
ceived BPDU packets to the CPU for processing, but directly
broadcasts them in the VLAN.
Example This example describes how to display the transparent transmis-
sion flag of current STP.
ZXR10#show spanning-tree transparent
transparent flag:DISABLE

Related spanning-tree transparent enable


Commands

spanning-tree
Purpose Use this command to enable/disable STP or include/exclude a port
into/from spanning tree calculation.
Command Modes Global configuration, interface configuration
Syntax spanning-tree {enable | disable}

Syntax
Description enable Enables STP or includes a port into spanning
tree calculation

disable Disables STP or excludes a port from spanning


tree calculation

Defaults This function is disabled in the global configuration mode, and en-
abled in interface configuration mode.
Instructions The platform version 4.6.02 and upgrade versions support this
command.
If STP is disabled, the status of all ports that are physically
up is Forwarding. Once a prot excluded from spanning tree
calculation is physically up , the bottom forwarding status is
Forwarding.
Example This example describes how to disable STP.
ZXR10(config)#spanning-tree disable

This example describes how to exclude the interface fei_3/1


from spanning tree calculation.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree disable

spanning-tree bpduguard
Purpose Use this command to configure the BPDU protection type of the
port.

Confidential and Proprietary Information of ZTE CORPORATION 67


ZXR10 8900 Series Command Reference (Ethernet Switching)

Command Modes Interface configuration


Syntax spanning-tree bpduguard action {discard | shutdown}
no spanning-tree bpduguard action

Syntax
Description discard Discards the BPDU packet when it is received
on the interface

shutdown Shutdowns the interface when a BPDU packet


is received on the interface

Defaults There is no BPDU packet protection configuration on the port by


default.
Instructions The platform version 4.6.03B and update versions support this
command.
With this command configured, the administrator prevents the
port from the attack by BPDU.
Example This example describes how to configure the BPDU protection on
the interface fei_3/1 and shutdown the interface when a BPDU
packet is received on the interface.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree bpduguard action shutdown

Related show interface


Commands

spanning-tree edged-port
Purpose Use this command to configure an STP port to be an edged port.
Command Modes Interface configuration
Syntax spanning-tree edged-port enable
spanning-tree edged-port disable
Defaults The port is not an edged port by default.
Instructions The platform version 4.6.02 and upgrade versions support this
command.
With this command configured, the administrator can set the
port connected with the PC to an edged port. This interface
is in forwarding status and can fast switch to the forwarding
status.
Example This example describes how to configure the interface fei_3/1 to
be an edged port.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree edged-port enable

Related spanning-tree link-type


Commands
spanning-tree packet-type

68 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

spanning-tree forward-delay
Purpose Use this command to set the forward delay time of STP. Restore
default with the no form of this command.
Command Modes Global configuration
Syntax spanning-tree forward-delay <time>
no spanning-tree forward-delay

Syntax
Description <time> Forward delay time, in seconds, in the range
of 4~30, default: 15 seconds

Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to set the forward-delay time to 16
seconds.
ZXR10(config)#spanning-tree forward-delay 16

Related spanning-tree max-hops


Commands
spanning-tree hello-time

spanning-tree guard
Purpose Use this command to configure the STP protection type, loop pro-
tection or root port protection of a port. Cancel the settings with
the no form of this command.
Command Modes Interface configuration
Syntax spanning-tree guard {loop | root}[<instance range>]
no spanning-tree guard {loop | root}[<instance range>]

Syntax
Description loop Loop protection port

root Root protection port

<instance range> Instance range, range: 0~31

Defaults There is no loop protection or root port protection on the port by


default.
Instructions The platform version 4.6.03B and update versions support this
command.
With this command, the administrator can prevent fault con-
figuration.
Example This example describes how to configure the BPDU root protection
on the interface fei_3/1.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree guard root instance 0

Confidential and Proprietary Information of ZTE CORPORATION 69


ZXR10 8900 Series Command Reference (Ethernet Switching)

Related show spanning-tree inconsistentports


Commands

spanning-tree hello-time
Purpose Use this command to set the Hello time (time interval for sending
BPDU packets) of STP. Restore default with the no form of this
command.
Command Modes Global configuration
Syntax spanning-tree hello-time <time>
no spanning-tree hello-time

Syntax
Description <time> Hello time, in seconds, in the range of 1~10,
default: 2 seconds

Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to set the hello-time to 3 seconds.
ZXR10(config)#spanning-tree hello-time 3

Related spanning-tree max-hops


Commands
spanning-tree forward-delay

spanning-tree linktype
Purpose Use this command to set the link type of the port.
Command Modes Interface configuration
Syntax spanning-tree linktype {auto | p2p | share}

Syntax
Description auto Automatically judges according to the duplex
mode of the port: p2p in full duplex mode
and share in half duplex mode

p2p Forces the link type to p2p

share Forces the link type to share

Defaults The default link type of the port is auto.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
If the link type of the port is p2p, the fast status change func-
tion can be enabled. If the link type of the port is share, the
status can be changed only after twice of the forward-delay
time.

70 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

Example This example describes how to set the link type of the interface
fei_3/1 to p2p.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree linktype p2p

Related spanning-tree packet-type


Commands

spanning-tree max-age
Purpose Use this command to set the maximum age of the STP BPDU
packet. Restore default with the no form of this command.
Command Modes Global configuration
Syntax spanning-tree max-age <time>
no spanning-tree max-age

Syntax
Description <time> Maximum age of the STP BPDU packet, in
seconds, in the range of 6~40, default: 20
seconds

Instructions The platform version 4.6.02 and upgrade versions support this
command.
Example This example describes how to set the max-age to 21 seconds.
ZXR10(config)#spanning-tree max-age 21

Related spanning-tree max-hops


Commands
spanning-tree forward-delay

spanning-tree mode
Purpose Use this command to set the current STP mode.
Command Modes Global configuration
Syntax spanning-tree mode {sstp | rstp | mstp}

Syntax
Description sstp SSTP mode

rstp RSTP mode

mstp MSTP mode

Defaults MSTP
Instructions The platform version 4.6.02 and upgrade versions support this
command.
Each mode allows the connection to the bridge.
Example This example describes how to set the current STP mode to RSTP.

Confidential and Proprietary Information of ZTE CORPORATION 71


ZXR10 8900 Series Command Reference (Ethernet Switching)

ZXR10(config)#spanning-tree mode rstp

Related spanning-tree
Commands

spanning-tree mst
configuration
Purpose Use this command to enter MSTP configuration mode.
Command Modes Global configuration
Syntax spanning-tree mst configuration
Instructions The platform version 4.6.02 and upgrade versions support this
command.
In MSTP configuration mode, exclusive parameters of MSTP
users configure include: MST configuration name, MST config-
uration version number, and configuration digest.
Example This example describes how to enter MSTP configuration mode.
ZXR10(config)#spanning-tree mst configuration
ZXR10(config-mstp)#

Related show spanning-tree mst configuration


Commands

spanning-tree mst
hmd5-digest
Purpose Use this command to set the digest value for the mst_config_id.
Restore default with the no form of this command.
Command Modes Global configuration
Syntax spanning-tree mst hmd5-digest { CISCO | HUWWEI <key>}
no spanning-tree mst hmd5-digest { CISCO | HUAWEI }

Syntax
Description <key> 32-bit hexadecimal number starting with 0x,
with the total length of 34 bits

Defaults The default value is 0x00000000000000000000000000000000.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
When the different manufacturers (such as CISCO and
HUAWEI) implement MSTP, the MSTP packet format is different
from the IEEE standard. The KEY or DIGEST value has to be
configured for the ZTE switch before the devices of the above
manufacturers are connected in the same area.
Example This example describes how to set the CISCO hmd5-digest value.

72 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

ZXR10(config)#spanning-tree mst hmd5-digest CISCO


0x12345678901234567890123456789012

Related spanning-tree mst hmd5-key


Commands

spanning-tree mst hmd5-key


Purpose Use this command to set the KEY value for Hmd5 required by the
digest in the mst_config_id. Restore default with the no form of
this command.
Command Modes Global configuration
Syntax spanning-tree mst hmd5-key { CISCO | HUWWEI <key>}
no spanning-tree mst hmd5-key { CISCO | HUWWEI }

Syntax
Description <key> 32-bit hexadecimal number starting with 0x,
with the total length of 34 bits

Defaults The default value is 0x13ac06a62e47fd51f95d2ba243cd0346.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
When the different manufacturers (such as CISCO and
HUAWEI) implement MSTP, the MSTP packet format is different
from the IEEE standard. A KEY or DIGEST value has to be
configured for the ZTE switch before the devices of the above
manufacturers is connected in the same area .
Example This example describes how to set the CISCO hmd5-digest value.
ZXR10(config)#spanning-tree mst hmd5-key CISCO
0x12345678901234567890123456789012

Related spanning-tree mst hmd5-digest


Commands

spanning-tree mst instance


(Global Configuration)
Purpose Use this command to set the priority for the bridge in some created
instance.
Command Modes Global configuration
Syntax spanning-tree mst instance <instance> priority <priority>

Confidential and Proprietary Information of ZTE CORPORATION 73


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <instance> Instance number, in the range of 0~63 (the
instance 0 exists permanently)

priority <priority> Bridge priority, which must be the multiple of


4096, default: 32768, the maximum value:
61440

Instructions The platform version 4.6.02 and upgrade versions support this
command.
This command enables thee user to set the root bridge of the
instance.
Example This example describes how to set the priority for the bridge in
instance 0~4096.
ZXR10(config)#spanning-tree mst instance 0 priority 4096

Related spanning-tree mst instance (port configuration)


Commands

spanning-tree mst instance


(Port Configuration)
Purpose Use this command to set the priority for the port in some created
instance.
Command Modes Interface configuration
Syntax spanning-tree mst instance <instance> priority <priority>

Syntax
Description <instance> Instance number, in the range of 1~63 (the
instance 0 exists permanently)

priority <priority> Bridge priority, which must be the multiple of


16, default: 128, the maximum value: 240

Defaults The default priority is 128.


Instructions The platform version 4.6.02 and upgrade versions support this
command.
With this command configured, the administrator can change
the STP topology.
Example This example describes how to set the priority of the interface
fei_3/1 in instance 1 to 112.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree mst ins 1 pri 112

74 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 6 STP Configuration

Related spanning-tree mst instance (global configuration)


Commands

spanning-tree mst max-hops


Purpose Use this command to set the maximum hops of the BPDU packet in
the MST area. Restore default with the no form of this command.
Command Modes Global configuration
Syntax spanning-tree mst max-hops <hop>
no spanning-tree mst max-hops

Syntax
Description <hop> Maximum hops of the BPDU packet, in the
range of 1~40 , default: 20 seconds

Instructions The platform version 4.6.02 and upgrade versions support this
command.
All the non 0 instances in the MST area use the maximum hops
to determine the hops of the BPDU packet.
Example This example describes how to set the max-hops to 23.
ZXR10(config)#spanning-tree mst max-hops 23

Related spanning-tree max-age


Commands

spanning-tree packet-type
Purpose Use this command to set the BPDU packet type of the STP port.
Command Modes Interface configuration
Syntax spanning-tree packet-type {IEEE | CISCO | HUAWEI | HAMM
ER}
no spanning-tree packet-type

Syntax
Description IEEE Standard IEEE BPDU packet

CISCO CISCO BPDU packet

HAMMER HAMMER (Harbour Networks) BPDU packet

HUAWEI HUAWEI BPDU packet

Defaults The port BPDU packet type is IEEE by default.


Instructions The platform version 4.6.02 and upgrade versions support this
command.

Confidential and Proprietary Information of ZTE CORPORATION 75


ZXR10 8900 Series Command Reference (Ethernet Switching)

Because different manufacturers modify MSTP packets, user


must configure the BPDU packet type of the port for MSTP con-
nection to devices of the above manufacturers.
Example This example describes how to set the BPDU packet type of the
interface fei_3/1 to CISCO.
ZXR10(config-if)#spanning-tree packet-type cisco

Related spanning-tree link-type


Commands
spanning-tree edged-port

spanning-tree transparent
Purpose Use this command to enable or disable STP transparent transmis-
sion mark. After enabling STP transparent transmission mark, chip
broadcasts receiving BPDU message in VLAN and doesn't send to
CPU for handling.
Command Modes Global configuration mode
Syntax spanning-tree transparent { enable | disable}

Syntax
Description Parameter Desciption

enable enable STP transparent transmission mark

disable disable STP transparent transmission mark

Default disable
Instructions The platform version 4.6.02 and upgrade versions support this
command.
Transparent transmission mark will be enabled only when STP is
disabled.
In 69&89 high-end switch project, this command is verified. Trans-
parent transmission mark still can be configured even when STP
is enabled and the message with transparent transmission mark
has priority. that is, after enabling transparent transmission mark,
chip broadcasts receiving BPDU message in VLAN and doesn't send
to CPU for handling.
Example 1. This example shows how to enable STP transparent transmis-
sion mark:
ZXR1(config)# panning-tree transparent enable

2. This example shows how to disable STP transparent transmis-


sion mark:
ZXR1(config)# panning-tree transparent disable

Related Command show spanning-tree transparent

76 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 7

LACP Configuration

Table of Contents
clear lacp .........................................................................77
interface ..........................................................................77
lacp port-priority ...............................................................78
lacp system-priority ...........................................................78
lacp timeout .....................................................................79
show lacp .........................................................................79
smartgroup ......................................................................80
smartgroup load-balance ....................................................81
smartgroup mode ..............................................................81

clear lacp
Purpose Use this command to clear the count of received and transmitted
LACP packets.
Command Modes Privileged EXEC
Syntax clear lacp [<smartgroup-id>] counters

Syntax
Description <smartgroup-id> Link aggregation group identifier, range:
1~32

Instructions The count of all Smartgroup interfaces is cleared when the param-
eter <smartgroup-id> is not configured.
Example This example describes how to clear the count of the Smartgroup1
interface.
ZXR10#clear lacp 1 counters

interface
Purpose Use this command to create a VLAN interface and enter VLAN in-
terface configuration mode. Remove the VLAN interface with the
no form of this command.
Command Modes Global configuration
Syntax interface {vlan <vlan-id>|<vlan-if>}

Confidential and Proprietary Information of ZTE CORPORATION 77


ZXR10 8900 Series Command Reference (Ethernet Switching)

no interface {vlan <vlan-id>|<vlan-if>}

Syntax
Description vlan <vlan-id> VLAN ID, range: 1~4094

<vlan-if> VLAN interface name

Instructions The parameter <vlan-if> is in the format of vlan + VLAN ID, such
as vlan10.
Example This example describes how to create a VLAN interface vlan1, and
enter VLAN interface configuration mode.
ZXR10(config)#interface vlan 1
ZXR10(config-if)#

Related exit
Commands
end

lacp port-priority
Purpose Use this command to set the LACP port priority.
Command Modes Interface configuration
Syntax lacp port-priority <priority>

Syntax
Description <priority> LACP port priority, in the range of 1 to 65535,
default: 0

Instructions With this command configured, ports are added to the link aggre-
gation group according to their priorities.
Example This example describes how to set the LACP port priority.
ZXR10(config)#interface fei_2/1
ZXR10(config-if)#lacp port-priority 1000

Related show lacp


Commands

lacp system-priority
Purpose Use this command to set the LACP system priority.
Command Modes Global configuration
Syntax lacp system-priority <priority>

Syntax
Description <priority> LACP system priority, in the range of 1 to
65535, default: 32768

Instructions With this command configured, ports are added to the link aggre-
gation group according to the system priority.

78 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 7 LACP Configuration

Example This example describes how to set the LACP system priority.
ZXR10(config)#lacp system-priority 100

Related show lacp


Commands

lacp timeout
Purpose Use this command to set the LACP timeout on the interface.
Command Modes Interface configuration
Syntax lacp timeout {long | short}

Syntax
Description long Sets the interface LACP to long timeout

short Sets the interface LACP to short timeout

Defaults Long timeout


Instructions When the long timeout is set, the system sends LACP packets
every 30 seconds.
When the short timeout is set, the system sends LACP packets
every 1 second.
Example This example describes how to set the interface LACP to short time-
out.
ZXR10(config)#interface fei_2/1
ZXR10(config-if)#lacp timeout short

Related show lacp


Commands

show lacp
Purpose Use this command to display information about the current LACP
configuration and status.
Command Modes All modes except user EXEC
Syntax show lacp {[<smartgroup-id>]{counters | internal | neighbo
rs}| sys-id}

Syntax
Description <smartgroup-id> Link aggregation group ID, in the range of
1~32

counters Shows the LACP packets received/sent on the


interface

internal Shows the aggregation status of the member


interface

Confidential and Proprietary Information of ZTE CORPORATION 79


ZXR10 8900 Series Command Reference (Ethernet Switching)

neighbors Shows the member interface status of the


peer neighbor

sys-id Shows the LACP system priority

Example This example describes how to display the aggregation status of


the member interface in a Smatgroup.
ZXR10(config)#show lacp internal
Smartgroup:2
Actor Agg LACPDUs Port Oper Port RX Mux
Port State Interval Priority Key State Machine Machine
---------------------------------------------------------------
fei_3/17 selected 30 32768 0x202 0x3d current distributing
fei_3/18 selected 30 32768 0x202 0x3d current distributing

Related smartgroup
Commands

smartgroup
Purpose Use this command to add an interface to a link aggregation group,
and set the link aggregation mode for the interface. Remove the
interface from the link aggregation group with the no form of this
command.
Command Modes Interface configuration
Syntax smartgroup <smartgroup-id> mode {passive | active | on}
no smartgroup

Syntax
Description <smartgroup-id> Link aggregation group ID, in the range of
1~32

passive Sets the interface LACP to passive negotiation


mode

active Sets the interface LACP to active negotiation


mode

on Indicates the static trunk mode when LACP


is disabled and the two extremities of the
aggregation must be set to on mode

Instructions The aggregation mode of a member interface must be consis-


tent with that of the Smatgroup interface. Otherwise such an
interface is not allowed to join the Smatgroup.
VLAN configurations of a member interface must be consistent
with those of the Smatgroup. Otherwise such an interface is
not allowed to join the Smatgroup.
After an interface joins an aggregation group, you may modify
the VLAN attribute of the Smatgroup. The member interface
automatically modifies the VLAN attributes to keep consistent
with that of the Smatgroup.
Example This example describes how to add the interface gei_3/1 to Smat-
group 10.

80 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 7 LACP Configuration

ZXR10(config)#interface gei_3/1
ZXR10(config-if)#smartgroup 10 mode active

Related show interface


Commands
show lacp

smartgroup load-balance
Purpose Use this command to set the load balance mode of the link aggre-
gation group. Restore default with the no form of this command.
Command Modes Interface configuration
Syntax smartgroup load-balance <mode>
no smartgroup load-balance

Syntax
Description <mode> Load balance mode of the link aggregation
group. The detailed description of the
parameter refer to the following table

Instructions
Products Description

ZXR10 T160G Link aggregation load balance mode,


per-packet or per-destination, default:
per-destination

ZXR10 GER Link aggregation load balance mode,


per-packet or per-destination, default:
per-destination

ZXR10 6910 Link aggregation load balance mode, src-ip,


src-mac, dst-ip, dst-mac, src-dst-ip and
src-dst-mac, default: src-dst-mac

ZXR10 3900/3200 Link aggregation load balance mode, src-ip,


src-mac, dst-ip, dst-mac, src-dst-ip and
src-dst-mac, default: src-dst-mac

Example This example describes how to set the load balance mode of smart-
group 10 to src-mac.
ZXR10(config)#interface smartgroup10
ZXR10(config-if)#smartgroup load-balance src-mac

Related show interface


Commands
show lacp

smartgroup mode
Purpose Use this command to configure the aggregation mode of link ag-
gregation group. Restore the default configuration with the no

Confidential and Proprietary Information of ZTE CORPORATION 81


ZXR10 8900 Series Command Reference (Ethernet Switching)

form of this command. The default setting is static trunk mode


(on mode).
Command Modes Interface configuration
Syntax smartgroup mode {802.3ad | on}
no smartgroup mode

Syntax
Description 802.3ad Indicates the aggregation control method of
the Smartgroup interface uses the 802.3ad
standard LACP.

on Indicates the static trunk. LACP protocol does


not run at this time

Example This example describes how to configure the aggregation method


of Smartgroup 10 to 802.3ad.
ZXR10(config)#interface smartgroup10
ZXR10(config-if)#smartgroup mode 802.3ad

Related show interface


Commands
show lacp

82 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 8

VBAS Configuration

Table of Contents
vbas enable ......................................................................83
vbas port-type ..................................................................83

vbas enable
Purpose Use this command to enable VBAS or configure local VLAN to sup-
port VBAS.
Command Modes Global configuration and VLAN configuration
Syntax vbas enable
no vbas enable
Defaults VBAS is disabled by default.
The VLAN does not support VBAS by default.
Instructions This configuration can be viewed by the show running-config
command in global configuration mode.
Related show running-config
Commands

vbas port-type
Purpose Use this command to set the port to a VBAS user or network port.
Command Modes Interface configuration
Syntax vbas port-type {user | net}

Syntax
Description user Sets the port to a VBAS user port

net Sets the port to a VBAS network port

Defaults The port type is user by default.


Instructions This configuration can be viewed by the show running-config
command in global configuration mode.
Example This example describes how to configure the port to a VBAS user
port.

Confidential and Proprietary Information of ZTE CORPORATION 83


ZXR10 8900 Series Command Reference (Ethernet Switching)

ZXR10(config)#interface fei_2/1
ZXR10(config-if)#vbas port-type user

Related show running-config


Commands

84 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 9

MAC PING Configuration

Table of Contents
mac-ping..........................................................................85
l2trace .............................................................................86

mac-ping
Purpose Use this command to detect the Ethernet link by using private pro-
tocol.
Command Mode Privileged EXEC
Syntax mac-ping <destination-mac>{interface <out-port>| vfi <vfi-n
ame> peer <peer-address>}{summary | detail}[repeat <rep
eat-count>][hops <hop-count>][timeout <timeout seconds>]

Syntax
Description <destination-mac> Destination MAC address

interface <out-por Egress interface of the CE device where


t>> request packets are transmit

summary Briefly lists the result of MAC ping.

detail Lists the result of MAC ping in detail.

repeat <repeat-cou Repeat count, range: 1~65535, default: 1


nt>

hops <hop-count> Hop count, range: 1~10, default: 5

timeout <timeout Timeout interval, in seconds, range: 1~30,


seconds> default: 2 seconds

vfi <vfi-name> VFI name to be detected on the PE device

peer <peer-address> Peer router identifier to be detected on the


PE device

Defaults This command is disabled by default.


Example The example describes how to detect the reachability of the des-
tination MAC through MAC-PING.
ZXR10#mac-ping 00d0.d0c0.0090 port fei_1/1 detail

Confidential and Proprietary Information of ZTE CORPORATION 85


ZXR10 8900 Series Command Reference (Ethernet Switching)

l2trace
Purpose Use this command to detect ethernet links by using the private
protocol.
Command Modes Privileged EXEC
Syntax l2trace <destination-mac>{interface <out-port>|[vfi <vfi-na
me> peer <peer-address>]}

Syntax
Description <destination-mac> Destination MAC address

interface <out-port> Egress interface sending request packets on


CE device

vfi <vfi-name VFI name to be detected on PE device

peer <peer-address> The remote Router-ID to be detected on PE


device

Example This example describes how to detect the reachability of the des-
tination MAC through l2trace.
ZXR10#l2trace 00d0.d0c0.0090 interface fei_1/1

86 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 10

UDLD Configuration

Table of Contents
udld enable ......................................................................87
udld message timer ...........................................................88
udld mode ........................................................................88
udld recovery enable..........................................................89
udld recovery timer ...........................................................90
udld reset.........................................................................90
show udld.........................................................................91

udld enable
Purpose Use this command to enable the function of unidirectional links
detection (UDLD).
Command Modes Global configuration and interface configuration
Syntax udld {enable | disable}<interface_range>
udld {enable | disable}

Syntax
Description enable Enables UDLD function

disable Disables UDLD function

<interface_range> Interface name, at most 16 interfaces can be


configured once

Defaults UDLD function is disabled by default.


Instructions At present, only the Ethernet physical interfaces with switch
attribute support UDLD protocol.
Batch configuration only takes effect in global configuration
mode.
When this command is used for a single interface, it takes effect
in interface configuration mode.
Example This example describes how to enable UDLD function in batch
in global configuration mode.
ZXR10(config)#udld enable fei_1/1-3,fei_2/1

This example describes how to enable UDLD function on the


interface fei_1/1 in interface configuration mode.
ZXR10(config)#interface fei_1/1

Confidential and Proprietary Information of ZTE CORPORATION 87


ZXR10 8900 Series Command Reference (Ethernet Switching)

ZXR10(config-if)#udld enable

udld message timer


Purpose Use this command to configure the time interval for sending Hello
packets when the interfaces are in dual connection status.
Command Modes Global configuration and interface configuration
Syntax udld message timer <timer><interface_range>
udld message timer <timer>

Syntax
Description <timer> Time interval for sending Hello packets when
the interfaces are in dual connection status,
in seonds, range: 7~90

<interface_range> Interface name, at most 16 interface names


can be configured once

Defaults The default time interval for sending Hello packets is 15 seconds.
Instructions Batch configuration only takes effect in global configuration
mode.
When this command is used for a single interface, it takes effect
in interface configuration mode.
Example This example describes how to configure the time interval for
sending Hello packets in batch in global configuration mode.
ZXR10(config)#udld message timer 7 fei_1/1-3,fei_2/1

This example describes how to configure the time interval for


sending Hello packets in interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#udld message timer 7

udld mode
Purpose Use this command to configure the interface UDLD protocol mode.
Command Modes Global configuration and interface configuration
Syntax udld mode {aggressive | normal} <interface_range>
udld mode {aggressive | normal}

Syntax
Description aggressive Works in aggressive mode

normal Works in normal mode

<interface_range> Interface name range, at most 16 interfaces


can be configured once

88 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 10 UDLD Configuration

Defaults The interface UDLD protocol works in normal mode by default.


Instructions Batch configuration only takes effect in global configuration
mode.
When this command is used for a single interface, it takes effect
in interface configuration mode.
Example This example describes how to configure the interface in ag-
gressive mode in batch in global configuration mode.
ZXR10(config)#udld mode aggressive fei_1/1-3,fei_2/1

This example describes how to configure the interface in ag-


gressive mode in interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#udld mode aggressive

udld recovery enable


Purpose Use this command to enable the function of UDLD automatic re-
covery.
Command Modes Global configuration and interface configuration
Syntax udld recovery {enable | disable}<interface_range>
udld recovery {enable | disable}

Syntax
Description enable enables the function of UDLD automatic
recovery

disable disables the function of UDLD automatic


recovery

<interface_range> Interface name range, at most 16 interfaces


can be configured once

Defaults The function of UDLD automatic recovery is disabled by default.


Instructions Batch configuration only takes effect in global configuration
mode.
When this command is used for a single interface, it takes effect
in interface configuration mode.
Example This example describes how to enable UDLD automatic recov-
ery on interfaces fei_1/1-3 and fei_2/1 in batch in global con-
figuration mode.
ZXR10(config)#udld recovery enable fei_1/1-3,fei_2/1

This example describes how to enable UDLD automatic recov-


ery in the interface fei_1/1 in interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#udld recovery enable

Confidential and Proprietary Information of ZTE CORPORATION 89


ZXR10 8900 Series Command Reference (Ethernet Switching)

udld recovery timer


Purpose Use this command to configure the time interval for performing
automatic recovery when UDLD protocol is in single connection
state.
Command Modes Global configuration and interface configuration
Syntax udld recovery timer <timer><interface_range>
udld recovery timer <timer>

Syntax
Description <timer> Time interval for performing automatic
recovery when UDLD protocol is in single
connection status, in seconds, range: 10~600

<interface_range> Interface name range. At most 16 interfaces


can be configured at once time.

Defaults The default time interval for performing automatic recovery is 30


seconds.
Instructions Batch configuration only takes effect in global configuration
mode.
When this command is used for a single interface, it takes effect
in interface configuration mode.
Example This example describes how to configure the time interval for
performing automatic recovery on interfaces fei_1/1-3 and
fei_2/1 in batch in global configuration mode.
ZXR10(config)#udld recovery timer 10 fei_1/1-3,fei_2/1

This example describes how to configure the time interval for


performing automatic recovery on the interface fei_1/1 in in-
terface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#udld recovery timer 10

udld reset
Purpose Use this command to reset the interface which is in single connec-
tion status.
Command Modes Privileged EXEC
Syntax udld reset [<interface-name >]

Syntax
Description <interface-name > Name of the interface which needs reseting

Defaults This command is disabled by default.


Instructions When the parameter <interface-name > is not specified, all
interfaces in single connection status are reset.

90 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 10 UDLD Configuration

When the input interface is not in single connection status,


there will be not any operation.
Example This example describes how to reset the interface fei_2/1 which is
in single connection state.
ZXR10#udld reset fei_2/1

show udld
Purpose Use this command to display information about UDLD configura-
tion and its status on the interface.
Command Modes All modes except user EXEC
Syntax show udld [<interface-name >]

Syntax
Description <interface-name > The interface names needs to display

Instructions When the command is used without the parameter, information


about all UDLD interfaces is displayed.
Example This example describes how to display information about the UDLD
configuration of the interface fei_1/1.
ZXR10(config)#show udld fei_1/1

interface fei_1/1
Administrative configuration: Disable
Port mode: Normal
Current state: Disable
Recovery configuration: Disable
Auto-recovery time: 30s
Message interval: 15s
No neighbour information stored

Confidential and Proprietary Information of ZTE CORPORATION 91


ZXR10 8900 Series Command Reference (Ethernet Switching)

This page is intentionally blank.

92 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 11

Link Protection
Configuration

Table of Contents
zesr ctrl-vlan ....................................................................93
zesr restart-time ...............................................................94
zess domain .....................................................................94
clear zesr-switchtimes all....................................................95

zesr ctrl-vlan
Purpose Use this command to configure ZESR.
Command Mode Global configuration mode
Syntax zesr ctrl-vlan <vlan-id> protect-instance <0-16>
zesr ctrl-vlan <vlan-id> major-level role {master |
transit}<port1><port2>
zesr ctrl-vlan <vlan-id> level <1-2> seg <1-4> role master
<port1><port2>
zesr ctrl-vlan <vlan-id> level <1-2> seg <1-4> role transit
<port1><port2>
zesr ctrl-vlan <vlan-id> level <1-2> seg <1-4> role edge-as
sistant <port1>
zesr ctrl-vlan <vlan-id> level <1-2> seg <1-4> role edge-co
ntrol <port1>
zesr ctrl-vlan <vlanid> major-level preforward <1-600>
preup <0-500>
zesr ctrl-vlan <vlanid> major-level hello <1-6> fail <3-18>

Syntax
Description protect-instance It is to bind the control VLAN to STP instance
that needs protection.

major-level role It is to configure a node in a master ring.

role master It is to configure a master node in a slave ring.

role transit It is to configure a node in a slave ring.

role edge-assistant It is to configure an edge assistant node.

Confidential and Proprietary Information of ZTE CORPORATION 93


ZXR10 8900 Series Command Reference (Ethernet Switching)

role edge-control It is to configure an edge control node.

major-level It is to configure the preforwar and preup


preforward <1-600> parameters of a node.
preup <0-500>

major-level hello It is to configure the hello and fail parameters


<1-6> fail <3-18> of a node.

Instruction This command is only used in ZXR10 6900 and ZXR10 8900.
Example This example describes how to configure ZESR.
ZXR10(config)#zesr ctrl-vlan 1 protect-instance 0
ZXR10(config)#zesr ctrl-vlan 1 major-level role master gei_1/1,
gei_1/2
ZXR10(config)#zesr ctrl-vlan 1 level 1 seg 1 role master gei_1/1,
gei_1/2
ZXR10(config)#zesr ctrl-vlan 1 level 1 seg1 role transit gei_1/1,
gei_1/2
ZXR10(config)#zesr ctrl-vlan 1 level 1 seg 1 role edge-assistant
gei_1/1
ZXR10(config)#zesr ctrl-vlan 1 level 1 seg 1 role edge-control
gei_1/1
ZXR10(config)#zesr ctrl-vlan 1 major-level preforward 1 preup 0
ZXR10(config)#zesr ctrl-vlan 1 major-level hello1 fail 3

zesr restart-time
Purpose Use this command to configure the restart-time parameter of a
node.
Command Mode Global configuration mode
Syntax zesr restart-time < 30-600>
Example This example describes how to configure the restart-time param-
eter of a node.
ZXR10(config)#zesr restart-time 30

zess domain
Purpose Use this command to configure ZESS.
Command Mode Global configuration mode
Syntax zess domain <1-4> member primary <port-name> second
ary <port-name>
zess domain <1-4> protect-instance <0-16>
zess domain <1-4> preup <0-600>
zess domain <1-4> mode {revertive | non_revertive}

94 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 11 Link Protection Configuration

Syntax
Description member primary It is to create a ZESS domain.
<port-name>
secondary
<port-name>

protect-instance It is to bind a ZESS domain to an STP instance.

preup It is to set the preup parameter.

mode It is to set the mode.

Instruction This command is only used in ZXR10 6900 and ZXR10 8900.
Example This example describes how to configure ZESS.
ZXR10(config)#zess domain 1 member primary gei_1/1
secondary gei_1/2
ZXR10(config)#zess domain 1 protect-instance 0
ZXR10(config)#zess domain 1 preup 0
ZXR10(config)#zess domain 1 mode revertive

clear zesr-switchtimes all


Purpose Use this command to clear the ZESS switch time.
Command Mode Global configuration mode
Syntax clear zesr-switchtimes all
Instruction This command is only used in ZXR10 6900 and ZXR10 8900.
Example This example describes how to clear the ZESS switch time.
ZXR10(config)#clear zesr-switchtimes all

Confidential and Proprietary Information of ZTE CORPORATION 95


ZXR10 8900 Series Command Reference (Ethernet Switching)

This page is intentionally blank.

96 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 12

Ethernet OAM
Configuration

Table of Contents
clear ethernet-oam ............................................................97
set ethernet-oam debug .....................................................98
set ethernet-oam enable ....................................................98
set ethernet oam enable(interface configuration) ...................98
set ethernet-oam link-monitor enable ..................................99
set ethernet-oam link-monitor frame-period..........................99
set ethernet-oam link-monitor frame-seconds ..................... 100
set ethernet-oam link-monitor symbol-period ..................... 101
set ethernet-oam oui ....................................................... 101
set ethernet-oam period timeout mode............................... 102
set ethernet-oam port link-monitor frame ........................... 102
set ethernet-oam remote-loopback start............................. 103
set ethernet-oam remote-loopback time-out ....................... 103
show ethernet-oam ......................................................... 104
show ethernet-oam interface discovery .............................. 104
show ethernet-oam interface link-monitor........................... 104
show ethernet-oam interface statistics ............................... 105

clear ethernet-oam
Purpose Use this command to clear OAM configuration or statistics data.
Command Mode Global Configuration Mode
Syntax clear ethernet-oam { all |statistic }

Syntax
Description Parameter Description

all clear all ethernet-oam configuration

statistic clear all statistic information but reserving


configuration.

Confidential and Proprietary Information of ZTE CORPORATION 97


ZXR10 8900 Series Command Reference (Ethernet Switching)

Example ZXR10(config)# clear Ethernet-oam all

set ethernet-oam debug


Purpose Use this command to set debug function of link ethernet OAM.
Command Modes Global configuration
Syntax set ethernet-oam debug
Instructions To view the configuration, use the show running-config com-
mand in global configuration mode.
To cancel debug function, use the no set ethernet-oam
debug command.
Example This example describes how to set debug function of link ethernet
OAM in global configuration mode.
ZXR10(config)#set ethernet-oam debug
ZXR10(config)#no set ethernet-oam debug

Related show supervlan


Commands

set ethernet-oam enable


Purpose Use this command to enable global link Ethernet OAM.
Command Modes Global configuration
Syntax set ethernet-oam { enable | disable }

Syntax
Description enable Enables global link Ethernet OAM.

disable Disables global link Ethernet OAM.

Instructions To view the configuration, use the show running-config com-


mand in global configuration mode.
Example This example describes how to enable debug function of link eth-
ernet OAM in global configuration mode.
ZXR10(config)#set ethernet-oam enable

set ethernet oam


enable(interface
configuration)
Purpose Use this command to enable link Ethernet OAM of some interface .

98 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 12 Ethernet OAM Configuration

Command Modes Interface configuration


Syntax set ethernet-oam { enable | disable }

Syntax
Description enable Enables global link Ethernet OAM.

disable Disables global link Ethernet OAM.

Instructions To view the configuration, use the show running-config com-


mand in global configuration mode.
Fei and gei interfaces are supported by this command, while
sg interfaces are not supported.
Example This example describes how to enable global link Ethernet OAM in
interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam enable

set ethernet-oam
link-monitor enable
Purpose Use this command to enable Ethernet OAM link detection of some
interface.
Command Modes Interface configuration
Syntax set ethernet-oam link-monitor enable
Instructions To view the configuration, use the show running-config com-
mand in global configuration mode.
At present fei and gei interfaces are supported, while sg interfaces
are not supported.
Example This example describes how to enable global link Ethernet OAM in
interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam link-monitor enable

set ethernet-oam
link-monitor frame-period
Purpose Use this command to configure port error symbol frame period link
event parameters.
Command Modes Interface Configuration
Syntax set ethernet-oam link-monitor frame-period threshold
<xxx> window <yyy>

Confidential and Proprietary Information of ZTE CORPORATION 99


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <xxx> Error frame limit value, range: 1~65535,
default: 1

<yyy> Statistic period, range: 1~600000, default:


1000

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
Fei and gei interfaces are supported, while sg interfaces are not
supported.
Example This example describes how to configure Ethernet OAM port error
symbol frame period event parameters in interface configuration
mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam link-monitor frame-period
threshold 30 window 10

set ethernet-oam
link-monitor frame-seconds
Purpose Use this command to configure port error symbol frameseconds
statistics link event parameters.
Command Modes Interface Configuration
Syntax set ethernet-oam link-monitor frame-seconds threshold
<xxx> window <yyy>

Syntax
Description <xxx> Error frame-seconds, range: 1~900, default:
1 (frame-seconds: receiving at least 1 error
frame in 1 second)

<yyy> Statistic period, in seconds, range: 10~900,


default: 60 seconds

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
Fei and gei interfaces are supported, while sg interfaces are not
supported.
Example This example describes how to configure link Ethernet OAM port
error symbol frame-seconds statistics event parameters in inter-
face configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam link-monitor frame-seconds
threshold 30 window 10

100 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 12 Ethernet OAM Configuration

set ethernet-oam
link-monitor symbol-period
Purpose Use this command to configure port error symbol-period link event
parameters.
Command Modes Interface Configuration
Syntax set ethernet-oam link-monitor symbol-period threshold
<xxx> window <yyy>

Syntax
Description <xxx> Error frame limit value, range: 1~65535, 1
by default

<yyy> Statistic period, range: 1~65535, default: 1

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
Fei and gei interfaces are supported, while sg interfaces are not
supported.
Example This example describes how to set Ethernet OAM port error symbol
link event parameters in interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam link-monitor symbol-period
threshold 3 window 10

set ethernet-oam oui


Purpose Use this command to set OUI information of link Ethernet OAM.
Command Modes Global Configuration
Syntax set ethernet-oam oui <list>

Syntax
Description <list> Sets OUI information of link Ethernet OAM

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
Example This example describes how to set OUI information of link Ethernet
OAM in global configuration mode.
ZXR10(config)#set ethernet-oam oui zte

Confidential and Proprietary Information of ZTE CORPORATION 101


ZXR10 8900 Series Command Reference (Ethernet Switching)

set ethernet-oam period


timeout mode
Purpose Use this command to configure interface general attributes.
Command Modes Interface Configuration
Syntax set ethernet-oam period <level-value> timeout <time> mode
{active | passive}

Syntax
Description <level-value> Time interval of sending discovery packets, in
seconds, range: 1~10, default: 10 seconds

<time> Protocol disconnect timeout timer, in seconds,


range: 2~20, default: 5 seconds, if there is
no peer protocol packets received after this
time range, it means the peer does not exist.

active | passive Working mode, default: active

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
At present fei and gei interfaces are supported, while sg interfaces
are not supported.
Example This example describes how to configure OAM interface general
attributes in interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam period 5 timeout 6 mode active

set ethernet-oam port


link-monitor frame
Purpose Use this command to configure port error symbol frame link event
parameters.
Command Modes Interface Configuration
Syntax set ethernet-oam port <port-list> link-monitor frame thres
hold <xxx> window <yyy>

Syntax
Description <xxx> Error frame, range: 1~65535, default: 1

<yyy> Period statistics time, in seconds, range:


1~60, default: 1 second

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
At present fei and gei interfaces are supported, while sg interfaces
are not supported.

102 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 12 Ethernet OAM Configuration

Example This example describes how to configure Ethernet link OAM inter-
face error symbol frame event parameters in interface configura-
tion mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam link-monitor frame
threshold 30 window 10

set ethernet-oam
remote-loopback start
Purpose Use this command to enable or disable link Ethernet OAM remote
loopback.
Command Modes Interface Configuration
Syntax set ethernet-oam remote-loopback { start | stop }

Syntax
Description start Enables link Ethernet OAM remote loopback.

stop Disables link Ethernet OAM remote loopback.

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.
At present, fei and gei interfaces are supported, while sg interfaces
are not supported.
Example This example describes how to enable link Ethernet OAM remote
loopback in interface configuration mode.
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam remote-loopback start

set ethernet-oam
remote-loopback time-out
Purpose Use this command to set Ethernet OAM remote loopback timeout
in global configuration mode.
Command Modes Global Configuration
Syntax set ethernet-oam remote-loopback timeout <time>

Syntax
Description <time> Remote loopback timeout, in seconds, range:
1~10, default: 3 seconds

Instructions To view this configuration, use the show running-config com-


mand in global configuration mode.

Confidential and Proprietary Information of ZTE CORPORATION 103


ZXR10 8900 Series Command Reference (Ethernet Switching)

Example This example describes how to set Ethernet OAM remote loopback
timeout in global configuration mode.
ZXR10(config)#set ethernet-oam remote-loopback time-out 5

show ethernet-oam
Purpose Use this command to display Ethernet OAM global configuration
information.
Command Modes Global Configuration
Syntax show ethernet_oam
Example This example describes how to display Ethernet OAM global con-
figuration information.
ZXR10(config)#show ethernet-oam

show ethernet-oam interface


discovery
Purpose Use this command to display Ethernet OAM discovery status of the
designated interface.
Command Modes Global Configuration
Syntax show ethernet_oam < port-id > discovery

Syntax
Description < port-id > Port name

Example This example describes how to display Ethernet OAM discovery


status of the designated interface.
ZXR10(config)#show ethernet-oam fei_1/1 discovery

show ethernet-oam interface


link-monitor
Purpose Use this command to display information about Ethernet OAM link
events of the designated port.
Command Modes Global Configuration
Syntax show ethernet_oam < port-id > link-monitor

Syntax
Description < port-id > Port name

104 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 12 Ethernet OAM Configuration

Example This example describes how to display information about Ethernet


OAM link events of the designated port.
ZXR10(config)#show ethernet-oam fei_1/1 link-monitor

show ethernet-oam interface


statistics
Purpose Use this command to display information about Ethernet OAM
management frames of the designated port.
Command Modes Global Configuration
Syntax show ethernet_oam < port-id > statistics

Syntax
Description < port-id > Port name

Example This example describes how to display information about Ethernet


OAM management frames of the designated port.
ZXR10(config)#show ethernet-oam fei_1/1 statistics

Confidential and Proprietary Information of ZTE CORPORATION 105


ZXR10 8900 Series Command Reference (Ethernet Switching)

This page is intentionally blank.

106 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13

Ethernet Service
Level OAM (CFM)
Configuration

Table of Contents
cfm enable ..................................................................... 108
cfm create md ................................................................ 108
cfm delete md................................................................. 108
cfm md session ............................................................... 109
ma create session............................................................ 109
ma delete....................................................................... 110
ma session ..................................................................... 110
ma protect ..................................................................... 110
primary vlan ................................................................... 111
speed ............................................................................ 111
ccm timer-interval ........................................................... 112
create mep session .......................................................... 112
create rmep session......................................................... 112
delete mep ..................................................................... 113
assign mep ..................................................................... 113
no assign mep ................................................................ 114
mep state....................................................................... 114
mep alarm-lowest-pri....................................................... 115
mep priority.................................................................... 115
mep ccm-send ................................................................ 115
mep ccm-check ............................................................... 116
mep relate-to rmep ......................................................... 116
cfm lbm ......................................................................... 117
cfm ltm .......................................................................... 117
cfm ltr-read trans-id ........................................................ 118
show md ........................................................................ 119
show ma ........................................................................ 119
show mp ........................................................................ 119
mep one-lm .................................................................... 120
mep two-lm .................................................................... 120
mep one-dm ................................................................... 121
mep two-dm ................................................................... 121
mep clear lm-result|dm-result........................................... 122
debug cfm pkt................................................................. 122
clear pbt-cfm .................................................................. 123

Confidential and Proprietary Information of ZTE CORPORATION 107


ZXR10 8900 Series Command Reference (Ethernet Switching)

cfm enable
Purpose Use this command to enable global CFM function.
Command Mode Global configuration mode
Syntax set cfm { enable | disable }

Syntax
Description enable It is to enable global CFM function.

disable It is to disable global CFM function.

Instruction Users can view the configuration with show running-config com-
mand in global configuration mode.
Example This example describes how to enable global CFM function.
ZXR10(config)#cfm enable

cfm create md
Purpose Use this command to create an MD and configure MD attribute.
The system enters MD mode automatically after the MD is created
successfully.
Command Mode Global configuration mode
Syntax cfm create md session <1-16> name <mdname> level <0-7>

Syntax
Description <1-16> It is the session number of the MD created.

<mdname> It is the MD name. It is a character string,


within 16 characters. The first character must
be a letter.

<0-7> It is the MD level value. An MD with a large


level value can contain an MD with a small
level value.

Instruction Users can view the configuration with show running-config com-
mand in global configuration mode. The whole switch supports 16
MDs.
Example This example describes how to create an MD. The MD session num-
ber is 1, with name md1. The level is 1.
ZXR10(config)#cfm create md session 1 name md1 level 1

cfm delete md
Purpose Use this command to delete an MD.
Command Mode Global configuration mode

108 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

Syntax cfm delete md < 1-16>

Syntax
Description < 1-16> It is the session number of MD to be deleted.

Instruction The whole switch supports 16 MDs.


Example This example describes how to delete the MD with session number
1.
ZXR10(config)#cfm delete md session 1

cfm md session
Purpose Use this command to enter MD configuration mode.
Command Mode Global configuration mode
Syntax cfm md session < 1-16>

Syntax
Description < 1-16> It is the session number of the MD to enter.

Instruction The whole switch supports 16 MDs.


Example This example describes how to enter MD 1.
ZXR10(config)#cfm md session 1

ma create session
Purpose Use this command to create an MA.
Command Mode MD mode
Syntax ma create session <1-512> name <maname>

Syntax
Description <1-512> It is the session number of the MA to be
created, in the range of 1~512.

<maname> It is the name of the MA to be created. It is


within 16 characters. The first character must
be a letter.

Instruction An MD supports 32 MAs at most. The name of each MA is globally


unique.
Example This example describes how to create an MA with session number
1 and named ma1.
ZXR10(configmd)#ma create session 1 name ma1

Confidential and Proprietary Information of ZTE CORPORATION 109


ZXR10 8900 Series Command Reference (Ethernet Switching)

ma delete
Purpose Use this command to delete an MA.
Command Mode MD mode
Syntax ma delete {< 1-512>|< maname>}

Syntax
Description < maname> It is the name of the MA to be deleted.

< 1-512> It is the session ID of the MA to be deleted.

Instruction Users can delete an MA through the MA name or session ID in MD


mode.
Example This example describes how to delete the MA with session number
1.
ZXR10(config-md)#ma delete 1

This example describes how to delete the MA named ma1.


ZXR10(config-md)#ma delete ma1

ma session
Purpose Use this command to enter MA configuration mode
Command Mode MD mode
Syntax ma session < 1-512>

Syntax
Description < 1-512> It is the session ID of an MA.

Instruction Users can enter MA configuration mode from MD mode with this
command.
Example This example describes how to enter MA 1 configuration mode.
ZXR10(configmd)#ma session 1

ma protect
Purpose Use this command to configure the MA protection mode.
Command Mode MA configuration mode
Syntax ma protect { vlan| link}

110 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

Syntax
Description vlan It is to set the current MA protection mode
as vlan.

link It is to set the current MA protection mode


as link.

Instruction At present, there are two MA protection modes: vlan and link. The
link mode is only used whtn the level of MD is 0.
Example This example describes how to set the MA protection mode as vlan.
ZXR10(config-md-ma)#ma protect vlan

primary vlan
Purpose Use this command to configure the primary VLAN of an MA.
Command Mode MA configuration mode
Syntax primary vlan < 1-4094>

Syntax
Description <1-4094> It is to configure the VLAN ID of MA primary
VLAN.

Instruction It is necessary to configure an MA primary VLAN no matter whether


the MA protection mode is vlan or link.
Example This example describes how to configure the MA primary VLAN as
10.
ZXR10(config-md-ma)#primary vlan 10

speed
Purpose Use this command to configure the speed to send the MA CCM.
Command Mode MA configuration mode
Syntax speed { slow| fast}

Syntax
Description slow|fast It is to configure the speed to send the MA
CCM.

Instruction By default, the speed is slow.


Example This example describes how to set the speed to send MA CCM as
slow.
ZXR10(config-md-ma)#speed slow

Confidential and Proprietary Information of ZTE CORPORATION 111


ZXR10 8900 Series Command Reference (Ethernet Switching)

ccm timer-interval
Purpose Use this command to configure the interval to send MA CCM.
Command Mode MA configuration mode
Syntax ccm timer-interval < 1-7>

Syntax
Description <1-7> The value means the interval to send MA CCM,
3.33ms, 10ms, 100ms, 1s, 10s, 1min and
10min respectively.

Instruction When the speed to send MA CCM is fast, the interval can be 1, 2
or 3. When the speed to send MA CCM is slow, the interval can be
4, 5, 6 or 7.
Example This example describes how to set the interval to send MA CCM as
1s.
ZXR10(config-md-ma)#ccm timer-interval 4

create mep session


Purpose Use this command to create an MEP.
Command Mode MA configuration mode
Syntax create mep session < 1-64>< 1-8191> direction { down| up}

Syntax
Description < 1-64> It is the session ID of the MEp created, in the
range of 1~64.

< 1-8191> It is the ID of the MEP created.

Instruction Create an MEP in MA mode. At present, the switch supports MEPs


of down type and up type. The whole switch support 8K MEPs at
most.
Example This example describes how to create an MEP with session ID 1
and index 1.
ZXR10(config-md-ma)#create mep session 1 1 direction down

create rmep session


Purpose Use this command to create an RMEP.
Command Mode MA configuration mode
Syntax create rmep session <1-64><1-8191> remote-mac <mac-ad
dress>

112 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

Syntax
Description <1-64> It is the session ID of an MEP, in the range
of 1~64.

<1-8191> It is the RMEP ID.

<mac-address> It is the MAC address of RMEP, in the format


of twelve hexadecimal numbers. Every
four numbers are separated by a dot. The
MAC address can not be 0000.0000.0000, a
multicast address or a broadcast address.

Instruction Create an RMEP in MA mode. There are 64 RMEPs in an MA at


most. The whole switch supports 8K RMEPs.
Example This example describes how to create an RMAP. The session ID is
1 and the index is 1. The MAC address is 1234.1234.1234.
ZXR10(config-md-ma)#create rmep session 1 1 remote-mac
1234.1234.1234

delete mep
Purpose Use this command to delete an MEP.
Command Mode MA configuration mode
Syntax delete mep {<1-8191>| session <1-64> |all}

Syntax
Description <1-64> It is the session of the MEP to be deleted, in
the range of 1~64.

<1-8191>| It is the ID of the MEP.

all It is to delete all MEPs in current MA.

Instruction Delete an MEP no matter it is an LMEP or an RMEP in MA mode.


Users can use this command to delete a designated MEP through
index number or a session ID, or delete all MEPs in current MA.
Example This example describes how to delete the MEP with session ID 1.
ZXR10(config-md-ma)#delete mep 1

assign mep
Purpose Use this command to assign an MEP to a port.
Command Mode MA configuration mode
Syntax assign mep <1-8191> to interface <interfacename>

Confidential and Proprietary Information of ZTE CORPORATION 113


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <1-8191> It is the ID of designated MEP.

<interfacename> It is an interface name.

Instruction Designate a port for an MEP in MA mode. The port is a real port.
It is not allowed to designate several ports for an MEP.
Example This example describes how to bind mep 2 to gei_1/1.
ZXR10(config-md-ma)#assign mep 2 to interface gei_1/1

no assign mep
Purpose Use this command to cancel to assign an MEP to a port.
Command Mode MA configuration mode
Syntax no assign mep < 1-8191>

Syntax
Description < 1-8191> It is the ID of designated MEP.

Instruction Cancel to assign an MEP to a port. The port is a real port.


Example This example describes how to remove the binding of mep 2 to a
port.
ZXR10(config-md-ma)#no assign mep 2

mep state
Purpose Use this command to configure MEP state.
Command Mode MA configuration mode
Syntax mep< 1-8191> state{ enable| disable}

Syntax
Description < 1-8191> It is the MEP ID.

enable| disable It is to enable or disable MEP CFM state.

Instruction By default, the MEP CFM state is disabled.


Example This example describes how to enable the CFM state of mep 1.
ZXR10(config-md-ma)#mep 1 state enable

114 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

mep alarm-lowest-pri
Purpose Use this command to configure the MEP alarm priority.
Command Mode MA configuration mode
Syntax mep < 1-8191> alarm-lowest-pri < 1-5>

Syntax
Description < 1-8191> It is the MEP ID.

< 1-5> It is the alarm priority, in the range of 1~5.


From 1 to 5, the priority is more and more
higher. Default priority is 1.

Instruction The priorities from low to high are RDI alarm, MAC alarm, RMEP
CCM failure alarm, ERR CCM alarm and XCON alarm.
Example This example describes how to set the alarm priority of mep 1 as
5.
ZXR10(config-md-ma)#mep 1 alarm-lowest-pri 5

mep priority
Purpose Use this command to configure MEP priority.
Command Mode MA configuration mode
Syntax mep < 1-8191> priority < 0-7>

Syntax
Description < 1-8191> It is the MEP ID.

< 0-7> It is the MEP priority, in the range of 0~7.

Example This example describes how to set the priority of mep 1 as 1.


ZXR10(config-md-ma)#mep 1 priority 1

mep ccm-send
Purpose Use this command to enable or disable sending CC messages.
Command Mode MA configuration mode
Syntax mep < 1-8191> ccm-send { enable| disable}

Syntax
Description < 1-8191> It is the MEP ID.

enable| disable It is to enable or disable the state of ccm-send.

Confidential and Proprietary Information of ZTE CORPORATION 115


ZXR10 8900 Series Command Reference (Ethernet Switching)

Instruction Only common boards and NP boards use this command. OAM
boards do not need to use this command. For OAM boards, CC
messages will be sent automatically as long as CC is enabled glob-
ally. When common boards and NP boards use OAM as agents,
common boards and NP boards do not need to use this command.
Example This example describes how to enable ccm-sent for mep 1.
ZXR10(config-md-ma)#mep 1 ccm-send enable

mep ccm-check
Purpose Use this command to set the check for CC messages.
Command Mode MA configuration mode
Syntax mep <1-8191> ccm-check {enable|disable}

Syntax
Description <1-8191> It is the MEP ID.

enable|disable It is to enable or disable the state of MEP


ccm-check.

Example This example describes how to enable ccm-check for mep 1.


ZXR10(config-md-ma)#mep 1 ccm-check enable

mep relate-to rmep


Purpose Use this command to configure the relation between MEP and
RMEP.
Command Mode MA configuration mode
Syntax mep < 1-8191> relate-to rmep < 1-8191>

Syntax
Description < 1-8191> It is the loacl MEP ID.

< 1-8191> It is the RMEP ID.

Instruction At present, this command is mainly used in OAM boards. The soft
forwarding in NP boards and common boards does not use this
command. Remove the relation with the no command.
Example This example describes how to configure the relation between mep
1 and rmep 2.
ZXR10(config-md-ma)#mep 1 relate-to rmep 2

116 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

cfm lbm
Purpose Use this command to enable LB function.
Command Mode Exec mode
Syntax cfm lbm md <1-16> ma <1-512> smep-id <1-8191> dmep-id
<1-8191>[dmep-mac<mac-address>| dmip-mac <mac-addres
s>| repeat <1-200>|size<1-400>|timeout<1-10>]

Syntax
Description <1-16> It is the MD session ID.

<1-512> It is the MA session ID.

smep-id <1-8191> It is the ID of MEP that sends LBM messages.

dmep-id <1-8191> It is the ID of destination MEP. For a local MEP,


it is the ID of RMEP.

dmep-mac<mac-add It is the MAC address of destination MEP,


ress> in the format of xxxx.xxxx.xxxx. x is a
hexadecimal number.

dmip-mac < It is the MAC address of destination MIP, in the


mac-address > format of xxxx.xxxx.xxxx. x is a hexadecimal
number.

<1-200> It is the numbers of LBM messages that are


send repeatedly. It is in the range of 1~200,
with default value 5.

<1-400> It is the length of data TLV, in the range of


1~400.

Instructions LB function can be used when MD, MA, MP and RMEP are created
successfully and are enabled globally. When LB function is used,
the destination MP parameter can be the ID of an RMEP that has
been created, the MAC address of an RMEP or the MAC address of
an intermediate MIP.
Example This example describes how to configure LB function. Local mep
1 sends an LBM message to an rmep 2. The message is sent for
five times repeatedly. The data TLV is set as 100. The terminating
receiving time is set as 10s.
ZXR10#cfm lbm md 1 ma 1 smep-id 1 dmep-id 2 repeate 5
size 100 timeout 10

cfm ltm
Purpose Use this command to enable LT function.
Command Mode Exec mode
Syntax cfm ltm md <1-16> ma <1-512> smep-id <1-8191> dmep-id
<1-8191>[ dmep-mac<mac-address>| dmip-mac <mac-addre
ss>| ttl <1-64>| timeout <5-10>]

Confidential and Proprietary Information of ZTE CORPORATION 117


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <1-16> It is the MD session ID.

<1-512> It is the MA session ID.

smep-id <1-8191> It is the ID of MEP that sends LTM messages.

dmep-id <1-8191> It is the ID of destination MEP. For a local MEP,


it is the ID of RMEP.

dmep-mac<mac-add It is the MAC address of destination MEP,


ress> in the format of xxxx.xxxx.xxxx. x is a
hexadecimal number.

dmip-mac It is the MAC address of destination MIP, in the


<mac-address> format of xxxx.xxxx.xxxx. x is a hexadecimal
number.

ttl It is the TTL, in the range of 1~60.

timeout It is the terminating receiving time, in the


range of 5~10, in unit of second.

Instructions 1. LT function can be used when MD, MA, MP and RMEP are cre-
ated successfully and are enabled globally.
2. When LT function is used, the destination MP parameter can be
the ID of an RMEP that has been created, the MAC address of
an RMEP or the MAC address of an intermediate MIP.
3. The TTL can not exceed 64 hops. If there is an intermediate
MIP with TTL more than 64 hops, the destination MP will be
considered unreachable even if the destination is reached.
Example This example describes how to configure LT function. Loacl mep 1
send an LTM message to an rmep 2. The TTL is 50. The terminating
receiving time is set as 10s.
ZXR10#cfm ltm md 1 ma 1 smep-id 1 dmep-id 2 ttl 50 timeout 10

cfm ltr-read trans-id


Purpose Use this command to read the path information of an LTR.
Command Mode Exec mode
Syntax cfm ltr-read trans-id < 1-4294967295>

Syntax
Description < 1-4294967295> It is the sequence number of LTM text.

Instruction Test result is read according to the

118 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

show md
Purpose Use this command to view MD configuration information.
Command Mode Exec mode
Syntax show md { all| session < 1-16>}

Syntax
Description < 1-16> It is the MD session ID.

all It is to display all MD configuration


information.

Instruction MD configuration information can be displayed according to MD


session ID. Users also can view all MD configuration information.

show ma
Purpose Use this command to view MA configuration information.
Command Mode Exec mode
Syntax show ma { all | session < 1-512>} md < 1-16>

Syntax
Description < 1-16> It is the MD session ID.

all It is to view all MA configuration information


in an MD.

< 1-512> It is the MA session ID.

Instruction Users can view configuration information of an MA or all MAs in an


MD.

show mp
Purpose Use this command to view MP configuration information.
Command Mode Exec mode
Syntax show mp { all |< 1-64>} md < 1-16> ma < 1-512>

Syntax
Description < 1-16> It is the MD session ID.

< 1-512> It is the MA session ID.

all It is to view configuration information of all


MPs in an MA of an MD.

< 1-64> It is the MP session ID.

Confidential and Proprietary Information of ZTE CORPORATION 119


ZXR10 8900 Series Command Reference (Ethernet Switching)

Instruction User can only view configuration information of an MP or all MPs


in one MA of one MD at a time.

mep one-lm
Purpose Use this command to configure one-lm.
Command Mode MA configuration mode
Syntax mep <1-8191> one-lm [{[continue-time <60-600>]|[interval
<1-60>]}]

Syntax
Description <1-8191> It is the MEP ID.

<60-600> It is to set the duration of one-lm test. The


unit is the same as that of interval.

<1-60> It is the interval, in the unit of second.

Instruction If the optional parameters in [ ] are not configured, default value


of continue-time is 60s and default value of interval is 1s. That is,
one-lm function will be disabled in 60s automatically. For one-lm
and two-lm, only one of them can be enabled.
Example This example describes how to configure LM function in local mep
1 and peer mep 2.
1. Enable one-lm function in local mep 1.
ZXR10(config-md-ma)#mep 1 one-lm continue-time 60 interval 1

2. Enable one-lm function in peer mep 2.


ZXR10(config-md-ma)#mep 2 one-lm continue-time 60 interval 1

mep two-lm
Purpose Use this command to configure two-lm.
Command Mode MA configuration mode
Syntax mep < 1-8191> two-lm

Syntax
Description < 1-8191> It is the MEP ID.

Instruction Only one of one-lm and two-lm can be enabled.


It is necessary to disable two-lm function manually.
Before enable two-lm function, enable local CC function and
remote CC function first.
To stop two-lm function, use no command.

120 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

Example This example describes how to enable two-lm function in mep 1


and peer mep 2.
1. Enable two-lm function in local mep 1.
ZXR10(config-md-ma)#mep 1 two-lm

2. Enable two-lm function in peer mep 2.


ZXR10(config-md-ma)#mep 2 two-lm

mep one-dm
Purpose Use this command to configure one-dm function.
Command Mode MA configuration mode
Syntax mep <1-8191> one-dm [{[continue-time <60-600>]|[inter
val <1-60>]}]

Syntax
Description <1-8191> It is the MEP ID.

<60-600> It is to set the duration of one-dm test. The


unit is the same as that of interval.

<1-60> It is the interval, in the unit of second.

Instruction If the optional parameters in [ ] are not configured, default value


of continue-time is 60s and default value of interval is 1s. That
is, one-dm function will be disabled in 60s automatically. Stop
one-dm function with no command. For one-dm and two-dm, only
one of them can be enabled.
Example This example describes how to configure one-dm function in local
mep 1 and peer mep 2.
1. Enable one-dm function in local mep 1.
ZXR10(config-md-ma)#mep 1 one-dm continue-time 60 interval 1

2. Enable one-dm function in peer mep 2.


ZXR10(config-md-ma)#mep 2 one-dm continue-time 60 interval 1

mep two-dm
Purpose Use this command to configure two-dm function.
Command Mode MA configuration mode
Syntax mep <1-8191> two-dm [{[continue-time <60-600>]|[inter
val <1-60>]}]

Confidential and Proprietary Information of ZTE CORPORATION 121


ZXR10 8900 Series Command Reference (Ethernet Switching)

Syntax
Description <1-8191> It is the MEP ID.

<60-600> It is to set the duration of two-dm test. The


unit is the same as that of interval.

<1-60> It is the interval, in the unit of second.

Instruction If the optional parameters in [ ] are not configured, default value


of continue-time is 60s and default value of interval is 1s. That
is, two-dm function will be disabled in 60s automatically. Stop
two-dm function with no command. For one-dm and two-dm, only
one of them can be enabled.
Example This example describes how to configure two-dm function in local
mep 1 and peer mep 2.
1. Enable two-dm function in local mep 1.
ZXR10(config-md-ma)#mep 1 two-dm continue-time 60 interval 1

2. Enable two-dm function in peer mep 2.


ZXR10(config-md-ma)#mep 2 two-dm continue-time 60 interval 1

mep clear lm-result|dm-res


ult
Purpose Use this command to clear the statistics information of lm or dm.
Command Mode MA configuration mode
Syntax mep <1-8191> clear {lm-result|dm-result}

Syntax
Description <1-8191> It is the MEP ID.

lm-result It is to clear the statistics information of lm.

dm-result It is to clear the statistics information of dm.

Instruction When lm function is enabled, statistics result of one-lm or two-lm


can not be cleared. When dm function is enabled, statistics result
of one-dm or two-dm can not be cleared.
Example This example describes how to clear the statistics result of lm in
local mep 1.
ZXR10(config-md-ma)#mep 1 clear lm-result

debug cfm pkt


Purpose Use this command to print the information of packets sent and
received.

122 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 13 Ethernet Service Level OAM (CFM) Configuration

Command Mode Exec mode


Syntax debug cfm pkt [all |{megid md <1-16> ma <1-512> mep
<1-8191>}][{[direction {send|rcv|alll}]|[pkt-nums <10-100
>]|[time-interval <4-10000>]}]

Syntax
Description md It is the MD session ID, in the range of 1~16.

ma It is the MA session ID, in the range of 1~512.

pkt-nums It is the number of packets to be displayed, in


the range of 10~100.

time-interval It is the interval, in the range of 4~10000,


in unit of millisecond.

Instruction In management mode, users can print the information of packets


sent and received on all ports associated with MEP. Users also can
print the information of one or several packets (10 by default)
sent and received in a designated MEP. The interval to print the
information is 4ms~10000ms.
Example This example describes how to view information of packets sent
and received in all MEPs.
ZXR10(config-md-ma)#cfm debug pkt all

clear pbt-cfm
Purpose Use this command to clear all CFM configuration.
Command Mode Global configuration mode
Syntax clear pbt-cfm
Instruction Clear all configuration related to CFM. No configuration information
related to CFM can be viewed with show run command after this
command is executed.

Confidential and Proprietary Information of ZTE CORPORATION 123


ZXR10 8900 Series Command Reference (Ethernet Switching)

This page is intentionally blank.

124 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 14

Hot Patch Configuration

Table of Contents
patch activate ................................................................. 125
patch deactive ................................................................ 126
patch information ............................................................ 127
patch load ...................................................................... 128
patch unload................................................................... 129

patch activate
Purpose Use this command to activate all patch functions or one patch func-
tion in patch file.
Command Mode Diagnosis mode
Syntax patch activate file <file-name>{[<board-type><board-unit
>]|[function <function-name><board-type><board-unit>]}

Syntax
Description Parameter Description

<file-name> Patch file name

<board-type> Board type, mp or np

<board-unit> Board number, master or slave for mp

<function-name> The detailed function in activated patch file


specified by user.

Example 1. Activate all functions of mp.pat of master mp, the activation is


normal, display the information that activation is successful.
ZXR10(diag)#patch activate file mp.pat mp master Activate patch
file mp.pat successfully.

2. Activate all functions of mp.pat of slave mp, the activation is


normal, display the information that activation is successful.
ZXR10(diag)#patch activate file mp.pat mp slave Activate patch
file mp.pat successfully.

3. Activate all functions of np.pat of No.3 line card, the activation


is normal, display the information that activation is successful.
ZXR10(diag)#patch activate file np.pat np 3 Activate patch file
mp.pat successfully.

Confidential and Proprietary Information of ZTE CORPORATION 125


ZXR10 8900 Series Command Reference (Ethernet Switching)

4. Activate test1_getcpu of mp.pat of master mp, the activation


is normal, display the information that activation is successful.
ZXR10(diag)#patch activate file mp.pat function test1_getcpu mp
master Activate patch file mp.pat successfully.

5. Activate test1_getcpu of mp.pat of slave mp, the activation is


normal, display the information that activation is successful.
ZXR10(diag)#patch activate file mp.pat function test1_getcpu mp
slave Activate patch file mp.pat successfully.

6. Activate test1_getcpu of np.pat of No.3 line card, the activation


is normal, display the information that activation is successful.
ZXR10(diag)#patch activate file np.pat function test1_getcpu np 3
Activate patch file mp.pat successfully.

patch deactive
Purpose Use this command to deactivate all patch functions or one patch
function in patch file.
Command Mode Diagnosis mode
Syntax patch deactivate file <file-name>{[<board-type><board-unit
>]|[function <function-name><board-type><board-unit>]}

Syntax
Description Parameter Description

<file-name> Patch file name

<board-type> Board type, mp or np

<board-unit> Board number, master or slave for mp

<function-name> The detailed function in activated patch file


specified by user.

Example 1. Deactivate all functions of mp.pat of master mp, the deacti-


vation is normal, display the information that deactivation is
successful.
ZXR10(diag)#patch deactivate file mp.pat mp master Deactivate
patch file mp.pat successfully.

2. Deactivate all functions of mp.pat of slave mp, the deactivation


is normal, display the information that deactivation is success-
ful.
ZXR10(diag)#patch deactivate file mp.pat mp slave Deactivate
patch file mp.pat successfully.

3. Deactivate np.pat of No.3 line card, the deactivation is normal,


display the information that deactivation is successful.
ZXR10(diag)#patch deactivate file np.pat np 3 Deactivate patch
file mp.pat successfully.

4. Deactivate test1_getcpu of mp.pat of master mp, the deacti-


vation is normal, display the information that deactivation is
successful.
ZXR10(diag)#patch deactivate file mp.pat function test1_getcpu mp

126 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 14 Hot Patch Configuration

master Deactivate patch file mp.pat successfully.

5. Deactivate test1_getcpu of mp.pat of slave mp, the deactiva-


tion is normal, display the information that deactivation is suc-
cessful.
ZXR10(diag)#patch deactivate file mp.pat function test1_getcpu mp
slave Deactivate patch file mp.pat successfully.

6. Deactivate test1_getcpu of np.pat of No.3 line card, the deac-


tivation is normal, display the information that deactivation is
successful.
ZXR10(diag)#patch deactivate file np.pat function test1_getcpu
np 3 Deactivate patch file mp.pat successfully.

patch information
Purpose Use this command to view patch information of specific board.
There are three modes to view the patch information including file
mode which uses file in <information-type>, module mode which
uses module in <information-type> and function mode which uses
function in <information-type>.
Command Mode Diagnosis mode
Syntax patch information <information-type><board-type><board-un
it>

Syntax
Description Parameter Description

<information-type> file mode uses file in <information-type>,


module mode uses module in <information-
type> and function mode uses function in
<information-type>.

<board-type>< Board type, mp or np

<board-unit> Board number, master or slave for mp

Example 1. View patch information of MP master board by file mode.


ZXR10(diag)#patch information file mp master

2. View patch information of MP master board by module mode.


ZXR10(diag)#patch information module mp master

3. View patch information of MP master board by function mode.


ZXR10(diag)#patch information function mp master

4. View patch information of MP slave board by file mode.


ZXR10(diag)#patch information file mp slave

5. View patch information of MP slave board by module mode.


ZXR10(diag)#patch information module mp slave

6. View patch information of MP slave board by function mode.


ZXR10(diag)#patch information function mp slave

7. View patch information of No.3 line card by file mode.

Confidential and Proprietary Information of ZTE CORPORATION 127


ZXR10 8900 Series Command Reference (Ethernet Switching)

ZXR10(diag)#patch information file np 3

8. View patch information of No.3 line card by module mode.


ZXR10(diag)#patch information module np 3

9. View patch information of No.3 line card by function mode.


ZXR10(diag)#patch information function np 3

patch load
Purpose Use this command to download patch file to the specific board.
Command Mode Diagnosis mode
Syntax patch load file <file-name><board-type><board-unit>

Syntax
Description Parameter Description

<file-name> Patch file name

<board-type> Board type, mp or np

<board-unit> Board number, master or slave for mp

Instructions Before patch command is carried out, patch file need to be down-
loaded to /flash/img/ of master MP, the detailed procedure is as
follows:
1. Foreground and background need to be connected network cor-
rectly.
2. The ftp server of host terminal is set as the download of normal
version. The command of download is as follows:
copy ftp: mng //host/patchfilename@name:password root
/img/patchfilename

For example:
copy ftp: mng //192.168.1.1/patchfile.pat@123:123 root
/img/patchfile.pat

And then enter into OAM diagnosis and test interface, carry out
the patch command in this interface.
Example 1. Download mp.pat to MP master board, load normally and the
information that download successfully is viewed.
ZXR10(diag)#patch load file mp.pat mp master Load patch file
mp.pat successfully.

2. Download mp.pat to MP slave board, load normally and the


information that download successfully is viewed.
ZXR10(diag)#patch load file mp.pat mp slave Load patch file
mp.pat successfully.

3. Download np.pat to No.3 line card, load normally and the in-
formation that download successfully is viewed.
ZXR10(diag)#patch load file np.pat np 3 Load patch file np.pat
successfully.

128 Confidential and Proprietary Information of ZTE CORPORATION


Chapter 14 Hot Patch Configuration

patch unload
Purpose Use this command to unload patch file from the specific board.
Command Mode Diagnosis mode
Syntax patch unload file <file-name><board-type><board-unit>

Syntax
Description Parameter Description

<file-name> Patch file name

<board-type> Board type, mp or np

<board-unit> Board number, master or slave for mp

Example 1. Unload mp.pat from MP master board, unload normally and the
information that unload successfully is viewed.
ZXR10(diag)#patch unload file mp.pat mp master Unload patch file
mp.pat successfully.

2. Unload mp.pat from MP slave board, unload normally and the


information that unload successfully is viewed.
ZXR10(diag)#patch unload file mp.pat mp slave Unload patch file
mp.pat successfullyy.

3. Unload np.pat from No.3 line board, unload normally and the
information that unload successfully is viewed.
ZXR10(diag)#patch unload file np.pat np 3 Unload patch file
mp.pat successfully.

Confidential and Proprietary Information of ZTE CORPORATION 129

Anda mungkin juga menyukai