Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch...

100
ZXR10 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: [email protected]

Transcript of Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch...

Page 1: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10Router/Ethernet Switch

Command Manual (Ethernet Switch Volume)

Version 4.8.22

ZTE CORPORATIONZTE Plaza, Keji Road South,Hi-Tech Industrial Park,Nanshan District, Shenzhen,P. R. China518057Tel: (86) 755 26771900Fax: (86) 755 26770801URL: http://ensupport.zte.com.cnE-mail: [email protected]

Page 2: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

LEGAL INFORMATION

Copyright © 2006 ZTE CORPORATION.

The contents of this document are protected by copyright laws and international treaties. Any reproduction or distribution ofthis 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 CORPORATIONor 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 theinformation contained herein.

ZTE CORPORATION or its licensors may have current or pending intellectual property rights or applications covering the subjectmatter of this document. Except as expressly provided in any written license between ZTE CORPORATION and its licensee,the user of this document shall not acquire any license to the subject matter herein.

ZTE CORPORATION reserves the right to upgrade or make technical change to this product without further notice.

Users may visit ZTE technical support website http://ensupport.zte.com.cn to inquire related information.

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

Revision History

Revision No. Revision Date Revision Reason

R1.0 Dec. 28, 2008 First Edition

Serial Number: sjzl20086535

Page 3: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

About This Manual.............................................. i

Command Introduction .....................................1Manual Use Guide........................................................... 1

Description of Man-Machine Commands............................. 1

Auxiliary Function ........................................................... 2

Command Mode ............................................................. 3

MAC Configuration.............................................7mac 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

VLAN Configuration .........................................21acceptable 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

Page 4: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

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

SuperVLAN Configuration ................................45arp-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

STP Configuration............................................53instance .......................................................................53

name...........................................................................54

revision........................................................................55

show spanning-tree inconsistentports...............................55

show spanning-tree instance...........................................56

show spanning-tree interface ..........................................56

Page 5: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

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

LACP Configuration .........................................69clear 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

VBAS Configuration .........................................75vbas enable ..................................................................75

vbas port-type ..............................................................75

MAC PING Configuration..................................77mac-ping......................................................................77

l2trace .........................................................................78

UDLD Configuration.........................................79udld enable...................................................................79

udld message timer .......................................................80

Page 6: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

udld mode ....................................................................80

udld recovery enable......................................................81

udld recovery timer .......................................................82

udld reset.....................................................................82

show udld.....................................................................83

Ethernet OAM Configuration ............................85set 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

Page 7: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

About This Manual

Purpose This manual provides procedures and guidelines that support theoperation of ZXR10 router and Ethernet switch.

IntendedAudience

This manual is intended for engineers and technicians who performoperation activities on ZXR10 router and Ethernet switch.

What Is in ThisManual

This manual contains the following chapters:

Chapter Summary

Chapter 1, CommandIntroduction

This chapter describes the use methodof the command manual, commanddescription, format convention, auxiliaryfunction and mode.

Chapter 2, MACConfiguration

This chapterdescribes the configurationand view commands of the MAC protocol.

Chapter 3, VLANConfiguration

This chapter describes VLAN configurationand view commands.

Chapter 4, SUPERVLANConfiguration

This chapter describes SUPERVLANconfiguration and view commands.

Chapter 5, STPConfiguration

This chapter describes Spanning TreeProtocol (STP) configuration and viewcommands.

Chapter 6, LACPConfiguration

This chapter describes Link AggregationControl Protocol (LACP) configuration andreview commands.

Chapter 7, VBAS ControlConfiguration

This chapter describes the configurationand view commands related to VirtualBroadband Access Server (VBAS).

Chapter 8, MAC PINGConfiguration

This chapter describes the configurationand view commands related to MAC PING.

Chapter 9, UDLDConfiguration

This chapter describes the configurationand view commands related toUnidirectional Links Detection (UDLD).

Chapter 10, This chapter describes the configurationand view commands related to ethernetlink OAM configuration and diaplaycommands.

RelatedDocumentation

The following documentation is related to this manual:

� ZXR10 Router/Ethernet Switch Command Manual (CommandIndex Volume)

� ZXR10 Router/Ethernet Switch Command Manual (Basic Con-figuration Volume I)

Confidential and Proprietary Information of ZTE CORPORATION i

Page 8: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

� ZXR10 Router/Ethernet Switch Command Manual (Basic Con-figuration Volume II)

� ZXR10 Router/Ethernet Switch Command Manual (Basic Con-figuration Volume III)

� ZXR10 Router/Ethernet Switch Command Manual (Remote Ac-cess Volume)

� ZXR10 Router/Ethernet Switch Command Manual (IPv4 Rout-ing Volume I)

� ZXR10 Router/Ethernet Switch Command Manual (IPv4 Rout-ing Volume II)

� ZXR10 Router/Ethernet Switch Command Manual (MPLS Vol-ume)

� ZXR10 Router/Ethernet Switch Command Manual (QoS Vol-ume)

� ZXR10 Router/Ethernet Switch Command Manual (SecurityVolume)

� ZXR10 Router/Ethernet Switch Command Manual (NetworkManagement Volume)

� ZXR10 Router/Ethernet Switch Command Manual (MulticastVolume)

� ZXR10 Router/Ethernet Switch Command Manual (IPv6 Vol-ume)

� ZXR10 Router/Ethernet Switch Command Manual (Voice andVideo Service Volume)

ii Confidential and Proprietary Information of ZTE CORPORATION

Page 9: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 1

Command Introduction

Table of ContentsManual Use Guide............................................................... 1Description of Man-Machine Commands................................. 1Auxiliary Function............................................................... 2Command Mode ................................................................. 3

Manual Use GuideThe commands in other volumes are classified by functional mod-ules, and each functional module corresponds to a chapter andthe commands in the chapter are organized in the form of level 2directory and in the order of a–z.

To search a command, do as follows:

1. Find the desired command by referring to ZXR10 Router/Eth-ernet Switch Command Manual — Command Index.

2. Find command details by the volume, chapter/section and pageof the obtained command.

Description of Man-MachineCommandsEach 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, includingthe 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

Confidential and Proprietary Information of ZTE CORPORATION 1

Page 10: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

different parameter ranges or default values, an additionalform is used for description.

� Default

The default value is available in the case that this command isnot set. The default parameter value is not described here forvalue selection.

Additional description shall be given if different products havedifferent default values.

� Instructions

First describes the platform version information about thiscommand. For example, “The platform version X.X.XX or latersupports this command” indicates this command is providedfrom the beginning of the platform version X.X.XX. This com-mand is provided from the platform version 2.6 by default.

Second describes the use method and precautions of this com-mand.

� Example

It describes the use of this command in an example.

� Related Commands

Lists the command(s) related to this command.

� History Command

It describes history version information related to this com-mand if a command is changed after version upgrade.

Do not describe the history command if this entry does not exist.

Auxiliary FunctionThe auxiliary function for ZXR10 devices is as follows.

1. In any command mode, enter a question mark (?) after theDOS prompt of the system, a list of available commands in thecommand mode will be displayed. With the context-sensitivehelp function, the keywords and parameter lists of any com-mands can be obtained.

i. In any command mode, enter a question mark "?" after theDOS prompt of the system, and a list of all commands inthe mode and the brief description of the commands willbe displayed.

ii. Input the question mark behind a character or characterstring to view the list of commands or keywords beginningwith this character or character string. Note that there isno space between the character (string) and the questionmark.

iii. Press TAB behind the character string. If the command orkeyword beginning with this character string is unique, itshall be completed with a space at the end. Note that thereis no space between the character string and the TAB.

2 Confidential and Proprietary Information of ZTE CORPORATION

Page 11: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 1 Command Introduction

iv. Input a question mark after a command, a keyword or aparameter, the next keyword or parameter to be input willbe listed, and also a brief explanation will be given. Notethat a space must be entered before the question mark.

2. If incorrect command, keyword or parameter is input, the errorisolation is offered with ^ in the user interface after you pressENTER. The ^ is below the first character of the input incorrectcommand, keyword or parameter.

3. ZXR10 router/Ethernet switch allows the command or key-word to be abbreviated into a character or character string thatuniquely identifies this command or keyword. For example, theshow command can be abbreviated to sh or sho.

4. The user interface supports the function of recording inputcommands. A maximum of ten history commands can berecorded. The function is very useful in re-invocation of a longor complicated command or ingress.

To re-invoke a command from the record buffer, conduct oneof the following operations, as shown below.

Command Function

Press CTRL-P or theup arrow key

Re-invokes the latest command in therecord buffer. Repeat these keys toinvoke old commands forwards.

Press CTRL-N or thedown arrow key

Rolls the commands downward. When thelast command line is reached, one moreoperation will roll the commands from thebegging of the buffer cyclically.

In any mode, execute the show history command to list thelatest commands input in this mode.

Command ModeThe command modes in this manual are shown below.

Mode Prompt Admis-sionMode

EntryCommand

Functions

Execmode

ZXR10> enters directlyafter loggingthe system

Views simpleinformation

Privi-legedmode

ZXR10# Execmode

enable Configuressystemparameters

Globalconfig-urationmode

ZXR10(config)# Privi-legedmode

configureterminal

Configuresglobal serviceparameters

Confidential and Proprietary Information of ZTE CORPORATION 3

Page 12: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Mode Prompt Admis-sionMode

EntryCommand

Functions

Inter-faceconfig-urationmode

ZXR10(config-if)#

Globalconfig-urationmode

interface Configuresportparametersand selectsa port typedepending onthe keyword

Subin-terfacemode

ZXR10 (config-subif)#

Globalconfig-urationmode

interface Configuressubinterfaceparametersof theNPCI/NPCT

VLANdata-baseconfig-urationmode

ZXR10(vlan-db)#

Privi-legedmode

vlan database

Creates ordeletes VLANsin batches

VLANconfig-urationmode

ZXR10(config-vlan)#

Globalconfig-urationmode

vlan ConfiguresVLANparameters

MSTPconfig-urationmode

ZXR10(config-mstp)#

Globalconfig-urationmode

spanning-tree mst configuration

ConfiguresMSTPparameters

BasicACLconfig-urationmode

ZXR10(config-basic-acl)#

Globalconfig-urationmode

acl basic Defines basicACL rule

Ex-tendedACLconfig-urationmode

ZXR10(config-ext-acl)#

Globalconfig-urationmode

acl extend Definesextended ACLrule

Lineconfig-urationmode

ZXR10(config-line)#

Globalconfig-urationmode

line console0

line <1~64>(GAR)

Configuresparametersrelated toserial portand telnetconnection

Layer2 ACLconfig-urationmode

ZXR10(config-link-acl)#

Globalconfig-urationmode

acl link Defines layer2 ACL rule

4 Confidential and Proprietary Information of ZTE CORPORATION

Page 13: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 1 Command Introduction

Mode Prompt Admis-sionMode

EntryCommand

Functions

HybridACLconfig-urationmode

ZXR10(config-hybd-acl)#

Globalconfig-urationmode

acl hybrid Defines hybridACL rule

Routerstand-ard ACLmode

ZXR10 (config-std-nacl)#

Globalconfig-urationmode

ip access-list Defines routerstandard ACLrule

Routerex-tendedACLmode

ZXR10 (config-ext-nacl)#

Globalconfig-urationmode

ip access-list Defines routerextended ACLrule

router rip ConfiguresRIPparameters

router ospf ConfiguresOSPFparameters

router isis ConfiguresIS-ISparameters

router bgp ConfiguresBGPparameters

routerpimsm

ConfiguresPIM-SMparameters

ipv6 routerrip

ConfiguresRIPngparameters.

Routeconfig-urationmode

ZXR10(config-router)#

Globalconfig-urationmode

ipv6 routerospf

ConfiguresOSPFv3parameters

VRFconfig-urationmode

ZXR10(config-vrf)#

Globalconfig-urationmode

ip vrf ConfiguresVRFparameters

VFI con-figu-rationmode

ZXR10(config-vfi)#

Globalconfig-urationmode

vfi ConfiguresVPLS relatedparameters

Confidential and Proprietary Information of ZTE CORPORATION 5

Page 14: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Mode Prompt Admis-sionMode

EntryCommand

Functions

Routeconfig-urationmode(RIP)

address-family ipv4 vrf

ConfiguresRIP VRFparameters

IPv4 ad-dressfamilyconfig-urationmode

ZXR10(config-router-af)#

Routeconfig-urationmode(BGP)

address-family vpnv4

address-family ipv4 vrf

ConfiguresBGP VPNand VRFparameters

Routeconfig-urationmode(BGP4+)

address-family ipv6

ConfiguresBGP4+unicastaddress family

IPv6unicastaddressfamilyconfig-urationmode

ZXR10(config-router-af)#

Routeconfig-urationmode(IS-ISv6)

address-family ipv6

ConfiguresIS-ISv6address family

Routemapconfig-urationmode

ZXR10(config-route-map)#

Globalconfig-urationmode

route-map Configuresroute mapmatching itemand operation

Channe-lizationconfig-urationmode

ZXR10(config-control)#

Globalconfig-urationmode

control Configureschannelizationfor ce1, ce3and cpos3

Dialpeerconfig-urationmode

ZXR10(config-voip100)#

Globalconfig-urationmode

dial-peervoice

Configuresbusinessrelated tointegratedservice

Voiceportconfig-urationmode

ZXR10(config-voice-port)#

Globalconfig-urationmode

voice-port Configuresvoice service

IPSecconfig-urationmode

ZXR10(config-ipsec)#

Globalconfig-urationmode

ipsec ConfiguresIPv6 IPSecprotection

Diagno-sis mode

ZXR10(diag)# Privi-legedmode

diagnose Tests CPUand memoryusage

6 Confidential and Proprietary Information of ZTE CORPORATION

Page 15: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 2

MAC Configuration

Table of Contentsmac add............................................................................ 7mac aging-time.................................................................. 8mac delete ........................................................................ 8mac filter .......................................................................... 9mac learn.........................................................................10mac learning.....................................................................10mac limit-num ..................................................................11mac protect ......................................................................11mac protect time...............................................................12mac to-static ....................................................................12mac learning-strategy ........................................................13mac transparent-control .....................................................13mac unknow-filter-limit-num...............................................14mac unknowsource-filter ....................................................14show mac.........................................................................15show mac aging-time.........................................................16show mac learning.............................................................17show mac limit-num ..........................................................17show mac port-info............................................................17show mac protect ..............................................................18show mac running .............................................................19

mac addPurpose Use this command to add a MAC address entry.

Command Modes Global configuration

Syntax mac add {static | permanent}<mac-address> interface <port-name>[vlan <vlan-id>| all-owner-vlans]

SyntaxDescription

static Static address, which does not take part inaging, and cannot be written into database

permanent Permanent address, which does not take partin aging, and can be written into database

<mac-address> MAC address in dotted division format

interface <port-name>

Ethernet physical port

Confidential and Proprietary Information of ZTE CORPORATION 7

Page 16: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

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

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

Instructions If the parameter vlan <vlan-id> is not specified, the PVID on theport 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 address000a.010c.e2c6 to the Ethernet port fei_1/1.ZXR10(config)#mac add static 000a.010c.e2c6 interface fei_1/1

RelatedCommands

mac delete

show mac

mac aging-timePurpose Use this command to configure the dynamic MAC address aging

time of the device.

Command Modes Global configuration

Syntax mac aging-time <time>

SyntaxDescription

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

Instructions If the MAC address aging time is set to n seconds, the dynamicMAC address ages in the time range: n~2n.

Example This example describes how to set the MAC address aging time ofthe device to 180 seconds.ZXR10(config)#mac aging-time 180

RelatedCommands

show mac aging-time

show mac running

mac deletePurpose Use this command to delete a MAC address entry.

Command Modes Global configuration

Syntax mac delete {<mac-address>| interface <port-name>|vlan}[<vlan-id>]

SyntaxDescription

<mac-address> MAC address in dotted division format

interface <port-name>

Ethernet physical port

8 Confidential and Proprietary Information of ZTE CORPORATION

Page 17: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 2 MAC Configuration

vlan Delete a MAC address entry according tosome VLAN

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

Example This example describes how to delete the MAC address(000a.010c.e2c6) and then delete all MAC addresses on theEthernet port fei_1/1.ZXR10(config)#mac delete 000a.010c.e2c6ZXR10(config)#mac delete ethernet fei_1/1

RelatedCommands

mac add

show mac

mac filterPurpose 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>

SyntaxDescription source Filters data frames according to the source

MAC address.

both Filters data frames according to the source ordestination MAC address

destination Filters data frames according to thedestination MAC address

<mac-address> MAC address in dotted division format

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

Instructions � There is no need to specify the physical port when running themac 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 withthe MAC address 000a.010c.e2c6.ZXR10(config)#mac filter source 000a.010c.e2c6 vlan 1

RelatedCommands

mac delete

show mac

Confidential and Proprietary Information of ZTE CORPORATION 9

Page 18: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

mac learnPurpose Use this command to configure the HIGIH interface to learn the

MAC address.

Command Modes Global configuration

Syntax mac learn {normal | special}

SyntaxDescription

normal Permits the HIGIG interface to learn MAC

special Denies the HIGIG interface to learn MAC

Instructions This command is supported by ZXR10 T160G/7800.

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

RelatedCommands

show mac running

mac learningPurpose 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>]}{disable | enable}

SyntaxDescription

interface <port-name>

Ethernet physical interface

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

disable Disables the MAC address learning

enable Enable the MAC address learning

Instructions � After the MAC address learning is disabled on some interface,this interface does not dynamically learns the MAC address,but various MAC addresses can be added on the interface bymanual configuration.

� ZXR10 T160G only supports the configuration of dynamic MACaddress learning on the physical interface.

Example This example describes how to disable the Ethernet interfacefei_1/1 to learn the MAC address.ZXR10(config)#mac learning ethernet fei_1/1 disable

RelatedCommands

show mac learning

show mac running

10 Confidential and Proprietary Information of ZTE CORPORATION

Page 19: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 2 MAC Configuration

show mac port-info

mac limit-numPurpose 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>

SyntaxDescription

interface <port-name>

Ethernet physical interface

<max-number> Maximum number of the MAC addresses thatcan be dynamically learned, range: 1~6384

Instructions � If the <max-number> value is set to 0, it means that the num-ber of the MAC address learning is not limited on the interface.

� ZXR10 T160G only supports to set the number of the MAC ad-dresses that the physical interface can dynamically learn.

Example This example describes how to set the number of the MAC ad-dresses that the Ethernet interface fei_1/1 can dynamically learnto 1000.ZXR10(config)#mac limit-num ethernet fei_1/1 1000

RelatedCommands

mac protect

mac protect time

show mac limit-num

show mac running

mac protectPurpose 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}

SyntaxDescription

interface <port-name>

Ethernet physical interface

disable Disables the MAC address learning protection

enable Enables the MAC address learning protection

Instructions This command is used together with themac protect time andmac limit-num commands. After the protection of the MAC address

Confidential and Proprietary Information of ZTE CORPORATION 11

Page 20: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

learning is set, the protection time if the MAC address learning onthe interface is in abnormal status and the number of the MACaddresses that the port can learn need setting.

ZXR10 T160G only supports the configuration of protection stateon the physical interface.

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

RelatedCommands

mac limit-num

mac protect time

show mac protect

mac protect timePurpose Use this command to configure the protection time when the MAC

address learning on the interface is in abnormal status.

Command Modes Global configuration

Syntax mac protect time <time>

SyntaxDescription

<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 themac 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, andconfigure this interface to protect the MAC address learning. Andthe protection time is 500 seconds.ZXR10(config)#mac limit-num ethernet fei_1/1 1000ZXR10(config)#mac protect ethernet fei_1/1 enableZXR10(config)#mac protect time 500

RelatedCommands

mac limit-num

mac protect

show mac protect

show mac running

mac to-staticPurpose Use this command to translate all dynamic MAC addresses learned

by the interface into static MAC addresses.

Command Modes Global configuration

12 Confidential and Proprietary Information of ZTE CORPORATION

Page 21: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 2 MAC Configuration

Syntax mac to-static [interface <port-name>|<vlan-id>]{disable |enable}

SyntaxDescription

interface <port-name>

Ethernet physical port

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

disable Disables the dynamic MAC address to betranslated into the static MAC address

enable Enables the dynamic MAC address to betranslated into the static MAC address

Instructions This command is used to translate the dynamic MAC address onthe port into the static MAC address. And it no longer participatesin the aging. The executing result of this command is not writteninto the database.

Example This example describes how to translate the dynamic MAC addressinto the static address on the interface fei_1/1.ZXR10(config)#mac to-static ethernet fei_1/1 enable

RelatedCommands

show mac

mac learning-strategyPurpose Use this command to configure the MAC learning strategy (chip

learning/network processor learning).

Command Modes Global configuration

Syntax mac learning-strategy {driver | micode}

SyntaxDescription

driver Chip learning

micode Network processor learning

Instructions This command is applied to ZXR10 T160G/7800.

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

RelatedCommands

show mac learning-strategy

mac transparent-controlPurpose Use this command to enable or disable the transparent function of

the MAC address.

Confidential and Proprietary Information of ZTE CORPORATION 13

Page 22: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Command Modes Global configuration

Syntax mac transparent-control {disable | enable}

SyntaxDescription

enable Enables the transparent function of the MACaddress

disable Disables the transparent function of the MACaddress

Instructions This command is supported by ZXR10 3900/5900/5200 in singlemode. This command is used to enable or disable the transparentfunction of the MAC address.

Example This example describes how to enable the transparent function ofthe MAC address.ZXR10(config)#mac transparent-control enable

RelatedCommands

show mac transparent_control

mac unknow-filter-limit-numPurpose 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>]< limit-num >

SyntaxDescription

interface <port-name>

Ethernet physical port

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

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

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

RelatedCommands

show mac running

mac unknowsource-filterPurpose Use this command to configure the unknown source MAC filter

function.

Command Modes Global configuration

Syntax mac unknowsource-filter interface <port-name>{disable |enable}

14 Confidential and Proprietary Information of ZTE CORPORATION

Page 23: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 2 MAC Configuration

SyntaxDescription

interface <port-name>

Ethernet physical port

disable Disables the filtering of unknown source MACtraffic

enable Enables the filtering unknown source MACtraffic

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 MACaddress filter on the interface.ZXR10(config)#mac unknowsource-filter interface gei_1/1 enable

RelatedCommands

show mac

show macPurpose Use this command to display the MAC address entry.

Command Modes All modes

Syntax show mac [dynamic | static | permanent | to-static | src-filter | dst-filter | <mac-address>[vlan <vlan-id>] | interface<port-name>| vlan <vlan-id>]

SyntaxDescription

dynamic Dynamic address

static Static address

permanent Permanent address

to-static Solidified MAC address

src-filter Filters data frames according to the sourceMAC address

dst-filter Filters data frames according to thedestination MAC address

<mac-address> MAC address in dotted division format

interface <port-name>

Ethernet physical port

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

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

Confidential and Proprietary Information of ZTE CORPORATION 15

Page 24: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

srF-source filter,dsF-destination filter,time--day:hour:min:secFrm --mac from where:0,drv; 1,config; 2,VPN; 3,802.1X; 4,micro

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

Descriptions of the displayed fields are shown below.

Field Description

MAC_Address MAC_address in dotted division format

port Port where the MAC address is located

vid VLAN ID where the MAC address is located

stat Static flag of the MAC address

perma Permanent MAC address flag

toSta Solidified MAC address flag

src_filter Whether to filter the frames of the sourceMAC address.

dst_filter Whether to filter the frames of the destinationMAC address

Frm Source of the MAC address (drive,configuration, VPN, 802.1x and microcode)

vpnid VPN identifier

Time Time when the MAC address is learned

RelatedCommands

mac add

mac delete

mac to-static

mac filter

show mac aging-timePurpose Use this command to display the aging time of the dynamic MAC

address of the switch.

Command Modes All modes

Syntax show mac aging-time

Example This example describes how to display the aging time of the MACaddress of the switch.ZXR10#show mac aging-timeThe MAC Address aging time is 60 seconds

16 Confidential and Proprietary Information of ZTE CORPORATION

Page 25: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 2 MAC Configuration

RelatedCommands

mac aging-time

show mac learningPurpose Use this command to display the setting of the dynamic MAC ad-

dress learned by the port.

Command Modes All modes

Syntax show mac learning {[ interface <port-name>]|<vlan-id>}

SyntaxDescription

interface <port-name>

Ethernet physical interface

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

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

RelatedCommands

mac learning

show mac port-info

show mac limit-numPurpose Use this command to display the number limitation of the dynamic

MAC address learned by the port.

Command Modes All modes

Syntax show mac limit-num [interface <port-name>]

SyntaxDescription <port-name> Ethernet physical interface

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

RelatedCommands

mac limit-num

show mac port-infoPurpose Use this command to display the configuration and status of the

port.

Confidential and Proprietary Information of ZTE CORPORATION 17

Page 26: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Command Modes All modes

Syntax show mac port-info {interface <port-name>}

SyntaxDescription

interface <port-name>

Ethernet physical interface

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

RelatedCommands

mac limit-num

mac protect

mac learn

show mac protectPurpose Use this command to display the protection setting of the dynamic

MAC address learning on the port and the protection time of theMAC address learning of the switch.

Command Modes All modes

Syntax show mac protect [{interface <port-name>| protect-time}]

SyntaxDescription

interface <port-name>

Ethernet physical interface

protect-time MAC address learning protection time

Example This example describes how to display the protection setting ofthe dynamic MAC address learning on the interface fei_1/1 andthe protection time of the MAC address learning of the switch.ZXR10#show mac protect ethernet fei_1/1The MAC protect is enabled.ZXR10#show mac protect protect-timeThe protect time is 300 seconds.

Relatedcommands

mac protect

mac protect time

18 Confidential and Proprietary Information of ZTE CORPORATION

Page 27: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 2 MAC Configuration

show mac runningPurpose Use this command to display the related configuration of the MAC

address of the switch.

Command Modes All modes

Syntax show mac running

Instructions If there is no configuration and various parameters remain default,nothing is displayed. Only information about the configuration tobe written into the database is displayed.

Example This example describes how to display the related configuration ofthe MAC of the switch.ZXR10#show mac runningmac aging-time 60mac limit-num ethernet fei_1/1 10mac protect ethernet fei_1/1 enable

Confidential and Proprietary Information of ZTE CORPORATION 19

Page 28: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

This page is intentionally blank.

20 Confidential and Proprietary Information of ZTE CORPORATION

Page 29: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 3

VLAN Configuration

Table of Contentsacceptable frame types ......................................................21ingress filtering .................................................................22interface ..........................................................................22name...............................................................................23show qinq.........................................................................23show vlan.........................................................................24show vlan private-map.......................................................25show vlan protocol-map .....................................................26show vlan subnet-map .......................................................27show vlan translate............................................................27swicthport ........................................................................28switchport access vlan .......................................................29switchport hybrid native vlan ..............................................30switchport hybrid vlan........................................................30switchport mode................................................................31switchport qinq (Global Configuration)..................................32switchport qinq (Port Configuration).....................................32switchport trunk native vlan................................................33switchport trunk vlan .........................................................34vlan (Global Configuration) .................................................34vlan (VLAN Database Configuration).....................................35vlan database ...................................................................35vlan list............................................................................36vlan private-map...............................................................36vlan protocol-map .............................................................38vlan protocol-map(Port Enabling).........................................38vlan qinq..........................................................................39vlan subnet-map ...............................................................41vlan subnet-map (Port Enabling) .........................................42vlan translate....................................................................42

acceptable frame typesPurpose Use this command to set the frame type be received at an inter-

face.

Command Modes Interface configuration

Syntax acceptable frame types {all | tag}

Confidential and Proprietary Information of ZTE CORPORATION 21

Page 30: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

SyntaxDescription

all All the frame types can be received

tag tag frames only

Defaults All the frame types are acceptable.

Instructions Use the show running-config command on the interface to dis-play the configuration.

Example This example describes how to configure the interface fei_1/1 toreceive tag frames only.ZXR10(config)#interface fei_1/1ZXR10(config-if)#acceptable frame types tag

RelatedCommands

show interface

ingress filteringPurpose Use this command to set the ingress filtering for an interface.

Command Modes Interface configuration

Syntax ingress filtering {enable | disable}

SyntaxDescription

enable Enables ingress filtering

disable Disables ingress filtering

Defaults The ingress filtering is enabled by default.

Instructions Use the show running-config command on the interface to dis-play the configuration.

Example This example describes how to enable ingress filtering on the in-terface fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ingress filtering enable

RelatedCommands

show run interface

interfacePurpose Use this command to create a VLAN interface and enter VLAN in-

terface configuration mode. Delete the VLAN interface with the noform of this command.

Command Modes Global configuration

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

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

22 Confidential and Proprietary Information of ZTE CORPORATION

Page 31: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

SyntaxDescription

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

<vlan-if> VLAN interface name

Instructions The parameter <vlan-if> is in the format of vlan + VLAN ID, suchas vlan10.

Example This example describes how to create a VLAN interface vlan1, andenter VLAN interface configuration mode.ZXR10(config)#interface vlan 1ZXR10(config-if)#

RelatedCommands

exit

end

namePurpose 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

SyntaxDescription

<vlan-name> VLAN name, not more than 32 characters, itstarts with a character

Defaults VLAN0001 is the alias of vlan 1; VLAN0100 is the default alias ofvlan 100, and so on.

Instructions The VLAN alias cannot be the same as that of other VLAN, it mustnot be configured to be the default name of any other VLANs (evenif the VLAN does not exist).

Example This example describes how to create vlan 2 and set its alias to v2.ZXR10(config)#vlan 2ZXR10(config-vlan)#name v2

RelatedCommands

show vlan

show qinqPurpose Use this command to display information about QinQ configuration

on an interface.

Command Modes All modes except user EXEC

Syntax show qinq [<interface-name>]

Confidential and Proprietary Information of ZTE CORPORATION 23

Page 32: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

SyntaxDescription

<interface-name> Name of the specified interface

Instructions QinQ configuration information of all interfaces is displayed if thiscommand has no parameter.

Example � This example describes how to display QinQ configuration in-formation of all interfaces.ZXR10#show qinqInterface QinqMode QinqId Pvidfei_1/1 normal 0x8100 1Fei_1/2 uplink 0x9100 1fei_1/3 customer 0x9100 1

� This example describes how to display QinQ configuration in-formation of a given interface.ZXR10#show qinq fei_1/1Interface QinqMode QinqId Pvidfei_1/1 normal 0x8100 1

The displayed information descriptions are displayed as fol-lows.

Field Description

Interface Interface name

QinqMode QinQ mode of the interface

QinqId QinQ ID of the interface

Pvid PVID

RelatedCommands

switchport qinq

show vlanPurpose 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>]

SyntaxDescription

brief Displays major information about a VLAN

access Displays the access port of the VLAN

trunk Displays the trunk port of the VLAN

hybrid Displays the hybrid port of the VLAN

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

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

24 Confidential and Proprietary Information of ZTE CORPORATION

Page 33: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

Instructions All information about the VLAN is displayed if this command hasno parameter.

Example � This example describes how to display all information aboutthe VLAN.ZXR10#show vlanVLAN Name Status Said MTU IfIndex PvidPorts UntagPorts TagPorts1 v1 active 1400 1 fei_1/1 fei_1/2

� This example describes how to display major information abouta VLAN.ZXR10#show vlan briefVLAN Name Status PvidPorts UntagPorts TagPorts1 v1 active fei_1/1 fei_1/2”

The displayed field descriptions are shown below.

Field Description

VLAN VLAN ID

Name VLAN name

PvidPorts Port whose PVID is the specified VLAN

UntagPorts untag port of the VLAN

TagPorts tag port of the VLAN

show vlan private-mapPurpose Use this command to display information about the configuration

of the private VLAN.

Command Modes All modes except user EXEC

Syntax show vlan private-map [<session id>]

SyntaxDescription

<session id> Session ID of the designated PVLAN

Instructions If there is no parameter after this command, information aboutthe configuration of isolate/promicuous ports of all sessions is dis-played.

Example � This example describes how to display information about theconfiguration of all private VLANs.ZXR10#show vlan private-mapSession_id Isolate_Ports Promis_Ports-----------------------------------------1 fei_1/1 fei_2/12 fei_1/2 fei_2/2

� This example describes how to display information about theconfiguration of a private VLAN.ZXR10#show vlan private-map 1Session_id Isolate_Ports Promis_Ports-----------------------------------------1 fei_1/1 fei_2/1

The displayed field descriptions are displayed as follows.

Confidential and Proprietary Information of ZTE CORPORATION 25

Page 34: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Field Description

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

Isolate port Isolate port

Promis port Promiscuous port

show vlan protocol-mapPurpose Use this command to display information about the configuration

of the protocol-based VLAN partion.

Command Modes All modes except user EXEC

Syntax show vlan protocol-map [<session id>]

SyntaxDescription

<session id> Session ID of the designated PVLAN

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� If there is no parameter after this command, information aboutthe configuration of all protocol-based VLANs is displayed.

� The session ID is 1~12 for ZXR10 3900, and 1~16 for ZXR105900/T160G/T64G/T40G.

Example � This example describes how to display information about theconfiguration of all protocol-based VLANs.ZXR10#show vlan protocol-mapSession_no Frame-type Ethernet-type VLAN

1 ethernet2 0x0800 22 ethernet2 0x0900 3

� This example describes how to display information about theconfiguration of one protocol-based VLAN.ZXR10#show vlan protocol-map 1Session_no Frame-type Ethernet-type VLAN

1 ethernet2 0x0800 2

The displayed field descriptions are displayed as follows.

Field Description

Session_no Session number

Frame-type Frame type

Ethernet-type Ethernet encapsulation type

VLAN Native VLAN ID

26 Confidential and Proprietary Information of ZTE CORPORATION

Page 35: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

RelatedCommands

vlan protocol-map

show vlan subnet-mapPurpose Use this command to display information about the configuration

of the subnet-based VLAN.

Command Modes All modes except user EXEC

Syntax show vlan subnet-map [<session id>]

SyntaxDescription

<session id> Session ID of the designated PVLAN

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� If there is no parameter after this command, information aboutthe configuration of all subnet-based VLANs is displayed.

� The session ID is 1~12 for ZXR10 3900, and 1~256 for ZXR105900/T240G/T160G/T64G/T40G.

Example � This example describes how to display information about theconfiguration of all subnet-based VLANs.ZXR10#show vlan subnet-mapSession_no IpAddr IpMask VLAN1 10.1.0.0 255.255.0.0 22 10.2.0.0 255.255.0.0 3

� This example describes how to display information about theconfiguration of one subnet-based VLAN.ZXR10#show vlan subnet-map 1Session_no IpAddr IpMask VLAN1 10.1.0.0 255.255.0.0 2

The displayed field descriptions are displayed as follows.

Field Description

Session_no Session number

ipAddr Prefix of the subnet IP address

Mask Subnet mask

VLAN Native VLAN ID

RelatedCommands

vlan subnet-map

show vlan translatePurpose Use this command to display information about the configuration

of the VLAN translation.

Confidential and Proprietary Information of ZTE CORPORATION 27

Page 36: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Command Modes All modes except user EXEC

Syntax show vlan translate [<session id>]

SyntaxDescription

<session id> Session ID of the designated PVLAN

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� If there is no parameter after this command, information aboutthe configuration of all VLAN translations is displayed.

� ZXR10 3900 does not support this command.

Example � This example describes how to display information about theconfiguration of all VLAN translations.ZXR10#show vlan translateSession_no In_Port E_Port In_vlan E_vlan Advance Uplink-ports-------------------------------------------------------------1 gei_4/1 10-20 2 1 gei_4/22 gei_4/5 30 3 03 gei_4/6 6-7 10 0

� This example describes how to display information about theconfiguration of one VLAN translation.ZXR10#show vlan trans 1Session_no In_Port E_Port In_vlan E_vlan Advance Uplink-ports-------------------------------------------------------------1 gei_4/1 10-20 2 1 gei_4/2

The displayed field descriptions are displayed as follows.

Field Description

Session-no Session number

Ingress-port(In_Port)

Ingress port

egress-port(E_Port) Egress port

Ingress-vlan(In_vlan)

Ingress VLAN

Egress-vlan(E_vlan) Egress VLAN

Advance Uplink-port symbol

Uplink-ports Uplink port

RelatedCommands

vlan translate

swicthportPurpose Use this command to set batch processing for VLAN ports.

Command Modes VLAN configuration

Syntax switchport {pvid | tag | untag}<port-list>

28 Confidential and Proprietary Information of ZTE CORPORATION

Page 37: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

no switchport {pvid | untag | tag}<port-list>

SyntaxDescription

pvid Sets the PVID of a port

tag Sets the port in the VLAN to untag

untag Sets the port in the VLAN to tag

<port-list> Port list

Instructions The configuration of the PVID takes effect o0n all ports. The config-uration of the tag port takes effect on ports in trunk/hybrid mode.The configuration of the untag port takes effect on hybrid ports.If the mode is wrong, the system prompts error information forusers.

Example This example describes how to set the PVID of ports 1~10 on theline interface board fei_1 to 2.ZXR10(config)#vlan 2ZXR10(config-vlan)#switchport pvid fei_1/1-10

RelatedCommands

show vlan

switchport access vlanPurpose Use this command to add the access port to some VLAN. If the

VLAN does not exist, it is created. Remove the access port from aVLAN with the no form of this command.

Command Modes Interface configuration

Syntax switchport access vlan {<vlan-id>|<vlan-name>}

no switchport access vlan

SyntaxDescription

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

<vlan-name> VLAN name

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

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

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

Confidential and Proprietary Information of ZTE CORPORATION 29

Page 38: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show vlan

switchport hybrid native vlanPurpose Use this command to configure the native VLAN for the hybrid port.

If the VLAN does not exist, it is created. Restore default with theno form of this command.

Command Modes Interface configuration

Syntax switchport hybrid native vlan {<vlan-id>|<vlan-name>}

no switchport hybrid native vlan

SyntaxDescription

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

<vlan-name> VLAN name

Defaults The native VLAN is VLAN 1 by default.

Instructions � The ports on which this command is executed must be in hybridmode. Otherwise, the system prompts error information.

� Use the show running-config command to display the con-figuration on the interface.

Example This example describes how to set the native VLAN of the hybridport fei_1/1 to VALN 10.ZXR10(config)#interface fei_1/1ZXR10(config-if)#switch hybrid native vlan 10

RelatedCommands

show vlan

switchport hybrid vlanPurpose Use this command to add a hybrid port to a VLAN. If the VLAN

does not exist, it is created. Remove a hybrid port from a VLANwith the no form of this command.

Command Modes Interface configuration

Syntax switchport hybrid vlan <vlan-list>[tag | untag]

no switchport hybrid vlan <vlan-list>

SyntaxDescription

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

tag Ports labeled as tag

untag Ports labeled as untag

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

30 Confidential and Proprietary Information of ZTE CORPORATION

Page 39: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

Instructions � The ports on which this command is executed must be in hybridmode. Otherwise, the system prompts error information.

� Use the show running-config command to display informa-tion about the configuration on the interface. If there is notag/untag keyword after this command, it is tag by default.

� At most 4000 VLANs can be configured on each interface. Un-der this circumstance, the efficiency of batch deletion is low.There are at most 8 ports on which 4000 VLANs are configured.If the number of these ports exceeds 8, the system gives awarning.

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

RelatedCommands

show vlan

switchport modePurpose 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

SyntaxDescription access Sets a port to access (mode)

trunk Sets a port to trunk (mode)

hybrid Sets a port to hybrid (mode)

Defaults The Layer 2 port works in access mode.

Instructions If a trunk/hybrid port is changed to an access port, it is necessaryto delete the tag and untag VLANs of this port at the same timebecause the access port can belong to one VLAN only.

Example This example describes how to set the VLAN link mode of the in-terface fei_1/1 to trunk.ZXR10(config)#interface fei_1/1ZXR10(config-if)#switchport mode trunk

RelatedCommands

show vlan

show interface

Confidential and Proprietary Information of ZTE CORPORATION 31

Page 40: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

switchport qinq (GlobalConfiguration)

Purpose Use this command to configure the QinQ function for the desig-nated port.

Command Modes Global configuration

Syntax switchport<port-list> qinq {normal | uplink | customer | tpid<tpid>}

SyntaxDescription

<port-list> Port list

normal Sets a port to normal

uplink Sets a port to uplink

customer Sets a port to customer

tpid <tpid> Tag protocol identifier, a hexadecimal number,range: 0x0001~0xffff, default: 0x8100

Defaults The port is in normal mode by default.

Instructions The QINQ attribute of the port is configured in batches. For ZXR103900, there is no tpid parameter in this command. For ZXR105900, the tpid parameter must not be modified if the port is innormal or customer mode.

Example This example describes how to set ports fei_1/1–2 in uplink mode,and the tpid to 0x9100.ZXR10(config)#switchport fei_1/1-2 qinq uplinkZXR10(config)#switchport fei_1/1-2 qinq tpid 0x9100

RelatedCommands

show qinq

switchport qinq (PortConfiguration)

Purpose Use this command to set the QinQ function for the port.

Command Modes Interface configuration

Syntax switchport qinq {normal | uplink | customer | tpid <tpid>}

SyntaxDescription

normal Sets a port to normal

uplink Sets a port to uplink

32 Confidential and Proprietary Information of ZTE CORPORATION

Page 41: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

customer Sets a port to customer

tpid <tpid> Tag protocol identifier, a hexadecimal number,range: 0x0001~0xffff, default: 0x8100

Defaults The port is in normal mode by default.

Instructions � The switchport qinq command in interface configurationmode takes effect on this port only, while the switchportqinq command in global configuration mode can designatemultiple ports once.

� ZXR10 3900 does not support this command. For ZXR10 5900,the parameter tpid cannot be modified if the port mode is innormal or customer mode.

Example This example describes how to set the port fei_1/1 in uplink mode,and the tpid to 0x9100.ZXR10(config)#interface fei_1/1ZXR10(config-if)#switchport qinq uplinkZXR10(config-if)#switchport qinq tpid 0x9100

RelatedCommands

show qinq

switchport trunk native vlanPurpose Use this command to set the native VLAN for the trunk port. If

the VLAN does not exist, it is created. Restore default with the noform of this command.

Command Modes Interface configuration

Syntax switchport trunk native vlan {<vlan-id>|<vlan-name>}

no switchport trunk native vlan

SyntaxDescription

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

<vlan-name> VLAN name

Defaults The native VLAN is VLAN 1 by default.

Instructions This command takes effect on trunk ports only.

Example This example describes how to set the native VLAN of the trunkport fei_1/1 to vlan 10.ZXR10(config)#interface fei_1/1ZXR10(config-if)#switchport trunk native vlan 10

Confidential and Proprietary Information of ZTE CORPORATION 33

Page 42: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show vlan

switchport trunk vlanPurpose Use this command to add a trunk port to some VLAN. If the VLAN

does not exist, it is created. Remove the trunk port from a VLANwith the no form of this command.

Command Modes Interface configuration

Syntax switchport trunk vlan <vlan-list>

no switchport trunk vlan <vlan-list>

SyntaxDescription

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

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

Instructions The port on which this command is executed must be in trunkmode. There are at most 4000 VLANs configured on each port.Before 4000 VLANs are bound on the interface, make sure thatthere is no operation of batch deletion or creation. If there is suchoperation of batch deletion or creation, execute the binding in 2or 3 minutes to avoid the VLAN queue to be full. Otherwise, thesystem prompts busy alarms.

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

RelatedCommands

show vlan

vlan (Global Configuration)Purpose Use this command to create a VLAN and enter VLAN configuration

mode. Remove the VLAN with the no form of this command.

Command Modes Global configuration

Syntax vlan {<vlan-id>|<vlan-name>}

no vlan {<vlan-id>|<vlan-name>}

SyntaxDescription

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

<vlan-name> VLAN name

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

34 Confidential and Proprietary Information of ZTE CORPORATION

Page 43: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

Example This example describes how to create VLAN 2.ZXR10(config)#vlan 2ZXR10(config-vlan)#

RelatedCommands

show vlan

vlan (VLAN DatabaseConfiguration)

Purpose Use this command to create VLANs in batches. Delete VLANs inbatches with the no form of this command.

Command Modes VLAN database configuration

Syntax vlan <vlan-list>[name <vlan-name>]

no vlan <vlan-list>[name]

SyntaxDescription

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

name <vlan-name> VLAN name

Instructions The alias is configured for single VLAN only. It is not allowed thatmultiple VLANs have the same alias. When users delete a batchof 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 configurationmode, and create VLANs 2~100.ZXR10#vlan databaseZXR10(vlan-db)#vlan 2-100

RelatedCommands

vlan database

vlan databasePurpose 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 inbatch. Notice that after the batch configuration, the operation ofhot-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 betweencontinuous batch operations.

Example This example describes how to enter VLAN database configurationmode.ZXR10#vlan database

Confidential and Proprietary Information of ZTE CORPORATION 35

Page 44: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

ZXR10(vlan-db)#

vlan listPurpose Use this command to enter VLAN global configuration mode.

Command Modes Global configuration

Syntax vlan list <vlan-list>

SyntaxDescription

<vlan-list> Creates the VlAN identifier.It can beconfigured in batches

Instructions After the enter of this mode , VLANs can be created or deleted inbatch. Notice that after the batch configuration, the operation ofhot-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 configurationmode.ZXR10(config)#vlan list

vlan private-mapPurpose Use this command to set the isolate and promiscuous ports for

the Private VLAN. Remove the setting with the no form of thiscommand.

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>><promis <port-list>>

no vlan private-map session-id <id>

36 Confidential and Proprietary Information of ZTE CORPORATION

Page 45: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

SyntaxDescription

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

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

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

community<port-list>

Community port, it may be created in batches

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

Instructions � ZXR10 6900 supports the PVLAN and change commands withVLANs. It also supports the configuration of the communityports. For ZXR10 6900, community port only supports PVLANbased on the port, it does not support PVLAN based on theVLAN.

� ZXR10 5900 does not support the PVLAN command withVLANs. But the platform version 4.8.20 and upgrade versionsof ZXR10 5900 support the change command.

� At most one session and not more than eight promiscuous portscan be configured for ZXR10 T160G.

� ZXR10 3900 can have one promiscuous port at most, and it isrequired that isolate and promiscuous ports in the session beeffective at the same time. At present, isolate and promiscuousports belong to one session only. When there is only one isolateport, this port must not be deleted.

Example � This example describes how to create session 1 and configureisolate and promiscuous ports for ZXR10 5900.ZXR10(config-vlan)#vlan private-map session-id 1ZXR10(config-vlan)#vlan private-map session-id 1isolate fei_1/1-2ZXR10(config-vlan)#vlan private-map session-id 1promis fei_2/1-2ZXR10(config-vlan)#vlan private-map session-id 100isolate fei_1/5 promis fei_1/6

� This example describes how to create session 1 and configureisolate, promiscuous and community ports for ZXR10 T160G.ZXR10(config-vlan)#vlan private-map session-id 1ZXR10(config-vlan)#vlan private-map session-id 1isolate fei_1/1-2ZXR10(config-vlan)#vlan private-map session-id 1promis fei_2/1-2ZXR10(config-vlan)#vlan private-map session-id 1community fei_3/1ZXR10(config-vlan)#vlan private-map session-id 1 vlan 5-9ZXR10(config-vlan)#vlan private-map cha add 1 isolate fei_1/3-4ZXR10(config-vlan)#vlan private-map cha del 1 promis fei_2/1ZXR10(config-vlan)#vlan private-map cha add 1 community fei_3/2ZXR10(config-vlan)#vlan private-map cha del 1 community fei_3/1ZXR10(config-vlan)#vlan private-map session-id 100 isolatefei_1/5 promis fei_1/6 vlan 300ZXR10(config-vlan)#vlan private-map session-id 200 isolatefei_2/5 promis fei_2/6 community fei_2/7

� This example describes how to create session 1 and configureisolate and promiscuous ports for ZXR10 3900.ZXR10(config-vlan)#vlan private-map session-id 1 isolatefei_1/1-2 promis fei_2/1

Confidential and Proprietary Information of ZTE CORPORATION 37

Page 46: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show vlan private-map

vlan protocol-mapPurpose 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>}

SyntaxDescription

session-no<session-no>

Session number, the different total numberof sessions is supported depending onthe different project. It is 1~12 forZXR10 3900/3200, 1~16 for ZXR10T240G/T160G/5900

ethernet2 Ethernet II

llc LLC type

snap SNAP type

<0xHHHH> Ethernet encapsulation type, such as 0x0800and 0x0806

<vlanId> VLAN ID

<name> VLAN name

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� At present, the VLAN division based on multiple protocol typescan be configured for one VLAN.

� The Ethernet encapsulation type cannot be 0x8100.

Example This example describes how to set Ethernet 2 and IPv4 for VLAN2.ZXR10(config)# vlan protocol-map session-no 1 ethernet20x0800 vlan 2

RelatedCommands

show vlan protocol-map

vlan protocol-map(PortEnabling)

Purpose Use this command to enable/disable protocol-based VLAN divisionon the interface.

Command Modes Interface configuration

38 Confidential and Proprietary Information of ZTE CORPORATION

Page 47: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

Syntax vlan protocol-map {enable | disable}

SyntaxDescription

enable Enables this function on the interface

disable Disables this function on the interface

Defaults This function is enabled by default.

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to enable the protocol-based VLANdivision on the interface fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-vlan)#vlan protocol-map enable

RelatedCommands

show vlan protocol-map

vlan qinqPurpose 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>{ovlan {<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>{[ovlan {<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>{ovlan {<vlanId>|<name>}[priority <priority-list>]| untag}

no vlan qinq session-no <session_id>

SyntaxDescription

For ZXR10 T160G:

<session_id> Session ID, range: 1~1000

customer-port<interface-name>

Customer port

uplink-port<interface-name>

Uplink port

Confidential and Proprietary Information of ZTE CORPORATION 39

Page 48: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

<vlan-list> Ingress VLAN list

<vlanId> External label VLAN ID

<name> External label VLAN name

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

For ZXR10 3900:

<session_id> Session ID, range: 1~100

customer-port<interface-name>

Customer port

uplink-port<interface-name>

Uplink port

<vlan-list> External label VLAN ID

<vlanId> External label VLAN name

customerbrg-port<interface-name>

Bridge port of the customer port

uplinkbrg-port<interface-name>

Bridge port of the uplink port

For ZXR10 5900:

<session_id> Session ID, range: 1~78

customer-port<interface-name>

Customer port

uplink-port<interface-name>

Uplink port

<vlan-list> External label VLAN ID

<vlanId> External label VLAN name

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� The SVLAN configuration uses different formats for ZXR10T160G 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, attachthe external label ovlan 1000 to packets from invlans 100~200and 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/1uplinkbrg-port gei_5/2 invlan 100-200 ovlan 1000 priority mapping

for ZXR10 39 series:ZXR10(config)# vlan qinq session-no 1 customerbrg-port gei_5/1uplinkbrg-port gei_5/2 invlan 100-200 ovlan 1000 customerbrg-portgei_5/3 uplinkbrg-port gei_5/4 mapping

40 Confidential and Proprietary Information of ZTE CORPORATION

Page 49: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

� This example describes how to create session 2, set the cus-tomer port to gei_5/1, set the uplink port to gei_5/2, not attachthe external tag to packets from invlans 100~200 and transmitthem in single-tagged mode.

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

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

RelatedCommands

show vlan qinq

vlan subnet-mapPurpose 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>

SyntaxDescription

session-no<session-no>

Session number, the different total numberof sessions is supported depending on thedifferent project. It is 1~12 for ZXR103900/3200, 1~128 for ZXR10 T160G/5900

<ipaddr> Prefix of the subnet IP address

<mask> Subnet mask

<vlanId> VLAN ID

<name> VLAN name

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� At present, multiple subnets can be configured for one VLAN.The subnet division of multiple VLANs is configured accordingto the longest match rule.

Example This example describes how to set a subnet 10.1.0.0/16 dividedfor VLAN 2.ZXR10(config)#vlan subnet-map session-no 1 10.1.0.0 255.255.0.0vlan 2

Confidential and Proprietary Information of ZTE CORPORATION 41

Page 50: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show vlan subnet-map

vlan subnet-map (PortEnabling)

Purpose Use this command to enable/disable subnet-based VLAN divisionon the interface.

Command Modes Interface configuration

Syntax vlan subnet-map {enable | disable}

SyntaxDescription

enable Enables this function on the interface

disable Disables this function on the interface

Defaults This function is enabled on the interface by default.

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to disable subnet-based VLAN divisionon interface fei_1/1.ZXR10(config)#int fei_1/1ZXR10(config-vlan)#vlan subnet-map disable

RelatedCommands

show vlan subnet-map

vlan translatePurpose 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>][uplink-port <interface-name>]]

The command format on ZXR10 T160G:

vlan translate session-no <session_id>[ingress-port <interface-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-name>}

no vlan translate session-no <session_id>

42 Confidential and Proprietary Information of ZTE CORPORATION

Page 51: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 3 VLAN Configuration

SyntaxDescription

<session_id> Session identifier, range: 1~1024

<interface-name> Ingress port

<vlan-list> Ingress VLAN list

<vlanId> Egress VLAN ID

Defaults The VLAN translation function is disabled by default.

Instructions � ZXR10 5900 does not support VLAN translation on the uplinkinterface.

� At present, this function is supported only by some line cards ofZXR10 5900 and ZXR10 T160G (including 12GE+4GE (electri-cal interface), 24GE+4GE (electrical interface) and 12GE+4GE(electrical interface) + Ezchip).

� In the case of ingress port and ingress VLAN matching, ZXR10T160G can configure at most 1000 rules and ZXR10 5900 cansupport 768 rules (the egress VLAN is unique).

� For ZXR10 5900, if a VLAN in some rule of SVLAN is configuredas the Invlan of some port, any other VLAN translation entriesmust not configure this VLAN translation rule of this port.

� If the VLAN translation function is configured, the ingress portreplaces the VLAN ID of the received packet according to theVLAN translation principle.

� The new function of VLAN translation is launched on ZXR106900, that is, ZXR10 6900 supports the function of egressVLAN translation.

Example � This example describes how to create session 1, and translateVLANs 1~5 of gei_1/1 to VLAN 100.ZXR10(config)# vlan translate session-no 1 ingress-port gei_1/1ingress-vlan 1-5 egress-vlan 10

� This example describes how to create session 2, and translateVLANs 20~25 on the interface gei_1/2 to VLAN 200.ZXR10(config)#vlan translate session-no 2 ingress-port gei_1/2ingres-vlan 20-25 egress-vlan 200ZXR10(config)#vlan translate session-no 100 ingress-portgei_1/3 ingress-vlan 10-12 egress-vlan 20 advance gei_1/4

RelatedCommands

show vlan translate

Confidential and Proprietary Information of ZTE CORPORATION 43

Page 52: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

This page is intentionally blank.

44 Confidential and Proprietary Information of ZTE CORPORATION

Page 53: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 4

SuperVLANConfiguration

Table of Contentsarp-broacast .....................................................................45interface supervlan ............................................................46inter-subvlan-routing .........................................................46ip supervlan pool ...............................................................47ip-pool-filter .....................................................................48show supervlan .................................................................48show supervlan ip-pool.......................................................49subvlan............................................................................50supervlan .........................................................................51supervlan inter-subvlan-routing...........................................52

arp-broacastPurpose 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}

SyntaxDescription

enable Enables broadcast between sub-VLANs

disable Disables broadcast between sub-VLANs

Defaults The SuperVLAN is not allowed to make ARP broadcast for all itssub-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 | disable} in Superpvc interface configuration mode to enable ordisable SUPERPVC implement ARP broadcast to its all ATM subinterfaces.

Example This example describes how to enable ARP broadcast for SUPER-VLAN 1.

Confidential and Proprietary Information of ZTE CORPORATION 45

Page 54: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

ZXR10(config)#interface supervlan1ZXR10(config-if)#arp-broadcast enable

RelatedCommands

show interface

show supervlan

interface supervlanPurpose Use this command to create a SuperVLAN and enter SuperVLAN

configuration mode. Remove the SuperVLAN with the no form ofthis command.

Command Mode Global configuration

Syntax interface {supervlan <supervlan-id>|<supervlan-name>}

no interface {supervlan <supervlan-id>|<supervlan-name>}

SyntaxDescription

supervlan<supervlan-id>

SuperVLAN ID, range: 1~255

<supervlan-name> SuperVLAN name

Instructions � <supervlan-name> is in the format of “SuperVLAN” + Super-VLAN ID, such as supervlan10.

� For T1200/T600/T128/T64E, the range of <supervlan-id> is1~4096.

� For switch series, such as ZXR10 5928, the range of <supervlan-id> is 1~255.

� For the router series, use the command interface {supervlan<supervlan-id>|<supervlan-name>} to create a SUPERVC in-terface. Use the command no interface {supervlan <supervlan-id>|<supervlan-name>} to remove the SuperPVC inter-face. The parameter <supervlan-id> ranges from 1 to 64.

Example This example describes how to create the SuperVLAN 10 and enterSuperVLAN configuration mode.ZXR10(config)#interface supervlan 10ZXR10(config-if)#

RelatedCommands

exit

end

inter-subvlan-routingPurpose Use this command to enable/disable routing between sub-VLANs.

Command Modes SuperVLAN interface

Syntax inter-subvlan-routing {enable | disable}

46 Confidential and Proprietary Information of ZTE CORPORATION

Page 55: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 4 SuperVLAN Configuration

SyntaxDescription

enable Enables routing between sub-VLANs

disable Disables routing between sub-VLANs

Defaults The routing between sub-VLANs is enabled.

Instructions � View this configuration with the show running-config com-mand on the SuperVLAN interface.

� Use this command under SUPERVC interface mode to enableor disable the routing function between ATM sub interfaces onrouter.

Example This example describes how to enable routing between sub-VLANsfor SuperVLAN 1.ZXR10(config)#interface supervlan1ZXR10(config-if)#inter-subvlan-routing enable

RelatedCommands

show interface

show supervlan

ip supervlan poolPurpose 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>

SyntaxDescription

< 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 hasbeen bound to the Supervc interface, use the ip superpvcpool < 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-address > command to delete a configured IP pool on the inter-face or sub interface. Use the no supervlansuperpvc poolall command to delete all IP-pools on the interface or sub in-terface.

Example This example describes how to bind the IP address segment from192.168.1.1 to 192.168.1.128 to VLAN 4.ZXR10(config)#vlan 4ZXR10(config-vlan)#ip supervlan pool 192.168.1.1 192.168.1.128

Confidential and Proprietary Information of ZTE CORPORATION 47

Page 56: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show supervlan ip-pool

ip-pool-filterPurpose Use this command to enable/disable the SuperVLAN IP POOL fil-

tering.

Command Modes SuperVLAN interface

Syntax ip-pool-filter {enable | disable}

SyntaxDescription

enable Enables the filtering of the communicationaddress between sub-VLANs

disable Disables the filtering of the communicationaddress between sub-VLANs

Defaults The SuperVLAN IP POOL filtering is enabled.

Instructions � After the SuperVLAN IP POOL is set, packets which are not inthe address segment are discarded.

� View this configuration with the show running-config com-mand on the SuperVLAN interface.

� Use this command Superpvc in interface configuration mode todisable or enable Superpvc IP POOL filter function.

Example This example describes how to enable the filtering of the commu-nication address between sub-VLANs on the SuperVLAN interface.ZXR10(config)#interface supervlan1ZXR10(config-if)#ip-pool-filter enable

RelatedCommands

ip supervlan pool

show interface

show supervlan

show supervlanPurpose Use this command to display information about SuperVLAN con-

figurations.

Command Modes All modes except user EXEC

Syntax show supervlan [<supervlan-id>]

SyntaxDescription

<supervlan-id> SuperVLAN ID

Instructions � Without the parameter <supervlan-id>, this commanddisplays information about relevant configurations of all Su-perVLAN interfaces.

48 Confidential and Proprietary Information of ZTE CORPORATION

Page 57: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 4 SuperVLAN Configuration

� For ZXR10 T1200/T600//T128/T64E, the parameter <supervlan-id> ranges from 1 to 4096.

� For the switch series, such as ZXR10 5928, the parameterranges from 1 to 255.

� Use the show supervlan [<supervlan-id>] command on therouter to display information about the configuration of Super-PVC. <supervlan-id> ranges from 1 to 64.

Example � This example describes how to displays information about con-figurations of all SuperVLAN interfaces.ZXR10(config)# show supervlan 2interface supervlan2inter-subvlan-routing enablearp-broadcast disableip-pool-filter enablefei_1/2.1 inner-vlan-id 1 outer-vlan-id 2fei_1/2

The displayed information descriptions are displayed as fol-lows.

Field Description

inter-subvlan-routing

Enables or disables routing betweensub-vlans

subvlan Sub-Vlans under the supervlan interface

Arp-broadcast ARP broadcast status

Ip-pool-filter IP POOL filter flag

SuperVLAN Supervlan identifier

fei_1/2.1 inner-vlan1 outer-vlan 2

The sub interface bound. If it is a virtualinterface, then the encapsulated VLANID and QinQ are given. If it is a physicalinterface, there is no encapsulated content

� The information about VLAN range or QinQ range is displayedas follows.ZXR10(config)#show supervlan 2interface supervlan2inter-subvlan-routing enablearp-broadcast disableip-pool-filter enablefei_1/2.2 inner-vlan 20-40 outer-vlan 60-80

show supervlan ip-poolPurpose Use this command to display the IP POOL bound to the VLAN.

Command Modes All modes

Syntax show supervlan ip pool

Instructions Use show superpvc ip-pool command on the router to displaythe IP-pool configuration on ATM sub interface of Superpvc.

Confidential and Proprietary Information of ZTE CORPORATION 49

Page 58: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Example This example describes how to display the IP pool bound to theVLAN.ZXR10(config)#show supervlan ip-poolSession-no Add-begin Add-end InvId OutvID Intf SupervlanNum1 192.168.1.1 192.168.1.128 4 1 fei_1/1 2

The displayed field descriptions are shown below.

Session-no Session number

Address-begin Start address of the IP POOL

Address-end End address of the IP POOL

InvId Inner layer VLAN ID, it is a sub VLAN numberfor the switch

OutvID Outer layer VLAN ID for QinQ

Intf Interface name, when the switch binds thesub VLAN, this is empty.

SupervlanNum Supervlan number

RelatedCommands

ip supervlan pool

subvlanPurpose Use this command to bind VLANs to a designated SuperVLAN in

batches. Cancel the binding of these VLANs with the no form ofthis command.

Command Modes SuperVLAN interface

Syntax subvlan <vlan-id>

no subvlan <vlan-id>

SyntaxDescription

<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 canbe 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 SuperVLAN1.ZXR10(config)#interface supervlan1ZXR10(config-if)#subvlan 2-100

50 Confidential and Proprietary Information of ZTE CORPORATION

Page 59: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 4 SuperVLAN Configuration

RelatedCommands

show supervlan

supervlanPurpose Use this command to bind some VLAN or physical interface to a

designated SuperVLAN. Cancel the binding of the VLAN or physicalinterface with the no form of this command.

Command Modes VLAN configuration/Interface configuration

Syntax supervlan <supervlan-id>

no supervlan

SyntaxDescription

<supervlan-id> SuperVLAN ID

Instructions � For ZXR10 T1200/T600/T128/T64E, the parameter <supervlan-id> ranges from 1 to 4096.

� For the switch series, such as ZXR10 5928, the parameter <supervlan-id> ranges from 1 to 255.

� The VLAN to be bound must not have the Layer 3 interface onthe switch.

� The physical interface can be bound with SuperVLAN directly.The sub interface has to be encapsulated by VLANID or QinQ.

� SmartGroup interfaces or subinterfaces can also be boundto the SuperVLAN by directly executing the SuperVLANcommand in SmartGroup interface/subinterface mode. Smart-Group interfaces must be encapsulated with VLAN ID or QinQbefore they are bounded.

� A bridged ATM sub interface can be bound with Superpvc byusing the Superpvc <superpvc-id> command on the router.The parameter <supervlan-id> ranges from 1 to 64.

Example This example describes how to bind VLAN 2 to SuperVLAN1.ZXR10(config)#vlan 2ZXR10(config-vlan)#supervlan 1ZXR10(config-vlan)exitZXR10(config)#interface fei_1/1ZXR10(config-subif)#supervlan 1ZXR10(config-subif)exitZXR10(config)#interface fei_1/1.1ZXR10(config-subif)qinq in 1 ex 1ZXR10(config-subif)#supervlan 1

Confidential and Proprietary Information of ZTE CORPORATION 51

Page 60: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show supervlan

supervlan inter-subvlan-routing

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}

SyntaxDescription

enable Enables routing between sub-VLANs

disable Disables routing between sub-VLANs

Defaults The routing between sub-VLANs is enabled by default. This com-mand is used only on the switch.

Instructions � View this configuration with the show running-config com-mand on the SuperVLAN interface.

� This command can be used only on the switch.

Example This example describes how to enable routing function betweensub-VLANs.ZXR10(config)#supervlan inter-subvlan-routing enable

RelatedCommands

show interface

show supervlan

52 Confidential and Proprietary Information of ZTE CORPORATION

Page 61: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 5

STP Configuration

Table of Contentsinstance ...........................................................................53name...............................................................................54revision............................................................................55show spanning-tree inconsistentports...................................55show spanning-tree instance...............................................56show spanning-tree interface ..............................................56show spanning-tree mst configuration ..................................57show spanning-tree statistics ..............................................57show spanning-tree transparent ..........................................58spanning-tree ...................................................................59spanning-tree bpduguard ...................................................59spanning-tree edged-port ...................................................60spanning-tree forward-delay ...............................................61spanning-tree guard ..........................................................61spanning-tree hello-time ....................................................62spanning-tree linktype .......................................................62spanning-tree max-age ......................................................63spanning-tree mode...........................................................63spanning-tree mst configuration ..........................................64spanning-tree mst hmd5-digest...........................................64spanning-tree mst hmd5-key ..............................................65spanning-tree mst instance (Global Configuration) .................65spanning-tree mst instance (Port Configuration) ....................66spanning-tree mst max-hops ..............................................67spanning-tree packet-type..................................................67spanning-tree path-cost .....................................................68

instancePurpose Use this command to create an instance in MSTP mode, and map

it to the corresponding VLAN table. Remove the instance with theno form of this command.

Command Modes MSTP configuration

Syntax instance <instance> vlans <vlan-id>

no instance <instance>

Confidential and Proprietary Information of ZTE CORPORATION 53

Page 62: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

SyntaxDescription

<instance> Instance number, range: 1~63

vlans <vlan-id> VLAN mapping table to which the instancecorresponds, in the range of 1 to 4094

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� 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 andconfiguration digest (16-byte-long signature generated by theVLAN mapping table to which the instance corresponds andprocessed 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 toVLANs 10~20.ZXR10(config)#spanning-tree mst configurationZXR10(config-mstp)#instance 1 vlans 10-20

RelatedCommands

show spanning-tree mst configuration

spanning-tree mst configuration

namePurpose 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

SyntaxDescription

<string> Configuration name, not more than 32characters

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

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� In MSTP configuration mode, to configure multiple switches inone area, this parameter has to be configured so that config-urations of these switches are consistent.

Example This example describes how to set the MST configuration name tozte.ZXR10(config)#spanning-tree mst configurationZXR10(config-mstp)#name zte

RelatedCommands

show spanning-tree mst configuration

spanning-tree mst configuration

54 Confidential and Proprietary Information of ZTE CORPORATION

Page 63: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

revisionPurpose 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

SyntaxDescription

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

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� In MSTP configuration mode, to configure multiple switches inone 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 versionnumber to 10.ZXR10(config)#spanning-tree mst configurationZXR10(config-mstp)#revision 10

RelatedCommands

show spanning-tree mst configuration

spanning-tree mst configuration

show spanning-treeinconsistentports

Purpose Use this command to display information about the port blockedby 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 thiscommand.

Example This example describes how to display information about the portblocked by the root-port or loop protection function.ZXR10#show spanning-tree inconsistentportsMst Instance interfaceName name Inconsistency----------------------------------------------MST00 fei_1/1 Root Inconsistent

RelatedCommands

show spanning-tree instance

show spanning-tree interface

Confidential and Proprietary Information of ZTE CORPORATION 55

Page 64: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

show spanning-tree instancePurpose Use this command to display information about an instance and

its ports.

Command Mode All modes

Syntax show spanning-tree instance <instance>

SyntaxDescription

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

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to display information about instances0 and 1.ZXR10#show spanning-tree instance 0Spanning tree enabled protocol mstpRoot ID: Priority 32768; Address 00-0d-0d-f0-01-01

Hello Time 2 sec; Max Age 20 secForward-Delay 15sec;

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

BridgeID: Priority 32768; Address 00-0d-0d-f0-01-02Hello Time 2 sec; Max Age 20 secForward-Delay 15 sec; MaxHops 19

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

ZXR10#show spanning-tree instance 1Spanning tree enabled protocol mstpRegRootID: Priority 32768; Address 00-0d-0d-f0-01-01

Hello Time 2 sec; Max Age 20 secForward-Delay 15 sec; RemainHops 19

BridgeID: Priority 32768; Address 00-0d-0d-f0-01-02Hello Time 2 sec; Max Age 20 secForward-Delay 15 sec; MaxHops 19

Interface Port IDName Prio.Nbr Cost Sts Role LinkType Bound--------------------------------------------------------------Fei_1/1 128.31 200000 forward root p2p MSTPZXR10#

RelatedCommands

show spanning-tree interface

show spanning-tree interfacePurpose Use this command to display information about all instances of a

designated port.

Command Modes All modes

Syntax show spanning-tree interface <port-name>

56 Confidential and Proprietary Information of ZTE CORPORATION

Page 65: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

SyntaxDescription <port-name> Port name

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

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/1Mst Instance Port IDName Prio.Nbr Cost Sts Role----------------------------------------------------------------MST00 128.31 200000 forward rootMST01 112.31 200000 forward root----------------------------------------------------------------ZXR10#

RelatedCommands

show spanning-tree instance

show spanning-tree mstconfiguration

Purpose Use this command to display information about relevant configu-rations in MSTP mode.

Command Modes All modes

Syntax show spanning-tree mst configuration

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to display information about the cur-rent MST configuration.ZXR10#show spanning-tree mst configurationspanning-tree mode: [MSTP]transparent flag:DISABLEName: [000d0df00101]Revision: 0Packet-type : IEEE-typeHmd5-key: 0x13ac06a62e47fd51f95d2ba243cd0346Instance Vlans mapped------------------------------------------------0 1-9,21-40941 10-20ZXR10#

RelatedCommands

show spanning-tree instance

show spanning-tree interface

show spanning-tree statisticsPurpose Use this command to display statistics of an STP port.

Command Modes All modes

Confidential and Proprietary Information of ZTE CORPORATION 57

Page 66: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Syntax show spanning-tree statistics <port-name>

SyntaxDescription <port-name> Port name

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to display statistics of the STP portfei_3/1.ZXR10#show spanning-tree statistics fei_3/1statistic of port fei_3/1----------------------------------------------------------BPDU-related parameters----------------------------------------------------------

port spanning tree enablestate forwardport_priority 128port_number 31path cost 200000designated_root 00-0d-0d-f0-01-01designated_ext_cost 0designated_int_cost 200000designated_bridge 00-0d-0d-f0-01-01designated_port 41

----------------------------------------------------------PORT based information & statistics----------------------------------------------------------

All bpdu’s xmitted 2All bpdu’s received 123Mst bpdu’s xmitted 2Mst bpdu’s received 123Rst bpdu’s xmitted 0Rst bpdu’s received 0config bpdu’s xmitted 0config bpdu’s received 0tcn bpdu’s xmitted 0tcn bpdu’s received 0

-----------------------------------------------------------spanningtree based information & statistics-----------------------------------------------------------

spanningtree type MSTPmulticast_mac_addr 01-80-c2-00-00-00bridge priority 32768bridge mac address 00-0d-0d-f0-01-01bridge hello time 2 secbridge forward delay 15 secbridge Max age 20 secbridge Max hop 20

------------------------------------------------------------ZXR10#

RelatedCommands

show spanning-tree instance

show spanning-tree interface

show spanning-treetransparent

Purpose Use this command to display the transparent transmission flag ofcurrent STP.

Command Modes All modes

58 Confidential and Proprietary Information of ZTE CORPORATION

Page 67: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

Syntax show spanning-tree transparent

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� After this command is configured, the chip does not send re-ceived BPDU packets to the CPU for processing, but directlybroadcasts them in the VLAN.

Example This example describes how to display the transparent transmis-sion flag of current STP.ZXR10#show spanning-tree transparenttransparent flag:DISABLE

RelatedCommands

spanning-tree transparent enable

spanning-treePurpose 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}

SyntaxDescription

enable Enables STP or includes a port into spanningtree calculation

disable Disables STP or excludes a port from spanningtree 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 thiscommand.

� If STP is disabled, the status of all ports that are physicallyup is Forwarding. Once a prot excluded from spanning treecalculation is physically up , the bottom forwarding status isForwarding.

Example � This example describes how to disable STP.ZXR10(config)#spanning-tree disable

� This example describes how to exclude the interface fei_3/1from spanning tree calculation.ZXR10(config)#interface fei_3/1ZXR10(config-if)#spanning-tree disable

spanning-tree bpduguardPurpose Use this command to configure the BPDU protection type of the

port.

Confidential and Proprietary Information of ZTE CORPORATION 59

Page 68: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Command Modes Interface configuration

Syntax spanning-tree bpduguard action {discard | shutdown}

no spanning-tree bpduguard action

SyntaxDescription

discard Discards the BPDU packet when it is receivedon the interface

shutdown Shutdowns the interface when a BPDU packetis received on the interface

Defaults There is no BPDU packet protection configuration on the port bydefault.

Instructions � The platform version 4.6.03B and update versions support thiscommand.

� With this command configured, the administrator prevents theport from the attack by BPDU.

Example This example describes how to configure the BPDU protection onthe interface fei_3/1 and shutdown the interface when a BPDUpacket is received on the interface.ZXR10(config)#interface fei_3/1ZXR10(config-if)#spanning-tree bpduguard action shutdown

RelatedCommands

show interface

spanning-tree edged-portPurpose 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 thiscommand.

� With this command configured, the administrator can set theport connected with the PC to an edged port. This interfaceis in forwarding status and can fast switch to the forwardingstatus.

Example This example describes how to configure the interface fei_3/1 tobe an edged port.ZXR10(config)#interface fei_3/1ZXR10(config-if)#spanning-tree edged-port enable

RelatedCommands

spanning-tree link-type

spanning-tree packet-type

60 Confidential and Proprietary Information of ZTE CORPORATION

Page 69: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

spanning-tree forward-delayPurpose 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

SyntaxDescription

<time> Forward delay time, in seconds, in the rangeof 4~30, default: 15 seconds

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to set the forward-delay time to 16seconds.ZXR10(config)#spanning-tree forward-delay 16

RelatedCommands

spanning-tree max-hops

spanning-tree hello-time

spanning-tree guardPurpose Use this command to configure the STP protection type, loop pro-

tection or root port protection of a port. Cancel the settings withthe 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>]

SyntaxDescription

loop Loop protection port

root Root protection port

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

Defaults There is no loop protection or root port protection on the port bydefault.

Instructions � The platform version 4.6.03B and update versions support thiscommand.

� With this command, the administrator can prevent fault con-figuration.

Example This example describes how to configure the BPDU root protectionon the interface fei_3/1.ZXR10(config)#interface fei_3/1ZXR10(config-if)#spanning-tree guard root instance 0

Confidential and Proprietary Information of ZTE CORPORATION 61

Page 70: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show spanning-tree inconsistentports

spanning-tree hello-timePurpose Use this command to set the Hello time (time interval for sending

BPDU packets) of STP. Restore default with the no form of thiscommand.

Command Modes Global configuration

Syntax spanning-tree hello-time <time>

no spanning-tree hello-time

SyntaxDescription

<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 thiscommand.

Example This example describes how to set the hello-time to 3 seconds.ZXR10(config)#spanning-tree hello-time 3

RelatedCommands

spanning-tree max-hops

spanning-tree forward-delay

spanning-tree linktypePurpose Use this command to set the link type of the port.

Command Modes Interface configuration

Syntax spanning-tree linktype {auto | p2p | share}

SyntaxDescription

auto Automatically judges according to the duplexmode of the port: p2p in full duplex modeand share in half duplex mode

p2p Forces the link type to p2p

share Forces the link type to share

Defaults The default link type of the port is auto.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� If the link type of the port is p2p, the fast status change func-tion can be enabled. If the link type of the port is share, thestatus can be changed only after twice of the forward-delaytime.

62 Confidential and Proprietary Information of ZTE CORPORATION

Page 71: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

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

RelatedCommands

spanning-tree packet-type

spanning-tree max-agePurpose 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

SyntaxDescription

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

Instructions The platform version 4.6.02 and upgrade versions support thiscommand.

Example This example describes how to set the max-age to 21 seconds.ZXR10(config)#spanning-tree max-age 21

RelatedCommands

spanning-tree max-hops

spanning-tree forward-delay

spanning-tree modePurpose Use this command to set the current STP mode.

Command Modes Global configuration

Syntax spanning-tree mode {sstp | rstp | mstp}

SyntaxDescription

sstp SSTP mode

rstp RSTP mode

mstp MSTP mode

Defaults MSTP

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� Each mode allows the connection to the bridge.

Example This example describes how to set the current STP mode to RSTP.

Confidential and Proprietary Information of ZTE CORPORATION 63

Page 72: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

ZXR10(config)#spanning-tree mode rstp

RelatedCommands

spanning-tree

spanning-tree mstconfiguration

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 thiscommand.

� In MSTP configuration mode, exclusive parameters of MSTPusers 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 configurationZXR10(config-mstp)#

RelatedCommands

show spanning-tree mst configuration

spanning-tree msthmd5-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 }

SyntaxDescription

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

Defaults The default value is 0x00000000000000000000000000000000.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� When the different manufacturers (such as CISCO andHUAWEI) implement MSTP, the MSTP packet format is differentfrom the IEEE standard. The KEY or DIGEST value has to beconfigured for the ZTE switch before the devices of the abovemanufacturers are connected in the same area.

Example This example describes how to set the CISCO hmd5-digest value.

64 Confidential and Proprietary Information of ZTE CORPORATION

Page 73: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

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

RelatedCommands

spanning-tree mst hmd5-key

spanning-tree mst hmd5-keyPurpose Use this command to set the KEY value for Hmd5 required by the

digest in the mst_config_id. Restore default with the no form ofthis command.

Command Modes Global configuration

Syntax spanning-tree mst hmd5-key { CISCO | HUWWEI <key>}

no spanning-tree mst hmd5-key { CISCO | HUWWEI }

SyntaxDescription

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

Defaults The default value is 0x13ac06a62e47fd51f95d2ba243cd0346.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� When the different manufacturers (such as CISCO andHUAWEI) implement MSTP, the MSTP packet format is differentfrom the IEEE standard. A KEY or DIGEST value has to beconfigured for the ZTE switch before the devices of the abovemanufacturers is connected in the same area .

Example This example describes how to set the CISCO hmd5-digest value.ZXR10(config)#spanning-tree mst hmd5-key CISCO0x12345678901234567890123456789012

RelatedCommands

spanning-tree mst hmd5-digest

spanning-tree mst instance(Global Configuration)

Purpose Use this command to set the priority for the bridge in some createdinstance.

Command Modes Global configuration

Syntax spanning-tree mst instance <instance> priority <priority>

Confidential and Proprietary Information of ZTE CORPORATION 65

Page 74: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

SyntaxDescription

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

priority <priority> Bridge priority, which must be the multiple of4096, default: 32768, the maximum value:61440

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� This command enables thee user to set the root bridge of theinstance.

Example This example describes how to set the priority for the bridge ininstance 0~4096.ZXR10(config)#spanning-tree mst instance 0 priority 4096

RelatedCommands

spanning-tree mst instance (port configuration)

spanning-tree mst instance(Port Configuration)

Purpose Use this command to set the priority for the port in some createdinstance.

Command Modes Interface configuration

Syntax spanning-tree mst instance <instance> priority <priority>

SyntaxDescription

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

priority <priority> Bridge priority, which must be the multiple of16, default: 128, the maximum value: 240

Defaults The default priority is 128.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� With this command configured, the administrator can changethe STP topology.

Example This example describes how to set the priority of the interfacefei_3/1 in instance 1 to 112.ZXR10(config)#interface fei_3/1ZXR10(config-if)#spanning-tree mst ins 1 pri 112

66 Confidential and Proprietary Information of ZTE CORPORATION

Page 75: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 5 STP Configuration

RelatedCommands

spanning-tree mst instance (global configuration)

spanning-tree mst max-hopsPurpose Use this command to set the maximum hops of the BPDU packet in

the MST area. Restore default with the no form of this command.

Command Modes Global configuration

Syntax spanning-tree mst max-hops <hop>

no spanning-tree mst max-hops

SyntaxDescription

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

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� All the non 0 instances in the MST area use the maximum hopsto 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

RelatedCommands

spanning-tree max-age

spanning-tree packet-typePurpose 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 |HAMMER}

no spanning-tree packet-type

SyntaxDescription

IEEE Standard IEEE BPDU packet

CISCO CISCO BPDU packet

HAMMER HAMMER (Harbour Networks) BPDU packet

HUAWEI HUAWEI BPDU packet

Defaults The port BPDU packet type is IEEE by default.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� Because different manufacturers modify MSTP packets, usermust configure the BPDU packet type of the port for MSTP con-nection to devices of the above manufacturers.

Confidential and Proprietary Information of ZTE CORPORATION 67

Page 76: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Example This example describes how to set the BPDU packet type of theinterface fei_3/1 to CISCO.ZXR10(config-if)#spanning-tree packet-type cisco

RelatedCommands

spanning-tree link-type

spanning-tree edged-port

spanning-tree path-costPurpose Use this command to set the path cost of the interface.

Command Modes Interface configuration

Syntax spanning-tree instance <ins-index> path-cost <cost>

SyntaxDescription

<ins-index> Instance number to which the interfacebelongs, range: 0~63

<cost> Path cost of the interface, range: 1~2000000

Defaults The path cost of the interface is set according to the port rate-pathcost mapping table.

Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.

� With this command configured, the administrator can changethe STP topology.

Example This example describes how to set the path cost of the interfacefei_3/1 to 30000.ZXR10(config)#interface fei_3/1ZXR10(config-if)#spanning-tree path-cost 30000

RelatedCommands

spanning-tree mst instance (port configuration)

68 Confidential and Proprietary Information of ZTE CORPORATION

Page 77: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 6

LACP Configuration

Table of Contentsclear lacp .........................................................................69interface ..........................................................................69lacp port-priority ...............................................................70lacp system-priority ...........................................................70lacp timeout .....................................................................71show lacp .........................................................................71smartgroup ......................................................................72smartgroup load-balance ....................................................73smartgroup mode..............................................................73

clear lacpPurpose Use this command to clear the count of received and transmitted

LACP packets.

Command Modes Privileged EXEC

Syntax clear lacp [<smartgroup-id>] counters

SyntaxDescription

<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 Smartgroup1interface.ZXR10#clear lacp 1 counters

interfacePurpose Use this command to create a VLAN interface and enter VLAN in-

terface configuration mode. Remove the VLAN interface with theno form of this command.

Command Modes Global configuration

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

Confidential and Proprietary Information of ZTE CORPORATION 69

Page 78: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

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

SyntaxDescription

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

<vlan-if> VLAN interface name

Instructions The parameter <vlan-if> is in the format of vlan + VLAN ID, suchas vlan10.

Example This example describes how to create a VLAN interface vlan1, andenter VLAN interface configuration mode.ZXR10(config)#interface vlan 1ZXR10(config-if)#

RelatedCommands

exit

end

lacp port-priorityPurpose Use this command to set the LACP port priority.

Command Modes Interface configuration

Syntax lacp port-priority <priority>

SyntaxDescription

<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/1ZXR10(config-if)#lacp port-priority 1000

RelatedCommands

show lacp

lacp system-priorityPurpose Use this command to set the LACP system priority.

Command Modes Global configuration

Syntax lacp system-priority <priority>

SyntaxDescription

<priority> LACP system priority, in the range of 1 to65535, default: 32768

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

70 Confidential and Proprietary Information of ZTE CORPORATION

Page 79: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 6 LACP Configuration

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

RelatedCommands

show lacp

lacp timeoutPurpose Use this command to set the LACP timeout on the interface.

Command Modes Interface configuration

Syntax lacp timeout {long | short}

SyntaxDescription

long Sets the interface LACP to long timeout

short Sets the interface LACP to short timeout

Defaults Long timeout

Instructions � When the long timeout is set, the system sends LACP packetsevery 30 seconds.

� When the short timeout is set, the system sends LACP packetsevery 1 second.

Example This example describes how to set the interface LACP to short time-out.ZXR10(config)#interface fei_2/1ZXR10(config-if)#lacp timeout short

RelatedCommands

show lacp

show lacpPurpose 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 | neighbors}| sys-id}

SyntaxDescription

<smartgroup-id> Link aggregation group ID, in the range of1~32

counters Shows the LACP packets received/sent on theinterface

internal Shows the aggregation status of the memberinterface

Confidential and Proprietary Information of ZTE CORPORATION 71

Page 80: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

neighbors Shows the member interface status of thepeer neighbor

sys-id Shows the LACP system priority

Example This example describes how to display the aggregation status ofthe member interface in a Smatgroup.ZXR10(config)#show lacp internalSmartgroup:2Actor Agg LACPDUs Port Oper Port RX MuxPort State Interval Priority Key State Machine Machine---------------------------------------------------------------fei_3/17 selected 30 32768 0x202 0x3d current distributingfei_3/18 selected 30 32768 0x202 0x3d current distributing

RelatedCommands

smartgroup

smartgroupPurpose Use this command to add an interface to a link aggregation group,

and set the link aggregation mode for the interface. Remove theinterface from the link aggregation group with the no form of thiscommand.

Command Modes Interface configuration

Syntax smartgroup <smartgroup-id> mode {passive | active | on}

no smartgroup

SyntaxDescription

<smartgroup-id> Link aggregation group ID, in the range of1~32

passive Sets the interface LACP to passive negotiationmode

active Sets the interface LACP to active negotiationmode

on Indicates the static trunk mode when LACPis disabled and the two extremities of theaggregation must be set to on mode

Instructions � The aggregation mode of a member interface must be consis-tent with that of the Smatgroup interface. Otherwise such aninterface is not allowed to join the Smatgroup.

� VLAN configurations of a member interface must be consistentwith those of the Smatgroup. Otherwise such an interface isnot allowed to join the Smatgroup.

� After an interface joins an aggregation group, you may modifythe VLAN attribute of the Smatgroup. The member interfaceautomatically modifies the VLAN attributes to keep consistentwith that of the Smatgroup.

Example This example describes how to add the interface gei_3/1 to Smat-group 10.

72 Confidential and Proprietary Information of ZTE CORPORATION

Page 81: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 6 LACP Configuration

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

RelatedCommands

show interface

show lacp

smartgroup load-balancePurpose 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

SyntaxDescription

<mode> Load balance mode of the link aggregationgroup. The detailed description of theparameter refer to the following table

Instructions

Products Description

ZXR10 T160G Link aggregation load balance mode,per-packet or per-destination, default:per-destination

ZXR10 GER Link aggregation load balance mode,per-packet or per-destination, default:per-destination

ZXR10 6910 Link aggregation load balance mode, src-ip,src-mac, dst-ip, dst-mac, src-dst-ip andsrc-dst-mac, default: src-dst-mac

ZXR10 3900/3200 Link aggregation load balance mode, src-ip,src-mac, dst-ip, dst-mac, src-dst-ip andsrc-dst-mac, default: src-dst-mac

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

RelatedCommands

show interface

show lacp

smartgroup modePurpose Use this command to configure the aggregation mode of link ag-

gregation group. Restore the default configuration with the no

Confidential and Proprietary Information of ZTE CORPORATION 73

Page 82: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

form of this command. The default setting is static trunk mode(“on” mode).

Command Modes Interface configuration

Syntax smartgroup mode {802.3ad | on}

no smartgroup mode

SyntaxDescription

802.3ad Indicates the aggregation control method ofthe Smartgroup interface uses the 802.3adstandard LACP.

on Indicates the static trunk. LACP protocol doesnot run at this time

Example This example describes how to configure the aggregation methodof Smartgroup 10 to 802.3ad.ZXR10(config)#interface smartgroup10ZXR10(config-if)#smartgroup mode 802.3ad

RelatedCommands

show interface

show lacp

74 Confidential and Proprietary Information of ZTE CORPORATION

Page 83: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 7

VBAS Configuration

Table of Contentsvbas enable ......................................................................75vbas port-type ..................................................................75

vbas enablePurpose 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-configcommand in global configuration mode.

RelatedCommands

show running-config

vbas port-typePurpose Use this command to set the port to a VBAS user or network port.

Command Modes Interface configuration

Syntax vbas port-type {user | net}

SyntaxDescription user Sets the port to a VBAS user port

net Sets the port to a VBAS network port

Defaults The port type is user by default.

Instructions This configuration can be viewed by the show running-configcommand in global configuration mode.

Example This example describes how to configure the port to a VBAS userport.

Confidential and Proprietary Information of ZTE CORPORATION 75

Page 84: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

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

RelatedCommands

show running-config

76 Confidential and Proprietary Information of ZTE CORPORATION

Page 85: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 8

MAC PING Configuration

Table of Contentsmac-ping..........................................................................77l2trace .............................................................................78

mac-pingPurpose 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-name> peer <peer-address>}{summary | detail}[repeat <repeat-count>][hops <hop-count>][timeout <timeout seconds>]

SyntaxDescription

<destination-mac> Destination MAC address

interface <out-port>>

Egress interface of the CE device whererequest packets are transmit

summary Briefly lists the result of MAC ping.

detail Lists the result of MAC ping in detail.

repeat <repeat-count>

Repeat count, range: 1~65535, default: 1

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

timeout <timeoutseconds>

Timeout interval, in seconds, range: 1~30,default: 2 seconds

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

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

Defaults This command is disabled by default.

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

Confidential and Proprietary Information of ZTE CORPORATION 77

Page 86: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

l2tracePurpose 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-name> peer <peer-address>]}

SyntaxDescription

<destination-mac> Destination MAC address

interface <out-port> Egress interface sending request packets onCE device

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

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

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

78 Confidential and Proprietary Information of ZTE CORPORATION

Page 87: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 9

UDLD Configuration

Table of Contentsudld enable ......................................................................79udld message timer ...........................................................80udld mode ........................................................................80udld recovery enable..........................................................81udld recovery timer ...........................................................82udld reset.........................................................................82show udld.........................................................................83

udld enablePurpose 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}

SyntaxDescription

enable Enables UDLD function

disable Disables UDLD function

<interface_range> Interface name, at most 16 interfaces can beconfigured once

Defaults UDLD function is disabled by default.

Instructions � At present, only the Ethernet physical interfaces with switchattribute support UDLD protocol.

� Batch configuration only takes effect in global configurationmode.

� When this command is used for a single interface, it takes effectin interface configuration mode.

Example � This example describes how to enable UDLD function in batchin global configuration mode.ZXR10(config)#udld enable fei_1/1-3,fei_2/1

� This example describes how to enable UDLD function on theinterface fei_1/1 in interface configuration mode.ZXR10(config)#interface fei_1/1

Confidential and Proprietary Information of ZTE CORPORATION 79

Page 88: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

ZXR10(config-if)#udld enable

udld message timerPurpose Use this command to configure the time interval for sending Hello

packets when the interfaces are in dual connection status.

Command Modes Global configuration and interface configuration

Syntax udld message timer <timer><interface_range>

udld message timer <timer>

SyntaxDescription

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

<interface_range> Interface name, at most 16 interface namescan be configured once

Defaults The default time interval for sending Hello packets is 15 seconds.

Instructions � Batch configuration only takes effect in global configurationmode.

� When this command is used for a single interface, it takes effectin interface configuration mode.

Example � This example describes how to configure the time interval forsending Hello packets in batch in global configuration mode.ZXR10(config)#udld message timer 7 fei_1/1-3,fei_2/1

� This example describes how to configure the time interval forsending Hello packets in interface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#udld message timer 7

udld modePurpose 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}

SyntaxDescription

aggressive Works in aggressive mode

normal Works in normal mode

<interface_range> Interface name range, at most 16 interfacescan be configured once

80 Confidential and Proprietary Information of ZTE CORPORATION

Page 89: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 9 UDLD Configuration

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

Instructions � Batch configuration only takes effect in global configurationmode.

� When this command is used for a single interface, it takes effectin interface configuration mode.

Example � This example describes how to configure the interface in ag-gressive mode in batch in global configuration mode.ZXR10(config)#udld mode aggressive fei_1/1-3,fei_2/1

� This example describes how to configure the interface in ag-gressive mode in interface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#udld mode aggressive

udld recovery enablePurpose Use this command to enable the function of UDLD automatic re-

covery.

Command Modes Global configuration and interface configuration

Syntax udld recovery {enable | disable}<interface_range>

udld recovery {enable | disable}

SyntaxDescription

enable enables the function of UDLD automaticrecovery

disable disables the function of UDLD automaticrecovery

<interface_range> Interface name range, at most 16 interfacescan be configured once

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

Instructions � Batch configuration only takes effect in global configurationmode.

� When this command is used for a single interface, it takes effectin interface configuration mode.

Example � This example describes how to enable UDLD automatic recov-ery on interfaces fei_1/1-3 and fei_2/1 in batch in global con-figuration mode.ZXR10(config)#udld recovery enable fei_1/1-3,fei_2/1

� This example describes how to enable UDLD automatic recov-ery in the interface fei_1/1 in interface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#udld recovery enable

Confidential and Proprietary Information of ZTE CORPORATION 81

Page 90: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

udld recovery timerPurpose Use this command to configure the time interval for performing

automatic recovery when UDLD protocol is in single connectionstate.

Command Modes Global configuration and interface configuration

Syntax udld recovery timer <timer><interface_range>

udld recovery timer <timer>

SyntaxDescription

<timer> Time interval for performing automaticrecovery when UDLD protocol is in singleconnection status, in seconds, range: 10~600

<interface_range> Interface name range. At most 16 interfacescan be configured at once time.

Defaults The default time interval for performing automatic recovery is 30seconds.

Instructions � Batch configuration only takes effect in global configurationmode.

� When this command is used for a single interface, it takes effectin interface configuration mode.

Example � This example describes how to configure the time interval forperforming automatic recovery on interfaces fei_1/1-3 andfei_2/1 in batch in global configuration mode.ZXR10(config)#udld recovery timer 10 fei_1/1-3,fei_2/1

� This example describes how to configure the time interval forperforming automatic recovery on the interface fei_1/1 in in-terface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#udld recovery timer 10

udld resetPurpose Use this command to reset the interface which is in single connec-

tion status.

Command Modes Privileged EXEC

Syntax udld reset [<interface-name >]

SyntaxDescription

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

Defaults This command is disabled by default.

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

82 Confidential and Proprietary Information of ZTE CORPORATION

Page 91: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 9 UDLD Configuration

� When the input interface is not in single connection status,there will be not any operation.

Example This example describes how to reset the interface fei_2/1 which isin single connection state.ZXR10#udld reset fei_2/1

show udldPurpose 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 >]

SyntaxDescription

<interface-name > The interface names needs to display

Instructions When the command is used without the parameter, informationabout all UDLD interfaces is displayed.

Example This example describes how to display information about the UDLDconfiguration of the interface fei_1/1.ZXR10(config)#show udld fei_1/1

interface fei_1/1Administrative configuration: DisablePort mode: NormalCurrent state: DisableRecovery configuration: DisableAuto-recovery time: 30sMessage interval: 15sNo neighbour information stored

Confidential and Proprietary Information of ZTE CORPORATION 83

Page 92: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

This page is intentionally blank.

84 Confidential and Proprietary Information of ZTE CORPORATION

Page 93: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

C h a p t e r 10

Ethernet OAMConfiguration

Table of Contentsset ethernet-oam debug .....................................................85set ethernet-oam enable ....................................................86set ethernet oam enable(interface configuration) ...................86set ethernet-oam link-monitor enable ..................................87set ethernet-oam link-monitor frame-period..........................87set ethernet-oam link-monitor frame-seconds .......................88set ethernet-oam link-monitor symbol-period .......................88set ethernet-oam oui .........................................................89set ethernet-oam period timeout mode.................................89set ethernet-oam port link-monitor frame .............................90set ethernet-oam remote-loopback start...............................90set ethernet-oam remote-loopback time-out .........................91show ethernet-oam ...........................................................91show ethernet-oam interface discovery ................................91show ethernet-oam interface link-monitor.............................92show ethernet-oam interface statistics .................................92

set ethernet-oam debugPurpose Use this command to set debug function of link ethernet OAM.

Command Modes Global configuration

Syntax set ethernet-oam debug

Instructions � To view the configuration, use the show running-config com-mand in global configuration mode.

� To cancel debug function, use the no set ethernet-oamdebug command.

Example This example describes how to set debug function of link ethernetOAM in global configuration mode.ZXR10(config)#set ethernet-oam debugZXR10(config)#no set ethernet-oam debug

Confidential and Proprietary Information of ZTE CORPORATION 85

Page 94: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

RelatedCommands

show supervlan

set ethernet-oam enablePurpose Use this command to enable global link Ethernet OAM.

Command Modes Global configuration

Syntax set ethernet-oam { enable | disable }

SyntaxDescription

enable Enables global link Ethernet OAM.

disable Disables global link Ethernet OAM.

Instructions To view the configuration, use the show running-config com-mand in global configuration mode.

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

set ethernet oamenable(interfaceconfiguration)

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

Command Modes Interface configuration

Syntax set ethernet-oam { enable | disable }

SyntaxDescription

enable Enables global link Ethernet OAM.

disable Disables global link Ethernet OAM.

Instructions � To view the configuration, use the show running-config com-mand in global configuration mode.

� Fei and gei interfaces are supported by this command, whilesg interfaces are not supported.

Example This example describes how to enable global link Ethernet OAM ininterface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#set ethernet-oam enable

86 Confidential and Proprietary Information of ZTE CORPORATION

Page 95: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 10 Ethernet OAM Configuration

set ethernet-oamlink-monitor enable

Purpose Use this command to enable Ethernet OAM link detection of someinterface.

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 interfacesare not supported.

Example This example describes how to enable global link Ethernet OAM ininterface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#set ethernet-oam link-monitor enable

set ethernet-oamlink-monitor frame-period

Purpose Use this command to configure port error symbol frame period linkevent parameters.

Command Modes Interface Configuration

Syntax set ethernet-oam link-monitor frame-period threshold<xxx> window <yyy>

SyntaxDescription <xxx> Error frame limit value, range: 1~65535,

default: 1

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

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

Fei and gei interfaces are supported, while sg interfaces are notsupported.

Example This example describes how to configure Ethernet OAM port errorsymbol frame period event parameters in interface configurationmode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#set ethernet-oam link-monitor frame-periodthreshold 30 window 10

Confidential and Proprietary Information of ZTE CORPORATION 87

Page 96: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

set ethernet-oamlink-monitor frame-seconds

Purpose Use this command to configure port error symbol frame—secondsstatistics link event parameters.

Command Modes Interface Configuration

Syntax set ethernet-oam link-monitor frame-seconds threshold<xxx> window <yyy>

SyntaxDescription <xxx> Error frame-seconds, range: 1~900, default:

1 (frame-seconds: receiving at least 1 errorframe in 1 second)

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

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

Fei and gei interfaces are supported, while sg interfaces are notsupported.

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

set ethernet-oamlink-monitor symbol-period

Purpose Use this command to configure port error symbol-period link eventparameters.

Command Modes Interface Configuration

Syntax set ethernet-oam link-monitor symbol-period threshold<xxx> window <yyy>

SyntaxDescription <xxx> Error frame limit value, range: 1~65535, 1

by default

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

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

Fei and gei interfaces are supported, while sg interfaces are notsupported.

88 Confidential and Proprietary Information of ZTE CORPORATION

Page 97: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 10 Ethernet OAM Configuration

Example This example describes how to set Ethernet OAM port error symbollink event parameters in interface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#set ethernet-oam link-monitor symbol-periodthreshold 3 window 10

set ethernet-oam ouiPurpose Use this command to set OUI information of link Ethernet OAM.

Command Modes Global Configuration

Syntax set ethernet-oam oui <list>

SyntaxDescription

<list> Sets OUI information of link Ethernet OAM

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

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

set ethernet-oam periodtimeout mode

Purpose Use this command to configure interface general attributes.

Command Modes Interface Configuration

Syntax set ethernet-oam period <level-value> timeout <time>mode{active | passive}

SyntaxDescription

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

<time> Protocol disconnect timeout timer, in seconds,range: 2~20, default: 5 seconds, if there isno peer protocol packets received after thistime range, it means the peer does not exist.

active | passive Working mode, default: active

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

At present fei and gei interfaces are supported, while sg interfacesare not supported.

Example This example describes how to configure OAM interface generalattributes in interface configuration mode.

Confidential and Proprietary Information of ZTE CORPORATION 89

Page 98: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

ZXR10(config)#interface fei_1/1ZXR10(config-if)#set ethernet-oam period 5 timeout 6 mode active

set ethernet-oam portlink-monitor frame

Purpose Use this command to configure port error symbol frame link eventparameters.

Command Modes Interface Configuration

Syntax set ethernet-oam port <port-list> link-monitor frame threshold <xxx> window <yyy>

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

<yyy> Period statistics time, in seconds, range:1~60, default: 1 second

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

At present fei and gei interfaces are supported, while sg interfacesare not supported.

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/1ZXR10(config-if)#set ethernet-oam link-monitor framethreshold 30 window 10

set ethernet-oamremote-loopback start

Purpose Use this command to enable or disable link Ethernet OAM remoteloopback.

Command Modes Interface Configuration

Syntax set ethernet-oam remote-loopback { start | stop }

SyntaxDescription

start Enables link Ethernet OAM remote loopback.

stop Disables link Ethernet OAM remote loopback.

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

90 Confidential and Proprietary Information of ZTE CORPORATION

Page 99: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

Chapter 10 Ethernet OAM Configuration

At present, fei and gei interfaces are supported, while sg interfacesare not supported.

Example This example describes how to enable link Ethernet OAM remoteloopback in interface configuration mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#set ethernet-oam remote-loopback start

set ethernet-oamremote-loopback time-out

Purpose Use this command to set Ethernet OAM remote loopback timeoutin global configuration mode.

Command Modes Global Configuration

Syntax set ethernet-oam remote-loopback timeout <time>

SyntaxDescription

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

Instructions To view this configuration, use the show running-config com-mand in global configuration mode.

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

show ethernet-oamPurpose Use this command to display Ethernet OAM global configuration

information.

Command Modes Global Configuration

Syntax show ethernet_oam

Example This example describes how to display Ethernet OAM global con-figuration information.ZXR10(config)#show ethernet-oam

show ethernet-oam interfacediscovery

Purpose Use this command to display Ethernet OAM discovery status of thedesignated interface.

Confidential and Proprietary Information of ZTE CORPORATION 91

Page 100: Router/EthernetSwitch - v4.8.22)/Ethernet Switch Volume.pdf · ZXR10 Router/EthernetSwitch CommandManual(EthernetSwitchVolume) Version4.8.22 ZTECORPORATION ZTEPlaza,KejiRoadSouth,

ZXR10 Command Manual (Ethernet Switch Volume)

Command Modes Global Configuration

Syntax show ethernet_oam < port-id > discovery

SyntaxDescription

< port-id > Port name

Example This example describes how to display Ethernet OAM discoverystatus of the designated interface.ZXR10(config)#show ethernet-oam fei_1/1 discovery

show ethernet-oam interfacelink-monitor

Purpose Use this command to display information about Ethernet OAM linkevents of the designated port.

Command Modes Global Configuration

Syntax show ethernet_oam < port-id > link-monitor

SyntaxDescription

< port-id > Port name

Example This example describes how to display information about EthernetOAM link events of the designated port.ZXR10(config)#show ethernet-oam fei_1/1 link-monitor

show ethernet-oam interfacestatistics

Purpose Use this command to display information about Ethernet OAMmanagement frames of the designated port.

Command Modes Global Configuration

Syntax show ethernet_oam < port-id > statistics

SyntaxDescription

< port-id > Port name

Example This example describes how to display information about EthernetOAM management frames of the designated port.ZXR10(config)#show ethernet-oam fei_1/1 statistics

92 Confidential and Proprietary Information of ZTE CORPORATION