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
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.
Revision History
Chapter Summary
Chapter Summary
Command Introduction
Table of Contents
Manual Use Guide............................................................... 1
Man-Machine Command Description ...................................... 1
Auxiliary Functions ............................................................. 2
Command Modes................................................................ 3
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
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
Command Function
Command Modes
The command modes in this manual are shown below.
router Configures
pimsm PIM-SM
parameters
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
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
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
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
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
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.
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
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
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}
Syntax
Description interface <port-na Ethernet physical interface
me>
Syntax
Description ivl IVL 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
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>
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>
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.
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
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}
Syntax
Description interface <port-na Ethernet physical port
me>
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
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}
Syntax
Description enable Enables the transparent function of the MAC
address
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>
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}
Syntax
Description interface <port-na Ethernet physical port
me>
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
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
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,
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
Field Description
Syntax
Description interface <port-na Ethernet physical interface
me>
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.
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.
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
Syntax
Description interface <port-na Ethernet physical interface
me>
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)#
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.
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
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
config
Purpose Use this command to configure esm entries in esm user-defined
mode.
Command Mode Esm user-defined mode
Syntax
Description fwd-l2-entry < The range of fwd-l2-entry, 0~524288
entrynum>
config acl
Purpose Use this command to configure control for ACL entries deployment
in esm user-defined mode.
Syntax
Description standard It is to set the ACL mode as standard.
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)#
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
Syntax
Description all All the frame types can be received
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
Syntax
Description <1-4094> Vlan ID range
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
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
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
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
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
Field Description
Pvid PVID
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
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
Field Description
VLAN VLAN ID
Syntax
Description <session id> Session ID of the designated PVLAN
Field Description
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
Field Description
Field Description
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
Field Description
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
Field Description
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
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
Syntax
Description <vlan-id> VLAN ID, range: 1~4094
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
Syntax
Description <vlan-id> VLAN ID, range: 1~4094
Syntax
Description <vlan-list> VLAN list, which can be a list of VLAN IDs
(range: 1~4094) or VLAN aliases
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)
Syntax
Description <port-list> Port list
Syntax
Description normal Sets a port to normal
Syntax
Description <vlan-id> VLAN ID, range: 1~4094
Syntax
Description <vlan-list> VLAN list, which can be a list of VLAN IDs
(range: 1~4094) or VLAN aliases
Syntax
Description <vlan-id> VLAN ID, range: 1~4094
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.
Syntax
Description <vlan-list> VLAN list, which can be a list of VLAN IDs
(range: 1~4094) or VLAN names
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
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
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>
Syntax
Description session-id <id> PVLAN session ID, range: 1~20
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
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
<vlanId> VLAN ID
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
vlan protocol-map(Port
Enabling)
Purpose Use this command to enable/disable protocol-based VLAN division
on the interface.
Syntax
Description enable Enables this function on the interface
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
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 39 series:
ZXR10(config)# vlan qinq session-no 2 customerbrg-port
gei_5/1 uplinkbrg-port gei_5/2 invlan 100-200 untag
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
<vlanId> VLAN ID
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
Syntax
Description enable Enables this function on the interface
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>
Syntax
Description <session_id> Session identifier, range: 1~1024
vlan database
Purpose Use this command to configure a VLAN database.
Command Mode Exec mode
Syntax
Description <session_id> Session identifier, range: 1~1024
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
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.
Example This example describes how to enable ARP broadcast for SUPER-
VLAN 1.
ZXR10(config)#interface supervlan1
ZXR10(config-if)#arp-broadcast enable
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
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>
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
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
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
ZXR10(config)#interface supervlan1
ZXR10(config-if)#ip-pool-filter enable
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
Field Description
Field Description
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
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
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
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>
Syntax
Description <instance> Instance number, range: 1~63
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
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
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
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
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;
Interface Port ID
Name Prio.Nbr Cost Sts Role LinkType Bound
--------------------------------------------------------------
Fei_1/1 128.31 200000 forward root p2p MSTP
Interface Port ID
Name Prio.Nbr Cost Sts Role LinkType Bound
--------------------------------------------------------------
Fei_1/1 128.31 200000 forward root p2p MSTP
ZXR10#
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#
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#
show spanning-tree
transparent
Purpose Use this command to display the transparent transmission flag of
current STP.
Command Modes All modes
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
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
spanning-tree bpduguard
Purpose Use this command to configure the BPDU protection type of the
port.
Syntax
Description discard Discards the BPDU packet when it is received
on the interface
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
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
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
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
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
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
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
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
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.
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)#
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
Syntax
Description <key> 32-bit hexadecimal number starting with 0x,
with the total length of 34 bits
Syntax
Description <instance> Instance number, in the range of 0~63 (the
instance 0 exists permanently)
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
Syntax
Description <instance> Instance number, in the range of 1~63 (the
instance 0 exists permanently)
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
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
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
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
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>}
Syntax
Description vlan <vlan-id> VLAN ID, range: 1~4094
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
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.
Example This example describes how to set the LACP system priority.
ZXR10(config)#lacp system-priority 100
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
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
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
ZXR10(config)#interface gei_3/1
ZXR10(config-if)#smartgroup 10 mode active
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
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
smartgroup mode
Purpose Use this command to configure the aggregation mode of link ag-
gregation group. Restore the default configuration with the no
Syntax
Description 802.3ad Indicates the aggregation control method of
the Smartgroup interface uses the 802.3ad
standard LACP.
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
ZXR10(config)#interface fei_2/1
ZXR10(config-if)#vbas port-type user
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
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
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
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
ZXR10(config-if)#udld enable
Syntax
Description <timer> Time interval for sending Hello packets when
the interfaces are in dual connection status,
in seonds, range: 7~90
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
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
Syntax
Description enable enables the function of UDLD automatic
recovery
Syntax
Description <timer> Time interval for performing automatic
recovery when UDLD protocol is in single
connection status, in seconds, range: 10~600
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
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
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
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.
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}
Syntax
Description member primary It is to create a ZESS domain.
<port-name>
secondary
<port-name>
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
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
Syntax
Description enable Enables global link Ethernet OAM.
Syntax
Description enable Enables global link Ethernet OAM.
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>
Syntax
Description <xxx> Error frame limit value, range: 1~65535,
default: 1
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)
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
Syntax
Description <list> Sets OUI information of link Ethernet OAM
Syntax
Description <level-value> Time interval of sending discovery packets, in
seconds, range: 1~10, default: 10 seconds
Syntax
Description <xxx> Error frame, range: 1~65535, default: 1
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.
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
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
Syntax
Description < port-id > Port name
Syntax
Description < port-id > Port name
Syntax
Description < port-id > Port name
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
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.
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.
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
Syntax
Description < 1-16> It is the session number of MD to be deleted.
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.
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.
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.
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}
Syntax
Description vlan It is to set the current MA protection mode
as vlan.
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.
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.
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
Syntax
Description < 1-64> It is the session ID of the MEp created, in the
range of 1~64.
Syntax
Description <1-64> It is the session ID of an MEP, in the range
of 1~64.
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.
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>
Syntax
Description <1-8191> It is the ID of designated MEP.
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.
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.
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.
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.
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.
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.
Syntax
Description < 1-8191> It is the loacl MEP 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
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.
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>]
Syntax
Description <1-16> It is the MD session ID.
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
Syntax
Description < 1-4294967295> It is the sequence number of LTM text.
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.
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.
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.
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.
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.
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.
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>]}]
Syntax
Description <1-8191> It is the MEP ID.
Syntax
Description <1-8191> It is the MEP ID.
Syntax
Description md It is the MD session ID, in the range of 1~16.
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.
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
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
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
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
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.
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.
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
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.
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.