router/ethernetswitch - v4.8.22)/basic configuration volume ii.pdf · zxr10 router/ethernetswitch...
TRANSCRIPT
ZXR10Router/Ethernet Switch
Command Manual (Basic Configuration Volume II)
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]
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: sjzl20086529
About This Manual.............................................. i
Command Introduction .....................................1Manual Use Guide........................................................... 1
Description of Man-Machine Commands............................. 1
Auxiliary Function ........................................................... 2
Command Mode ............................................................. 3
Interface Configuration .....................................7au-3 ............................................................................. 9
au-4 tug-3..................................................................... 9
aug mapping.................................................................10
baudrate ......................................................................10
broadcast-limit..............................................................11
byname .......................................................................12
cancel ..........................................................................12
channel-group...............................................................13
channelized ..................................................................14
char-len .......................................................................14
clear counter ................................................................14
clock board source.........................................................15
clock source..................................................................15
clock source(CPOS48) ....................................................16
controller .....................................................................16
crc ..............................................................................17
dce enable....................................................................17
description ...................................................................18
dte enable ....................................................................18
duplex .........................................................................18
e1 channel-group timeslots.............................................19
e1 clock source .............................................................19
e1 framing....................................................................20
e1 loopback ..................................................................21
e1 national bits .............................................................21
e1 unframed .................................................................22
encapsulation................................................................22
encapsulation dot1Q ......................................................23
flag c2 .........................................................................23
flag j0..........................................................................24
flag s1s0 ......................................................................24
flowcontrol ...................................................................25
frametype ....................................................................25
framing ........................................................................26
framingCPOS3 ........................................................ 26
framingCE1 ............................................................ 27
framing(CT1) ................................................................27
hybrid-attribute.............................................................28
interface ......................................................................28
interface mac-address offset ...........................................29
inter-subqinq-routing .....................................................30
invert txclock ................................................................30
ip arp inspect................................................................31
ip discard undeliverable..................................................31
jumbo-frame ................................................................31
keepalive......................................................................32
linecode .......................................................................32
load-balance .................................................................33
load-interval .................................................................33
loopback(CE3) ..............................................................34
loopback ......................................................................34
mode...........................................................................35
mode(CT1) ...................................................................35
monitor session(Global Configuration) ..............................36
monitor session(Port confifuration) ..................................36
mtu .............................................................................37
multicast-limit...............................................................38
national bit ...................................................................39
native vlan id ................................................................39
negotiation auto ............................................................40
npc-type ......................................................................40
parity...........................................................................40
physical-layer mode.......................................................41
port-hold time...............................................................42
qinq.............................................................................42
qinq range....................................................................42
reference clock..............................................................43
reset............................................................................44
set interface broadcast-limit............................................44
set interface cancel........................................................45
set interface duplex .......................................................45
set interface flowcontrol .................................................46
set interface jumbo-frame ..............................................46
set interface multicast-limit.............................................47
set interface negotiation .................................................47
set interface recover ......................................................48
set interface speed ........................................................48
set interface switch-attribute...........................................49
set interface unknowcast-limit.........................................49
set micode....................................................................50
show interface ..............................................................50
show interface-description ..............................................51
show ip interface ...........................................................52
show monitor session.....................................................54
show opticalinfo ............................................................55
show optical-info brief ....................................................55
show optical-inform detail...............................................56
show optical-inform threshold-alarm ................................57
show physical-interface-attribute .....................................58
show vct interface .........................................................58
show vlanresource-summary...........................................59
shutdown .....................................................................59
speed ..........................................................................60
statis ...........................................................................60
stm-1 ..........................................................................61
stopbits........................................................................61
sts-1............................................................................62
sts-3............................................................................62
suspend-card ................................................................63
switch-attribute.............................................................63
threshold......................................................................64
threshold sd-ber............................................................64
threshold sf-ber ............................................................64
tug-2 e1 channel-group timeslots ....................................65
tug-2 e1 clock source.....................................................66
tug-2 e1 framing ...........................................................66
tug-2 t1 channel-group timeslots.....................................67
tug-2 t1 clock source .....................................................68
tug-2 t1 framing............................................................68
unkowncast-limit ...........................................................69
vt-2.............................................................................69
vtg e1 channel-group timeslots .......................................70
vtg e1 clock source........................................................70
vtg e1 framing ..............................................................71
vtg t1 channel-group timeslots ........................................72
vtg t1 clock source ........................................................72
vtg t1 framing...............................................................73
DHCP and DHCP SNOOPING Configuration........75ip address dhcp.............................................................76
ip dhcp client broadcast-flag ...........................................77
ip dhcp client class-id.....................................................77
ip dhcp client client-id ....................................................78
ip dhcp client hostname..................................................78
ip dhcp client lease ........................................................79
ip dhcp client request.....................................................79
ip dhcp enable ..............................................................80
ip dhcp mode................................................................80
ip dhcp proxy client leasetime .........................................81
ip dhcp logging on .........................................................82
ip dhcp ramble ..............................................................82
ip dhcp relay agent ........................................................82
ip dhcp relay forward reply unrestricted............................83
ip dhcp relay max-user...................................................84
ip dhcp helper-address policy vclass-id .............................84
ip dhcp relay information format......................................85
ip dhcp relay information option ......................................85
ip dhcp relay information policy .......................................86
ip dhcp relay information uniform circuit-id .......................86
ip dhcp relay information uniform remote-id......................87
ip dhcp relay information user-configuration policy.............87
ip dhcp relay information circuit-id...................................88
ip dhcp relay information remote-id .................................88
ip dhcp relay security client server-id ...............................89
ip dhcp relay server .......................................................89
ip dhcp relay server retry ...............................................90
ip dhcp relay server vclass-id ..........................................91
ip dhcp relay snooping enable .........................................91
ip dhcp relay snooping packet reply .................................92
ip dhcp relay snooping packet request ..............................92
ip dhcp relay snooping trust ............................................93
ip dhcp relay snooping trust enable..................................93
ip dhcp server max-user.................................................93
ip dhcp snooping binding ................................................94
ip dhcp snooping clear....................................................95
ip dhcp snooping enable .................................................95
ip dhcp snooping information circuit-id .............................96
ip dhcp snooping information format ................................96
ip dhcp snooping information option.................................97
ip dhcp snooping information policy .................................97
ip dhcp snooping information remote-id............................98
ip dhcp snooping information uniform circuit-id..................99
ip dhcp snooping information uniform remote-id ................99
ip dhcp snooping information user-configuration
policy................................................................. 100
ip dhcp snooping max-user ........................................... 100
ip dhcp snooping ramble............................................... 101
ip dhcp snooping trust.................................................. 101
ip dhcp snooping vlan .................................................. 102
ip dhcp user quota....................................................... 102
kick-off ip dhcp server user........................................... 103
kick-off ip dhcp snooping user ....................................... 104
kick-off ip dhcp relay user............................................. 105
release dhcp ............................................................... 105
renew dhcp................................................................. 106
show ip dhcp configure................................................. 106
show ip dhcp ramble .................................................... 107
show ip dhcp relay forward ........................................... 107
show ip dhcp relay information...................................... 108
show ip dhcp relay security client .................................. 109
show ip dhcp relay server vclass-id ................................ 109
show ip dhcp relay snooping packet ............................... 109
show ip dhcp relay snooping trust.................................. 110
show ip dhcp server user .............................................. 110
show ip dhcp snooping configure ................................... 111
show ip dhcp snooping database.................................... 112
show ip dhcp snooping information ................................ 112
show ip dhcp snooping ramble....................................... 113
show ip dhcp snooping trust.......................................... 114
show ip dhcp snooping vlan .......................................... 114
DHCP Pool Configuration ...............................117binding ...................................................................... 117
default-router ............................................................. 118
dns-server.................................................................. 118
ip dhcp pool................................................................ 118
ip-pool ....................................................................... 119
lease-time .................................................................. 119
option ........................................................................ 120
show ip dhcp pool........................................................ 120
DHCP Policy Configuration.............................123dhcp-pool ................................................................... 123
ip dhcp policy.............................................................. 124
ip dhcp policy.............................................................. 124
relay-agent................................................................. 125
show ip dhcp policy...................................................... 126
vrf-instance ................................................................ 126
VRRP Configuration .......................................127show track.................................................................. 127
show vrrp................................................................... 128
track.......................................................................... 129
vrrp advertise ............................................................. 130
vrrp authentication ...................................................... 131
vrrp ip ....................................................................... 131
vrrp learn ................................................................... 132
vrrp mode .................................................................. 133
vrrp out-interface ........................................................ 133
vrrp preempt .............................................................. 134
vrrp priority ................................................................ 134
vrrp track ................................................................... 135
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 describes the use method of thecommand manual, command description,format convention, auxiliary function andmode.
Chapter 2 InterfaceConfiguration
This chapter describes commands ofvarious interfaces.
Chapter 3 DHCP andDHCP SNOOPINGConfiguration
This chapter describes commands of DHCPand DHCP SNOOPING.
Chapter 4 DHCP PoolConfiguration
This chapter describes commands of DHCPPool.
Chapter 5 DHCP PolicyConfiguration
This chapter describes commands of DHCPpolicy.
Chapter 6 VRRPConfiguration
This chapter describes commands of VRRPprotocol.
RelatedDocumentation
The following documentation is related to this manual:
� ZXR10 Router/Ethernet Switch Command Manual (CommandIndex Volume)
� ZXR10 Router/Ethernet Switch Command Manual (EthernetSwitch Volume)
� ZXR10 Router/Ethernet Switch Command Manual (Basic Con-figuration Volume I)
� 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)
Confidential and Proprietary Information of ZTE CORPORATION i
ZXR10 Command Manual (Basic Configuration Volume II)
� 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
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
ZXR10 Command Manual (Basic Configuration Volume II)
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
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
ZXR10 Command Manual (Basic Configuration Volume II)
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
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
ZXR10 Command Manual (Basic Configuration Volume II)
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
C h a p t e r 2
Interface Configuration
Table of Contentsau-3 ................................................................................. 9au-4 tug-3......................................................................... 9aug mapping ....................................................................10baudrate ..........................................................................10broadcast-limit..................................................................11byname ...........................................................................12cancel ..............................................................................12channel-group...................................................................13channelized ......................................................................14char-len ...........................................................................14clear counter ....................................................................14clock board source.............................................................15clock source......................................................................15clock source(CPOS48) ........................................................16controller .........................................................................16crc ..................................................................................17dce enable........................................................................17description .......................................................................18dte enable ........................................................................18duplex .............................................................................18e1 channel-group timeslots.................................................19e1 clock source .................................................................19e1 framing........................................................................20e1 loopback ......................................................................21e1 national bits .................................................................21e1 unframed.....................................................................22encapsulation....................................................................22encapsulation dot1Q ..........................................................23flag c2 .............................................................................23flag j0..............................................................................24flag s1s0 ..........................................................................24flowcontrol .......................................................................25frametype ........................................................................25framing............................................................................26framingCPOS3 ............................................................ 26framingCE1................................................................ 27framing(CT1) ....................................................................27hybrid-attribute.................................................................28interface ..........................................................................28interface mac-address offset ...............................................29inter-subqinq-routing .........................................................30invert txclock ....................................................................30ip arp inspect....................................................................31ip discard undeliverable......................................................31jumbo-frame ....................................................................31keepalive..........................................................................32
Confidential and Proprietary Information of ZTE CORPORATION 7
ZXR10 Command Manual (Basic Configuration Volume II)
linecode ...........................................................................32load-balance .....................................................................33load-interval .....................................................................33loopback(CE3) ..................................................................34loopback ..........................................................................34mode...............................................................................35mode(CT1) .......................................................................35monitor session(Global Configuration) ..................................36monitor session(Port confifuration) ......................................36mtu .................................................................................37multicast-limit...................................................................38national bit .......................................................................39native vlan id....................................................................39negotiation auto ................................................................40npc-type ..........................................................................40parity...............................................................................40physical-layer mode...........................................................41port-hold time...................................................................42qinq.................................................................................42qinq range........................................................................42reference clock..................................................................43reset................................................................................44set interface broadcast-limit................................................44set interface cancel............................................................45set interface duplex ...........................................................45set interface flowcontrol .....................................................46set interface jumbo-frame ..................................................46set interface multicast-limit ................................................47set interface negotiation.....................................................47set interface recover ..........................................................48set interface speed ............................................................48set interface switch-attribute...............................................49set interface unknowcast-limit.............................................49set micode........................................................................50show interface ..................................................................50show interface-description ..................................................51show ip interface ...............................................................52show monitor session.........................................................54show opticalinfo ................................................................55show optical-info brief........................................................55show optical-inform detail...................................................56show optical-inform threshold-alarm ....................................57show physical-interface-attribute .........................................58show vct interface .............................................................58show vlanresource-summary...............................................59shutdown .........................................................................59speed ..............................................................................60statis ...............................................................................60stm-1 ..............................................................................61stopbits............................................................................61sts-1................................................................................62sts-3................................................................................62suspend-card ....................................................................63switch-attribute.................................................................63threshold..........................................................................64threshold sd-ber................................................................64threshold sf-ber ................................................................64tug-2 e1 channel-group timeslots ........................................65tug-2 e1 clock source.........................................................66tug-2 e1 framing ...............................................................66
8 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
tug-2 t1 channel-group timeslots.........................................67tug-2 t1 clock source .........................................................68tug-2 t1 framing................................................................68unkowncast-limit ...............................................................69vt-2.................................................................................69vtg e1 channel-group timeslots ...........................................70vtg e1 clock source............................................................70vtg e1 framing ..................................................................71vtg t1 channel-group timeslots ............................................72vtg t1 clock source ............................................................72vtg t1 framing...................................................................73
au-3Purpose When the cpos3 interface is configured to sdh mode, enter the
au-3 configuration mode with the au-3 command to configure anau-3, and exit the au-3 configuration mode with the no command.
Command Modes Channelization configuration
Syntax au-3 <au-3-number>
no au-3 <au-3-number>
SyntaxDescription
<au-3-number> The value range of au-3 is 1~3
Instructions It is only applied to ZXR10 GER.
Example This example describes how to enter the configuration mode of No.1 au-3.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#au-3 1
RelatedCommands
aug mapping
au-4 tug-3
au-4 tug-3Purpose When the cpos3 interface is configured to sdh mode and aug is
configured to au-4 mapping mode, enter the tug-3 configurationmode with this command, and exit the tug-3 configuration modewith the no command.
Command Modes Channelization configuration
Syntax au-4 <au-4-number> tug-3 <tug-3-number>
no au-4 <au-4-number> tug-3 <tug-3-number>
Confidential and Proprietary Information of ZTE CORPORATION 9
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
<au-4-number> The value of au-4 must be 1
<tug-3-number> The value range of tug-3 is 1~3
Instructions It is only applied to ZXR10 GER.
Example This example describes how to enter the configuration mode ofNo.1 tug-3.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-4ZXR10(config-control)#au-4 1 tug-3 1
RelatedCommands
aug mapping
au-3
aug mappingPurpose When the cpos3 interface is configured to sdh mode, configure aug
mapping mode with the aug mapping command, and delete allthe interfaces created in the specified mapping mode with the nocommand.
Command Modes Channelization configuration
Syntax aug mapping {au-3 | au-4}
no aug mapping {au-3 | au-4}
SyntaxDescription
au-3 The aug is mapped to au-3 mode
au-4 The aug is mapped to au-4 mode
Instructions It is only applied to ZXR10 GER.
Example This example describes how to map the aug to au-3 mode.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-3
RelatedCommands
au-3
au-4 tug-3
baudratePurpose Use this command to set the baud rate of serial port. Restore
default with the no command.
Command Modes Interface configuration
10 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Syntax baudrate <baudrate>
no baudrate
SyntaxDescription
<baudrate> The baud rate of serial port, in bps.
Defaults � The default baud rate of the asynchronous serial port v24 is9600 bps.
� The default baud rate of the synchronous serial port v24 is9600 bps.
� The default baud rate of the synchronous serial port v35 is 64Kbps.
Instructions Since the baud rate ranges supported by the synchronous andasynchronous serial ports are different, in case of synchronousand asynchronous serial port switchover, if the current work modedoes not support the existing baud rate, the baud rate is modifiedto the default one in the current work mode.
� The baud rates supported by the asynchronous serial portv24 contain 300, 1200, 2400, 4800, 9600, 19200, 38400 and57600.
� The baud rates supported by the asynchronous serial port v24contain 1200, 2400, 4800, 9600, 19200 and 38400.
� The baud rates supported by the asynchronous serial port v35range from 64 K to 2000 K, ascending by the unit of 64 K.When the asynchronous serial port is set to work at 300 bps,a ppp link cannot be set successfully.
� It is only applied to ZXR10 GAR, ZXR10 ZSR.
Example This example describes how to set the baud rate of the syn-chronous serial port serial_1/1 to 19200 bps.ZXR10(config)#interface serial_1/1ZXR10(config-if)#baudrate 19200
broadcast-limitPurpose Use this command to configure the limit percentage of the Ethernet
port to broadcast packet. Restore default with the no command.
Command Modes Interface configuration
Syntax broadcast-limit <percent-value>
no broadcast-limit
SyntaxDescription
<percent-value> Limit percentage of broadcast packet in therange of 1~100 and the default value is 100
Instructions no broadcast-limit and broadcast-limit 100 have the samefunction.
Confidential and Proprietary Information of ZTE CORPORATION 11
ZXR10 Command Manual (Basic Configuration Volume II)
Example This example describes how to set the limit percentage of portfei_1/1 to broadcast packet to 10%.ZXR10(config)#interface fei_1/1ZXR10(config-if)#broadcast-limit 10
RelatedCommands
set interface broadcast-limit
bynamePurpose Use this command to configure the interface alias. Delete the in-
terface alias with the no command.
Command Modes Interface configuration
Syntax byname <by-name>
no byname
SyntaxDescription
<by-name> Interface alias, a string with 1~32 characters.
Defaults There is no interface alias by default.
Instructions After configuring an alias for an interface, directly enter the con-figuration mode of the interface with the alias.
Example This example describes how to set the alias of the interface fei_1/1to ether1, and enter the configuration mode of the interface withthe alias.ZXR10(config)#interface fei_1/1ZXR10(config-if)#byname ether1ZXR10(config-if)#exitZXR10(config)#interface ether1ZXR10(config-if)#
RelatedCommands
interface
cancelPurpose Use this command to shield the link up/link down alarm informa-
tion of the interface and SNMP TRAP information. Cacel the con-figuration with the no command.
Command Modes Interface configuration
Syntax cancel <up-down-type>
no cancel <up-down-type>
SyntaxDescription
<up-down-type> the link up/link down type of the interface
Defaults Not to shield the link up/link down alarm information of the inter-face and SNMP TRAP information by default.
12 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Instructions This command only supports shielding the link up/link down alarminformation of the interface and SNMP TRAP information under thefollowing interfaces: the layer-2 fei, layer-2 gei, loopback, QinQ,SuperVlan, SuperQinQ, VLAN, Tunnel, PortCh(SmartGroup).
Example This example describes how to shield the link down alarm andSNMP TRAP information of interface fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#cancel down-alarm
RelatedCommands
snmp-server host
snmp-server enable
logging trap-enable
channel-groupFunction Use this command to configure the channel number and time slot
of E1 interface. Delete the channel with the no command.
Command Mode Channelization configuration mode
Format channel-group <channel-number> timeslots <timeslots>
no channel-group <channel-number>
ParameterDescription
The parameter description of E1 interface:
<channel-number> Channel number, in range of 1~31
<timeslots> Time slot number, in range of 1~31
The parameter description of T1 interface:
<channel-number> Channel number, in range of 1~24
<timeslots> Time slot number, in range of 1~24
Instruction The command must be configured before the channelized E1 in-terface takes effect. The configured time slot should be consistentwith the time slot configured at the peer end.
Example 1. This example describes how to configure the channel numberof E1 interface as 1 and time slot number as 1~10.ZXR10(config)#controller ce1_3/1ZXR10(config-control)#channel-group 1 timeslots 1-10ZXR10(config-control)#no channel-group 1
2. This example describes how to configure the channel numberof T1 interface as 1 and time slot number as 1~10.ZXR10(config)#controller ct1_3/1ZXR10(config-control)#channel-group 1 timeslots 1-10ZXR10(config-control)#no channel-group 1
Confidential and Proprietary Information of ZTE CORPORATION 13
ZXR10 Command Manual (Basic Configuration Volume II)
channelizedPurpose Use this command to set whether CE3 interface works in channel-
ization mode.
Command Modes Channelization configuration
Syntax channelized
no channelized
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to set CE3 interface to work in non-channelization mode.ZXR10(config)#controller ce3_1/1ZXR10(config-control)#no channelized
char-lenPurpose Use this command to set the data bit length of the asynchronous
serial port. Restore default with the no command.
Command Modes Interface configuration
Syntax char-len <length>
no char-len
SyntaxDescription
<length> Data bit length of the asynchronous serialport, in the range of 5~8 and the defaultvalue is 8.
Instructions It is only applied to ZXR10GAR, ZXR10 ZSR.
Example Set the data bit of the serial port serial_1/1 to 7.ZXR10(config)#interface serial_1/1ZXR10(config-if)#char-len 7
clear counterPurpose Use this command to clear the statistics data of the port.
Command Modes Privileged EXEC
Syntax clear counter [<interface-name>]
SyntaxDescription
<interface-name> Interface name
Instructions When an interface name is specified, the statistics data of the spec-ified interface will be cleared, otherwise, clear statistics data of allthe interfaces.
14 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Example This example describes how to clear the statistics data on interfacefei_5/1 .ZXR10#clear counter fei_5/1
RelatedCommands
show interface
clock board sourcePurpose Use this command to select single board source.
Command Modes Global configuration
Syntax clock board source {free-run | system | line <interface-name>}
no clock board source
SyntaxDescription
free-run Single clock board source
system Use SFC as single clock board source
line <interface-name>
Use line clock as clock source and interface,not support sub interface
Defaults Default is system.
Example This example describes how to use single clock board as clocksource.ZXR10(config)#interface pos48_1/1ZXR10(config-if)#exitZXR10(config)#clock board source pos48_1/1 free-run
clock sourcePurpose Use this command to configure the clock extraction mode of the
interface in local router. Restore default with the no command.
Command Modes Channelization configuration and interface configuration
Syntax clock source {internal | line}
no clock source
SyntaxDescription
line Line clock
internal Internal clock
Defaults The clock mode is internal.
Instructions This command runs in the controller configuration mode on CE1,CE3 or CT1 interface, and the interface configuration mode on posor atm interface.
Confidential and Proprietary Information of ZTE CORPORATION 15
ZXR10 Command Manual (Basic Configuration Volume II)
Example � This example describes how to configure the aging time is 20hours.ZXR10(config)#controller ce1_3/1ZXR10(config-control)#clock source internal
� This example describes how to set the clock extraction modeof CE3 interface to internal clock.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#clock source internal
� This example describes how to set the clock extraction modeof CT1 interface to internal clock.ZXR10(config)#controller ct1_3/1ZXR10(config-control)#clock source internal
� This example describes how to set the clock extraction modeof pos12 interface to internal clock.ZXR10(config)#interface pos12_3/1ZXR10(config-if)#clock source internal
clock source(CPOS48)Purpose Use this command to configure the clock extraction mode of the
interface in local router. Restore default with the no command.
Command Modes Channelization configuration and interface configuration
Syntax clock source {system | line | free-run}
no clock source
SyntaxDescription
system System clock
line Line clock
free-run Uses the local clock as the clock source
Defaults The clock mode is system.
Instructions This command runs in the controller configuration mode..
Example This example shows how to configure the clock extraction modeon CPOS48 interface.ZXR10(config)#controller cos48_1/1ZXR10(config-control)#clock source line
controllerPurpose Use this command to enter CE1, CT1, CE3 or CPOS3 channelization
configuration mode.
Command Modes Global configuration
Syntax controller <interface-name>
16 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
SyntaxDescription
<interface-name> Interface name
Example This example describes how to enter CE1 channelization configu-ration mode.ZXR10(config)#controller ce1_3/1ZXR10(config-control)#
crcPurpose Use this command to set the crc mode of synchronous serial port
or pos port.
Command Modes Interface configuration
Syntax crc {16 | 32}
SyntaxDescription
16 Set a 16-bit crc
32 Set a 32-bit crc
Defaults The crc is 16 by default.
Example � This example describes how to set the crc mode of the serialport serial_1/1 as 32.ZXR10(config)#interface serial_1/1ZXR10(config-if)#crc 32
� This example describes how to set the crc mode of CT1 subinterface as 32.ZXR10(config)#interface ct1_1/1.1ZXR10(config-if)#crc 32
dce enablePurpose Use this command to set the work mode of synchronous serial port
to DCE.
Command Modes Interface configuration
Syntax dce enable
Defaults DCE working mode
Instructions It is only applied to ZXR10 GAR, ZXR ZSR.
Example This example describes how to set the working mode of serial portserial_1/1 to DCE.ZXR10(config)#interface serial_1/1ZXR10(config-if)#dce enable
Confidential and Proprietary Information of ZTE CORPORATION 17
ZXR10 Command Manual (Basic Configuration Volume II)
descriptionPurpose Use this command to add a description for the interface. Delete
the description of the interface with the no command.
Command Modes Interface configuration and channelization configuration
Syntax description <string>
no description
SyntaxDescription
<string> Description of the interface, with 200characters at most
Defaults No description
Example This example describes how to describe a 100M Ethernet interface.ZXR10(config)#interface fei_2/1ZXR10(config-if)#description "this is FastEthernet Interface"
dte enablePurpose Use this command to set the working mode of synchronous serial
port to DTE.
Command Modes Interface configuration
Syntax dte enable
Defaults DTE working mode
Instructions It is only applied to ZXR10GAR, ZXR ZSR.
Example This example describes how to set the working mode of serial portserial_1/1 to DTE.ZXR10(config)#interface serial_1/1ZXR10(config-if)#dte enable
duplexPurpose Use this command to configure the working mode of the 100M
interface as the half duplex mode and full duplex mode. Restoredefault with the no command.
Command Modes Interface configuration
Syntax duplex {half | full}
no duplex
18 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
SyntaxDescription
half Configures the working mode of 100 M portas half duplex mode
full Configures the working mode of 100 M portas full duplex mode
Defaults Full duplex mode
Instructions Fast Ethernet electrical interface and gigabit Ethernet electrical in-terface supports both half and full duplex modes. The fast Ether-net optical interface, gigabit Ethernet electrical interface and 10 GEthernet interface support the full duplex mode only.
Example This example describes how to configure the interface fei_1/1 asthe full-duplex mode.ZXR10(config)#interface fei_1/1ZXR10(config-if)#duplex full
RelatedCommands
duplex {auto | half | full}
e1 channel-group timeslotsPurpose Use this command to create an E1 channelized sub interface when
CE3 interface works in channelization mode. Delete this interfacewith the no command.
Command Modes Channelization configuration
Syntax e1 <line> channel-group <channel-number> timeslots <timeslots>
no e1 <line> channel-group <channel-number>
SyntaxDescription
<line> E1 number, the range 1~16
<channel-number> Channel number, can only be 1
<timeslots> Timeslot number, the timeslots 1~31 have tobe assigned to an interface at one time.
Instructions It is only applied to ZXR10 GER, ZXR10 T64E/T128.
Example This example describes how to configure an interface, the E1 num-ber is 1, the channel number is 1, and delete this interface at last.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#e1 1 channel-group 1 timeslots 1-31ZXR10(config-control)#no channel-group 1
e1 clock sourcePurpose Use this command to configure the clock source of interface E1.
Restore the default value with the no command.
Confidential and Proprietary Information of ZTE CORPORATION 19
ZXR10 Command Manual (Basic Configuration Volume II)
Command Modes Channelization configuration
Syntax e1 <line> clock source {internal | line}
no e1 <line> clock source
SyntaxDescription
<line> E1 number, the range 1~16
line Line clock
internal Internal clock
Defaults Clock mode is internal by default.
Instructions It is only applied to ZXR10 GER, ZXR10 T64E/T128.
Example This example describes how to configure the clock source of theNo.1 E1 channel as line clock.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#e1 1 clock source line
e1 framingPurpose Use this command to set frame format of E1 channel. Restore
default with the no command.
Command Modes Channelization configuration
Syntax e1 <line> framing {crc4 | no-crc4}
no e1 <line> framing
SyntaxDescription
<line> E1 number, in the range of 1~16
crc4 Sets frame format of e1 channel with 4-bitcrc check
no-crc4 Sets frame format of e1 channel without 4-bitcrc check
Defaults crc4, setting frame format of E1 channel with 4-bit crc check
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to configure the frame format of E1channel 1 with crc4 check:ZXR10(config)#controller ce3_3/1ZXR10(config-control)#e1 1 framing crc4
20 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
e1 loopbackPurpose Use this command to set loopback mode of E1 channel. Restore
default with the no command.
Command Modes Channelization configuration
Syntax e1 <line> loopback {local | remote {payload | network}}
no e1 <line> loopback
SyntaxDescription
<line> E1 number, in the range of 1~16
local Sets the loopback mode of e1 channel to localloopback mode
remote payload Sets the loopback mode of e1 channel toremote payload mode
remote network Sets the loopback mode of e1 channel toremote network mode
Defaults Do not support the loopback function by default.
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to configure the loopback mode of E1channel 1 to local loopback.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#e1 1 loopback local
e1 national bitsPurpose Use this command to set the national bits parameter of E1 channel.
Restore default with the no command.
Command Modes Channelization configuration
Syntax e1 <line> national bits <pattern>
no e1 <line> national bits
SyntaxDescription
<line> E1 number, in the range of 1~16
<pattern> 0~31, 0 by default
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to configure national bits of E1 chan-nel 1 as 1.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#e1 1 national bits 1
Confidential and Proprietary Information of ZTE CORPORATION 21
ZXR10 Command Manual (Basic Configuration Volume II)
e1 unframedPurpose Use this command to set E1 channel to work in unframed mode,
and create an E1 unframed sub interface. Set E1 to work in fram-ing mode with the no command.
Command Modes Channelization configuration
Syntax e1 <line> unframed
no e1 <line> unframed
SyntaxDescription
<line> E1 number, in the range of 1~16
Defaults E1 works in the framing mode.
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to create an unframed sub interfaceof E1 1.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#e1 1 unframed
encapsulationPurpose Use this command to set the encapsulation mode of serial port or
channelized E1 interface. Restore default with the no command.
Command Modes Interface configuration
Syntax encapsulation {ppp | hdlc | frame-relay}
no encapsulation
SyntaxDescription ppp Sets the encapsulation mode of serial port to
ppp
hdlc Sets the encapsulation mode of serial portto hdlc
frame-relay Sets the encapsulation mode of serial port toframe-relay
Defaults The encapsulation mode of serial port or channelized E1 interfaceis ppp.
Example This example describes how to set the encapsulation mode of theserial port serial_1/1 to hdlc.ZXR10(config)#interface serial_1/1ZXR10(config-if)#encapsulation hdlc
22 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
encapsulation dot1QPurpose Use this command to encapsulate VLAN-ID for a newly created sub
interface. Cancel the encapsulation with the no command.
Command Modes Subinterface configuration
Syntax encapsulation dot1Q <vlan-id>
encapsulation dot1Q range {<vlan-id>-<vlan-id>}
no encapsulation dot1Q
no encapsulation dot1Q range
SyntaxDescription
<vlan-id> The VLAN_ID supported by the sub interface,in the range of 1~4094
range <vlan-id>-<vlan-id>
The VLAN_ID supported by the sub interface,in the range of 1~4094
Instructions � Only the subinterface can be configured with this command.
� The newly created subinterface must be encapsulated withthe<vlan-id>Otherwise, this subinterface cannot receive andsend packets.
� The no command is used to set the <vlan-id> encapsulatedfor the subinterface to 0. In this case, the packet cannot bereceived and sent.
� After configuring VPN, ACL, NAT and QOS attributes on thesubinterface and before removing the above attributes, it isunable to remove encapsulation (with the no command) orchange encapsulation.
� This command can not be configured with any one of qinq,qinq range and encapsulation dot1Q.
flag c2Purpose Use this command to set POS /ATM port signal access sign.
Command Modes Interface
Syntax flag c2 <value>
no flag c2
SyntaxDescription
<value> The range is 0~255
Defaults System default configuration (0x01).
Instructions Default POS/ATM SDH as 0x01, SONET as 0xcc, this commandused for POS interface and ATM interface.
Example This example shows how to set POS port signal access sign.ZXR10(config)#int pos48_1/1
Confidential and Proprietary Information of ZTE CORPORATION 23
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10(config-if)#flag ?c2 path overhead bytej0 section trace bytes1s0 Specify bit S1 and S0 of H1ZXR10(config-if)#flag c2 ?<0-255> Byte valueZXR10(config-if)#flag c2 2
flag j0Purpose Use this command to set POS port and ATM port section trace sign
field J0. Restore POS port section trace sign field J0 with the nocommand.
Command Modes Interface configuration
Syntax flag j0 <value>
no flag j0
SyntaxDescription
<value> in the range of 0~255
Defaults System default configuration (0x01)
Instructions Default POS/ATM SDH is 0x01, SONET is 0xcc and this commandis used for POS interface and ATM interface.
Example This example shows how to set POS port section trace sign fieldJ0.ZXR10(config)#int pos48_1/1ZXR10(config-if)#flag ?c2 Path overhead bytej0 Section trace bytes1s0 Specify bit S1 and S0 of H1ZXR10(config-if)#flag j0 ? <0-255> Byte valueZXR10(config-if)#flag j0 2
flag s1s0Purpose Use this command to set POS port and ATM port section trace sign
field S1. Restore the system default configuration(0x24) of POSport synchronization state field S1.
Command Modes Interface configuration
Syntax flag s1s0 <value>
no pos flag s1s0 <value>
SyntaxDescription
<value> in the range of 0~3
Defaults Default POS/ATM are 2.
Instructions This command is used for POS interface and ATM interface.
24 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Example This example shows how to set POS port section trace sign fieldS1.ZXR10(config)#int pos48_1/1ZXR10(config-if)#flag ?c2 Path overhead bytej0 Section trace bytes1s0 Specify bit S1 and S0 of H1ZXR10(config-if)#flag s1s0 3
flowcontrolPurpose Use this command to configure flow control on an Ethernet port.
Restore default with the no command.
Command Modes Interface configuration
Syntax flowcontrol {enable | disable}
no flowcontrol
SyntaxDescription
enable Configures an Ethernet port to enable flowcontrol
disable Configures an Ethernet port to disable flowcontrol
Defaults Flow control is disabled.
Instructions no flowcontrol and flowcontrol disable have the same func-tion.
Example This example describes how to set the port fei_1/1 to disable flowcontrol.ZXR10(config)#interface fei_1/1ZXR10(config-if)#flowcontrol disable
RelatedCommands
set interface flowcontrol
frametypePurpose Use this command to set frame format of E3 channel. Restore
default with the no command.
Command Modes Channelization configuration
Syntax frametype {bypass | g751}
no frametype
SyntaxDescription
bypass Sets frame format of e3 channel to bypass
g751 Sets frame format of e3 channel to g751
Defaults Frame format is bypass.
Confidential and Proprietary Information of ZTE CORPORATION 25
ZXR10 Command Manual (Basic Configuration Volume II)
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to configure the frame format of CE3channel as g751.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#frametype g751
framingPurpose Use this command to configure the framing mode. Delete all inter-
faces which are created on the specified mode with the no com-mand.
Command Modes Channelization configuration
Syntax framing {sonet | sdh}
no framing {sonet | sdh}
SyntaxDescription
sonet Sets the framing mode of pos to sonnet mode.
sdh Sets the framing mode of pos to sdh mode.
Instructions It is applied to ZXR10 GER.
Example This example describes how to set the framing mode to sdh.ZXR10(config)#int pos48_1/1ZXR10(config-if)#framing sdh
framingCPOS3Purpose Use this command to configure the framing mode of CPOS3 inter-
face. Delete all interfaces which are created on the specified modewith the no command.
Command Modes Channelization configuration
Syntax framing {sonet | sdh}
no framing {sonet | sdh}
SyntaxDescription
sonet Sets the framing mode of CPOS3 interface tosonnet mode.
sdh Sets the framing mode of CPOS3 interface tosdh mode.
Instructions It is applied to ZXR10 GER.
Example This example describes how to configure the framing mode ofCPOS3 to sdh.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdh
26 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
framingCE1Purpose Use this command to configure the framing mode of E1 interface
board.
Command Modes Channelization configuration
Syntax framing {unframed | frame}
SyntaxDescription
unframed Unframed mode
frame Framing mode
Defaults Framing mode
Instructions � When the E1 interface is configured to unframed mode, it occu-pies 1~31 time slots. In the case, the command of configuringtime slot is ineffective.
� When the E1 interface is configured to framing mode, and thento unframed mode, the virtual interfaces in the original framingmode are deleted.
Example This example describes how to configure the framing mode of E1interface board.ZXR10(config)#control1er e1_4/1ZXR10(config-control)#framing frameZXR10(config-control)#framing unframe
framing(CT1)Purpose Use this command to configuration the framing and frame format.
Command Modes Channel configuration
Syntax framing {unframed | frame | superframe | extended-superframe }
SyntaxDescription
unframed the unframed format
frame framing format, extended-superframeoriginally
superframe superframe framing
extended-superframe
extended-superframe framing
Defaults It is superframe framing by default.
Instructions When interface T1 is set to unframed format, it occupies 1~24time-slot. The command for configuring the time-slot is invalid.
When interface T1 is set to frame format, if it is transformd tounframe format , all the virtual interfaces under the framing formatwill be deleted.
Confidential and Proprietary Information of ZTE CORPORATION 27
ZXR10 Command Manual (Basic Configuration Volume II)
Only when interface T1 is framing format, the superframe and theextended-superframe can be configured.
Example This example describes how to configure the framing format on T1interface board.ZXR10(config)#control1er ct1_4/1ZXR10(config-control)#framing frameZXR10(config-control)#framing superframeZXR10(config-control)#framing extended-superframeZXR10(config-control)#framing unframe
hybrid-attributePurpose Use this command to configure optical and electrical attributes of
the gigabit Ethernet port.
Command Modes Interface configuration
Syntax hybrid-attribute {fiber|copper}
SyntaxDescription
fiber Configures the attribute to optical interfaceattribute
copper Configures the attribute to electrical interfaceattribute
Defaults It is optical interface attribute by default.
Instructions Set the optical/electrical attribute of the gigabit Ethernet port tooptical interface attribute with the hybrid-attribute fiber com-mand. Set the optical/electrical attribute of the gigabit Ether-net port to electrical interface attribute with the hybrid-attributecopper command.
Example This example describes how to set the optical/electrical attributeof interface gei_1/1 to electrical interface attribute.ZXR10(config)#interface gei_1/1ZXR10(config-if)#hybrid-attribute copper
interfacePurpose The execution of this command enters the interface configuration
mode or the sub-interface configuration mode. For an inexistentsub-interface, create a sub-interface and enter the sub-interfaceconfiguration mode. To delete the corresponding interface and re-lated configurations, use the no form of this command.
Command Modes Global configuration
Syntax interface {<interface-name>| byname <byname>}
no interface {<interface-name>|<byname>}
28 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
SyntaxDescription
<interface-name> Interface name
byname <byname> Interface alias
Instructions � The no form of this command is invalid for physical interfaces.Both commands - no interface byname <byname> and nointerface <interface-name> can delete the interface.
� To enter the configuration mode of the interface with parameterbyname, set the interface alias first.
Example � This example describes how to enter interface 1 of networkboard fei_1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#
� This example describes how to enter subinterface 100 of inter-face fei_2/1.ZXR10(config)#interface fei_2/1.100ZXR10(config-subif)#
� This example describes how to set the alias of fei_1/1 toether1, with which enter the configuration mode of the inter-face.ZZXR10(config)#interface fei_1/1ZXR10(config-if)#by name ether1ZXR10(config-if)#exitZXR10(config)#interface byname ether1ZXR10(config-if)#
RelatedCommands
byname
interface mac-address offsetPurpose Use this command to set the MAC address offset of the Ethernet
interface.
Command Modes Interface configuration
Syntax interface mac-address offset <mac-offset>
no interface mac-address offset
SyntaxDescription
<mac-offset> The MAC address offset of the interface, inthe range of 1~30, 0 by default.
Example This example describes how to set the MAC address offset of in-terface fei_2/2 to 6.ZXR10(config)#interface fei_2/2ZXR10(config-if)#interface mac-address offset 6
Confidential and Proprietary Information of ZTE CORPORATION 29
ZXR10 Command Manual (Basic Configuration Volume II)
inter-subqinq-routingPurpose Use this command to enable or disable the ARP proxy function
between QinQ interfaces.
Command Modes Superqinq interface configuration
Syntax inter-subqinq-routing {enable | disable}
SyntaxDescription
enable Enables the ARP proxy function between QinQinterfaces.
disable Disables the ARP proxy function betweenQinQ interfaces.
Defaults Enable the ARP proxy function between qinq interfaces.
Instructions This command is used in Superqinq interface configuration mode ofswitches. After the ARP proxy function between qinq interfaces isdisabled, users can use show running-config command to viewthe information.
Example This example shows how to disable the ARP proxy function be-tween QinQ interfaces.ZXR10(config)#interface superqinq1ZXR10(config-if)#inter-subqinq-routing disable
RelatedCommands
show running-config
invert txclockPurpose It is used to allow inverting the Rx clock signals of the synchronous
serial port at the DTE side. Use the no command to prohibit in-version.
Command Modes Interface configuration
Syntax invert txclock
no invert txclock
Defaults Inversion of Rx clock signals is prohibited.
Instructions � In special cases, to eliminate the delay of half clock period onthe link, the Rx clock signals on the synchronous serial port ofthe DTE can be inverted. This command is valid only for clocksignals provided by some special CSU/DSUDCEs. No inversionshall be made for general application clock signals.
� The command is applied only to ZXR10GAR, ZXR10 ZSR.
Example This example describes how to invert the Rx clock signals of thesynchronous serial port on the DTE.ZXR10(config)#interface serial_1/1ZXR10(config-if)#invert txclock
30 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
ip arp inspectPurpose Use this command to enable or disable the dynamic ARP detection
function of DHCP on QinQ or Superqinq interface.
Command Modes Interface configuration and Superqinq interface configuration
Syntax ip arp inspect
no ip arp inspect
Defaults The dynamic ARP detection function of DHCP on QinQ or Superqinqinterface is disabled.
Instructions This command is used in interface configuration mode and Su-perqinq interface configuration mode of switches. After the dy-namic ARP detection function of DHCP is enabled, users can useshow running-config command to view the information.
Example This example shows how to enable the dynamic ARP detectionfunction of DHCP on Superqinq1.ZXR10(config)#interface superqinq1ZXR10(config-if)#ip arp inspect
RelatedCommands
show running-config
ip discard undeliverablePurpose Use this command to set whether to send the route-less packets
on the interface for protocol processing. Restore the default withthe no command.
Command Modes Interface configuration
Syntax ip discard undeliverable
no ip discard undeliverable
Defaults No sending is made.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set to send the route-less packetson the interface for protocol processing.ZXR10(config)#intrface fei_3/1ZXR10(config-if)#no ip discard undeliverable
jumbo-framePurpose Use this command to set whether the Ethernet port shall support
jumbo frames. Restore the default with the no command.
Command Modes Interface configuration
Syntax jumbo-frame {enable | disable}
no jumbo-frame
Confidential and Proprietary Information of ZTE CORPORATION 31
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
enable Enables the Ethernet port to support jumboframes
disable Disables the Ethernet port to support jumboframes
Defaults Jumbo frames are not supported.
Example This example describes how to set port gei_2/1 not to supportjumbo frames.ZXR10(config)#interface gei_2/1ZXR10(config-if)#jumbo-frame disable
RelatedCommands
set interface jumbo-frame
keepalivePurpose Use this command to set keepalive value of the interface.
Command Modes Interface configuration
Syntax keepalive [<seconds>]
no keepalive
SyntaxDescription
<seconds> Value of keepalive(in second), ranging 1 ~32767, 10 by default
Instructions � When the interface adopts PPP for encapsulation, the routersends a PPP ECHO request packet in the interval of keepalive.If no ECHO-REPLY is received after sending five ECHO packetssuccessively, the interface will be shut down.
� To cancel PPP keepalive, use no keepalive. To restore thedefault, use keepalive.
� When the interface adopts frame relay for encapsulation, theparameter ranges 1–30. In this case, <seconds>must besmaller than interval t392 of the frame relay switch.
� This command is valid only when the interface adopts PPP, FR,HDLC or X25 for encapsulation.
Example This example describes how to set keepalive of interface Serial_1/1to 100 seconds.ZXR10(config)#interface serial_1/1ZXR10(config-if)#keepalive 100
linecodePurpose Use this command to configure the linecode format of interface
CE1 and CT1.
32 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Command Modes CE1, CT1 controller configuration
Syntax linecode {ami | bz8s}
SyntaxDescription
ami ami linecode
bz8s bz8s linecode
Defaults The linecode is bz8s by default.
Example 1. This example describes how to set the linecode of interfaceCE1.ZXR10(config)#controller ce1_3/1ZXR10(config-control)#linecode amiZXR10(config-control)#linecode bz8s
2. This example describes how to set the linecode of interfaceCT1.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#linecode amiZXR10(config-control)#linecode bz8s
load-balancePurpose Use this command to set not to send MPPP packets in fragments.
Use the no command to adopt fragment sending.
Command Modes Interface configuration
Syntax load-balance
no load-balance
Defaults Fragment sending is not adopted.
Instructions It is applied only to ZXR10GAR, ZXR ZSR.
Example This example describes how to send the data of interface multilink1in fragments.ZXR10(config)#interface multilink1ZXR10(config-if)#no load-balance
load-intervalPurpose Use this command to set up the interface traffic statistic interval.
Restore the default with the no command.
Command Modes Interface configuration
Syntax load-interval <interval>
no load-interval
SyntaxDescription
<interval> Statistical interval(in seconds), ranging30–600, 120 seconds by default
Confidential and Proprietary Information of ZTE CORPORATION 33
ZXR10 Command Manual (Basic Configuration Volume II)
Instructions After the command is put into effect, use show interface to calcu-late the usage rate according to the set interval. Within the spec-ified interval, the usage rate of the interface is calculated throughthe received traffic. After the interval, traffic within a new intervalis calculated.
Example This example describes how to set the traffic statistical interval to300 seconds.ZXR10(config)#interface fei_1/1ZXR10(config-if)#load-interval 300
RelatedCommands
clear counter
show interface
loopback(CE3)Purpose Use this command to set the loopback mode of the CE3 channel.
Restore the default with the no command.
Command Modes Channelization configuration
Syntax loopback {local|remote{payload|network}}
no loopback
SyntaxDescription
local Sets the loopback mode to local
remote payload Sets the loopback mode to remote payload
local network Sets the loopback mode to remote network
Defaults No loopback is supported
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to set the loopback mode of the CE3channel to local.ZXR10(config)#controller ce3_3/1ZXR10(config-control)#loopback local
loopbackPurpose Use this command to set the loopback mode of the pos and cpos
channel. Restore the default with the no command.
Command Modes Channelization configuration and interface configuration
Syntax loopback {internal|line}
no loopback
34 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
SyntaxDescription
internal Sets the loopback mode to internal
line Sets the loopback mode to line
Defaults No loopback is supported.
Instructions It is applied to ZXR10 T64E/T128/T600/T1200.
Example This example describes how to set the loopback mode of CPOS48channel to internal.ZXR10(config)#controller cpos48_1/1ZXR10(config-control)#loopback internal
modePurpose After the cpos3 interface is set to the SONET mode, use the m
ode command to set the work mode of the sts-1, and use the noform of this command to delete all interfaces of the specified workmode.
Command Modes sts–1 configuration
Syntax mode {vt-15|vt-2}
no mode {vt-15|vt-2}
SyntaxDescription
vt-15 Sets the work mode of sts-1 to vt-15
vt-2 Sets the work mode of sts-1 to vt-2
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the work mode of sts-1 to vt-15.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-15
mode(CT1)Purpose Use this command to configure the working mode of interface
board CT1.
Command Modes Global configuration
Syntax mode slot <slot-num>{T1 | E1}
Confidential and Proprietary Information of ZTE CORPORATION 35
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
slot-num It is line card number of interface board T1,in the range of 1~16.
T1 Sets the working mode of interface board T1to T1.
E1 Sets the working mode of interface board T1to E1.
Instruction This command can only be applied to interface board T1.
When interface board T1 works in E1 mode, it is equal to E1 inter-face board and the interface is E1 interface currently.
Example This example describes how to set the working mode of interfaceboard T1 in slot 1 to E1.ZXR10(config)#mode slot 1 E1
monitor session(GlobalConfiguration)
Purpose Use this command to create a session. Delete a session or thesource/destination port with the no command.
Command Modes Global configuration
Syntax monitor session <session-number>
no monitor session <session-number>
SyntaxDescription
<session-number> Session number, ranging 1–8
Instructions Command no can delete the whole session and all the source anddestination ports.
Example This example describes how to create a session numbered 1.ZXR10(config)#monitor session 1
RelatedCommands
show monitor session
monitor session(Portconfifuration)
Purpose Use this command to add a source or a destination port to a ses-sion. Delete a port from a session with the no command.
Command Modes Interface configuration
36 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Syntax monitor session <session-number>{desigation | source [direction {both | tx | rx}]}
no monitor session
SyntaxDescription
<session-number> Session number, ranging 1–8
designation Specifies the port as the destination port
source Specifies the port as a source port
direction Specifies the traffic collection direction of thesource port
both Sets the traffic collection direction of thesource port to both Rx and Tx
tx Sets the traffic collection direction of thesource port to Tx
rx Sets the traffic collection direction of thesource port to Rx
Defaults The collection direction is dual-direction.
Instructions � Each session can be configured with up to eight source portsand one destination port. Each port can be either the sourceor the destination, but not both.
� In configuring the source/destination port with the command,if the session number does not exist, create a session first,and then add the source/destination port. In configuring thedestination port, if the session already holds a destination port,the configuration is invalid.
� If the source/destination ports of each session are on the sameline interface board, the system supports up to eight sessions.If the source/destination ports of each session are not on thesame line interface board, only one session is allowed.
Example � This example describes how to set a session numbered 1, withthe source port fei_1/1, and the traffic collection direction Tx.ZXR10(config)#interface fei_1/1ZXR10(config-if)#monitor session 1 source direction tx
� This example describes how to set a session numbered 1, withthe destination port fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#monitor session 1 destination
RelatedCommands
show monitor session
mtuPurpose Use this command to set the MTU of an interface.
Command Modes Interface configuration
Confidential and Proprietary Information of ZTE CORPORATION 37
ZXR10 Command Manual (Basic Configuration Volume II)
Syntax For ethernet interface, POS interface, CPOS48 interface, ce1 inter-face and SmartGroup interface on T128 rack: mtu <128-1600>
For CP3 interface and mppp interface on T128 rack: mtu <128-1600>
For ethernet interface, POS interface, CPOS48 interface, ce1 inter-face and SmartGroup interface on T600 rack: mtu <128-7680>
For CP3 interface and mppp interface on T600 rack: mtu <128-5120>
SyntaxDescription
<128-1600> The value of MTU
<128-7680> The value of MTU
<128-5120> The value of MTU
Defaults � For POS/CPOS (CP3 and CP48) interface, the mtu is 4470.
� For Ethernet interface, the mtu is 1600.
Example This example shows how to set the MTU of a seral interface fei_3/1to 168.ZXR10(config-if)#mtu 168ZXR10(config-if)#show run interface fei_3/1Building configuration...!interface fei_3/1physical-layer mode npctmtu 168
!end
multicast-limitPurpose Use this command to set the limit rate (in percent) to multicast
packets on the Ethernet port. Restore the default with the nocommand.
Command Modes Interface configuration
Syntax multicast-limit <percent-value>
no multicast-limit
SyntaxDescription
<percent-value> Limit rate to multicast packets, ranging1–100, 100 by default.
Instructions no multicast-limit and multicast-limit 100 have the samefunction.
Example This example describes how to set the rate limit (in percent) tomulticast packets on port fei_1/1 to 10.ZXR10(config)#interface fei_1/1ZXR10(config-if)#multicast-limit 10
38 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
RelatedCommands
set interface multicast-limit
national bitPurpose Use this command to set parameter national bit of the CE3 chan-
nel. Restore the default with the no command.
Command Modes Channel configuration
Syntax national bit {0|1}
no national bit
SyntaxDescription
0 Sets national bit to 0
1 Sets national bit to 1
Defaults The default is 1.
Instructions It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to set national bit of the CE3 channelto 0.ZXR10(config)#controller ce3_3/1ZXR10(config-control)# national bit 0
native vlan idPurpose Use this command to configure dynamic vlan id on Ethernet inter-
face.
Command Modes Interface configuration
Syntax native vlan id < vlan-id >
no native vlan id
SyntaxDescription
<vlan-id> VLAN number, in the range of 1~4095.
Defaults The default value is 4095.
Instructions It is applied to megabit and gigabit interfaces.
Example This example shows how to set the native vlan id of a megabitinterface fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#native vlan id 111
Confidential and Proprietary Information of ZTE CORPORATION 39
ZXR10 Command Manual (Basic Configuration Volume II)
negotiation autoPurpose Use this command to activate auto-negotiation of the Ethernet in-
terface. Disable auto-negotiation of the Ethernet interface withthe no command.
Command Modes Interface configuration
Syntax negotiation auto [speed {10|100}]
no negotiation auto
SyntaxDescription
10 Sets the interface negotiation auto to 10M
100 Sets the interface negotiation auto to 100M
Defaults Auto-negotiation is enabled.
Example This example describes how to enable auto-negotiation on inter-face gei_2/1.ZXR10(config)#interface gei_2/1ZXR10(config-if)# negotiation auto
npc-typePurpose Use this command to set the type of the current NPC board.
Command Modes Interface configuration
Syntax npc-type {npci|npct}
SyntaxDescription
npci Sets the NPC board of the current interfaceto npci.
npct Sets the NPC board of the current interfaceto npct.
Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.
� The command is applied only to ZXR10 T128. Actually, config-uration with this command is unnecessary, for the T128 projectensures the correctness of configuration restoration (read fromthe database) after a different NPC interface board is replacedin the slot.
parityPurpose Use this command to set the parity check type of the asynchronous
serial port.
40 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Command Modes Interface configuration
Syntax parity {none|odd|even}
SyntaxDescription none The parity check bit is not added to the data
bit sent via this interface. With this option,the error check is inhibited.
odd The number of 1 in the data bit is odd.
even The number of 1 in the data bit is even.
Defaults The parity check bit is not added to the data bit sent via this in-terface.
Instructions � This command is to modify the error check type on the selectedinterface. The settings of the computer or equipment in com-munication with it must be the same.
� It is applied only to ZXR10 GAR, ZXR10 ZSR.
Example This example describes how to set the error check type of asyn-chronous serial port serial_1/1 to even check.ZXR10(config)#interface serial_1/1ZXR10(config-if)#parity even
physical-layer modePurpose Use this command to set the work mode of the synchronous/asyn-
chronous v24 serial port.
Command Modes Interface configuration
Syntax physical-layer mode {sync|async}
SyntaxDescription sync Sets the work mode of the serial port to the
synchronous v24 mode.
async Sets the work mode of the serial port to theasynchronous v24 mode.
Defaults The default is synchronous v24 mode.
Instructions The work mode of the synchronous/asynchronous serial port de-pends on the application environment. If it is connected with amodem or a TA via PSTN or ISDN, the asynchronous mode isselected; if it is connected with the CSU/DSU via DDN, the syn-chronous mode is selected.
The synchronous v35 serial port does not support this command.
It is applied only to ZXR10 GAR, ZXR10 ZSR.
Example This example describes how to set the work mode of syn-chronous/asynchronous serial port to asynchronous v24.ZXR10(config)#interface serial_1/1ZXR10(config-if)#physical-layer mode async
Confidential and Proprietary Information of ZTE CORPORATION 41
ZXR10 Command Manual (Basic Configuration Volume II)
port-hold timePurpose use this command to set the port hold time of an Ethernet inter-
face. Restore the default value 0 with the no command.
Command Modes Interface configuration
Syntax port-hold time <time>
no port-hold time
SyntaxDescription
<time> Hold time, in its unit of second, ranging from0 to 1200
Instructions It is applied to ZXR10 T128/T600 and ZXR10 SW.
Example This example shows how to configure the hold time of fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)# port-hold time 10
qinqPurpose Use this command to configure the tags of internal VLAN and ex-
ternal VLAN.
Command Modes VLAN sub interface configuration
Syntax qinq internal-vlan <1-4094> external-vlan <1-4094>
SyntaxDescription
internal-vlan<1-4094>
Tag of internal VLAN
external-vlan<1-4094>
Tag of external VLAN
Instructions It is applied to Ethernet sub interface.
The internal tag and external tag can not be overlapping on thesub interface of the same physical interface at the same time.
This command can not be configured together with qinq rangecommand, encapsulation dot1Q range command and encapsulation dot1Q command.
qinq rangePurpose Use this command to configure the tags of internal VLAN and ex-
ternal VLAN
Command Modes VLAN sub interface configuration
Syntax For high end routers:
42 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
qinq range internal-vlan <1-4094> external-vlan <1-4094>
qinq range internal-vlan 1-3 external-vlan 4-9
Only one segment of tags can be configured on high end routers.
For switches:
qinq range internal-vlan <1-4094> external-vlan <1-4094
SyntaxDescription
internal-vlan Tag of internal VLAN
external-vlan Tag of external VLAN
Instruction � Only one segment of tags can be configured on high endrouters. Up to 10 segments of tags can be configured onswitches.
� It is applied to Ethernet interface and qinq interface.
� The internal tag and external tag can not be overlapping on thesub interface of the same physical interface at the same time.
� This command can not be configured together with qinq com-mand, encapsulation dot1Q range command and encapsulation dot1Q command.
� The range of internal tag and external tag should be within1000 for once configuration.
Example � This example shows how to configure the tags of internal VLANand external VLAN on a high end router.ZXR10(config-if)# qinq range internal-vlan 1-3 external-vlan 4-9
� This example shows how to configure the tags of internal VLANand external VLAN on a switch.ZXR10(config-if)# qinq range internal-vlan 1-3,5-10,12-32 external-vlan 6-9,12-46
reference clockPurpose Use this command to set the clock source of the SMP board. Re-
store the default with the no command.
Command Modes Global configuration
Syntax reference clock {bits | local | port <interface-name>}
no reference clock
SyntaxDescription
bits Uses the bits clock as the clock source.
local Uses the local oscillator of the SMP as theclock source.
port <interface-name>
Interface name, and no subinterface issupported.
Defaults The default is local.
Confidential and Proprietary Information of ZTE CORPORATION 43
ZXR10 Command Manual (Basic Configuration Volume II)
Instructions � The parameter <interface-name> only supports ATM, POS andE1 interfaces.
� It is applied to ZXR10 GER and ZXR10 T64E/T128.
Example This example describes how to configure the line clock of interfacepos48_6/1 as the clock source of the SMP.ZXR10(config)#reference clock port pos48_6/1
resetPurpose Use this command to reset the specified serial port board.
Command Modes Privileged EXEC
Syntax reset <board-name>
SyntaxDescription
<board-name> Name of the specified serial port board
Defaults If this area is configured, it is enabled by default.
Instructions It is applied only to the serial port board of ZXR10 GAR, ZXR ZSR.
set interface broadcast-limitPurpose Use this command to set the rate limit (in percent) of broadcast
packets on Ethernet ports in batch.
Command Modes Global configuration
Syntax set interface broadcast-limit <percent-value><port-list>
SyntaxDescription
<percent-value> Rate limit to broadcast packets, ranging1–100, 100 by default
<port-list> Port list of the batch configuration
Instructions The parameter <port-list>describes the port list of the batchconfiguration. For example, “fei_1/3-6, gei_2/3” means that thebatch configuration is for ports fei_1/3, fei_1/4, fei_1/5, fei_1/6and gei_2/3.
Example This example describes how to set the rate limit to broadcast pack-ets on ports fei_1/1, fei_1/2 and fei_1/3 to 10.ZXR10(config)#set interface broadcast-limit 80 fei_1/1-3
44 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
RelatedCommands
broadcast-limit
set interface cancelPurpose Use this command to configure the link up/link down alarm and
the SNMP TRAP information of the shielding ethernet interface inbatch scale.
Command Modes Global configuration
Syntax set interface cancel <up-down-type><port-list>
SyntaxDescription
<up-down-type> The value is down-alarm or up-alarm.
down-alarm: shields the link down alarm andSNMP TRAP information
up-alarm: shields the link up alarm and SNMPTRAP information.
<port-list> Specifies the port list to configure in batchscale.
Example This example shows how to configure the link up alarm and theSNMP TRAP information of the shielding interface fei_1/1, fei_1/2and fei_1/3.ZXR10(config)#set interface cancel up-alarm fei_1/1-3
RelatedCommands
Cancel
set interface duplexPurpose Use this command to set the work mode of Ethernet ports in batch.
Command Modes Global configuration
Syntax set interface duplex {half | full}<port-list>
SyntaxDescription
half Sets the work mode of Ethernet ports to thehalf duplex mode.
full Sets the work mode of Ethernet ports to thefull duplex mode.
<port-list> Port list of the batch configuration
Defaults The default is full duplex mode.
Instructions Fast Ethernet electrical interfaces, and Gigabyte Ethernet electricalinterfaces support both half and full duplex work modes. Fast Eth-ernet optical interfaces, Gigabyte Ethernet optical interfaces and10 Gigabyte Ethernet interfaces support only the full duplex mode.
Confidential and Proprietary Information of ZTE CORPORATION 45
ZXR10 Command Manual (Basic Configuration Volume II)
Example This example describes how to set ports fei_1/1, fei_1/2 andfei_1/3 to the full-duplex mode.ZXR10(config)#set interface duplex full fei_1/1-3
RelatedCommands
duplex
set interface flowcontrolPurpose Use this command to set flow control of Ethernet ports in batch.
Command Modes Global configuration
Syntax set interface flowcontrol {enable | disable}<port-list>
SyntaxDescription
enable Enables flow control on Ethernet ports
disable Disables flow control on Ethernet ports
<port-list> Port list of the batch configuration
Defaults The function of flowcontrol is disabled on all Ethernet ports.
Example This example describes how to enable flow control on ports fei_1/1,fei_1/2 and fei_1/3.ZXR10(config)#set interface flowcontrol enable fei_1/1-3
RelatedCommands
flowcontrol
set interface jumbo-framePurpose Use this command to set in batch whether the Ethernet ports shall
support jumbo frames.
Command Modes Global configuration
Syntax set interface jumbo-frame {enable | disable}<port-list>
SyntaxDescription
enable Enables the Ethernet ports to support jumboframes
disable Disables the Ethernet ports to support jumboframes
<port-list> Port list of the batch configuration
Defaults All Ethernet interfaces do not support jumbo frame.
Example This example describes how to enable ports fei_1/1, fei_1/2 andfei_1/3 to support jumbo frames.ZXR10(config)#set interface jumbo-frame enable fei_1/1-3
46 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
RelatedCommands
jumbo-frame
set interface multicast-limitPurpose Use this command to set in batch the limit rate (in percent) to
multicast packets on Ethernet ports.
Command Modes Global configuration
Syntax set interface multicast-limit <percent-value><port-list>
SyntaxDescription
<percent-value> Limit rate to multicast packets, ranging1–100, 100 by default
<port-list> Port list of the batch configuration
Example This example describes how to set the limit rate to broadcast pack-ets on ports fei_1/1, fei_1/2 and fei_1/3 to 80.ZXR10(config)#set interface multicast-limit 80 fei_1/1-3
RelatedCommands
multicast-limit
set interface negotiationPurpose Use this command to set auto-negotiation of Ethernet ports in
batch.
Command Modes Global configuration
Syntax set interface negotiation {enable | disable}<port-list>
SyntaxDescription
enable Enables auto-negotiation on Ethernet ports.
disable Disables auto-negotiation on Ethernet ports.
port-list Specifies the port list of the batchconfiguration.
Defaults The auto-negotiation is enabled on all Ethernet interfaces.
Example This example describes how to enable auto-negotiation on portsfei_1/1, fei_1/2 and fei_1/3.ZXR10(config)#set interface negotiation enable fei_1/1-3
Confidential and Proprietary Information of ZTE CORPORATION 47
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
negotiation auto
set interface recoverPurpose Use this command to cancel the link up/link down alarm and the
SNMP TRAP information of the shielding ethernet interface in batchscale.
Command Modes Global configuration
Syntax set interface recover<up-down-type><port-list>
SyntaxDescription
<up-down-type> The value is down-alarm or up-alarm.
down-alarm: cancel shielding the link downalarm and SNMP TRAP information
up-alarm: cancel shielding the link up alarmand SNMP TRAP information.
<port-list> Specifies the port list to configure in batchscale.
Example This example shows how to cancel the link up alarm and the SNMPTRAP information of the shielding interface fei_1/1, fei_1/2 andfei_1/3.ZXR10(config)#set interface recover up-alarm fei_1/1-3
RelatedCommands
recover
set interface speedPurpose Use this command to set the speed of Ethernet ports in batch.
Command Modes Global configuration
Syntax set interface speed <speed-value><port-list>
SyntaxDescription
<speed-value> Speed of the ports, 10 Mbps, 100 Mbps or1000 Mbps
<port-list> Port list of the batch configuration
Defaults 100 Mbps for fast Ethernet electrical interfaces, and 1000 Mbpsfor Gigabyte Ethernet electrical interfaces.
Instructions The speed of fast Ethernet optical interfaces, Gigabyte Ethernetoptical interfaces and 10 Gigabyte Ethernet interfaces cannot beconfigured.
Example This example describes how to set the speed of ports fei_1/1,fei_1/2 and fei_1/3 to 100 Mbps.ZXR10(config)#set interface speed 100 fei_1/1-3
48 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
RelatedCommands
speed
set interface switch-attributePurpose Use this command to set the attributes of Layer 2 and Layer 3 on
megabit interfaces and gigabit interfaces in batch.
Command Modes Global configuration
Syntax set interface switch-attribute {enable | disable}<port-list>
SyntaxDescription
enable Configuring Layer–2 Ethernet interfaceattributes
disable Configuring Layer–3 Ethernet interfaceattributes
<port-list> Port list of the batch configuration
Defaults All Ethernet ports (currently, fei and gei). For routers, defaultvalue is Layer–3 attributes. For switches, default value is switch-ing attribute.
Instructions Currently, only fei, gei and smartgroup interfaces support thisfunction.
Example This example shows how to set the Layer 2 attribute on fei_1/1,fei_1/2 and fei_1/3.ZXR10(config)#set interface switch-attribute enable fei_1/1-3
RelatedCommands
switch-attribute {enable | disable}
set interface unknowcast-limit
Purpose Use this command to set the limit rate (in percent) to unknownpackets on Ethernet ports in batch.
Command Modes Global configuration
Syntax set interface unknowcast-limit <precent-value><port-list>
SyntaxDescription
<precent-value> Rate limit to unknown packets, ranging1–100, 100 by default
<port-list> Specifies the port list of the batchconfiguration
Example This example describes how to set the limit rate to unknown pack-ets on ports fei_1/1, fei_1/2 and fei_1/3 to 80%.ZXR10(config)#set interface unknowcast-limit 80 fei_1/1-3
Confidential and Proprietary Information of ZTE CORPORATION 49
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
unknowcast-limit
set micodePurpose Use this command to set the micode service type of the board that
is in the specified slot.
Command Modes Global configuration
Syntax set micode <slot-number>{L2L3 | MPLS}
SyntaxDescription
<slot-number> Slot number, ranging 1–8
L2L3 Service type of micode
MPLS Micode service type is MPLS
Example This example describes how to set the micode service type of theboard in slot 1 to MPLS.ZXR10(config)#set micode 1 MPLS
show interfacePurpose Use this command to Display detailed statistics of the interface for
network traffic analysis.
Command Modes EXEC
Syntax show interface [<port-name>]
SyntaxDescription <port-name> Name of the port
Instructions If the <port-name> is specified, this port information is displayed;otherwise, the information of all interfaces will be displayed.
Example This example describes how to display the statistics of interfacegei_7/1.ZXR10#show interface gei_7/1gei_7/1 is up, line protocol is upDescription is noneDuplex fullThe port is electricvlan mode is hybrid, pvid 1MTU 1500 bytesBW 1000000 KbitsSyslog send disableLast clearing of "show interface" counters never120 seconds input rate 0 Bps, 0 pps120 seconds output rate 0 Bps, 0 ppsInterface peak rate : input 58 Bps, output 64 BpsInterface utilization: input 0%, output 0%Input:Packets : 33 Bytes: 3378Unicasts : 0 Multicasts: 0 Broadcasts: 10
50 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Undersize: 0 Oversize : 0 CRC-ERROR : 0Dropped : 8 Fragments : 0 Jabber : 0MacRxErr : 0Output:Packets : 25 Bytes: 2888Unicasts : 0 Multicasts: 0 Broadcasts: 2Collision: 0 LateCollision: 0Total:64B : 0 65-127B : 58 128-255B : 0256-511B : 0 512-1023B : 0 1024-1518B: 0ZXR10#
As shown above, the displayed domain and contents vary withinterfaces.
Field Description
gei_7/1 isadministratively down
Whether the administration status ofthe interface is available: down meansunavailable.
gei_7/1 is up Whether the physical status of the interface isavailable, and down means unavailable.
line protocol is up Whether the link layer protocol is available,up means available and down, unavailable.
Description Description about the interface
Duplex Work mode of the interface: full or half duplex
The port is electric Electrical or optical interface
vlan VLAN information of the interface
MTU MTU value of the interface.
BW Bandwidth of the interface
MAC MAC address of the interface
Input, Output, Total Statistics of the interface
show interface-descriptionPurpose Use this command to display the description of administration sta-
tus, physical status and protocol status on an interface.
Command Modes All modes
Syntax show interface-description [<port-name>]
SyntaxDescription <port-name> Port name
Instructions If a port is designated, this command displays information of thedesignated port. Otherwise, this command displays information ofall un-internal and non-null ports.
Example � This example shows that this command does not display infor-mation of internal and null interface.
Confidential and Proprietary Information of ZTE CORPORATION 51
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10#sho interface-description null1Interface AdminStatus PhyStatus Protocol DescriptionZXR10#sho interface-description cpos3_5/1Interface AdminStatus PhyStatus Protocol Description
� This example shows the description of interface fei_3/1.ZXR10(config)#sho interface-description fei_3/1Interface AdminStatus PhyStatus Protocol Descriptionfei_3/1 up up up none
� This example shows the description of all interfaces.ZXR10(config-if)#sho interface-descriptionInterface AdminStatus PhyStatus Protocol Descriptionfei_3/1 up up up nonefei_3/2 up down down nonefei_3/3 up down down nonefei_3/4 up down down nonefei_3/5 up down down nonefei_3/6 up down down nonefei_3/7 up down down nonefei_3/8 up down down noneloopback1 up up up none
As shown above, the displayed domain and contents vary withinterfaces.
Field Description
interface The existed interface
AdminStatus Shows the administration statues of theinterface. Up means available, and downmeans unavailable.
PhyStatus Shows the physical statues of the interface.Up means available, and down meansunavailable.
Protocol Shows the link layer protocol statues of theinterface. Up means available, and downmeans unavailable.
Description Description information
show ip interfacePurpose Use this command to display the status of the interface.
Command Modes All modes
Syntax show ip interface [ brief [phy |<interface-name >|[{ begin| exclude | include }<line>]]]|[<interface-name>]|[{ begin |exclude | include }<line>]
SyntaxDescription
brief Shows the brief information of the interface
<interface-name> Interface name
52 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
phy Shows the state of the interface
include| exclude |begin
include <line> is regular expression
Instructions � show ip interface is used to show the information of all in-terfaces.
� show ip interface <interface-name>is used to show the in-formation of the specified interface.
� show ip interface brief is used to show the brief informationof all interfaces.
� show ip interface brief <interface-name>is used to showthe brief information of the specified interface
� show ip interface brief phy is used to show the state of theinterface.
� show ip interface brief | include <line>, show ip interface brief | exclude <line> and show ip interface brief |begin <line>are used to search and display brief informationof designated interface with regular expressions. The param-eter <line>can be the name of an interface.
Example � This example describes how to display the information of in-terface fei_1/1.ZXR10#show ip interface fei_1/1fei_1/1 admini is up, physics is down, line protocol is downInternet address 180.1.1.1, subnet mask 255.255.255.0Broadcast address 255.255.255.255MTU is 1500 bytesDirected broadcast forwarding is enableICMP redirects are always sentICMP unreachable are always sentMAC address offset is 0
Descriptions of the displayed fields are shown below.
Field Description
admini is up Whether the administration status of theinterface is available, up for available, anddown for unavailable.
physics is down Whether the administration status of theinterface is available: up for available, anddown for unavailable.
line protocol is up Whether the link layer protocol is available,up for available, and down for unavailable.
internet address IP addresses of the interfaces
subnet mask Subnet mask
broadcast address roadcast address, defined by the IPaddress, 255.255.255.255 by default.
MTU MTU value of the interface.
ICMP redirect Whether the interface sends the redirectICMP packets.
Confidential and Proprietary Information of ZTE CORPORATION 53
ZXR10 Command Manual (Basic Configuration Volume II)
Field Description
ICMP unreachable Whether the interface sends theunreachable ICMP packets.
MAC address offset Offset between the interface hardware MACaddress and the router base MAC address.
� This example describes how to display the brief information ofall interfaces.ZXR10#show ip interface briefinterface IP-Address Mask AdminStatus PhyStatus Protocolfei_2/1 unassigned unassigned up down downfei_2/2 180.1.1.1 255.255.255.0 up up upfei_2/3 unassigned unassigned up down downfei_2/4 unassigned unassigned up down downfei_2/5 unassigned unassigned up down downfei_2/6 unassigned unassigned up down downfei_2/7 unassigned unassigned up down downfei_2/8 unassigned unassigned up down downfei_5/1 unassigned unassigned up down down
� This example shows how to display brief information of inter-faces with regular expressions.ZXR10>show ip interface brife | include geigei_1/1 unassigned unassigned up up upgei_1/2 unassigned unassigned up up upgei_1/3 unassigned unassigned up up upgei_1/4 unassigned unassigned up up upgei_1/5 unassigned unassigned up up upgei_1/6 unassigned unassigned up up upgei_1/7 unassigned unassigned up up upgei_1/8 unassigned unassigned up up up
show monitor sessionPurpose Use this command to display detailed information of user-defined
sessions.
Command Modes EXEC
Syntax show monitor session {all |<session-number>}
SyntaxDescription
all Shows the information of all sessions
<session-number> Session number, ranging 1 ~ 8
Example This example describes how to display the information of session1.ZXR10#show monitor session 1Session 1------------Source Ports:Port: fei_1/1 Monitor Direction: bothPort: fei_1/2 Monitor Direction: txDestination Port:Port: fei_1/3
54 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
RelatedCommands
monitor session
show opticalinfoPurpose Use this command to display the information of optical module.
Command Modes EXEC
Syntax show opticalinfo [interface <interface-name>]
SyntaxDescription
<interface-name> Interface name
Instructions It is only applied to physical interfaces.
Example This example shows how to display optical module information ofinterface cpos3.ZXR10#sho opticalinfo interface cpos3_5/1The opticalModule is onlineThe transceiver type : SFPSONET Compliance Codes : no complianceGigabit Ethernet Compliance Codes : 1000BASE-lxInfiniband Compliance Codes : no complianceTransfers distance :9/125 μm fiber 10000 (m)
50/125 μm fiber 0 (m)62.5/125 μm fiber 0 (m)copper line 0 (m)
Laser Wavelength : 1310 nmMeasured RX input Power : unsupportedMeasured TX output Power : unsupportedVendor name : PHOTONVendor PN : PT7320-51-1TPVendor rev : 2.0Vendor SN : A0000244588
The displayed domain and contents vary with optical modules. Theoptical information is provided by drivers.
show optical-info briefPurpose Use this command to display the optical module information: tem-
perature, voltage, circuit, sending and receiving power. It supportsthe view of single port and veneer.
Command Modes Privileged EXEC
Syntax show optical-info brief [ npc <slot>| interface < interface-name >]
SyntaxDescription
interface <interface-name >
the interface name
npc <slot> the slot number of the line card
Instruction It only supports the physical interface.
Confidential and Proprietary Information of ZTE CORPORATION 55
ZXR10 Command Manual (Basic Configuration Volume II)
Enable the optical module on the interface first, then it will displaythe optical module information: optical-inform monitor {enable | disable}.
Example This example shows how to cancel the link up alarm and the SNMPTRAP information of the shielding interface fei_1/1, fei_1/2 andfei_1/3.ZXR10#Show optical-inform briefOptical OpticalInterface Temperature Voltage Current Tx Power Rx PowerName (Celsius) (Volts) (mA) (mW) (mW)------------------------------------------------------------gei_2/1/21 12.00 5.00 60.00 0.00 1.00gei_2/1/22 12.00 5.00 60.00 0.00 1.00gei_2/1/23 12.00 5.00 60.00 0.00 1.00gei_2/1/24 12.00 5.00 60.00 0.00 1.00
ZXR10#Show optical-inform brief interface gei_2/1/23Optical OpticalInterface Temperature Voltage Current Tx Power Rx PowerName (Celsius) (Volts) (mA) (mW) (mW)-------------------------------------------------------------gei_2/1/23 12.00 5.00 60.00 0.00 1.00
Different displaying information for different optical modules. Theoptical module information is provided by the drive.
show optical-inform detailPurpose Use this command to display the optical module information: tem-
perature, voltage, circuit, sending and receiving power. It supportsthe view of single port and veneer.
Command Modes Privileged EXEC
Syntax show optical-inform detail [ temperature voltage currentrx-power tx-power ][ npc <slot>| interface <interface-name>]
SyntaxDescription
interface <interface-name >
the interface name
npc <slot> the slot number of the line card
temperature the temperature of the optical module
voltage the voltag of the optical module
current the circuit of the optical module
rx-power the receiving power of the optical module
tx-power the sending power of the optical module
Instruction It only supports the physical interface.
Enable the optical module on the interface first, then it will displaythe optical module information: optical-inform monitor {enable | disable}.
56 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Example This example shows how to cancel the link up alarm and the SNMPTRAP information of the shielding interface fei_1/1, fei_1/2 andfei_1/3.ZXR10#show optical-inform detail temperatureHigh Alarm High Warn Low Warn Low AlarmTemperature Threshold Threshold Threshold ThresholdPort (Celsius) (Celsius) (Celsius) (Celsius) (Celsius)-----------------------------------------------------------gei_1/1 48.1 100.0 100.0 0.0 0.0gei_1/2 34.9 100.0 100.0 0.0 0.0
ZXR10#Show optical-inform detail VoltageHigh Alarm High Warn Low Warn Low AlarmVoltage Threshold Threshold Threshold ThresholdPort (Volts) (Volts) (Volts) (Volts) (Volts)------------------------------------------------------gei_1/1 3.30 6.50 6.50 3.50 3.50gei_1/2 3.30 6.50 6.50 3.50 3.50
Different displaying information for different optical modules. Theoptical module information is provided by the drive.
show optical-informthreshold-alarm
Purpose Use this command to display the optical module threshold alarm:temperature, voltage, circuit, sending and receiving power. It sup-ports the view of single port and veneer.
Command Modes Privileged EXEC
Syntax show optical-inform threshold-alarm [ npc <slot>| interface<interface-name>]
SyntaxDescription
interface <interface-name >
the interface name
npc <slot> the slot number of the line card
Instruction It only supports the physical interface.
Enable the optical module on the interface first, then it will displaythe optical module information: optical-inform monitor {enable | disable}.
Example This example shows how to cancel the link up alarm and the SNMPTRAP information of the shielding interface fei_1/1, fei_1/2 andfei_1/3.ZXR10#show optical-inform detail temperatureHigh Alarm High Warn Low Warn Low AlarmTemperature Threshold Threshold Threshold ThresholdPort (Celsius) (Celsius) (Celsius) (Celsius) (Celsius)-----------------------------------------------------------gei_1/1 48.1 100.0 100.0 0.0 0.0gei_1/2 34.9 100.0 100.0 0.0 0.0
ZXR10#Show optical-inform detail VoltageHigh Alarm High Warn Low Warn Low AlarmVoltage Threshold Threshold Threshold ThresholdPort (Volts) (Volts) (Volts) (Volts) (Volts)
Confidential and Proprietary Information of ZTE CORPORATION 57
ZXR10 Command Manual (Basic Configuration Volume II)
------------------------------------------------------gei_1/1 3.30 6.50 6.50 3.50 3.50gei_1/2 3.30 6.50 6.50 3.50 3.50
Different displaying information for different optical modules.
show physical-interface-attribute
Purpose Use this command to show special physics attribute of all physicsinterface port or special physics attribute of one physics port.
Command Modes EXEC
Syntax show physical-interface-attribute [<interface-name>]
SyntaxDescription
<interface-name> Interface name
Instructions Common Interface (show all interface port)
� port physical type (electric, optical)
� band width (10M, 100M, 155m, 622m, 1000M, 2.5G, 10G,20G)
Ethernet electrical interface and optical interface, POS interface,ATM interface, CPOS interface have special attribute.
Example This example describes how to show special physics attribute of allphysics interface port. Also describes how to show special physicsattribute of interface fei_3/1.ZXR10(config)#show physical-interface-attribute ?fei_3 FastEthernet interfaceloopback Loopback interfacemultilink Multilink interfacenull Null interfacepos48_1 Packet over SDH for OC48 interfacesmartgroup Smartgroup interfacesuperpvc Superpvc interfacesupervlan Supervlan interfacetunnel Tunnel interface
ZXR10(config)#show physical-interface-attribute fei_3/?<1-16> FastEthernet interface numberZXR10(config)#show physical-interface-attribute fei_3/1fei_3/1The port is electricBW: 10000 KbitsNegotiation autoDuplex full
show vct interfacePurpose Use this command to diagnose and analyze a line.
Command Modes EXEC
Syntax show vct interface <port-name>
58 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
SyntaxDescription <port-name> Port name
Example This example describes how to diagnose line gei_3/1.ZXR10(config)#show vct interface gei_3/1CableStatus FaultPair 1-2 3-6 4-5 7-8Status Open Open Good GoodLength 4m 4m <50m <50m
show vlanresource-summaryPurpose Use this command to display the interface type, slot number, in-
terface number and total.
Command Modes Interface configuration and EXEC
Syntax show vlanresource-summary
Instruction This command on the router can display the already set ether-net interface and partial logical interfaces(SuperVLAN, SuperPVC,SmartGroup, MPPP, tunnel, loopback, null).
This command on the switch only supports VLAN interface.
Example This example shows how to execute this command on the switch.ZXR69_121#show vlanresource-summaryPorttype Slot NumberVLAN NA 4TOTAL 4
shutdownPurpose Use this command to start or shut down an interface.
Command Modes Interface configuration
Syntax shutdown
no shutdown
Defaults The default state of interface is start.
Instructions The command shutdown is to shut down an interface (to disableall functions), which has nothing to do with the physical status (upor down) of an interface.
Example This example describes how to start serial port serial_1/1.ZXR10(config)#interface serial_1/1ZXR10(config-if)#no shutdown
Confidential and Proprietary Information of ZTE CORPORATION 59
ZXR10 Command Manual (Basic Configuration Volume II)
speedPurpose Use this command to set the speed of a 100 M interface to 10M or
100M. Restore the default with the no command.
Command Modes Interface configuration
Syntax speed {10 | 100}
no speed
SyntaxDescription
10 Set the speed of the interface to 10 Mbps
100 Set the speed of the interface to 100 Mbps
Defaults The default is 100Mbps.
Example This example describes how to set the speed of interface fei_6/1to 10 Mbps.ZXR10(config)#interface fei_6/1ZXR10(config-if)#speed 10
RelatedCommands
speed {10 | 100 | auto}
statisPurpose Use this command to set whether to make statistics on some type
of interfaces, such as Smartgroup.
Command Modes Global configuration and interface configuration
Syntax statis {enable | disable}
SyntaxDescription
enable Enables statistics on the interface or allinterfaces of the rack
disable Disables statistics on the interface or allinterfaces of the rack
Defaults This function is disabled.
Instructions It is applied to ZXR10 GER, ZXR10 T64E/T128 and ZXR10T600/T1200.
Example � This example describes how to enable statistics on interfacesmartgroup1 on ZXR10 GER.ZXR10(config)#intrface smartgroup1ZXR10(config-control)#statis enable
� This example describes how to enable statistics on all interfacesof ZXR10 T128.ZXR10(config)#statis enable
60 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
stm-1Purpose Use this command to create cpos48 sub interfaces when the
cpos48 interface is configured to sdh mode.
Command Modes P48sdh controller configuration configuration
Syntax stm-1 <number-list>
no stm-1 <number-list>
SyntaxDescription
<number-list> Ranging from 1~16, such as 1-4, 5-8, 9-12,13-16 and 1-16.
Instructions It is applied only to ZXR10 T128.
Example � This example shows how to create a cp48 sub interface thattakes up No.1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#stm-1 1
� This example shows how to create a cp48 sub interface thattakes up 1-4 channels.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#stm-1 1-4
� This example shows how to create a cp48 sub interface thattakes up 1-16 channels.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#stm-1 1-16
stopbitsPurpose Use this command to set the interval for the asynchronous serial
port to transmit every two characters (here the time is measuredby bit).
Command Modes Interface configuration
Syntax stopbits {1 | 2}
SyntaxDescription
1 Stops the time for the asynchronous serialport to transmit 1 bit
2 Stops the time for the asynchronous serialport to transmit 2 bits
Defaults The default is 1.
Instructions It is applied only to ZXR10 GAR, ZXR10 ZSR.
Example This example describes how to set the stopbits of asynchronousserial port serial_1/1 to 1.
Confidential and Proprietary Information of ZTE CORPORATION 61
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10(config)#interface serial_1/1ZXR10(config-if)#stopbits 1
sts-1Purpose After the cpos3 interface is set to the SONET mode, you can use
the sts-1 command to enter the configuration mode of STS-1, anduse the no command to exit the configuration mode.
Command Modes Channelization configuration
Syntax sts-1 <number>
no sts-1 <number>
SyntaxDescription
<number> Ranging 1–3
Instructions It is applied only to ZXR10 GER.
Example This example describes how to enter the configuration mode ofSTS-1 that is numbered 1.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1
sts-3Purpose Use this command to create cpos48 sub interfaces when the
cpos48 interface is configured to sonet mode.
Command Modes P48sdh controller configuration
Syntax sts-3 <number-list>
no sts-3 <number-list>
SyntaxDescription
<number-list> Ranging from 1~16, such as 1-4, 5-8, 9-12,13-16 and 1-16.
Instructions It is applied only to ZXR10 T128.
Example � This example shows how to create a cp48 sub interface thattakes up No.1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-3 1
� This example shows how to create a cp48 sub interface thattakes up 1-4 channels.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-3 1-4
62 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
� This example shows how to create a cp48 sub interface thattakes up 1-16 channels.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-3 1-16
suspend-cardPurpose Use this command to suspend the interface board in the system
before unplugging it.
Command Modes Privileged EXEC
Syntax suspend-card <board-name>
SyntaxDescription
<board-name> Name of the board to be unplugged
Instructions It is applied only to ZXR10 GER.
Example This example describes how to suspend interface board fei_3 inthe system.ZXR10#suspend-card fei_3
switch-attributePurpose Use this command to set the attributes of Layer 2 and Layer 3 on
megabit interfaces, gigabit interfaces and Smartgroup interfaces.
Command Modes Interface configuration
Syntax switch-attribute {enable | disable}
SyntaxDescription
enable Configuring Layer 2 Ethernet interfaceattributes
disable Configuring Layer 3 Ethernet interfaceattributes
Defaults For routers, default value is disable. For switches, default valueis enable.
Example This example shows how to configure Layer 2 attribute for inter-face fei_6/1.ZXR10(config)#interface fei_6/1ZXR10(config-if)#switch-attribute enable
Confidential and Proprietary Information of ZTE CORPORATION 63
ZXR10 Command Manual (Basic Configuration Volume II)
thresholdPurpose Use this command to set the threshold. Restore the default with
the no command.
Command Modes Channelization configuration
Syntax threshold <value>
no threshold
SyntaxDescription
<value> Ranging 0–100, 0 by default
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the threshold of channel CPOS3to 10.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#threshold 10
threshold sd-berPurpose Use this command to set the signal BER threshold.
Command Modes Interface configuration
Syntax threshold sd-ber < value >
SyntaxDescription
< value > Ranging 3–9, 6 by default
Defaults SD threshold is 6 by default.
Instructions SD (10 bervalue) threshold shorter than SF(10 bervalue). It isapplied to POS and ATM interface
Example This example describes how to set the signal BER threshold as 4.ZXR10(config)#int pos48_1/1ZXR10(config-if)#threshold sdZXR10(config-if)#threshold sd-ber ?<3-9> Sd-ber value
ZXR10(config-if)#threshold sd-ber 4
threshold sf-berPurpose Use this command to set the failure signal BER threshold.
Command Modes Interface configuration
Syntax threshold sf-ber <value>
SyntaxDescription
<value> Ranging 3–9, 4 by default
64 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Defaults SF threshold is 4 by default.
Instructions SD (10 bervalue) threshold should be shorter than SF (10bervalue).
It is applied to POS and ATM interface.
Example This example describes how to set the failure signal BER thresholdas 3.ZXR10(config)#int pos48_1/1ZXR10(config-if)#threshold sfZXR10(config-if)#threshold sf-ber ?<3-9> Sf-ber value
ZXR10(config-if)#threshold sf-ber 3
tug-2 e1 channel-grouptimeslots
Purpose Create an E1 channel when the CPOS3 interface is set to the SDHmode, and the AUG is in the AU-4 mapping mode. Delete an E1channel with the no command.
Command Modes Channel configuration
Syntax tug-2 <tug-2-number> e1 <line> channel-group <channel-number> timeslots <timeslots>
no tug-2 <tug-2-number> e1 <line> channel-group <channel-number>
SyntaxDescription
tug-2 <tug-2-number>
TUG-2 number, ranging 1–7
e1 <line> E1 number, ranging 1–3
channel-group<channel-number>
E1 channel number, 1 only
timeslots <timeslots>
Time slot number. Timeslots 1–31 must beassigned to a channel at one time.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to create an E1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-4ZXR10(config-control)#au-4 1 tug-3 1ZXR10(config-control)#tug-2 1 e1 1 channel-group 1 timeslots 1-31
Confidential and Proprietary Information of ZTE CORPORATION 65
ZXR10 Command Manual (Basic Configuration Volume II)
tug-2 e1 clock sourcePurpose Use this command to set the clock source of the E1 channel when
the CPOS3 interface is set to the SDH mode, and the AUG is in theAU-4 mapping mode. Restore the default with the no command.
Command Modes Channelization configuration
Syntax tug-2 <tug-2-number> e1 <line> clock source {internal |line}
no tug-2 <tug-2-number> e1 <line> clock source
SyntaxDescription
tug-2 <tug-2-number>
tug-2 number, ranging 1–7
e1 <line> E1 number, ranging 1–3
internal Sets the internal clock as the clock source ofthe E1 channel.
line Sets the line clock as the clock source of theE1 channel.
Defaults Internal means the internal clock by default.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the line clock as the clock sourceof the E1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-4ZXR10(config-control)#au-4 1 tug-3 1ZXR10(config-control)#tug-2 1 e1 1 clock source line
tug-2 e1 framingPurpose Use this command to set whether the E1 channel works in the
frame mode and what the frame format is when the CPOS3 inter-face is set to the SDH mode and the AUG is in the AU-4 mappingmode.
Command Modes Channel configuration
Syntax tug-2 <tug-2-number> e1 <line> framing {unframe | frame |crc4 | no-crc4}
SyntaxDescription
tug-2 <tug-2-number>
tug-2 number, ranging 1–7
e1 <line> E1 number, ranging 1–3
framing Sets the E1 channel to work in the unframemode.
66 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
frame Sets the E1 channel to work in the framemode.
crc Sets the frame format to crc if the E1 channelworks in the frame format.
no-crc4 Sets the frame format to no-crc4 if the E1channel works in the frame format.
Defaults Framing in the crc4 mode
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the E1 channel to work in theframe mode of crc4.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-4ZXR10(config-control)#au-4 1 tug-3 1ZXR10(config-control)#tug-2 1 e1 1 framing frameZXR10(config-control)#tug-2 1 e1 1 framing crc4
tug-2 t1 channel-grouptimeslots
Purpose Use this command to create a T1 channel when the CPOS3 inter-face is set to the SDH mode, and the AUG is in the AU-3 mappingmode. Delete a T1 channel with the no command.
Command Modes Channel configuration
Syntax tug-2 <tug-2-number> t1 <line> channel-group <channel-number> timeslots <timeslots>
no tug-2 <tug-2-number> t1 <line> channel-group <channel-number>
SyntaxDescription
tug-2 <tug-2-number>
TUG-2 number, ranging 1~7
t1 <line> T1 number, ranging 1~4
channel-group<channel-number>
T1 channel number, 1 only
timeslots <timeslots>
Time slot number. Timeslots 1~24 must beassigned to a channel at one time.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to create a T1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-3ZXR10(config-control)#tug-2 1 t1 1 channel-group 1 timeslots 1-24
Confidential and Proprietary Information of ZTE CORPORATION 67
ZXR10 Command Manual (Basic Configuration Volume II)
tug-2 t1 clock sourcePurpose Use this command to set the clock source of the T1 channel when
the CPOS3 interface is set to the SDH mode, and the AUG is in theAU-3 mapping mode. Restore the default with the no command.
Command Modes Channel configuration
Syntax tug-2<tug-2-number> t1<line> clock source {internal | line}
no tug-2 <tug-2-number> t1 <line> clock source
SyntaxDescription
tug-2 <tug-2-number>
tug-2 number, ranging 1–7
t1 <line> T1 number, ranging 1–4
internal Sets the internal clock as the clock source ofthe T1 channel.
<line> Sets the line clock as the clock source of theT1 channel.
Defaults Internal means the internal clock by default.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the clock source of the T1 chan-nel to the clock source.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-3ZXR10(config-control)#tug-2 1 t1 1 clock source line
tug-2 t1 framingPurpose Use this command to set whether the T1 channel shall work in the
frame mode and what the frame format is when the CPOS3 inter-face is set to the SDH mode and the AUG is in the AU-3 mappingmode.
Command Modes Channelization configuration
Syntax tug-2 <tug-2-number> t1 <line> framing {unframe | frame |esf | sf}
SyntaxDescription
tug-2 <tug-2-number>
tug-2 number, ranging 1–7
t1 <line> T1 number, ranging 1–4
unframe Sets the T1 channel to work in the unframemode.
frame Sets the T1 channel to work in the framemode.
68 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
esf Sets the frame format to esf if the T1 channelworks in the frame format.
sf Sets the frame format to sf if the E1 channelworks in the frame format.
Defaults Framing in the sf mode.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the T1 channel to work in theframe mode of esf.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sdhZXR10(config-control)#aug mapping au-3ZXR10(config-control)#tug-2 1 t1 1 framing frameZXR10(config-control)#tug-2 1 t1 1 framing esf
unkowncast-limitPurpose Use this command to configure the limit (percent) for unknown
packets on the Ethernet port. Restore default with the no com-mand.
Command Modes Port configuration
Syntax unknowcast-limit <percent-value>
no unknowcast-limit
SyntaxDescription
<percent-value> Limit percent for unknown packets, 1 ~ 100,100 by default.
Example This example describes how to set the limit for unknown packetson the port fei_1/1 to 10%.ZXR10(config)#interface fei_1/1ZXR10(config-if)#unkowncast-limit 10
RelatedCommands
set interface unknowcast-limit
vt-2Purpose Use this command to enter the vt-2 configuration mode when the
cpos3 interface is configured with the sonet mode. Exit the vt-2configuration mode with the no command.
Command Modes Channelization configuration
Syntax vt-2 <number>
no vt-2 <number>
SyntaxDescription
<number> The value is 1.
Confidential and Proprietary Information of ZTE CORPORATION 69
ZXR10 Command Manual (Basic Configuration Volume II)
Instructions It is applied only to ZXR10 GER.
Example This example describes how to enter the vt-2 configuration mode.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-2ZXR10(config-control)#vt-2 1
vtg e1 channel-grouptimeslots
Purpose Use this command to create an E1 channel when the cpos3 inter-face is configured with the sonet mode and the sts-1 is configuredwith the vt-2 mode. Delete the specified E1 channel with the nocommand.
Command Modes Channelization configuration
Syntax vtg <vtg-number> e1 <line> channel-group <channel-number> timeslots <timeslots>
no vtg <vtg-number> e1 <line> channel-group <channel-number>
SyntaxDescription
<vtg-number> vtg number, 1 ~ 7.
e1 <line> E1 number, 1 ~ 3
channel-group<channel-number>
E1 channel number, only 1.
timeslots <timeslots>
Timeslot number, distribute the timeslots of 1to 31 to a channel on the one-off basis.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to create an E1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-2ZXR10(config-control)#ctg 1 e1 1 channel-group 1 timeslots 1-31
vtg e1 clock sourcePurpose Use this command to set the clock source of E1 channel when the
cpos3 interface is configured with the sonet mode and the sts-1 isconfigured with the vt-2 mode. Restore the default value with theno command. .
Command Modes Channelization configuration
70 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
Syntax vtg <vtg-number> e1 <line> clock source {internal | line}
no vtg <vtg-number> e1 <line> clock source
SyntaxDescription
<vtg-number> vtg number,1 ~ 7
<line> E1 number, 1 ~ 3.
internal Sets the clock source of E1 channel as theinternal clock.
line Sets the clock source of E1 channel as theline clock.
Defaults Internal means internal clock.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the clock source of E1 channelas the line clock.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-2ZXR10(config-control)#vtg 1 e1 1 clock source line
vtg e1 framingPurpose Use this command to set E1 channel whether to frame and its
frame format when the cpos3 interface is configured with the sonetmode and the sts-1 is configured with the vt-2 mode.
Command Modes Channelization configuration
Syntax vtg <vtg-number> e1 <line> framing {unframe | frame | crc4| no-crc4}
SyntaxDescription
vtg <vtg-number> vtg number, 1 ~ 7.
e1 <line> E1 number, 1 ~ 3.
unframe Sets E1 to work in the unframing mode.
frame Sets E1 to work in the framing mode.
crc4 If E1 works in the frame mode, set the frameformat as crc mode.
no-crc4 If E1 works in the framing mode, set theframe format as non-crc4 mode.
Defaults It is framing mode by default and the frame format is crc4 mode.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set E1 to work in the framing mode,and set the frame format as crc4.
Confidential and Proprietary Information of ZTE CORPORATION 71
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-2ZXR10(config-control)#vtg 1 e1 1 framing frameZXR10(config-control)#vtg 1 e1 1 framing crc4
vtg t1 channel-grouptimeslots
Purpose Use this command to create a T1 channel when the cpos3 inter-face is configured with the sonet mode and the sts-1 is configuredwith the vt-15 mode. Delete the specified T1 channel with the nocommand.
Command Modes Channelization configuration
Syntax vtg <vtg-number> t1 <line> channel-group <channel-number> timeslots <timeslots>
no vtg <vtg-number> t1 <line> channel-group <channel-number>
SyntaxDescription
vtg <vtg-number> vtg number, 1 ~ 7.
t1 <line> T1 number, 1 ~ 4.
channel-group<channel-number>
T1 channel number, only 1.
timeslots <timeslots>
Timeslot number distributes the timeslots of1 to 24 to a channel on the one-off basis.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to create a T1 channel.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-15ZXR10(config-control)#ctg 1 t1 1 channel-group 1 timeslots 1-24
vtg t1 clock sourcePurpose Use this command to set the clock source of T1 channel when the
cpos3 interface is configured with the sonet mode and the sts-1is configured with the vt-15 mode. Restore the default value withthe no command.
Command Modes Channelization configuration
Syntax vtg <vtg-number> t1 <line> clock source {internal | line}
72 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 Interface Configuration
no vtg <vtg-number> t1 <line> clock source
SyntaxDescription
<vtg-number> vtg number, 1 ~ 7.
t1 <line> T1 number, 1 ~ 4.
internal Sets the clock source of T1 channel as theinternal clock.
line Sets the clock source of T1 channel as theline clock.
Defaults Internal means internal clock.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set the clock source of T1 channelas the line clock.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonetZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-15ZXR10(config-control)#vtg 1 t1 1 clock source line
vtg t1 framingPurpose Use this command to set E1 channel whether to frame or not and
its frame format, if the cpos3 interface is configured with the sonetmode and the sts-1 is configured with the vt-15 mapping mode.
Command Modes Channelization configuration
Syntax vtg <vtg-number> t1 <line> framing {unframe | frame | esf| sf}
SyntaxDescription
<vtg-number> vtg number, 1 ~ 7.
t1 <line> T1 number, 1 ~ 4.
unframe Sets T1 to work in the unframing mode.
frame Sets T1 to work in the framing mode.
esf If E1 works in the framing mode, set theframe format as esf mode.
sf If T1 works in the framing mode, set theframe format as sf mode.
Defaults It is framing mode by default and the frame format is sf.
Instructions It is applied only to ZXR10 GER.
Example This example describes how to set E1 to work in the framing mode,and set the frame format as esf.ZXR10(config)#controller cpos3_3/1ZXR10(config-control)#framing sonet
Confidential and Proprietary Information of ZTE CORPORATION 73
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10(config-control)#sts-1 1ZXR10(config-control)#mode vt-15ZXR10(config-control)#vtg 1 t1 1 framing frameZXR10(config-control)#vtg 1 t1 1 framing esf
74 Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 3
DHCP and DHCP SNOOPING Configuration
Table of Contentsip address dhcp.................................................................76ip dhcp client broadcast-flag ...............................................77ip dhcp client class-id.........................................................77ip dhcp client client-id ........................................................78ip dhcp client hostname......................................................78ip dhcp client lease ............................................................79ip dhcp client request.........................................................79ip dhcp enable ..................................................................80ip dhcp mode....................................................................80ip dhcp proxy client leasetime .............................................81ip dhcp logging on .............................................................82ip dhcp ramble ..................................................................82ip dhcp relay agent ............................................................82ip dhcp relay forward reply unrestricted................................83ip dhcp relay max-user.......................................................84ip dhcp helper-address policy vclass-id .................................84ip dhcp relay information format..........................................85ip dhcp relay information option ..........................................85ip dhcp relay information policy ...........................................86ip dhcp relay information uniform circuit-id ...........................86ip dhcp relay information uniform remote-id..........................87ip dhcp relay information user-configuration policy.................87ip dhcp relay information circuit-id.......................................88ip dhcp relay information remote-id .....................................88ip dhcp relay security client server-id ...................................89ip dhcp relay server ...........................................................89ip dhcp relay server retry ...................................................90ip dhcp relay server vclass-id ..............................................91ip dhcp relay snooping enable .............................................91ip dhcp relay snooping packet reply .....................................92ip dhcp relay snooping packet request..................................92ip dhcp relay snooping trust................................................93ip dhcp relay snooping trust enable......................................93ip dhcp server max-user.....................................................93ip dhcp snooping binding ....................................................94ip dhcp snooping clear .......................................................95ip dhcp snooping enable .....................................................95ip dhcp snooping information circuit-id .................................96ip dhcp snooping information format ....................................96ip dhcp snooping information option.....................................97ip dhcp snooping information policy .....................................97ip dhcp snooping information remote-id................................98ip dhcp snooping information uniform circuit-id......................99
Confidential and Proprietary Information of ZTE CORPORATION 75
ZXR10 Command Manual (Basic Configuration Volume II)
ip dhcp snooping information uniform remote-id ....................99ip dhcp snooping information user-configuration policy ......... 100ip dhcp snooping max-user ............................................... 100ip dhcp snooping ramble................................................... 101ip dhcp snooping trust...................................................... 101ip dhcp snooping vlan ...................................................... 102ip dhcp user quota........................................................... 102kick-off ip dhcp server user............................................... 103kick-off ip dhcp snooping user ........................................... 104kick-off ip dhcp relay user ................................................ 105release dhcp ................................................................... 105renew dhcp..................................................................... 106show ip dhcp configure..................................................... 106show ip dhcp ramble ........................................................ 107show ip dhcp relay forward ............................................... 107show ip dhcp relay information.......................................... 108show ip dhcp relay security client ...................................... 109show ip dhcp relay server vclass-id .................................... 109show ip dhcp relay snooping packet ................................... 109show ip dhcp relay snooping trust...................................... 110show ip dhcp server user.................................................. 110show ip dhcp snooping configure ....................................... 111show ip dhcp snooping database........................................ 112show ip dhcp snooping information .................................... 112show ip dhcp snooping ramble........................................... 113show ip dhcp snooping trust.............................................. 114show ip dhcp snooping vlan .............................................. 114
ip address dhcpPurpose Use this command to enable the dhcp client function of the inter-
face.
Command Modes Interface configuration
Syntax ip address dhcp [client-id <interface>][hostname <hostname>]
no ip address dhcp [client-id | hostname]
SyntaxDescription
<interface> The interface name, such as fei_1/1vlan1.
hostname The hoatname of dhcp client, in length 1-128.
Instruction This command is used for enabling the dhcp client module underthe interface. Both the client-id of dhcp client and the content ofhostname can be configured synchronously. If the client id is setto an interface, then the information of the dhcp client packet isthe MAC address of this interface. Enable the dhcp client moduleof this interface and delete the corresponding configuration withthe no command.
The platform version 4.8.22 supports this command.
It is only applied to 59 series switches.
76 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
The layer-3 interface type on switches that this command supportsis : vlan, supervlan.
Example This example shows how to enable the dhcp client module on theinterface.ZXR10(config-if)#ip address dhcp client-id vlan1 hostname [email protected](config-if)#
Related Command ip address
ip dhcp client broadcast-flagPurpose Use this command to set the dhcp client broadcast-flag.
Command Modes Interface configuration
Syntax ip dhcp client broadcast-flag
no ip dhcp client broadcast-flag
Instruction This command is used for setting the dhcp client broadcast-flag.After setting this command, the packet sent by dhcp client includesbroadcast-flag. Cancel the setting with the no command.
The platform version 4.8.22 supports this command.
It is only applied to 59 series switches.
Example This example shows how to enable the dhcp client module on theinterface.ZXR10(config-if)#ip dhcp client broadcast-flagZXR10(config-if)#
ip dhcp client class-idPurpose Use this command to set class id of dhcp client.
Command Modes Interface configuration
Syntax ip dhcp client class-id {<string1>| hex <string2>}
no ip dhcp client class-id
SyntaxDescription
<string1> class id in string form, in length of 1~128.
<string2> class id in hexadecimal form, in length of1~128.
Instruction This command is used for setting the class id of dhcp client exam-ple. The information of this option can be input by hexadecimalform or the string form.
The platform version 4.8.22 supports this command.
It is only applied to 59 series switches.
Example This example shows how to set class id of dhcp client.
Confidential and Proprietary Information of ZTE CORPORATION 77
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10(config-if)#ip dhcp client class-id hex 1234567890abcdefZXR10(config-if)#
ip dhcp client client-idPurpose Use this command to set client id of dhcp client.
Command Modes Interface configuration
Syntax ip dhcp client client-id <interface>
no ip dhcp client client-id
SyntaxDescription
<interface> The content of the class id option: name ofthe interface.
Instruction This command is used for setting the client id of dhcp client ex-ample. The information of this option can be input in the formof interface name. The information encapsulated in dhcp clientpacket is the interface MAC address.
The platform version 4.8.22 supports this command.
It is only applied to 59 series switches.
Example This example shows how to set class id of dhcp client.ZXR10(config-if)#ip dhcp client client-id vlan1ZXR10(config-if)#
RelatedCommands
ip address dhcp
ip dhcp client hostnamePurpose Use this command to set hostname of dhcp client.
Command Modes Interface configuration
Syntax ip dhcp client hostname <string>
no ip dhcp client hostname
SyntaxDescription
<string> The content of hostname, in length of 1–128.
Instruction This command is used to set hostname of dhcp client.
The platform version 4.8.22 supports this command.
It is only applied to 59 series switches.
Example This example shows how to set class id of dhcp client.ZXR10(config-if)#ip dhcp client hostname [email protected](config-if)#
78 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
RelatedCommands
ip address dhcp
ip dhcp client leasePurpose Use this command to set lease of dhcp client.
Command Modes Interface configuration
Syntax ip dhcp client lease {<days>[<hours>][<minutes>]| infinite}
no ip dhcp client lease
SyntaxDescription
<days> The days of client lease, in range of 0~365.
<hours> The hours of client lease, in range of 0~23.
<minutes> The minutes of client lease, in range of 0~59.
Instruction This command is used to set lease of dhcp client. The lease canbe specified as days, hours, minutes and infinite lease. This pa-rameter is only used for applying the dhcp client lease. The leaseto obtain the IP address for dhcp client is determined by the dhcpserver configuration.
The platform version 4.8.22 supports this command.
It is only applied to 59 series switches.
Example This example shows how to set the client lease of dhcp client.ZXR10(config-if)#ip dhcp client lease 1 2 3ZXR10(config-if)#
RelatedCommands
ip address dhcp
ip dhcp client requestPurpose Use this command to set the parameter requesting list of dhcp
client.
Command Modes Interface configuration
Syntax ip dhcp client request <option-name>
no ip dhcp client request <option-name>
SyntaxDescription
<option-name> The option name can be one of the followingkeywords: tftp-server-address, static-route,domain-name, dns-nameserver, or routerItrequests all the options by default.
Instruction This command is used to set the parameter requesting list of dhcpclient example. It requests all the options by default.
The platform version 4.8.22 supports this command.
Confidential and Proprietary Information of ZTE CORPORATION 79
ZXR10 Command Manual (Basic Configuration Volume II)
It is only applied to 59 series switches.
Example This example shows how to set the parameter requesting list ofdhcp client example.ZXR10(config-if)#no ip dhcp client request routerZXR10(config-if)#
ip dhcp enablePurpose Use this command to start the built-in DHCP process. Use the
command no to stop DHCP process.
Command Modes Global configuration
Syntax ip dhcp enable
no ip dhcp enable
Defaults The built-in DHCP process is disabled.
Instructions � After starting the built-in DHCP process, system processes IPaddress request of DHCP protocol on the interface which isconfigured user interface attribution.
� DHCP Server and DHCP Relay functions are configured insidesystem, start these two functions through this command.
Example This example describes how to enable built-in DHCP function.ZXR10(config)#ip dhcp enable
ip dhcp modePurpose Use this command to start DHCP working mode on interface.
Command Modes Interface configuration
Syntax ip dhcp mode [server | relay | proxy]
SyntaxDescription
relay Enables the DHCP Relay function on aninterface.
server Enables the DHCP Server function on aninterface.
proxy Enables the DHCP Proxy function on aninterface.
Defaults By default all are disable.
Instructions After start the built-in DHCP Relay process, system will resolveDHCP Client’s IP address request on configured user interfaces,dynamically assign IP address for DHCP Client through externalDHCP Server configured on interfaces.
After starting the inside DHCP Server process, system will resolveDHCP Client’s IP address request on configured user interfaces,
80 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
assign IP address for DHCP Client dynamically. DHCP Server sup-ports to assign IP address for direct connected DHCP users, alsosupports to assign IP address through DHCP users by DHCP Relayforwarding.
Assign IP address for directly connected user, DHCP Server willassign address by attached IP Pool on access DHCP user interface(use peer default ip pool command to attach). DHCP SERVER willchoose corresponding address pool to assign on global configuredall address pool.
After start the built-in DHCP Proxy process, system will resolveDHCP Client’s IP address request on configured user interfaces, dy-namically assign IP address for DHCP Client through external DHCPServer configured on interfaces. When the client sends relettingrequest and if the long lease time that the DHCP Server assignsto DHCP Proxy is not overtime, DHCP Proxy will response to theclient. That is, DHCP Proxy does not need to send reletting requestto DHCP Server. This decreases the burden of DHCP Server.
This system contains DHCP Server, DHCP Relay and DHCP Proxyfunctions inside, but they can’t operate together. Thus, if the DHCPServer function has been started, it must stop the started DHCPServer function before starting DHCP Relay function.
Example This example describes how to start DHCP Relay function on aninterface.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp mode relayZXR10(config-if)#
RelatedCommands
show ip dhcp configure
ip dhcp proxy clientleasetime
Purpose Use this command to configure the least time that the DHCP Proxyassigns to DHCP Client.
Command Modes Global configuration
Syntax ip dhcp proxy client leasetime <short_leasetime>
SyntaxDescription
<short_leasetime> Short lease time, in its unit of second, rangingfrom 30 to 3600.
Defaults It is 60 seconds by default.
Example This example shows how to configure the short lease time to 120seconds.ZXR10(config)#ip dhcp proxy client leasetime 120
Confidential and Proprietary Information of ZTE CORPORATION 81
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
show ip dhcp configure
ip dhcp logging onPurpose Use this command to start DHCP dialogue print switch. Use the
no command to stop DHCP printing function.
Command Modes Global configuration
Syntax ip dhcp logging on
no ip dhcp logging on
Defaults DHCP dialogue printing function is disabled.
Instructions Enable DHCP dialogue printing function, and then record DHCPuser online dialogue.
Example This example describes how to start the built-in DHCP printingfunction.ZXR10(config)#ip dhcp logging on
ip dhcp ramblePurpose Use this command to configure roam function of DHCP
SERVER/RELAY. Use the no command to disable dhcp roamfunction.
Command Modes Global configuration
Syntax ip dhcp ramble
no ip dhcp ramble
Defaults Disable DHCP roam function
Instructions After the DHCP roam function is enabled, DHCP user can switchthe access interface as on-line status.
Example This example describes how to configure DHCP user roam functionin global mode.ZXR10(config)#ip dhcp ramble
ip dhcp relay agentPurpose Use this command to configure the DHCP agent IP address of the
interface. Delete the DHCP agent IP address with the no com-mand.
Command Modes Interface configuration
Syntax ip dhcp relay agent <ip-address>
no ip dhcp relay agent
82 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
SyntaxDescription
<ip-address> DHCP agent IP address in the dotted decimalnotation
Instructions Before using the DHCP relay for forwarding DHCP requests of usersto an external DHCP server, you shall set the IP address of theDHCP agent, which is one of the IP addresses of the interfacewhere the DHCP client is.
The external DHCP server will assign user IP address accordingto the IP address of the DHCP agent. The two addresses shallbe within the same subnet. The respond message that the DHCPserver returned to the DHCP client is forwarded through the DHCPagent. Therefore, the DHCP server shall be configured with theroute to the subnet of the DHCP agent.
Example This example describes how to set the external DHCP Agent ad-dress of the fei_2/1 interface to 192.200.100.254.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp relay agent 192.200.100.254
RelatedCommands
ip dhcp enable
ip dhcp relay server
show ip dhcp relay
ip dhcp relay forward replyunrestricted
Purpose Use this command to configure to check the lease packetun-strictly in DHCP Relay standard mode. That is to say, ifreceive the ACK packet that responds to user, then transparentforward this packet to user directly. Use the no command torestrict the lease packet from DHCP user, and recover the defaultconfiguration.
Command Modes Global configuration
Syntax ip dhcp relay forward reply unrestricted
no ip dhcp relay forward reply unrestricted
Defaults Default is restriction.
Instructions DHCP user lease is announced by DHCP client automatically. Forthe circumstance that DHCP client does not send leased message,if ACK message which DHCP Server reply to client can be received,then DHCP client is regarded as on line, and send the message toclient transparently.
Example This example describes how to set DHCP Relay forwarding modeto transparent forwarding mode.ZXR10(config)#ip dhcp relay forward reply unrestricted
Confidential and Proprietary Information of ZTE CORPORATION 83
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
show ip dhcp configure
ip dhcp relay max-userPurpose Use this command to set the maximum users that DHCP Relay
supports.
Command Modes Global configuration
Syntax ip dhcp relay max-user <max-user>
no ip dhcp relay max-user
SyntaxDescription <max-user> The maximum users that DHCP Relay veneer
supports, in the range of 1~32768.
Defaults The maximum users that DHCP Relay veneer supports is 2048.
Instruction Only when DHCP is in disable state, the configuration and deletionoperation that DHCP Relay supports can be executed.
Example This example shows how to set the DHCP Relay maximum usersto 5120.ZXR10(config)#ip dhcp relay max-user 5120
RelatedCommands
show ip dhcp configure
ip dhcp helper-addresspolicy vclass-id
Purpose Use this command to configure the policy to choose external DHCPServer on an interface.
Command Modes Interface configuration
Syntax ip dhcp helper-address policy vclass-id
no ip dhcp helper-address policy vclass-id
Defaults By default, the interface use the DHCP Server configured by ipdhcp relay server command.
Example This example shows how to use domain name to choose an exter-nal DHCP Server on an interface.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp helper-address policy vclass-id
RelatedCommands
ip dhcp relay server vclass-id
ip dhcp enable
84 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
ip dhcp relay informationformat
Purpose Use this command to set the format of the 82 option inserted bythe DHCP process in relay forwarding. Cancel the configured for-mat and restore the default with the no command.
Command Modes Global configuration
Syntax ip dhcp relay information format {china-tel | dsl-forum|user-configuration}
no ip dhcp relay information format
SyntaxDescription
china-tel Format of China telecommunication
dsl-forum Format of DSL forum
user-configuration Format of of the 82 option that users canconfigure
Defaults China telecommunication format is default configuration.
Example This example describes how to set the format of the 82 optioninserted by the DHCP process in relay forwarding to that of DSLforum.ZXR10(config)#ip dhcp relay information format dsl-forum
RelatedCommands
ip dhcp relay information option
show ip dhcp relay
ip dhcp relay informationoption
Purpose Use this command to set to insert the 82 option in DHCP process’srelay forwarding. Cancel the insertion with the no command.
Command Modes Global configuration
Syntax ip dhcp relay information option
no ip dhcp relay information option
Defaults Do not insert 82 options.
Example This example describes how to set to insert the 82 option in DHCPprocess’s relay forwarding.ZXR10(config)#ip dhcp relay information option
Confidential and Proprietary Information of ZTE CORPORATION 85
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
show ip dhcp relay
ip dhcp relay informationpolicy
Purpose Use this command to set the processing policy of the DHCP processwhen the 82 option has already been inserted in the relay forwardpacket, and an 82 option is to be inserted again according to thelocal configuration. Cancel the configured policy and restore thedefault with the no command.
Command Modes Global configuration
Syntax ip dhcp relay information policy {keep |replace}
no ip dhcp relay information policy
SyntaxDescription
keep Keeps the original 82 option, and performstransparent transmission
replace Replaces the original 82 option
Defaults The original 82 option remains, that is, transparent transmissionis performed.
Example This example describes how to set the policy of the 82 option in-serted by the DHCP process in relay forwarding to replace.ZXR10(config)#ip dhcp relay information policy replace
RelatedCommands
ip dhcp relay information option
show ip dhcp relay
ip dhcp relay informationuniform circuit-id
Purpose Use this command to configure sub option of DHCP OPT82 cir-cuit-id based on uniform mode. Use the no command to deletethe configuration.
Command Modes Global configuration
Syntax ip dhcp relay information uniform circuit-id <circuit-id string>
no ip dhcp relay information uniform circuit-id
SyntaxDescription
<circuit-id string> The string of option 82 circuit-id configuredby the user
86 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
Defaults Null, that is, the sub option of DHCP OPT82 circuit-id is not con-figured.
Example This example shows how to configure sub options of DHCP RelayOption 82 circuit-id.ZXR10(config)#ip dhcp relay information circuit-id “zxr10:vlan100:gei_1/1”
RelatedCommands
show ip dhcp relay information uniform
ip dhcp relay informationuniform remote-id
Purpose Use this command to configure sub option of DHCP OPT82 re-mote-id based on uniform mode. Use the no command to deletethe configuration.
Command Modes Global configuration
Syntax ip dhcp relay information uniform remote-id <remote-id string>
no ip dhcp relay information uniform remote-id
SyntaxDescription
<remote-id string> The string of option 82 remote-id configuredby the user
Defaults Null, that is, the sub option of DHCP OPT82 remote-id is not con-figured.
Example This example shows how to configure sub options of DHCP RelayOption 82 remote-id.ZXR10(config)#ip dhcp relay information remote -id “zxr10:T64G001”
RelatedCommands
show ip dhcp relay information uniform
ip dhcp relay informationuser-configuration policy
Purpose Use this command to configure user configuration policy basedon uniform mode. It is used after configuring agent-format toser-configuration. Use no command to delete the configuration.
Command Modes Global configuration
Syntax ip dhcp relay information user-configuration policy {uniform | interface}
no ip dhcp relay information user-configuration policy
Confidential and Proprietary Information of ZTE CORPORATION 87
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
uniform Select the string of option 82 configured inuniform mode to insert to DHCP packet
interface Select the string of option 82 configured ininterface mode to insert to DHCP packet
Defaults Interface mode
Example This example shows how to configure user configuration policy ofDHCP Relay Option 82.ZXR10(config)#ip dhcp relay information user-configuration policy interface
RelatedCommands
show ip dhcp configure
ip dhcp relay information user-configuration policy interface
ip dhcp relay informationcircuit-id
Purpose Use this command to configure sub option of DHCP OPT82 cir-cuit-id based on Layer 3 interface. Use no command to delete theconfiguration.
Command Modes Interface configuration
Syntax ip dhcp relay information circuit-id <circuit-id string>
no ip dhcp relay information circuit-id
SyntaxDescription
<circuit-id string> The string of option 82 circuit-id configuredby the user
Defaults Null, that is, the sub option of DHCP OPT82 circuit-id is not con-figured.
Example This example shows how to configure sub options of DHCP RelayOption 82 circuit-id.ZXR10(confi-if)#ip dhcp relay information circuit-id “zxr10:vlan100:gei_1/1”
RelatedCommands
show ip dhcp relay information interface
ip dhcp relay informationremote-id
Purpose Use this command to configure sub option of DHCP OPT82 re-mote-id based on Layer 3 interface. Use no command to deletethe configuration.
Command Modes Interface configuration
88 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
Syntax ip dhcp relay information circuit-id <remote-id string>
no ip dhcp relay information circuit-id
SyntaxDescription
<remote-id string> The string of option 82 circuit-id configuredby the user
Defaults Null, that is, the sub option of DHCP OPT82 remote-id is not con-figured.
Example This example shows how to configure sub options of DHCP RelayOption 82 remote-id.ZXR10(config-if)#ip dhcp relay information remote-id “zxr10:vlan100:gei_1/1”
RelatedCommands
show ip dhcp relay information interface
ip dhcp relay security clientserver-id
Purpose Use this command to configure the server-id address respondedfrom DHCP Relay to DHCP client. Use command no to cancelserver-id address responded from DHCP Relay to DHCP client.
Command Modes Global configuration
Syntax ip dhcp relay security client server-id <ip-address>
no ip dhcp relay security client server-id
SyntaxDescription
<ip-address> the IP address of configured server-id,decimalist format
Example This example describes how to configure server-id address as192.200.100.254.ZXR10(config)#ip dhcp relay security client server-id 192.200.100.254
RelatedCommands
ip dhcp relay agent
ip dhcp enable
show ip dhcp configure
ip dhcp relay serverPurpose Use this command to set the external DHCP server address of an
interface. Delete the address with the no command.
Command Modes Interface configuration
Syntax ip dhcp relay server <ip-address>{standard | security}
no ip dhcp relay server <ip-address>
Confidential and Proprietary Information of ZTE CORPORATION 89
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
<ip-address> IP address of the external DHCP server, in thedotted decimal notation
standard Comply with DHCP standard protocolforwarding mode
security ZTE security forwarding mode
Defaults The default value is standard.
Instructions Standard forwarding mode will comply with DHCP protocol. Afteruser acquires the corresponding IP address, DHCP process will notdeal with the following mutual unicast, such as do not executesafety inspection. Meanwhile, write ARP table function will nottake an effect on standard mode
Standard forwarding model will have better performance in manyclients because that standard forwarding mode will not deal withthe following mutual unicast
Security forwarding mode with DHCP standard protocol and ZTEpatent technology execute DHCP user and external DHCP SERVERall mutual control and management, such as safety inspection. Asa result, DHCP can disposes in all DHCP mutual activity. Mean-while, support ARP function. System default Relay forwardingmode is standard forwarding mode.
Example This example describes how to set the external DHCP server ad-dress of the fei_2/1 interface to 192.200.100.254.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp relay server 192.200.100.254
RelatedCommands
ip dhcp relay agent
ip dhcp relay enable
show ip dhcp relay
ip dhcp relay server retryPurpose Use this command to configure the times that DHCP Relay send
apply to external DHCP Server. Use command no to recover de-fault retry times.
Command Modes Global configuration
Syntax ip dhcp relay server retry <limit-value>
no ip dhcp relay server retry
SyntaxDescription
<limit-value> configure DHCP Relay start applied addressretry times, range 5~1000
Defaults The default is 10.
Example This example describes how to configure the retry times as 20applied by DHCP Server from DHCP Relay.
90 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
ZXR10(config)#ip dhcp relay server retry 20
RelatedCommands
ip dhcp relay agent
ip dhcp enable
show ip dhcp configure
ip dhcp relay server vclass-idPurpose Use this command to apply IP address for DHCP Client with des-
ignated domain name from designated external DHCP Server.
Command Modes Global configuration
Syntax ip dhcp relay server vclass-id <domain name><ip-address>{standard | security}
no ip dhcp relay server vclass-id <domain name><ip-address>
SyntaxDescription
<domain name> Domain name in request message of DHCPClient
<ip-address> IP address of external DHCP Server
standard Forwarding mode following DHCP standardprotocol
security Security forwarding mode of ZTE
Example This example shows how to apply IP address for DHCP Client withdesignated domain name www.zte.com.cn from designated exter-nal DHCP Server 168.1.1.1ZXR10(config)#ip dhcp relay server vclass-id www.zte.com.cn168.1.1.1 standard
RelatedCommands
ip dhcp enable
show ip dhcp configure
ip dhcp relay snoopingenable
Purpose Use this command to enable DHCP Relay Snooping globally.
Command Modes Global configuration
Syntax ip dhcp relay snooping enable
no ip dhcp relay snooping enable
Defaults By default, the DHCP Relay Snooping is disable.
Example This example shows how to enable DHCP Relay Snooping globally.
Confidential and Proprietary Information of ZTE CORPORATION 91
ZXR10 Command Manual (Basic Configuration Volume II)
ZXR10(config)#ip dhcp relay snooping enable
RelatedCommands
show ip dhcp configure
ip dhcp relay snoopingpacket reply
Purpose Use this command to enable all DHCP data packets of all typesthrough the interface.
Command Modes Interface configuration
Syntax ip dhcp relay snooping packet reply
no ip dhcp relay snooping packet reply
Defaults If this area is configured, it is enabled by default.
Example This example shows how to configure the DHCP reply data packetson fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp relay snooping packet reply
RelatedCommands
ip dhcp enable
ip dhcp relay snooping enable
show ip dhcp configure
ip dhcp relay snoopingpacket request
Purpose Use this command to apply IP address for DHCP Client with des-ignated domain name from designated external DHCP Server.
Command Modes Global configuration
Syntax ip dhcp relay snooping packet request
no ip dhcp relay snooping packet request
Example This example shows how to configure the DHCP request data pack-ets on fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp relay snooping packet request
RelatedCommands
ip dhcp enable
ip dhcp relay snooping enable
92 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
ip dhcp relay snooping trustPurpose Use this command to configure DHCP Relay trust interface.
Command Modes Global configuration
Syntax ip dhcp relay snooping trust
no ip dhcp relay snooping trust
Example This example shows how to configure DHCP Relay trust interfaceon fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp relay snooping trust
RelatedCommands
ip dhcp enable
ip dhcp relay snooping trust enable
show ip dhcp configure
ip dhcp relay snooping trustenable
Purpose Use this command to enable DHCP Relay Snooping Trust globally.
Command Modes Global configuration
Syntax ip dhcp relay snooping trust enable
no ip dhcp relay snooping trust enable
Defaults By default, DHCP Relay Snooping Trust is disable.
Example This example shows how to enable DHCP Relay Snooping Trustglobally.ZXR10(config)#ip dhcp relay snooping trust enable
RelatedCommands
show ip dhcp configure
ip dhcp server max-userPurpose Use this command to set the maximum users that DHCP Server
supports.
Command Modes Global configuration
Syntax ip dhcp server max-user <max-user>
no ip dhcp server max-user
SyntaxDescription <max-user> The maximum users that DHCP Server veneer
supports, in the range of 1~32768.
Confidential and Proprietary Information of ZTE CORPORATION 93
ZXR10 Command Manual (Basic Configuration Volume II)
Defaults The maximum users that DHCP Server veneer supports is 2048.
Instruction Only when DHCP is in disable state, the configuration and deletionoperation that DHCP Server supports can be executed.
Example This example shows how to set the DHCP Server maximum usersto 5120.ZXR10(config)#ip dhcp server max-user 5120
RelatedCommands
show ip dhcp configure
ip dhcp snooping bindingPurpose Use this command to manually add a user bound entry to the DHCP
SNOOPING binding database. Delete a user bound entry from theDHCP SNOOPING binding database with the no command.
Command Modes Global configuration
Syntax ip dhcp snooping binding <mac> vlan <vlan><ip address><interface-number> expiry <60-42949672955>
no ip dhcp snooping binding <mac> vlan <vlan><ip address><interface-number>
SyntaxDescription <mac> MAC address of the user
<vlan > Native VLAN of the user, in the range of 1to 4,096. Users are allowed to input a VLANrange.
<ip address> IP address bound to DHCP
<interface-number> Physical interface No., such as fei, gei, andsmartgroup
Instructions It is only applied to switch. Router series does not support thiscommand.
Example Suppose the MAC address of the user is 0010.0000.0002; the useris located in vlan10 on the interface fei_1/1; the bound IP addressis 3.1.1.1; the timeout is 400 seconds. Manually add the userbound entry to the DHCP SNOOPING binding database.ZXR10(config)#ip dhcp snooping binding 0010.0000.0002vlan 10 3.1.1.1 fei_1/1 expiry 400ZXR10(config)#
RelatedCommands
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
94 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
ip dhcp snooping clearPurpose Use this command to manually clear the entry in the DHCP SNOOP-
ING binding table.
Command Modes Global configuration
Syntax ip dhcp snooping clear [<interface-number>]
SyntaxDescription
<interface-number> Physical interface No., such as fei, gei, andsmartgroup
Instructions � The platform version 4.6.02 and upgrade versions support thiscommand.
� It is only applied to switch. Router series does not support thiscommand.
Example This example describes how to manually clear the entry in theDHCP SNOOPING binding database.ZXR10(config)# ip dhcp snooping clear fei_1/1ZXR10(config)# ip dhcp snooping clear
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping binding
ip dhcp snooping enable
ip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
ip dhcp snooping enablePurpose Use this command to enable DHCP SNOOPING. Disable DHCP
SNOOPING with the no command.
Command Modes Global configuration
Syntax ip dhcp snooping enable
no ip dhcp snooping enable
Instructions After the DHCP SNOOPING function is enabled in global mode, itis still necessary to enable it in the VLAN.
Example This example describes how to enable DHCP SNOOPING in globalmode.ZXR10(config)#ip dhcp snooping enable
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping information option
Confidential and Proprietary Information of ZTE CORPORATION 95
ZXR10 Command Manual (Basic Configuration Volume II)
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
ip dhcp snooping informationcircuit-id
Purpose Use this command to configure sub option of DHCP OPT82 circuit-idbased on Layer 2 VLAN or physical interface. Use no command todelete the configuration.
Command Modes Physical interface configuration or Layer 2 VLAN configuration
Syntax ip dhcp snooping information circuit-id <circuit-id string>
no ip dhcp snooping information circuit-id
SyntaxDescription
<circuit-id string> The string of option 82 circuit-id configuredby the user
Defaults Null, that is, the sub option of DHCP OPT82 circuit-id is not con-figured.
Instructions It is only applied to switches.
Example This example shows how to configure sub options of DHCP snoop-ing Option 82 circuit-id.ZXR10(confi-vlan)#ip dhcp snooping informationcircuit-id “zxr10:vlan100:gei_1/1”
RelatedCommands
show ip snooping information vlan
show ip dhcp snooping information interface
ip dhcp snooping informationformat
Purpose Use this command to set the format of the 82 option inserted intothe forwarded DHCP packet: CHINA-TEL, DSL-FORUM and userconfiguration. By default, the CHINA-TEL format is adopted. Re-store default with the no command.
Command Modes Global configuration
Syntax ip dhcp snooping information format {china-tel | dsl-forum| user-configuration}
no ip dhcp snooping information format
96 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
SyntaxDescription
china-tel 82 option format of China Telecom
dsl-forum 82 option format of DSL forum
user-configuration 82 option format user can configure
Defaults CHINA-TEL is the default setting.
Instructions The platform version ZXROS 4.6.02 and upgrade versions supportthis command.
It is only applied to switches.
Example This example describes how to set the format of the 82 optioninserted into the forwarded DHCP packet to DSL-FORUM.ZXR10(config)#ip dhcp snooping information format dsl-forum
RelatedCommands
ip dhcp snooping information option
show ip dhcp snooping configure
ip dhcp snooping informationoption
Purpose Use this command to configure whether to insert the option 82into the forwarded DHCP packet. By default, the option 82 is notinserted.
Command Modes Global configuration
Syntax ip dhcp snooping information option
no ip dhcp snooping information option
Defaults The 82 option is not inserted.
Instructions The platform version ZXROS 4.6.02 and upgrade versions supportthis command.
It is only applied to switches.
Example This example describes how to insert the option 82 into the for-warded DHCP packet..ZXR10(config)#ip dhcp snooping information option
RelatedCommands
show ip dhcp snooping configure
ip dhcp snooping informationpolicy
Purpose Use this command to set the policy when another option82 is in-serted into the forwarded DHCP packet with one option 82 . KEEP
Confidential and Proprietary Information of ZTE CORPORATION 97
ZXR10 Command Manual (Basic Configuration Volume II)
and REPLACE. Delete the configured option 82 policy and restoredefault with the no command.
Command Modes Global configuration
Syntax ip dhcp snooping information policy {keep | replace}
no ip dhcp snooping information policy
SyntaxDescription
keep Keeps the original option 82 and makestransparent transmission
replace Replaces the original option 82
Defaults The original option 82 is kept, that is, transparent transmission.
Instructions It is only applied to switches.
Example This example describes how to set the policy to REPLACE.ZXR10(config)#ip dhcp snooping information policy replace
RelatedCommands
ip dhcp snooping information option
show ip dhcp snooping configure
ip dhcp snooping informationremote-id
Purpose Use this command to configure sub option of DHCP OPT82 re-mote-id based on Layer 2 VLAN or physical interface. Use theno command to delete the configuration.
Command Modes Physical interface configuration or Layer 2 VLAN configuration
Syntax ip dhcp snooping information circuit-id <remote-id string>
no ip dhcp snooping information circuit-id
SyntaxDescription
<remote-id string> The string of option 82 circuit-id configuredby the user
Defaults Null
Instructions It is only applied to switches.
Example This example shows how to configure sub options of DHCP snoop-ing Option 82 remote-id.ZXR10(config-vlan)#ip dhcp snooping information remote-id“zxr10:vlan100:gei_1/1”
RelatedCommands
show ip snooping information vlan
show ip dhcp snooping information interface
98 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
ip dhcp snooping informationuniform circuit-id
Purpose Use this command to configure sub option of DHCP OPT82 cir-cuit-id based on uniform mode. Use the no command to deletethe configuration.
Command Modes Global configuration
Syntax ip dhcp snooping information uniform circuit-id <circuit-idstring>
no ip dhcp snooping information uniform circuit-id
SyntaxDescription
<circuit-id string> The string of option 82 circuit-id configuredby the user
Defaults Null
Instructions It is only applied to switches.
Example This example shows how to configure sub options of DHCP RelayOption 82 circuit-id.ZXR10(config)#ip dhcp snooping information circuit-id“zxr10:vlan100:gei_1/1”
RelatedCommands
show ip dhcp snooping information uniform
ip dhcp snooping informationuniform remote-id
Purpose Use this command to configure sub option of DHCP OPT82 re-mote-id based on uniform mode. Use the no command to deletethe configuration.
Command Modes Global configuration
Syntax ip dhcp snooping information uniform remote-id <remote-idstring>
no ip dhcp snooping information uniform remote-id
SyntaxDescription
<remote-id string> The string of option 82 circuit-id configuredby the user
Defaults Null
Instructions It is only applied to switches.
Example This example shows how to configure sub options of DHCP RelayOption 82 remote-id.ZXR10(config)#ip dhcp snooping information remote -id “zxr10:T64G001”
Confidential and Proprietary Information of ZTE CORPORATION 99
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
show ip dhcp snooping information uniform
ip dhcp snooping informationuser-configuration policy
Purpose Use this command to configure user configuration policy based onuniform mode. It is used after configuring agent-format to ser-configuration. Use the no command to delete the configuration.
Command Modes Global configuration
Syntax ip dhcp snooping information user-configuration policy {uniform | interface | VLAN }
no ip dhcp snooping information user-configuration policy
SyntaxDescription
uniform Select the string of option 82 configured inuniform mode to insert to DHCP packet
interface Select the string of option 82 configured ininterface mode to insert to DHCP packet
VLAN Select the string of option 82 configured onthe base of Layer 2 VLAN to insert to DHCPpacket
Defaults Interface mode
Instructions It is only applied to switches.
Example This example shows how to configure user configuration policy ofDHCP Relay Option 82.ZXR10(config)#ip dhcp snooping information user-configurationpolicy interface
RelatedCommands
ip dhcp snooping information user-configuration policy interface
show ip dhcp snooping configure
ip dhcp snooping max-userPurpose Use this command to set the maximum users that DHCP Snooping
supports.
Command Modes Global configuration
Syntax ip dhcp snooping max-user <max-user>
no ip dhcp snooping max-user
100 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
SyntaxDescription <max-user> The maximum users that DHCP Snooping
veneer supports, in the range of 1~32768.
Defaults The maximum users that DHCP Snooping veneer supports is 2048.
Instruction Only when DHCP is in disable state, the configuration and deletionoperation that DHCP Snooping supports can be executed.
This command is only applied to switches.
Example This example shows how to set the DHCP Snooping maximumusers to 5120.ZXR10(config)#ip dhcp snooping max-user 5120
RelatedCommands
show ip dhcp snooping configure
ip dhcp snooping ramblePurpose Use this command to configure DHCP SNOOPING ramble function,
that permits user to switch between the different physical ports.Disramble is the default setting.
Command Modes Global configuration
Syntax ip dhcp snooping ramble
no ip dhcp snooping ramble
Instructions It is only applied to switches.
Example This example describes how to configure DHCP SNOOPING ramblefunction.ZXR10(config)#ip dhcp snooping ramble
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping trustPurpose Use this command to set the interface connected to the DHCP
SERVER to trust mode. Note that this command does not takeeffect on the DHCP SERVER interface. By default, other interfaceswork in non trust mode.
Command Modes Global configuration
Interface configuration
Syntax ip dhcp snooping trust [<interface-number>]
no ip dhcp snooping trust [<interface-number>]
Confidential and Proprietary Information of ZTE CORPORATION 101
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
<interface-number> Physical interface No., such as fei, gei, andsmartgroup
Example This example describes how to set the interface fei_4/1 to trustmode.ZXR10(config)#ip dhcp snooping trust fei_4/1
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping vlanPurpose Use this command to enable DHCP SNOOPING of the specified
VLAN.
Command Modes Global configuration
Syntax ip dhcp snooping vlan <vlan>
no ip dhcp snooping vlan <vlan>
SyntaxDescription
<vlan> VLAN of users, 1~4094, a range can beentered.
Instructions This command takes effect only if DHCP SNOOPING is configuredas ENABLE in global configuration mode.
Example This example describes how to enable DHCP SNOOPING of VLAN10in global configuration mode.ZXR10(config)#ip dhcp snooping vlan 10
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
ip dhcp user quotaPurpose Use this command to set the DHCP user quota on the interface,
that is, the maximum number of DHCP Clients on the interface.This command is always valid to the DHCP server process, and is
102 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
valid to the DHCP relay process under specific configuration con-ditions. Delete the DHCP user quota with the no command.
Command Modes Interface configuration
Syntax ip dhcp user quota <limit-value>
no ip dhcp user quota
SyntaxDescription
<limit-value> DHCP user quota on the interface, ranging 1~ 2048
Defaults No quota
Instructions For the DHCP Serve, the DHCP user quota restricts the maximumnumber of DHCP users on the interface, and controls the numberof IP addresses indirectly.
For the DHCP relay, as the DHCP relay protocol does not supportthe processing of DHCP user quota, which is invalid. However,when the IP address of the DHCP relay is bound to the ARP, thequota is valid after some processing.
Example This example describes how to set the user quota on the fei_2/1interface to 50.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip dhcp user quota 50
RelatedCommands
show ip dhcp configure
kick-off ip dhcp server userPurpose Use this command to make the on-line users off-line from the
server according to designated attribute(interface/MAC address/IPaddress/ vlan ID/ invlan_ID/exvlan_ID).
Command Modes Privileged EXEC
Syntax kick-off ip dhcp server user [[interface <inf_name>]|[mac<mac_addr>[vrf-instance <vrf_name>]]|[ip <ip_addr>[vrf-instance <vrf_name>]]|[vlan <vlan_ID>]|[invlan <invlan_ID>[exvlan <exvlan_ID>]]|[exvlan <exvlan_ID>]]
SyntaxDescription
<inf_name> Layer 3 interface name
<mac_addr> MAC address
<vrf_name> VRF name
<ip_addr> IP address
<vlan_ID> VLAN ID
<invlan_ID> Internal VLAN ID
<exvlan_ID> External VLAN ID
Confidential and Proprietary Information of ZTE CORPORATION 103
ZXR10 Command Manual (Basic Configuration Volume II)
Instructions Administrator can make the on-line users off-line from the serveraccording to designated attribute in DHCP Server mode. On thedistributed rack, when the administrator makes the on-line usersoff-line from the server according to attribute of interface, the sys-tem prompts to input the line card number.
Example This example shows how to make the user with MAC address00c0.0000.0001 off-line.ZXR10#kick-off ip dhcp server user mac 00c0.0000.0001
RelatedCommands
show ip dhcp server user
kick-off ip dhcp snoopinguser
Purpose Use this command to make the on-line users off-line from theSNOOPING according to designated attribute(interface/MAC ad-dress/IP address/ vlan ID/ invlan_ID/exvlan_ID).
Command Modes Privileged EXEC
Syntax kick-off ip dhcp snooping user [[interface <inf_name>]|[mac<mac_addr>[vrf-instance <vrf_name>]]|[ip <ip_addr>[vrf-instance <vrf_name>]]|[vlan <vlan_ID>]|[invlan <invlan_ID>[exvlan <exvlan_ID>]]|[exvlan <exvlan_ID>]]
SyntaxDescription
<inf_name> Layer 3 interface name
<mac_addr> MAC address
<vrf_name> VRF name IP address
<ip_addr> IP address
<vlan_ID> VLAN ID
<invlan_ID> Internal VLAN ID
<exvlan_ID> External VLAN ID
Instructions � Administrator can make the on-line users off-line from theserver according to designated attribute in DHCP SNOOPINGmode. On the distributed rack, when the administrator makesthe on-line users off-line from the server according to attributeof interface, the system prompts to input the line card number.
� It is only applied to switches.
Example This example shows how to make the user with MAC address00c0.0000.0001 off-line.ZXR10#kick-off ip dhcp snooping user mac 00c0.0000.0001
104 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
RelatedCommands
show ip dhcp snooping database
kick-off ip dhcp relay userPurpose Use this command to make the on-line users off-line from the Re-
lay according to designated attribute.
Command Modes Privileged EXEC
Syntax kick-off ip dhcp relay user [[interface <inf_name>]|[mac<mac_addr>[vrf-instance <vrf_name>]]|[ip <ip_addr>[vrf-instance <vrf_name>]]|[vlan <vlan_ID>]|[invlan <invlan_ID>[exvlan <exvlan_ID>]]|[exvlan <exvlan_ID>]]
SyntaxDescription
<inf_name> Layer 3 interface name
<mac_addr> MAC address
<vrf_name> VRF name
<ip_addr> IP address
<vlan_ID> VLAN ID
<invlan_ID> Internal VLAN ID
<exvlan_ID> External VLAN ID
Defaults If this area is configured, it is enabled by default.
Instructions Administrator can make the on-line users off-line from the serveraccording to designated attribute in DHCP Relay mode. On thedistributed rack, when the administrator makes the on-line usersoff-line from the server according to attribute of interface, the sys-tem prompts to input the line card number.
Example This example shows how to make the user with MAC address00c0.0000.000 off-line.ZXR10#kick-off ip dhcp relay user mac 00c0.0000.0001
RelatedCommands
show ip dhcp relay user
release dhcpPurpose Use this command to release the IP address that the specified in-
terface obtains.
Command Modes Privileged EXEC
Syntax release dhcp <interface>
Confidential and Proprietary Information of ZTE CORPORATION 105
ZXR10 Command Manual (Basic Configuration Volume II)
SyntaxDescription
<interface> The layer-3 interface name, such as fei_1/1,vlan1.
Instruction The input interface name should be the enabled dhcp client inter-face. If the interface already obtains the IP address, then the IPaddress will be released after executing this command.
The platform 4.8.22 version supports this command.
It is only applied to 59 series switches currently.
Example This example shows how to release the IP address that interfaceVLAN1 obtained.ZXR10#release dhcp vlan1ZXR10#
RelatedCommands
renew dhcp
renew dhcpPurpose Use this command to release the IP address that the specified in-
terface obtains.
Command Modes Privileged EXEC
Syntax renew dhcp <interface>
SyntaxDescription
<interface> The layer-3 interface name, such as fei_1/1,vlan1.
Instruction The input interface name should be the enabled dhcp client inter-face. If the interface already obtains the IP address, then the dhcprequest flow will be launched again after executing this command.
The platform 4.8.22 version supports this command.
It is only applied to 59 series switches currently.
Example This example shows how to renew the IP address that interfaceVLAN1 obtained.ZXR10#renew dhcp vlan1ZXR10#
RelatedCommands
release dhcp
show ip dhcp configurePurpose Use this command to display DHCP process configuration related
parameter.
Command Modes Privileged EXEC
Syntax show ip dhcp configure
106 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
Example This example describes how to display the configuration below af-ter starting DHCP Relay function.ZXR10#show ip dhcp configureDHCP process state information
process state :enable(running)logging flag : off
DHCP server configure:available dns for client.master: slave:lease time of ip address: 3600 secondsupdate arp state : disable
DHCP relay configure:not insert relay information in BOOTREQUEST.relay information policy: default(replace)relay information format: default(china-tel)relay retry times to server: 10update arp state : disable
ZXR10#
show ip dhcp ramblePurpose Use this command to display the related parameters DHCP roam
configuration.
Command Modes Privileged EXEC
Syntax show ip dhcp ramble
Example This example describes how to display the configuration informa-tion below after starting DHCP roam function.ZXR10#show ip dhcp rambleCurrent DHCP relay user ramble state:
ramble state: enableZXR10#
RelatedCommands
ip dhcp relay agent
ip dhcp enable
ip dhcp relay server
show ip dhcp relay forwardPurpose Use this command to display DHCP Relay process’ forwarding
mode related parameter.
Command Modes Privileged EXEC
Syntax show ip dhcp relay forward
Example This example describes how to display the configuration informa-tion below after starting DHCP Relay.ZXR10#show ip dhcp relay forworddhcp relay configure information
current dhcp relay state : disable(stop)not insert relay information in BOOTREQUEST.relay information policy: default(replace)relay information format: default(china-tel)update arp state : disable
ZXR10#
Confidential and Proprietary Information of ZTE CORPORATION 107
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
ip dhcp relay agent
ip dhcp relay enable
ip dhcp relay server
show ip dhcp relayinformation
Purpose Use this command to display the related DHCP option 82 informa-tion that user configured of DHCP Relay.
Command Modes Privileged EXEC
Syntax show ip dhcp relay information [ uniform | interface <interface-name>]
SyntaxDescription
uniform Displays information of uniform mode.
interface Displays DHCP option 82 information of aninterface.
Instructions TIf no parameter is configured, the command displays all informa-tion of DHCP option 82. If uniform is configured, the commanddisplays information of uniform mode. If interface <interface_name>is configured, the command displays DHCP option 82 infor-mation of an interface.
Example This example shows how to display all DHCP option 82 informationthat user configured of DHCP Relay.ZXR10(config)#show ip dhcp relay informationDHCP relay information of all by user configuration are:TYPE circuit-id-len remote-id-lenuniform 11 0vlan22 13 6ZXR10(config)#ZXR10(config)#show ip dhcp relay information uniformDHCP relay information of uniform by user configuration are:The circuit-id subitem context:"123456789"The remote-id subitem context:
RelatedCommands
ip dhcp relay information uniform circuit-id <str>
ip dhcp relay information uniform remote-id <str>
ip dhcp relay circuit-id <str>
ip dhcp relay remote-id <str>
108 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
show ip dhcp relay securityclient
Purpose Use this command to display the server-id address that the DHCPRelay replies to the DHCP Client.
Command Modes Privileged EXEC
Syntax show ip dhcp relay security client
Example This example shows how to display the server-id address that theDHCP Relay replies to the DHCP Client.ZXR10(config)#show ip dhcp relay security clientDHCP client configure information in security forward mode:
DHCP server ID :100.1.1.1
RelatedCommands
ip dhcp relay server vclass-id
show ip dhcp relay servervclass-id
Purpose Use this command to display the domain name and IP address ofa DHCP Server on the DHCP Relay.
Command Modes Privileged EXEC
Syntax show ip dhcp relay server vclass-id [<Vendor class identifier>]
SyntaxDescription
<Vendor classidentifier>
The configured domain name of DHCP Server
Example This example shows how to display the domain name and IP ad-dress of a DHCP Server on the DHCP Relay.ZXR10(config)#show ip dhcp relay server vclass-idZTE:
DHCP server :1.1.1.1 standardDHCP server :2.2.2.2 standard
ZhongXing:DHCP server :3.3.3.3 standard
RelatedCommands
ip dhcp relay server vclass-id
show ip dhcp relay snoopingpacket
Purpose Use this command to display the interfaces that enable the func-tion to snatch request and response information.
Command Modes Privileged EXEC
Confidential and Proprietary Information of ZTE CORPORATION 109
ZXR10 Command Manual (Basic Configuration Volume II)
Syntax show ip dhcp relay snooping packet [request | response|<enter>]
SyntaxDescription
request display the interfaces that enable the functionto snatch request information
response display the interfaces that enable the functionto snatch response information
<enter> (Enter key) display the interfaces that enable the functionto snatch request and response information
Example This example shows how to display the interfaces that enable thefunction to snatch request and response information.ZXR10(config)#show ip dhcp relay snooping packetInterface request reply---------------------------------------------------------fei_1/2 Unused Usedfei_1/5 Used Unused
RelatedCommands
ip dhcp relay snooping packet request
ip dhcp relay snooping packet response
show ip dhcp relay snoopingtrust
Purpose Use this command to display the interfaces that are configured asDHCP Relay Snooping trust interfaces.
Command Modes Privileged EXEC
Syntax show ip dhcp relay snooping trust {<port-name>}
SyntaxDescription <port-name> Trust port name
Example This example shows how to display the interfaces that are config-ured as trust interfaces.ZXR10(config)#show ip dhcp relay snooping trustInterface State-------------------------------------------fei_1/3 Trusted
RelatedCommands
ip dhcp relay snooping trust
show ip dhcp server userPurpose Use this command to display board user access number of DHCP
Server.
Command Modes Privileged EXEC
110 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
Syntax show ip dhcp server user [<port-name>]
SyntaxDescription <port-name> Port name
Example This example describes how to display interface fei_1/1’s DHCPuser access.ZXR10(config)#show ip dhcp server user fei_1Current online users are 0.Index MAC addr IP addr State Expiration
RelatedCommands
ip dhcp relay agent
ip dhcp enable
ip dhcp relay server
show ip dhcp snoopingconfigure
Purpose Use this command to show global configuration of DHCP SNOOP-ING.
Command Modes Global configuration
Syntax show ip dhcp snooping configure
Instructions It is only applied to switches.
Example This example describes how to show global configuration informa-tion of DHCP SNOOPING.ZXR10(config)#show ip dhcp snooping configuredhcp snooping configure information
dhcp snooping globally state : disable(stop)not insert relay information in BOOTREQUEST.relay information policy: default(replace)relay information format: default(china-tel)
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
iip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping information user-configuration policy
Confidential and Proprietary Information of ZTE CORPORATION 111
ZXR10 Command Manual (Basic Configuration Volume II)
show ip dhcp snoopingdatabase
Purpose Use this command to show the binding database information ofDHCP SNOOPING.
Command Modes Global configuration
Syntax show ip dhcp snooping database <interface-number>
SyntaxDescription
<interface-number> Physical interface number, for example, fei,gei, and smartgroup.
Defaults It is only applied to switches.
Example This example describes how to show the binding database infor-mation of DHCP SNOOPING.ZXR10(config)#show ip dhcp snooping database fei_1/1Current bind users are 1.Index MAC addr IP addr Vlan State Expiration1 0010.0000.0002 3.1.1.1 10 static 00:59:36 01/01/2001ZXR10(config)#
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
show ip dhcp snoopinginformation
Purpose Use this command to display the related DHCP option 82 informa-tion that user configured of DHCP SNOOPING.
Command Modes Privileged EXEC
Syntax show ip dhcp snooping information [ uniform | interface<interface-name>| vlan <vlan-id>]
112 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
SyntaxDescription
uniform Displays the information in the uniformconfiguration mode.
interface<interface-name>
Displays the information of DHCP Option 82in a specified interface.
vlan<vlan-id> Displays the informationof DHCP Option 82 ina layer-2 VLAN.
Instructions When no parameter is configured, the command displays all infor-mation of DHCP option 82.
Example This example shows how to display all DHCP option 82 informationthat user configured of DHCP SNOOPING.ZXR10(config)#show ip dhcp snooping informationDHCP snooping information of all by user configuration are:TYPE circuit-id-len remote-id-lenuniform 8 9VLAN10 12 0
show ip dhcp snoopingramble
Purpose Use this command to display the related parameters DHCP roamconfiguration.
Command Modes Global configuration
Syntax show ip dhcp snooping ramble
Instructions It is only applied to switches.
Example his example describes how to display the configuration informationbelow after starting DHCP roam function.ZXR10(config)#ip dhcp snooping rambleZXR10(config)#show ip dhcp snooping rambleCurrent DHCP snooping user ramble state :ramble state: enable
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
Confidential and Proprietary Information of ZTE CORPORATION 113
ZXR10 Command Manual (Basic Configuration Volume II)
show ip dhcp snooping trustPurpose Use this command to show trusted port information of DHCP
SNOOPING.
Command Modes Global configuration
Syntax show ip dhcp snooping trust
Example This example describes how to show the interface trust state in-formation of DHCP SNOOPING.ZXR10(config)#show ip dhcp snooping trustInterface State-------------------------------------------fei_4/1 TrustedZXR10(config)#
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
ip dhcp snooping information option
ip dhcp snooping information format
ip dhcp snooping information policy
ip dhcp snooping vlan
show ip dhcp snooping vlanPurpose Use this command to show the DHCP SNOOPING state of the spec-
ified VLAN.
Command Modes Global configuration
Syntax show ip dhcp snooping vlan [<vlan>]
SyntaxDescription
<vlan> VLAN of users, 1~4094, a range allowed forentry
Instructions It is only applied to switches.
Example This example describes how to show the DHCP SNOOPING stateof the VLAN.ZXR10(config)#show ip dhcp snooping vlanDHCP snooping state on vlansVlan State-------------------------------1 disable2 disable10 enableZXR10(config)#
RelatedCommands
ip dhcp snooping binding
ip dhcp snooping clear
ip dhcp snooping enable
114 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 DHCP and DHCP SNOOPING Configuration
ip dhcp snooping trust
ip dhcp snooping vlan
Confidential and Proprietary Information of ZTE CORPORATION 115
ZXR10 Command Manual (Basic Configuration Volume II)
This page is intentionally blank.
116 Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 4
DHCP PoolConfiguration
Table of Contentsbinding .......................................................................... 117default-router ................................................................. 118dns-server...................................................................... 118ip dhcp pool.................................................................... 118ip-pool ........................................................................... 119lease-time ...................................................................... 119option............................................................................ 120show ip dhcp pool............................................................ 120
bindingPurpose Use this command to bind an IP address to a MAC address. Delete
the configuration with the no command.
Command Modes DHCP pool configuration
Syntax binding <mac_addr><ip_addr>[vrf-instance <instance_name>]
no binding <mac_addr><ip_addr>[vrf-instance <instance_name>]
SyntaxDescription
<mac_addr> MAC address
<ip_addr> IP address
<instance_ name> Instance name
Instructions The platform version 4.8.02 and upgrade versions support thiscommand.
Example This example shows how to bind an IP address 2.2.2.36 to theMAC address 001B.0000.0001.ZXR10(config)#ip dhcp pool dhcppool1ZXR10(config-dhcp-pool)# binding 001B.0000.0001 2.2.2.36
RelatedCommands
ip dhcp pool
show ip dhcp pool
Confidential and Proprietary Information of ZTE CORPORATION 117
ZXR10 Command Manual (Basic Configuration Volume II)
default-routerPurpose Use this command to configure the default routes. Delete the con-
figuration with the no command.
Command Modes DHCP pool configuration
Syntax default-router <ip_addr>[<ip_addr>][<ip_addr>]
no default-router <ip_addr>[<ip_addr>][<ip_addr>]
SyntaxDescription
<ip_addr> IP address
Instructions It is up to configure 8 default routes.
Example This example shows how to configure a default route 1.1.1.58.ZXR10(config)#ip dhcp pool dhcppool1ZXR10(config-dhcp-pool)#default-router 1.1.1.58
RelatedCommands
ip dhcp pool
show ip dhcp pool
dns-serverPurpose Use this command to configure the address of the DNS server.
Delete the configuration with no command.
Command Modes DHCP pool configuration
Syntax dns-server <ip_addr>[<ip_addr>][<ip_addr>]
no dns-server <ip_addr>[<ip_addr>]
Instructions It is up to configure 8 DNS server addresses.
Example This example shows how to configure the DNS server address as2.2.2.253.ZXR10(config)#ip dhcp pool dhcppool1ZXR10(config-dhcp-pool)#dns-server 2.2.2.253
RelatedCommands
show ip dhcp pool
ip dhcp poolPurpose Use this command to enter DHCP pool configuration mode from
global configuration mode. Delete corresponding IP DHCP pool.
Command Modes Global configuration
Syntax ip dhcp pool <dhcp_pool-name>
no ip dhcp pool <dhcp_pool-name>
118 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 4 DHCP Pool Configuration
SyntaxDescription
<dhcp_pool-name> DHCP POOL, 1~16 characters.
Instructions The platform version 4.8.02 and upgrade versions support thiscommand.
Example This example shows how to configure the DCHP pool name topool1.ZXR10(config)#ip dhcp pool dhcppool1
RelatedCommands
show ip dhcp pool
ip-poolPurpose Use this command to bind the designated IP POOL to DHCP POOL.
Delete the configuration with no command.
Command Modes DHCP pool configuration
Syntax ip-pool <ip_pool_name>
no ip-pool
SyntaxDescription
<ip_pool_name> IP POOL name, within 1~16 characters.
Instructions The platform version 4.8.02 and upgrade versions support thiscommand. It is the required configuration of DHCP function.
Example This example shows how to bind an IP POOL named pool1 to theDHCP POOL.ZXR10(config)#ip dhcp pool dhcppool1ZXR10(config-dhcp-pool)#ip-pool pool1
RelatedCommands
show ip dhcp pool
lease-timePurpose Use this command to configure the lease time of an IP address.
Delete the configuration and restore the default value with the nocommand.
Command Modes DHCP pool configuration
Syntax lease-time [[infinite]|[<days><hours><minutes>]]
no lease-time
SyntaxDescription
<days> Ranging from 0 to 365
<hours> Ranging from 0 to 23
Confidential and Proprietary Information of ZTE CORPORATION 119
ZXR10 Command Manual (Basic Configuration Volume II)
<minutes> Ranging from 0 to 59
infinite infinite
Defaults 60 minutes.
Instructions The platform version 4.8.02 and upgrade versions support thiscommand.
Example This example shows how to configure the lease time to 2 days and10 hours.ZXR10(config)#ip dhcp pool dhcppool1ZXR10(config-dhcp-pool)#lease-time 2 10 0
RelatedCommands
ip dhcp pool
show ip dhcp pool
optionPurpose Use this command to configure other options. Delete the configu-
ration with no command.
Command Modes DHCP pool configuration
Syntax option <option_code>[[ascii <string>]|[hex <hex_num>]|[ip<ip_addr>]]
SyntaxDescription
<option_code> Option code, ranging from 1 to 254
<string> Configure NVT ASCII string
<hex_num> Hex number
<ip_addr> IP address
Instructions The platform version 4.8.02 and upgrade versions support thiscommand.
Example This example shows how to configure the option with code 15.ZXR10(config)#ip dhcp pool dhcppool1ZXR10(config-dhcp-pool)#option 15 ascii zte.com
RelatedCommands
show ip dhcp pool
show ip dhcp poolPurpose Use this command to display the configuration information of DHCP
POOL.
Command Modes Privileged EXEC
Syntax show ip dhcp pool [<pool-name>][binding ][slot <npc-num>]
120 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 4 DHCP Pool Configuration
SyntaxDescription
<pool-name> DHCP POOL name, within 1~16 characters.
<npc-num> The NPC unit number of the distributed modedisplay.
Instruction The platform 4802 version supports this command.
The distributed display command is supported by the platform4822 version and the upgrade distributing devices.
Example This example shows how to display the configuration of dhcppool1.ZXR10#show ip dhcp pool dhcppool1
RelatedCommands
ip dhcp pool
Confidential and Proprietary Information of ZTE CORPORATION 121
ZXR10 Command Manual (Basic Configuration Volume II)
This page is intentionally blank.
122 Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 5
DHCP PolicyConfiguration
Table of Contentsdhcp-pool ....................................................................... 123ip dhcp policy.................................................................. 124ip dhcp policy.................................................................. 124relay-agent..................................................................... 125show ip dhcp policy.......................................................... 126vrf-instance .................................................................... 126
dhcp-poolPurpose Use this command to bind a policy to a DHCP POOL. Delete the
configuration with the no command.
Command Modes DHCP policy configuration
Syntax dhcp-pool <pool_name>
no dhcp-pool
SyntaxDescription
<pool_name> DHCP POOL name
Instructions � The platform version 4.8.02 and upgrade versions support thiscommand. It is the required configuration of DHCP function.
� The configuration of DHCP policy should be consistent with thenetwork topology. The DHCP pool bound to DHCP policy shouldmatch the access interface that is bound to the DHCP policy.Otherwise, the address assignment will fail.
Example This example shows how to bind the DHCP pool named dpool1 toa policy.ZXR10(config)#ip dhcp policy policy1 2ZXR10(config-dhcp-policy)#dhcp-pool dpool1
Confidential and Proprietary Information of ZTE CORPORATION 123
ZXR10 Command Manual (Basic Configuration Volume II)
Relatedcommands
show ip dhcp policy
ip dhcp policyPurpose Use this command to enter policy configuration mode from global
configuration mode. Delete the configuration with the no com-mand.
Command Modes Global configuration
Syntax ip dhcp policy <policy_name><priority>
no ip dhcp policy <policy_name><priority>
SyntaxDescription
<policy_name> Policy name, with 1~16 characters.
<priority> Priority
Instructions It is the required configuration of DHCP function and it can beused to configure different priorities for the policies with the samename.
Users can control and configure the access policy of DHCP userswith DHCP policy. This improves the access control and serviceexpansibility.
DHCP policy is related to interfaces. If multiple policies that arerelated different interfaces are created in the same DHCP policy,and the DHCP policy is bound to different interfaces, the addressassignments may fail.
Example This example shows how to enter the configuration mode of thepolicy named policy1 with priority 2.ZXR10(config)#ip dhcp policy policy1 2ZXR10(config-dhcp-policy)#
RelatedCommands
show ip dhcp policy
ip dhcp policyPurpose Use this command to bind a policy to an interface. Delete the
configuration with no command.
Command Modes Interface configuration
Syntax ip dhcp policy <policy_name>
no ip dhcp policy
SyntaxDescription
<policy_name> Policy name
Instructions The platform version 4.8.02 and upgrade versions support thiscommand. It is the required configuration of DHCP function. Bind
124 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 5 DHCP Policy Configuration
the dhcp policy to layer-3 interface in order to control the accessusers.
The DHCP pool in the DHCP policy that is bound to an interfaceshould be the valid configuration of the interface. If wrongly bindthe DHCP POOL that not belongs to this interface to the DHCPPOLICY, it will bring to ubnormal .
For example, the related DHCP POLICY of multiple interfaces iscreated in the same DHCP POLICY set, and this DHCP POLICY isbound to multiple interfaces at the same time. In this circum-stance, it will bring to the DHCP POOL irrelevant with the interfaceand fail to assign the address.
Example This example shows how to bind policy1 to interface fei_1/1.ZXR10(config-if)#ip dhcp policy policy1
RelatedCommands
show running-config interface
relay-agentPurpose Use this command to configure the address of relay agent. Delete
the configuration with the no command.
Command Modes DHCP policy configuration mode
Syntax relay-agent <ip_addr>
no relay-agent
SyntaxDescription
<ip_addr> IP address
Instructions � The platform version 4.8.02 and upgrade versions support thiscommand.
� When the user accesses to the DHCP server directly, it is notrequired to configure this command. When the user accessesto the DHCP server through the relay, it is required to configurethis command.
� When the address application is implemented through DHCPRelay, it is required to configure DHCP Relay agent. Otherwise,it is not required to configure DHCP Relay agent.
� To support controllable access and super address pool, thematch of address pool is implemented according to the priorityand is compared according VRF and relay agent. If it matches,the address is applied from the matched pool.
Example This example shows how to configure the relay agent address to2.2.2.253.ZXR10(config)#ip dhcp policy policy1 2ZXR10(config-dhcp-policy)#relay-agent 2.2.2.253
Confidential and Proprietary Information of ZTE CORPORATION 125
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
show ip dhcp policy
show ip dhcp policyPurpose Use this command to display the configuration information of DHCP
policy.
Command Modes Privileged EXEC
Syntax show ip dhcp policy [<policy_name>]
SyntaxDescription
<policy_name> Policy name
Instructions The platform version 4.8.02 and upgrade versions support thiscommand.
Example This example shows how to display the configuration of the policynamed p1.ZXR10#show ip dhcp policy p1
RelatedCommands
ip dhcp policy
vrf-instancePurpose Use this command to configure VPN. Delete the configuration with
the no command.
Command Modes DHCP policy configuration
Syntax vrf-instance <instance_name>
no vrf-instanceSyntax
Description<instance_name> Instance name, with 1 to 16 characters.
Instructions The platform version 4.8.02 and upgrade versions support thiscommand
Example This example shows how to configure the name of vrf-instance tovpn1.ZXR10(config)#ip dhcp policy policy1 2ZXR10(config-dhcp-policy)#vrf-instance vpn1
RelatedCommands
show ip dhcp policy
126 Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 6
VRRP Configuration
Table of Contentsshow track...................................................................... 127show vrrp....................................................................... 128track.............................................................................. 129vrrp advertise ................................................................. 130vrrp authentication .......................................................... 131vrrp ip ........................................................................... 131vrrp learn ....................................................................... 132vrrp mode ...................................................................... 133vrrp out-interface ............................................................ 133vrrp preempt .................................................................. 134vrrp priority .................................................................... 134vrrp track ....................................................................... 135
show trackPurpose Use this command to display the configuration information of all
tracks.
Command Modes EXEC
Syntax show track [<track-num>| brief]
SyntaxDescription
<track-num> Track ID, 1 ~ 256
Instructions � The show track command shows the configurations of alltracks.
� The show track brief command shows brief configurations ofall tracks.
Example This example describes how to set track 1 to trace the up/downinformation of the fei_5/1 interface. The following information willbe displayed.ZXR10#show trackTrack 1Interface fei_5/1 line-protocolLine protocol is up4 change, last change 00:05:05Tracked by :vrrp fei_1/1 1
The displayed information descriptions are shown below.
Confidential and Proprietary Information of ZTE CORPORATION 127
ZXR10 Command Manual (Basic Configuration Volume II)
Field Description
Track 1 Track ID
Interface Interface traced by the track
Line-protocol Interface link status: up/down
Change Change times of the interface link’s status
Last change Last change time of interface status
Track by What modules are configured to be tracedby the track
Vrrp fei_1/1 1 Tracked by VRRP group 1 on the fei_1/1
show vrrpPurpose Use this command to display the configuration information of all
VRRP groups.
Command Modes Privileged EXEC
Syntax show vrrp [<group>| brief | interface <interface-name>| all]
SyntaxDescription <group> Virtual router ID, 0 ~ 255.
brief Brief information configured for the VRRP
interface <interface-name>
Name of the interface
all Displays configuration information of all VRRPgroups (including the group without virtualaddress)
Instructions By default, the show vrrp command shows the configurations ofall active VRRP groups.
Example This example describes how to configure A VRRP group is config-ured on the vlan1 interface.ZXR10#show vrrpVlan1 - Group 1State is MasterVirtual IP address is 10.1.1.1Virtual MAC address is 0000.5e00.0101Advertisement interval is 1.000 secPreemption is enabledmin delay is 0.000 secPriority is 255 (config 100)Authentication is disabledTrack object 1 decrement 30Master Router is 10.1.1.1 (local), priority is 255Master Advertisement interval is 1.000 secMaster Down interval is 3.003 sec
The displayed information descriptions are shown below.
128 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 6 VRRP Configuration
Field Description
Vlan1-Group State Interface type and name
State Show the status of the VRRP group on theinterface (Master, Backup, Initial or Disable)
Virtual IP address Virtual IP address of the VRRP group on theinterface
Virtual MAC address Virtual MAC address of the VRRP group onthe interface
Advertisement interval Time interval for VRRP to send packets onthe interface
Preemption Preemption allowed or not
Priority Priority configured on the interface
Track object Track object, down priority
Master Router Interface address of the master virtual routerin the group. local means the local
Master Advertisementinterval
Time interval for the Master to advertisepackets
Master Down interval Master timeout interval
trackPurpose Use this command to track the up/down status, BFD link status and
PING detection status of the interface. Delete the configurationwith the no command.
Command Modes Global configuration
Syntax track <track-num> line-protocol interface <interface-name>
track <track-num> bfd interface <interface-name> peer-ip<A.B.C.D>[vrrp <vid>]
track <track-num> detect-group <group_no>
no track {<track-num>| all}
SyntaxDescription
<track-num> TRACK ID, 1 256
<interface-name> Name of the interface
bfd interface BFD link status
detect-group Ping detection
<A.B.C.D> The other side address of BFD detection
Confidential and Proprietary Information of ZTE CORPORATION 129
ZXR10 Command Manual (Basic Configuration Volume II)
<group_no> Automatic detection number
line-protocolinterface
Status of the tracked interface
Instructions � Track is used to track the up/down status, BFD link status andPING detection status of the interface. When the status of theinterface changes, related module is triggered to process thechange.
� The platform version 4.6.03 and upgrade versions support thiscommand.
Example This example describes how to track the status of the fei_1/1 in-terface.ZZXR10#conf tZXR10(config)#track 1 interface fei_1/1ZXR10(config-if)#
RelatedCommands
show track
vrrp advertisePurpose Use this command to set the time interval for sending VRRP adver-
tisement on the interface. Restore the default with the no com-mand.
Command Modes Interface configuration
Syntax vrrp <group> advertise [msec]<interval>
no vrrp <group> advertise
SyntaxDescription <group> Virtual router ID, 0 ~ 255.
msec Change the unit of the time from second intominute
<interval> Interval for the master to send VRRPadvertisements. In the unit of second, 1 ~255; in the unit of milliseconds, 100 ~25000.1 second by default
Instructions VRRP enables advertisement interval of less than one second.However, in encapsulating packets, the advertisement time shallbe one second. In this way, the time learned by the other end willstill one second, and the configuration of less than one secondwill not be learned.
Example This example describes how to configure the time interval for send-ing VRRP advertisement on the interface as 2 seconds.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 advertise 2
130 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 6 VRRP Configuration
RelatedCommands
show vrrp
vrrp authenticationPurpose Use this command to configure the string for VRRP authentication
on the interface. Restore the default with the no command.
Command Modes Interface configuration
Syntax vrrp <group> authentication <string>
no vrrp <group> authentication
SyntaxDescription <group> Virtual router ID, 0 ~ 255
<string> Authentication string, 1 ~ 8
Defaults No authentication with the authentication string being null
Instructions If the authentication is not passed, router will take the messagesend from another side as illegal and discard it. Both parties don’treceive another side message for a long time and take itself asMaster. Therefore, authentication is not recommended.
Example This example describes how to configure the VRRP authenticationwith the authentication string being hello.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 authentication hello
RelatedCommands
show vrrp
vrrp ipPurpose Use this command to configure the VRRP virtual IP address on the
interface and run the CRRP protocol. Clear the setting with the nocommand.
Command Modes Interface configuration
Syntax vrrp <group> ip <ip-address>[secondary]
no vrrp <group>[ip <ip-address>]
SyntaxDescription <group> Virtual router ID, 1 ~ 255
<ip-address> IP address in the dotted decimal notation
secondary The other IP address supported by thisvirtual router, that is, the secondary virtual IPaddress. If this parameter is not used, it isthe primary virtual IP address.
Instructions � Requirement to set VRRP virtual addresses:
Confidential and Proprietary Information of ZTE CORPORATION 131
ZXR10 Command Manual (Basic Configuration Volume II)
� Do not set to the same virtual address as the current groupon the interface.
� Do not set to the same virtual address as the other groupon the interface.
� Do not set to the same virtual address as any group on theother interfaces.
� Do to set to one address that will be in the same subnet asthat of the other interfaces.
� Do not repeat the address of the other interfaces.
� The no command will delete all the settings of this group if noIP address is specified.
� The primary virtual IP address of a group is unique. If theprimary virtual IP address is configured several times. Thelast configuration will overwrite the previous configurations.
Example This example describes how to run the VRRP protocol on the in-terface and configure the primary virtual IP address of the VRRPvirtual router (ID 1) as 10.1.1.1.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 ip 10.1.1.1
RelatedCommands
show vrrp
vrrp learnPurpose Use this command to configure how to know the VRRP message
send time interval on the interface. Restore the default with theno command.
Command Modes Interface configuration
Syntax vrrp <group> learn
no vrrp <group> learn
SyntaxDescription <group> Virtual router ID, 0 ~ 255
Defaults The learn mode is not configured by default.
Instructions When the learn mode is configured, the time interval of the mas-ter’s sending VRRP messages will be learned from the interceptedVRRP messages. Otherwise, the time interval of the master send-ing VRRP messages will be the local configuration.
Example This example describes how to configure the learn time interval ofthe Master sending VRRP messages.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 learn
132 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 6 VRRP Configuration
RelatedCommands
show vrrp
vrrp modePurpose Use this command to configure the mode of virtual device. There
are two modes: standard and private. The units of advertisementtime in the VRRP protocol message are different in the two modes.
Command Modes Interface configuration
Syntax vrrp <group> mode {standard | private}
no vrrp <group> mode
SyntaxDescription <group> Virtual router ID, 1 ~ 255
{standard | private} Standard mode or private mode
Defaults Standard mode
Instructions The unit of advertisement time in the VRRP protocol message instandard mode is 1s. The unit of advertisement time in the VRRPprotocol message in private mode is 100ms.
Example This example shows how to configure the mode to private.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 mode private
RelatedCommands
show vrrp
vrrp out-interfacePurpose Use this command to set the out-interface for sending VRRP pro-
tocol message. Restore the default with the no command.
Command Modes Interface configuration
Syntax vrrp <group> out-interface <interface-name>
no vrrp <group> out-interface
SyntaxDescription <group> Virtual router ID, 1 ~ 255
<interface-name> Name of out-interface
Instructions Set the interface in which the VRRP group shall send the packet.When interface does not match the VRRP group, the message willbe sent from the interface which sets VRRP group by default.
Example This example describes how to set VRRP out-interface.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 out-interface vlan 2
Confidential and Proprietary Information of ZTE CORPORATION 133
ZXR10 Command Manual (Basic Configuration Volume II)
RelatedCommands
show vrrp
vrrp preemptPurpose Use this command to configure whether the virtual device can pre-
empt in standby status. Set to no preemption with the no com-mand.
Command Modes Interface configuration
Syntax vrrp <group> preempt [delay <seconds>]
no vrrp <group> preempt
SyntaxDescription <group> Virtual router ID, 0 ~ 255
delay <seconds> The delay for the VRRP router to declare itselfas the master in second, 0 ~ 3600, 0 bydefault
Defaults Preemption is allowed.
Instructions If no preemption is allowed, no switchover will take place whenthe priority in the received packet is lower.
Example This example describes how to configure the preemption delay as500 seconds.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 preempt delay 500
RelatedCommands
show vrrp
vrrp priorityPurpose Use this command to configure the VRRP priority. Restore the
default with the no command.
Command Modes Interface configuration
Syntax vrrp <group> priority <priority>
no vrrp <group> priority
SyntaxDescription <group> Virtual router ID, 1 ~ 255
<priority> VRRP priority, 1 ~ 254, 100 by default. Thebigger the value, the higher the priority
Instructions The one with higher priority will be elected as the master.
Example This example describes how to configure the VRRP priority as 120.ZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 priority 120
134 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 6 VRRP Configuration
RelatedCommands
show vrrp
vrrp trackPurpose Use this command to set the tracking function of the VRRP uplinks.
Restore the default with the no command.
Command Modes Interface configuration
Syntax vrrp<group> track<track-num>{(decrement<priority>) | bfd{priority-down | switch}}
no vrrp <group> track <track-num>
SyntaxDescription <group> Virtual router ID, 0 ~ 255
<track-num> ID of the track group, 1 ~ 256
decrement Reduces the priority (optional). 20 by default
<priority> Priority reduced, ranging from 1 to 254
bfd The corresponding track type is BFD.
priority-down The policy that reduce the priority level to 1.
switch The policy that switch state immediately.
Defaults If this area is configured, it is enabled by default.
Instructions Set the link status in which the VRRP group shall perform the track.If the interface turns down from up, the priority will be automati-cally reduced. If the interface turns up from down, the priority willbe automatically raised to quicken the active/standby election ofVRRP.
Example This example describes how to set VRRP to track the link status ofinterface vlan2.ZXR10(config)#track 1 interface vlan2 line-protocolZXR10(config)#interface vlan 1ZXR10(config-if)#vrrp 1 track 1
RelatedCommands
show vrrp
track
show track
Confidential and Proprietary Information of ZTE CORPORATION 135