zxr10 PDF
zxr10 PDF
zxr10 PDF
Router/Ethernet Switch
Command Manual (Ethernet Switch Volume)
Version 4.8.22
ZTE CORPORATION
ZTE Plaza, Keji Road South,
Hi-Tech Industrial Park,
Nanshan District, Shenzhen,
P. R. China
518057
Tel: (86) 755 26771900
Fax: (86) 755 26770801
URL: http://ensupport.zte.com.cn
E-mail: support@zte.com.cn
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
Purpose This manual provides procedures and guidelines that support the
operation of ZXR10 router and Ethernet switch.
Intended This manual is intended for engineers and technicians who perform
Audience operation activities on ZXR10 router and Ethernet switch.
What Is in This This manual contains the following chapters:
Manual
Chapter Summary
Command Introduction
Table of Contents
Manual Use Guide............................................................... 1
Description of Man-Machine Commands ................................. 1
Auxiliary Function ............................................................... 2
Command Mode ................................................................. 3
Description of Man-Machine
Commands
Each MML 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.
� Format
It describes the complete format of this command, including
the no format if possible.
� Parameter Description
It describes parameters in this command in the form and pre-
scribes the range and default value. If different products have
Auxiliary Function
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
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.
Command Function
Command Mode
The command modes in this manual are shown below.
router Configures
pimsm PIM-SM
parameters
MAC Configuration
Table of Contents
mac add............................................................................ 7
mac aging-time .................................................................. 8
mac delete ........................................................................ 8
mac filter .......................................................................... 9
mac learn .........................................................................10
mac learning.....................................................................10
mac limit-num ..................................................................11
mac protect ......................................................................11
mac protect time ...............................................................12
mac to-static ....................................................................12
mac learning-strategy ........................................................13
mac transparent-control .....................................................13
mac unknow-filter-limit-num...............................................14
mac unknowsource-filter ....................................................14
show mac.........................................................................15
show mac aging-time.........................................................16
show mac learning.............................................................17
show mac limit-num ..........................................................17
show mac port-info............................................................17
show mac protect ..............................................................18
show mac running .............................................................19
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 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>
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
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
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.
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
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.
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.
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
VLAN Configuration
Table of Contents
acceptable frame types ......................................................21
ingress filtering .................................................................22
interface ..........................................................................22
name ...............................................................................23
show qinq.........................................................................23
show vlan.........................................................................24
show vlan private-map .......................................................25
show vlan protocol-map .....................................................26
show vlan subnet-map .......................................................27
show vlan translate............................................................27
swicthport ........................................................................28
switchport access vlan .......................................................29
switchport hybrid native vlan ..............................................30
switchport hybrid vlan ........................................................30
switchport mode................................................................31
switchport qinq (Global Configuration)..................................32
switchport qinq (Port Configuration) .....................................32
switchport trunk native vlan................................................33
switchport trunk vlan .........................................................34
vlan (Global Configuration) .................................................34
vlan (VLAN Database Configuration).....................................35
vlan database ...................................................................35
vlan list............................................................................36
vlan private-map ...............................................................36
vlan protocol-map .............................................................38
vlan protocol-map(Port Enabling).........................................38
vlan qinq ..........................................................................39
vlan subnet-map ...............................................................41
vlan subnet-map (Port Enabling) .........................................42
vlan translate....................................................................42
Syntax
Description
all All the frame types can be received
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
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
Field Description
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
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
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>
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
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)
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.
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.
Command Modes Interface configuration
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
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
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
SuperVLAN
Configuration
Table of Contents
arp-broacast .....................................................................45
interface supervlan ............................................................46
inter-subvlan-routing .........................................................46
ip supervlan pool ...............................................................47
ip-pool-filter .....................................................................48
show supervlan .................................................................48
show supervlan ip-pool.......................................................49
subvlan ............................................................................50
supervlan .........................................................................51
supervlan inter-subvlan-routing...........................................52
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
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
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
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
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 ...........................................................................53
name ...............................................................................54
revision............................................................................55
show spanning-tree inconsistentports...................................55
show spanning-tree instance...............................................56
show spanning-tree interface ..............................................56
show spanning-tree mst configuration ..................................57
show spanning-tree statistics ..............................................57
show spanning-tree transparent ..........................................58
spanning-tree ...................................................................59
spanning-tree bpduguard ...................................................59
spanning-tree edged-port ...................................................60
spanning-tree forward-delay ...............................................61
spanning-tree guard ..........................................................61
spanning-tree hello-time ....................................................62
spanning-tree linktype .......................................................62
spanning-tree max-age ......................................................63
spanning-tree mode...........................................................63
spanning-tree mst configuration ..........................................64
spanning-tree mst hmd5-digest...........................................64
spanning-tree mst hmd5-key ..............................................65
spanning-tree mst instance (Global Configuration) .................65
spanning-tree mst instance (Port Configuration) ....................66
spanning-tree mst max-hops ..............................................67
spanning-tree packet-type ..................................................67
spanning-tree path-cost .....................................................68
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
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#
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.
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
<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
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
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
spanning-tree path-cost
Purpose Use this command to set the path cost of the interface.
Command Modes Interface configuration
Syntax spanning-tree instance <ins-index> path-cost <cost>
Syntax
Description
<ins-index> Instance number to which the interface
belongs, range: 0~63
Defaults The path cost of the interface is set according to the port rate-path
cost mapping table.
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 path cost of the interface
fei_3/1 to 30000.
ZXR10(config)#interface fei_3/1
ZXR10(config-if)#spanning-tree path-cost 30000
LACP Configuration
Table of Contents
clear lacp .........................................................................69
interface ..........................................................................69
lacp port-priority ...............................................................70
lacp system-priority ...........................................................70
lacp timeout .....................................................................71
show lacp .........................................................................71
smartgroup ......................................................................72
smartgroup load-balance ....................................................73
smartgroup mode ..............................................................73
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>}
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
VBAS Configuration
Table of Contents
vbas enable ......................................................................75
vbas port-type ..................................................................75
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..........................................................................77
l2trace .............................................................................78
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 ......................................................................79
udld message timer ...........................................................80
udld mode ........................................................................80
udld recovery enable..........................................................81
udld recovery timer ...........................................................82
udld reset.........................................................................82
show udld.........................................................................83
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
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
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
Ethernet OAM
Configuration
Table of Contents
set ethernet-oam debug .....................................................85
set ethernet-oam enable ....................................................86
set ethernet oam enable(interface configuration) ...................86
set ethernet-oam link-monitor enable ..................................87
set ethernet-oam link-monitor frame-period..........................87
set ethernet-oam link-monitor frame-seconds .......................88
set ethernet-oam link-monitor symbol-period .......................88
set ethernet-oam oui .........................................................89
set ethernet-oam period timeout mode.................................89
set ethernet-oam port link-monitor frame .............................90
set ethernet-oam remote-loopback start...............................90
set ethernet-oam remote-loopback time-out .........................91
show ethernet-oam ...........................................................91
show ethernet-oam interface discovery ................................91
show ethernet-oam interface link-monitor.............................92
show ethernet-oam interface statistics .................................92
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 frame—seconds
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
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
ZXR10(config)#interface fei_1/1
ZXR10(config-if)#set ethernet-oam period 5 timeout 6 mode active
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
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