command reference (ip routing volume ii)
DESCRIPTION
HAYTRANSCRIPT
ZXR10 8900 Series10 Gigabit Routing Switch
Command Reference (IP Routing Volume II)
Version 2.8.02.C
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 July. 31, 2009 First Release
Serial Number: sjzl20093858
About This Manual.............................................. i
Command Introduction .....................................1Manual Instruction.......................................................... 1
Description of Man-Machine Commands............................. 1
Auxiliary Function ........................................................... 2
Command Modes............................................................ 3
BGP Protocol .....................................................9address-family ipv4 multicast..........................................11
address-family ipv4 vrf...................................................11
address-family ipv6 .......................................................11
address-family vpnv4.....................................................12
aggregate-address.........................................................12
aggregate-address (vrf) .................................................14
bgp always-compare-med...............................................15
bgp as .........................................................................15
bgp client-to-client reflection...........................................16
bgp cluster-id ...............................................................16
bgp confederation identifier ............................................17
bgp confederation peers .................................................17
bgp dampening .............................................................18
bgp default ipv4-unicast .................................................19
bgp default local-preference............................................19
bgp default route-target filter..........................................20
bgp fast-external-fallover ...............................................20
bgp frr .........................................................................21
bgp graceful-restart .......................................................21
bgp router-id ................................................................22
bgp update-delay ..........................................................22
clear ip bgp dampening ..................................................23
clear ip bgp flap-statistics ...............................................23
clear ip bgp vrf..............................................................24
default-information originate...........................................24
default-metric ...............................................................25
disable ip bgp ...............................................................25
distance bgp .................................................................25
enable ip bgp................................................................26
exit-address-family........................................................26
ip as-path access-list .....................................................27
ip community-list ..........................................................28
ip extcommunity-list ......................................................29
ip prefix-list ..................................................................29
maximum-paths ............................................................30
neighbor activate...........................................................31
neighbor advertisement-interval ......................................32
neighbor allowas-in........................................................32
neighbor as-override......................................................33
neighbor default-originate ..............................................34
neighbor description ......................................................34
neighbor ebgp-multihop .................................................35
neighbor fall-over bfd.....................................................35
neighbor maximum-prefix...............................................36
neighbor next-hop-self ...................................................37
neighbor originate-interval..............................................37
neighbor passive ...........................................................38
neighbor password ........................................................38
neighbor peer-group ......................................................39
neighbor prefix-list ........................................................40
neighbor remote-as .......................................................40
neighbor remove-private-as ............................................41
neighbor route-map.......................................................42
neighbor route-reflector-client.........................................42
neighbor send-community ..............................................43
neighbor send-label .......................................................44
neighbor send-med........................................................44
neighbor shut-down.......................................................45
neighbor soft-reconfiguration ..........................................45
neighbor timers.............................................................46
neighbor update-source..................................................47
network .......................................................................47
redistribute...................................................................48
reset ip bgp ..................................................................48
router bgp ....................................................................49
show bgp all neighbor ....................................................49
show bgp all protocol .....................................................51
show bgp all summary ...................................................51
show bgp ipv4 multicast .................................................52
show bgp ipv4 multicast neighbor ....................................54
show bgp ipv4 multicast summary ...................................57
show bgp ipv4 unicast....................................................58
show bgp ipv4 unicast community-list ..............................60
show bgp ipv4 unicast dampening dampened-paths ...........60
show bgp ipv4 unicast dampening flap-statistics ................61
show bgp ipv4 unicast neighbor.......................................61
show bgp ipv4 unicast regexp .........................................64
show bgp ipv4 unicast summary......................................64
show bgp ipv6 unicast....................................................65
show bgp ipv6 unicast labels...........................................67
show bgp ipv6 unicast neighbor.......................................67
show bgp ipv6 unicast summary......................................70
show bgp vpnv4 unicast .................................................71
show bgp vpnv4 unicast labels ........................................73
show bgp vpnv4 unicast neighbor ....................................73
show bgp vpnv4 unicast summary ...................................76
show bgp vpnv4 unicast vrf ............................................76
show ip as-path-access-list .............................................77
show ip bgp ..................................................................77
show ip bgp community-list ............................................79
show ip bgp dampened-paths..........................................80
show ip bgp flap-statistics ..............................................80
show ip bgp neighbor.....................................................80
show ip bgp peer-group..................................................83
show ip bgp protocol......................................................84
show ip bgp route..........................................................85
show ip bgp regexp .......................................................87
show ip bgp summary ....................................................87
show ip community-list ..................................................88
show ip extcommunity-list ..............................................89
show ip prefix-list ..........................................................89
synchronization .............................................................90
table-map ....................................................................90
timers bgp....................................................................90
Route Mapping and Routing Policy ..................93ip prefix-list ..................................................................94
ip prefix-list description ..................................................95
match as-path ..............................................................95
match community-list ....................................................96
match extcommunity-list ................................................96
match ip address...........................................................96
match ip next-hop .........................................................98
match ipv6 address .......................................................98
match ipv6 next-hop......................................................99
match metric ................................................................99
match route-type ........................................................ 100
match tag................................................................... 100
route-map .................................................................. 101
set as-path ................................................................. 101
set community ............................................................ 102
set dampening ............................................................ 102
set default interface..................................................... 103
set interface ............................................................... 104
set ip default next-hop ................................................. 104
set extcommunity rt .................................................... 105
set extcommunity soo .................................................. 106
set ip next-hop............................................................ 106
set ip precedence ........................................................ 107
set ip qos-group .......................................................... 107
set ip tos.................................................................... 108
set ipv6 next-hop ........................................................ 108
set level ..................................................................... 109
set local-preference ..................................................... 109
set metric................................................................... 110
set metric-type ........................................................... 110
set mpls-label ............................................................. 111
set next-hop ............................................................... 111
set origin.................................................................... 112
set tag ....................................................................... 112
show ip prefix-list ........................................................ 113
show route-map.......................................................... 113
About This Manual
About this Manual ZXR10 8900 Series (V2.8.02.C) 10G Routing Switch CommandReference (IP Routing Volume II). ZXR10 8900 Series (V2.8.02.C)10G Routing Switch Command Reference has 16 volumes. Thedetails are as follows:
Manual Name Summary
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Index)
This manual describes volumeand section corresponding toeach command in ZXR10 8900series 10G routing switch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (IPv6)
This manual describesIPv6-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (IP Routing Volume I)
This manual describes RIP, OSPFand IS-IS-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (IP Routing Volume II)
This manual describes BGP, routemap and routing policy-relatedcommands in ZXR10 8900 series10G routing switch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (MPLS)
This manual describesMPLS-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (QoS)
This manual describesQoS-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Security)
This manual describes networksecurity-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (DPI)
This manual describes DPI-relatedcommands in ZXR10 8900 series10G routing switch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (FW)
This manual describes FW-relatedcommands in ZXR10 8900 series10G routing switch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Basic ConfigurationVolume I)
This manual describes systemmanagement, file management,user interface, log statistics,FTP/TFTP server and IPvr-relatedcommands in ZXR10 8900 series10G routing switch.
Confidential and Proprietary Information of ZTE CORPORATION i
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Manual Name Summary
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Basic ConfigurationVolume II)
This manual describes interfaceconfiguration, DHCP andVRRP-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Basic ConfigurationVolume III)
This manual describes NAT, TimeRange, stack and DEBUG-relatedcommands in ZXR10 8900 series10G routing switch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Network Management)
This manual describes networkmanagement-related commandsin ZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Ethernet Switch)
This manual describes MAC,VLAN, SuperVLAN, STP, linkaggregation, VBAS, MAC PINGand UDLD-related commands inZXR10 8900 series 10G routingswitch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Voice and Video)
This manual describes VOIP andIPTV-related commands in ZXR108900 series 10G routing switch.
ZXR10 8900 Series (V2.8.02.C)10G Routing Switch CommandReference (Multicast)
This manual describes multicastprotocol-related commands inZXR10 8900 series 10G routingswitch.
The content of this manual is based on uniform ZXROS platform.Unless otherwise specified or when it is specified to ZXR10, themanual applies to all devices. The items about router in the man-ual also apply to switch with routing function.
Overview This manual describes IPv4-related commands (BGP routingprotocol, route map and routing policy) in ZXR10 8900 series(V2.8.02.C) 10G routing switch and contains the following chap-ters:
Chapter Overview
Chapter 1 DPIOverview
This chapter describes using method of thiscommand manual, command description,command formats, auxiliary functions andcommand modes.
Chapter 2 BGPProtocol
This chapter describes the configuration and showcommands of BGP.
Chapter 3Route Map andRouting PolicyConfiguration
This chapter describes configuration and showcommands of route map and routing policy.
ii Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 1
Command Introduction
Table of ContentsManual Instruction.............................................................. 1Description of Man-Machine Commands................................. 1Auxiliary Function............................................................... 2Command Modes................................................................ 3
Manual InstructionZXR10 8900 Series (V2.8.02.C) 10G Routing Switch CommandReference includes 16 volumes. For details of each volume, pleaserefer to preface of this manual.
Commands in ZXR10 8900 Series (V2.8.02.C) 10G Routing SwitchCommand Reference (Index) are listed in sequence of from letter ato letter z and in form of table. Commands of all other volumes areclassified and illustrated according to different function modules.Each function module corresponds to one chapter and commandsin each chapter are listed in form of second-level directory and inthe sequence of from letter a to letter z.
To search a command information, perform the following steps:
1. Search corresponding command in ZXR10 8900 Series(V2.8.02.C) 10G Routing Switch Command Reference (Index);
2. Find the details of this command in corresponding volume ac-cording to obtained volume information and chapter informa-tion related to this command.
Description of Man-MachineCommandsEach MML command is described by the following items:
� Function
It describes the function implemented by this command.
� Command Modes
It describes the mode in which this command can be executed.
Confidential and Proprietary Information of ZTE CORPORATION 1
ZXR10 8900 Series Command Reference (IP Routing Volume II)
� Command format
It describes the complete format of this command. If no for-mat is available, list it.
� Parameter Description
It describes parameters in this command in the form and pre-scribes the range and default value. If different products havedifferent parameter ranges or default values, an additionalform is used for description.
� Default Value
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 differentproducts have different default values.
� Instructions
It firstly describes the platform version information about thiscommand. For example, “The platform version X.X.XX or latersupports this command” indicates this command is providedfrom platform version X.X.XX. This command is provided fromplatform version 4.6.01 by default.
After these information, it describes the use method and pre-cautions of this command.
� Example
It takes an example to introduce how to use this command.
� Related Commands
It lists commands related to this command.
� History Command
It describes history version information related to this com-mand if a command is changed after version upgrade.
Note:
Do not describe the command history if this entry does not exist.
Auxiliary FunctionCommand help function of ZXR10 devices has the following fea-tures:
1. By entering a question mark (?) following DOS prompt in anycommand mode, a list of available commands in this commandmode are displayed. With the context-sensitive help function,the keywords and parameter list of any commands can be dis-played.
� By entering a question mark "?" following DOS prompt inany command mode, a list of all commands in this modeand brief description of these commands are displayed.
2 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 1 Command Introduction
� Input the question mark following a character or a charac-ter string, a list of commands or keywords beginning withthis character or character string is displayed. Note thatthere is no space between the character (string) and thequestion mark.
� Press Tab key following the character string. If the com-mand or keyword beginning with this character string isunique, complement the command or keyword and attacha space to the end. Note that there is no space betweenthe character string and the Tab key.
� Input a question mark (?) following the command, key-word or parameter. The next keyword or parameter to beentered is listed, and also a brief description is given. Aspace shall be entered before the question mark.
2. If incorrect command, keyword or parameter is entered, theerror isolation is offered with ^ in the user interface after youpress Enter key. Character ^ locates below the first characterof the entered incorrect command, keyword or parameter.
3. The system allows the command or keyword to be abbreviatedto a character or character string that uniquely identifies thiscommand or keyword. For example, show command can beabbreviated to sh or sho.
4. User interface supports the function of recording input com-mands. Maximum ten history commands can be recorded. Thisfunction is very useful in re-invocation of a long or complicatedcommand or ingress.
To re-invoke a command from the record buffer, conduct oneof the following operations.
Command Function
Press Ctrl-P or theup arrow key
It re-invokes the latest commands in therecord buffer. Repress these keys to invokeold commands forwards.
Press Ctrl-N or downarrow key
Roll commands downwards. When thelast command line is reached, one moreoperation will roll the commands from thebeginning of the buffer cyclically.
Use show history command in any mode, and the latest sev-eral commands in this mode will be listed.
Command ModesThe command modes in this manual are as follows:
Confidential and Proprietary Information of ZTE CORPORATION 3
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Modes Prompt Admis-sionMode
Commandto Enter theMode
Function
UserMode
ZXR10> Enter thismode directlyafter loggingonto system
View simpleinformation
Privi-legedmode
ZXR10# UserMode
enable Configuresystemparameters
Globalconfig-urationmode
ZXR10(config)# Privi-legedmode
configureterminal
Configureglobal serviceparameters
Inter-faceconfig-urationmode
ZXR10(config-if)#
Globalconfig-urationmode
interface It configuresportparametersand selectsa port typedepending onthe keyword.
Subin-terfacemode
ZXR10 (config-subif)#
Globalconfig-urationmode
interface It configuressubinterfaceparameters ofNPCI/NPCT.
VLANData-baseConfig-urationMode
ZXR10(vlan-db)#
Privi-legedmode
vlan database
Create ordelete VLANin batch
VLANConfig-urationMode
ZXR10(config-vlan)#
Globalconfig-urationmode
vlan ConfigureVLANparameters.
MSTPConfig-urationMode
ZXR10(config-mstp)#
Globalconfig-urationmode
spanning-tree mst configuration
ConfigureMSTPparameters.
BasicACLConfig-urationMode
ZXR10(config-basic-acl)#
Globalconfig-urationmode
acl basic Define basicACL rules
Ex-tendedACLConfig-urationMode
ZXR10(config-ext-acl)#
Globalconfig-urationmode
acl extend Defineextended ACLrules
4 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 1 Command Introduction
Modes Prompt Admis-sionMode
Commandto Enter theMode
Function
LINEconfig-urationmode
ZXR10(config-line)#
Globalconfig-urationmode
line console0
line <1~64>(GAR Devices)
It config-ures serialport con-nection/tel-net connec-tion-relatedparameters.
L2 ACLConfig-urationMode
ZXR10(config-link-acl)#
Globalconfig-urationmode
acl link Define l2 ACLrules
HybridACLConfig-urationMode
ZXR10(config-hybd-acl)#
Globalconfig-urationmode
acl hybrid Define hybridACL rules
Routerstand-ard ACLmode
ZXR10 (config-std-nacl)#
Globalconfig-urationmode
ip access-list It definesrouterstandard ACLrules.
Routerex-tendedACLmode
ZXR10 (config-ext-nacl)#
Globalconfig-urationmode
ip access-list It definesrouterextended ACLrules.
router rip ConfigureRIP protocolparameters
router ospf ConfigureOSPF protocolparameters
router isis ConfigureIS-IS protocolparameters
router bgp ConfigureBGP protocolparameters
routerpimsm
ConfigurePIM-SMprotocolparameters
ipv6 routerrip
It configuresRIPngparameters.
Routeconfig-urationmode
ZXR10(config-router)#
Globalconfig-urationmode
ipv6 routerospf
It configuresOSPFv3parameters.
Confidential and Proprietary Information of ZTE CORPORATION 5
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Modes Prompt Admis-sionMode
Commandto Enter theMode
Function
VRFConfig-urationMode
ZXR10(config-vrf)#
Globalconfig-urationmode
ip vrf ConfigureVRF protocolparameters
VFI con-figu-rationmode
ZXR10(config-vfi)#
Globalconfig-urationmode
vfi It configuresVPLS-relatedparameters.
Routeconfig-urationmode(RIP)
address-family ipv4 vrf
Configure RIPVRF protocolparameters
Routeaddressmode
ZXR10(config-router-af)#
Routeconfig-urationmode(BGP)
address-family vpnv4
address-family ipv4 vrf
ConfigureBGP, VPN andVRF protocolparameters
Routeconfig-urationmode(BGP4)
address-family ipv6
It configuresBGP4+unicastaddressfamily.
IPv6unicastaddressfamilyconfig-urationmode
ZXR10(config-router-af)#
Routeconfig-urationmode(IS-ISv6)
address-family ipv6
It configuresIS-ISv6addressfamily.
RouteMapConfig-urationMode
ZXR10(config-route-map)#
Globalconfig-urationmode
route-map Configureroute mapmatchingitem andoperations
Chan-nelizedconfig-urationmode
ZXR10(config-control)#
Globalconfig-urationmode
control It configureschannelizationfor ce1, ce3and cpos3.
Dialpeerconfig-urationmode
ZXR10(config-voip100)#
Globalconfig-urationmode
dial-peervoice
It configuresservicesrelated tointegratedservice.
Voiceportconfig-urationmode
ZXR10(config-voice-port)#
Globalconfig-urationmode
voice-port It configuresvoice service.
6 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 1 Command Introduction
Modes Prompt Admis-sionMode
Commandto Enter theMode
Function
IPSecconfig-urationmode
ZXR10(config-ipsec)#
Globalconfig-urationmode
ipsec It configuresIPv6 IPSecprotection.
Diagno-sis mode
ZXR10(diag)# Privi-legedmode
diagnose It tests CPUutilizationand memoryutilization.
Confidential and Proprietary Information of ZTE CORPORATION 7
ZXR10 8900 Series Command Reference (IP Routing Volume II)
This page is intentionally blank.
8 Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 2
BGP Protocol
Table of Contentsaddress-family ipv4 multicast..............................................11address-family ipv4 vrf.......................................................11address-family ipv6 ...........................................................11address-family vpnv4.........................................................12aggregate-address.............................................................12aggregate-address (vrf) .....................................................14bgp always-compare-med...................................................15bgp as .............................................................................15bgp client-to-client reflection...............................................16bgp cluster-id ...................................................................16bgp confederation identifier ................................................17bgp confederation peers .....................................................17bgp dampening .................................................................18bgp default ipv4-unicast .....................................................19bgp default local-preference................................................19bgp default route-target filter..............................................20bgp fast-external-fallover ...................................................20bgp frr .............................................................................21bgp graceful-restart ...........................................................21bgp router-id ....................................................................22bgp update-delay ..............................................................22clear ip bgp dampening ......................................................23clear ip bgp flap-statistics ...................................................23clear ip bgp vrf..................................................................24default-information originate...............................................24default-metric ...................................................................25disable ip bgp ...................................................................25distance bgp .....................................................................25enable ip bgp....................................................................26exit-address-family............................................................26ip as-path access-list .........................................................27ip community-list ..............................................................28ip extcommunity-list ..........................................................29ip prefix-list ......................................................................29maximum-paths................................................................30neighbor activate...............................................................31neighbor advertisement-interval ..........................................32neighbor allowas-in............................................................32neighbor as-override..........................................................33neighbor default-originate ..................................................34neighbor description ..........................................................34neighbor ebgp-multihop .....................................................35neighbor fall-over bfd.........................................................35neighbor maximum-prefix...................................................36neighbor next-hop-self .......................................................37neighbor originate-interval..................................................37
Confidential and Proprietary Information of ZTE CORPORATION 9
ZXR10 8900 Series Command Reference (IP Routing Volume II)
neighbor passive ...............................................................38neighbor password ............................................................38neighbor peer-group ..........................................................39neighbor prefix-list ............................................................40neighbor remote-as ...........................................................40neighbor remove-private-as................................................41neighbor route-map...........................................................42neighbor route-reflector-client.............................................42neighbor send-community ..................................................43neighbor send-label ...........................................................44neighbor send-med............................................................44neighbor shut-down...........................................................45neighbor soft-reconfiguration ..............................................45neighbor timers.................................................................46neighbor update-source......................................................47network ...........................................................................47redistribute.......................................................................48reset ip bgp ......................................................................48router bgp ........................................................................49show bgp all neighbor ........................................................49show bgp all protocol .........................................................51show bgp all summary .......................................................51show bgp ipv4 multicast .....................................................52show bgp ipv4 multicast neighbor........................................54show bgp ipv4 multicast summary .......................................57show bgp ipv4 unicast........................................................58show bgp ipv4 unicast community-list ..................................60show bgp ipv4 unicast dampening dampened-paths ...............60show bgp ipv4 unicast dampening flap-statistics ....................61show bgp ipv4 unicast neighbor...........................................61show bgp ipv4 unicast regexp .............................................64show bgp ipv4 unicast summary..........................................64show bgp ipv6 unicast........................................................65show bgp ipv6 unicast labels...............................................67show bgp ipv6 unicast neighbor...........................................67show bgp ipv6 unicast summary..........................................70show bgp vpnv4 unicast .....................................................71show bgp vpnv4 unicast labels ............................................73show bgp vpnv4 unicast neighbor ........................................73show bgp vpnv4 unicast summary .......................................76show bgp vpnv4 unicast vrf ................................................76show ip as-path-access-list .................................................77show ip bgp......................................................................77show ip bgp community-list ................................................79show ip bgp dampened-paths..............................................80show ip bgp flap-statistics ..................................................80show ip bgp neighbor.........................................................80show ip bgp peer-group......................................................83show ip bgp protocol..........................................................84show ip bgp route..............................................................85show ip bgp regexp ...........................................................87show ip bgp summary ........................................................87show ip community-list ......................................................88show ip extcommunity-list ..................................................89show ip prefix-list ..............................................................89synchronization.................................................................90table-map ........................................................................90timers bgp........................................................................90
10 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
address-family ipv4 multicastPurpose Use this command to enter IPv4 multicast address family config-
uration mode.
Command Modes Router configuration
Syntax address-family ipv4 multicast
Defaults This command is invalid by default.
Instructions Extend BGP supports various address modes; The specific config-uration of different address modes needs to enter correspondingaddress configuration mode.
Example This example describes how to enter IPv4 multicast address familyconfiguration mode.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family ipv4 multicast
address-family ipv4 vrfPurpose Use this command to enter IPv4 vrf address family configuration
mode. The dynamic address mode, such as VRF, will be enteredafter the establishment of it. Delete VRF with no form of thiscommand.
Command Modes Router configuration
Syntax address-family ipv4 vrf <vrf-name>
SyntaxDescription
<vrf-name> VRF name, 1~16 characters
Defaults This command is invalid.
Instructions Extend BGP supports various address modes; the specific configu-ration of different address modes needs to enter the correspondingaddress configuration mode.
Example This example describes how to enter IPv4 VRF address family con-figuration mode.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family ipv4 vrf vpn1
address-family ipv6Purpose Use this command to enter IPv6 address family configuration
mode.
Command Modes Router configuration
Syntax address-family ipv6
Defaults This command is invalid by default.
Confidential and Proprietary Information of ZTE CORPORATION 11
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Instruction Extend BGP supports various address modes; the specific configu-ration of different address modes needs to enter the correspondingaddress configuration mode.
Example This example describes how to enter IPv6 address family configu-ration mode.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family ipv6
address-family vpnv4Purpose Use this command to enter vpnv4 address family configuration
mode.
Command Modes Router configuration
Syntax address-family vpnv4
Defaults This command is invalid by default.
Instruction Extend BGP supports various address modes; the specific configu-ration of different address modes needs to enter the correspondingaddress configuration mode.
Example This example describes how to enter vpnv4 address family config-uration mode.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family vpnv4
aggregate-addressPurpose Use this command to create an aggregate entry in a Border Gate-
way Protocol (BGP) routing table. Disable the corresponding con-figuration with the no form of this command.
Command Modes Router configuration
Syntax aggregate-address <ip-address><net-mask>[count <count>][as-set][summary-only][strict]
no aggregate-address <ip-address><net-mask>
aggregate-address <ip-address><net-mask> subnet <subnet-address><subnet-mask>
no aggregate-address <ip-address><net-mask> subnet <subnet-address><subnet-mask>
SyntaxDescription
<ip-address> Aggregate network to be created, in thedotted decimal format
<net-mask> Aggregate mask to be created, in the dotteddecimal format
12 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
count <count> When the specified number of subnets amongsubnets which belongs to the aggregatenetwork appear, the aggregate route will beproduced. range: 0~255, default: 1
as-set Generates autonomous system set pathinformation
summary-only Filters all more-specific routes from updates
strict According to RFC1771, only routes with thesame MED and NEXT_HOP attributes can beaggregated
<subnet-address> IP address of the aggregate subnet, in dotteddecimal format
<subnet-mask> Mask of the aggregate subnet, in dotteddecimal format
Defaults This command is disabled by default.
Instructions � This command configures the aggregation policy, and the sub-policies under it. The sub-policies are related with count .
� The use of the summary-only keyword not only creates theaggregate routes but also suppresses advertisements of more-specific routes to all neighbors.
Example � This example describes how to generate the aggregation route10.0.0.0/8 when the subnet 10.0.0.0/8 in the routing tableappears.ZXR10(config)#router bgp 1ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0 count 0
� This example describes how to generate the aggregation route10.0.0.0/8 when two sunets among the three subnets of10.0.0.0/8 (10.1.0.0/16, 10.2.0.0/16 , 10.3.0.0/16 ) appear.Fuzzy matching is used as the route matching. Therefore,it is also considered that the route 10.1.1.0/24 matches the10.1.0.0/16 sub-policy.ZXR10(config)#router bgp 1ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0 count 2ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0subnet 10.1.0.0 255.255.0.0ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0subnet 10.2.0.0 255.255.0.0ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0subnet 10.3.0.0 255.255.0.0
� The following configuration can not generate aggregationroutes. The subnets 10.1.1.0 and 10.1.2.0 belong to thenetwork 10.1.0.0. The following configuration equals to theconfiguration of subnet 10.1.0.0 255.255.0.0.ZXR10(config)#router bgp 1ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0 count 2ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0subnet 10.1.0.0 255.255.0.0ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0subnet 10.1.1.0 255.255.255.0ZXR10(config-router)#aggregate-address 10.0.0.0 255.0.0.0subnet 10.1.2.0 255.255.255.0
Confidential and Proprietary Information of ZTE CORPORATION 13
ZXR10 8900 Series Command Reference (IP Routing Volume II)
aggregate-address (vrf)Purpose Use this command to create an aggregate entry in the vrf routing
table. Disable the corresponding configuration with the no formof this command.
Command Modes IPv4 vrf address family configuration
Syntax aggregate-address <ip-address><net-mask>[as-set][summary-only][strict][attribute-map | suppress-map]<map-tag>
no aggregate-address <ip-address><net-mask>
SyntaxDescription
<ip-address> Aggregate network to be created, in thedotted decimal format
<net-mask> Aggregate mask to be created, in the dotteddecimal format
as-set Generates autonomous system set pathinformation.
summary-only Filters all more-specific routes from updates
strict According to RFC1771, only routes with thesame MED and NEXT_HOP attributes can beaggregated.
attribute-map Attribute map
<map-tag> Name of the route map used to set theattribute of the aggregate route, 1~16characters
suppress-map Suppress map
<map-tag> Name of the route map used to select theroutes to be suppressed,1~16 characters
Defaults This command is disabled by default.
Instructions � This command configures the aggregation policy, and it is validonly in IPv4 vrf address family configuration mode. It is differ-ent from the aggregate-address command in router config-uration mode.
� The use of the summary-only keyword not only creates theaggregate route but also suppresses advertisements of more-specific routes to the neighbors.
Example � If the subnet 10.1.0.0/16 appears in the VPN routing table, theaggregate route 10.0.0.0/8 will be generated.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family vpnv4ZXR10(config-router-af)#aggregate-address 10.0.0.0 255.0.0.0
� This example describes how to configure an attribute—map.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family vpnv4ZXR10(config-router-af)#aggregate-address 10.0.0.0 255.0.0.0attribute-map zte1
� This example describes how to configure a suppress—map.
14 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
ZXR10(config)#router bgp 1ZXR10(config-router)#address-family vpnv4ZXR10(config-router-af)#aggregate-address 10.0.0.0 255.0.0.0suppress-map zte1
bgp always-compare-medPurpose Use this command to ensure the comparison of the MED for paths
from neighbors in different autonomous systems. Disable thecommand with the no form of this command.
Command Modes Router configuration
Syntax bgp always-compare-med
no bgp always-compare-med
Defaults This command is disabled by default.
Instructions � To select the best path among many selectable paths, the MEDis one of the considered factors. It is prior to select the pathwith lower value of the MED other than that with higher one.
� During the process of selecting the best path, the comparisonof the MED is only for paths in the same autonomous system bydefault. But after the configuration of this command, the com-parison of the MED is for various paths whichever autonomoussystem they are from.
Example This example allows the comparison of the MED for paths fromneighbors in different autonomous systems.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp always-compare-med
RelatedCommands
reset ip bgp
bgp asPurpose Use this command to set the path weight policy of autonomous
system. Disable the policy with the no form of this command.
Command Modes Router configuration
Syntax bgp as <as-number><as-weight>
no bgp as <as-number>
SyntaxDescription
<as-number> Autonomous system number, range:1~65535
<as-weight> Corresponding weight of the prefix AS, range:0~255, default: 128. 255 indicating thatimported routes with this AS are invalid
Confidential and Proprietary Information of ZTE CORPORATION 15
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Instructions In the BGP route policy, the AS path length is one of the consideredfactors. Local router uses the AS weight sum as its policy. It isprior to select routes with the lower weight sum.
Example This example describes how to set the weight of AS 2 as 200.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp as 2 200
bgp client-to-client reflectionPurpose Use this command to configure the reflection from client to client.
Restore default with the no form of this command.
Command Modes Router configuration
Syntax bgp client-to-client reflection
no bgp client-to-client reflection
Defaults This command is enabled by default.
Instruction In the route reflector, this attribute is configured according towhether the route received from a client is reflected to a client.
Example This example describes how to disable the route received from aclient to be reflected to a client by configuring the route reflector.ZXR10(config)#router bgp 1ZXR10(config-router)#no bgp client-to-client reflection
Related Command neighbor route-reflector-client
bgp cluster-idPurpose Use this command to configure the cluster identifier if the border
gateway protocol cluster has more than one route reflector. Usethe no form of this command to remove the cluster identifier.
Command Modes Router configuration
Syntax bgp cluster-id {<value>|<ip-address>}
no bgp cluster-id
SyntaxDescription
<value> Number of the cluster identifier, range:1~4294967295
<ip-address> IP address of the cluster identifier in thedotted decimal format
Defaults By default, the router identifier is used as the cluster identifier.
Instructions If an autonomous system has more than one route reflector, thecluster identifier will be included in the transmitting packets toavoid route loopback.
16 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Example This example describes how to set the cluster identifier of the routereflector as 10.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp cluster-id 10.1.1.1
RelatedCommands
neighbor route-reflector-client
bgp confederation identifierPurpose Use this command to specify a border gateway protocol confeder-
ation identifier . Use the no form of this command to remove theconfederation identifier.
Command Modes Router configuration
Syntax bgp confederation identifier <value>
no bgp confederation identifier
SyntaxDescription
<value> Confederation ID, range: 1~65535
Defaults No confederation identifier is configured.
Instructions When an AS is too large (The session of more than 100 interiorborder gateway protocol peers needs establishing), one way toreduce the interior border gateway protocol mesh is to divide theautonomous system into multiple autonomous systems and groupthem into a single confederation. To the outside world, the con-federation looks like a single autonomous system.
Example This example describes how to set the confederation identifier as3.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp confederation identifier 3
RelatedCommands
bgp confederation peers
bgp confederation peersPurpose Use this command to configure the autonomous systems that be-
long to the confederation. Use the no form of this command toremove an autonomous system from the confederation.
Command Modes bgp confederation peers <value>[<value>]
no bgp confederation peers [<value>]
SyntaxDescription
<value> Autonomous system number for BGP peersthat will belong to the confederation. range:1~65535
Defaults No Border Gateway Protocol (BGP) peers are identified as belong-ing to the confederation.
Confidential and Proprietary Information of ZTE CORPORATION 17
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Instructions When an outside neighbor in a confederation is identified belongingto the confederation as well, the autonomous system number ofthis neighbor needs configurating with this command. At most 25autonomous system numbers can be input into this command, and255 autonomous system numbers can be configured totally.
Example In this example, autonomous systems 1 and 65500 belong to asingle confederation.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp confederation peers 65500
RelatedCommands
bgp confederation identifier
bgp dampeningPurpose Use this command to enable Border Gateway Protocol (BGP) route
dampening or change various BGP route dampening factors. Usethe no form of this command to disable the function or restore thedefault value.
Command Modes Router configuration
Syntax bgp dampening [<half-life><reuse><suppress><max-suppress-time>| route-map <map-tag>]
no bgp dampening
SyntaxDescription
<half-life> Time in minutes after which a penalty isdecreased by half. unit: minute, range:1~45, default: 15 minutes
<reuse> Reuse value based on accumulated penalties.If the penalty of a flapping route decreasesenough to fall below this value, the route willbe unsuppressed. range: 1~20000, default:750
<suppress> Suppress limit. A route is suppressed when itspenalty exceeds this limit. range: 1~20000,default: 2000
<max-suppress-time>
Maximum time in minutes a route can besuppressed. If the <half-life> value is allowedto default, the maximum suppress timedefaults to 60 minutes. When the suppresstime arrives at this value, the penalty will nomore be exceeded. range: 1~255
route-map<map-tag>
Name of route map which controls where BGProute dampening is enabled, 1~16 characters
Defaults This command is disabled by default.
Instructions If there is no parameter when this command is configured, BGProute dampening will be enabled with default values.
The parameters <half-life>, <reuse>, <suppress> and <max-suppress-time> are interdependent. Therefore, if any of the four
18 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
parameters is configures, the other three must be specified as well,and <suppress> must be bigger than <reuse>.
The maximum penalty is computed with the following formula:
Max penalty = reuse-limit *2^(maximum suppress time/half time)
Example This example describes how to enable BGP route dampening.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp dampening
bgp default ipv4-unicastPurpose Use this command enable the IPv4 unicast address family on all
neighbors. Use the no form of this command to disable the IPv4unicast address family on all neighbors.
Command Modes Router configuration
Syntax bgp default ipv4-unicast
no bgp default ipv4-unicast
Defaults This command is enabled by default.
Instructions The extension BGP supports the negotiation of the peer address.If the device does not expect to handle normal Ipv4 routes (suchas MPLS-VPN), this negotiation can be disabled.
Tip:
When a neighbor is created by using the negibor active commandunder the IPv4 unicast address family, the neighbor will inheritprevious BGP configuration. The change of the BGP configurationafter the creation of the neighbor does not affect the neighbor.
Example This example describes how to disable the IPv4 unicast addressfamily on all neighbors.ZXR10(config)#router bgp 1ZXR10(config-router)#no bgp default ipv4-unicast
bgp default local-preferencePurpose Use this command to set the local preference of the routes adver-
tised by the BGP. Return to the default setting with the no form ofthis command.
Command Modes Router configuration
Syntax bgp default local-preference <value>
no bgp default local-preference
Confidential and Proprietary Information of ZTE CORPORATION 19
ZXR10 8900 Series Command Reference (IP Routing Volume II)
SyntaxDescription
<value> Local preference, range: 0~4294967295,default: 100. Higher is more preferred
Instructions When there are routes advertised to the peers including IBGP peersand external peers in the confederation, this command can be usedto set the local preference of the routes. And the local preferenceaffects the peers’ selection of the routes. If advertised routes areobtained by other peer and it has already had a local preference,this value will not cover the existing value.
Example This example describes how to set the local preference of theroutes advertised by the BGP as 500.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp default local-preference 500
bgp default route-target filterPurpose Use this command to control the BGP’s filtering of the route target
attribute. Remove the filtering of the attribute with the no formof this command.
Command Modes Router configuration
Syntax bgp default route-target filter
no bgp default route-target filter
Defaults This command is enabled by default.
Instruction The extension BGP supports the application of MPLS-VPN . Gener-ally, vpnv4 routes should match the route-target attribute, but thefiltering of route-target attribute needs closing for the applicationsof route reflector, or EBGP.
Example This example describes how to disable the filtering of route—targetattribute.ZXR10(config)#router bgp 1ZXR10(config-router)#no bgp default route-target filter
bgp fast-external-falloverPurpose Use this command to immediately reset the BGP sessions of any
directly adjacent external peers if the link used to reach them goesdown. Use the no form of this command to disable the function.
Command Modes Router configuration
Syntax bgp fast-external-fallover
no bgp fast-external-fallover
Defaults The behavior of this command is enabled by default.
Instructions According to RFC1771, BGP sessions enter Idle status because ofthe wrong link, it needs Start event to enter the Connect status.
20 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
If this case takes place automatically, it is more likely to causeflapping routes. To avoid this case, it is recommended to doublethe time of every attempt of reconnection.
If local router is in the Idle status, it will immediately attemptto establish the link. If it fails, the time of the next attempt ofreestablishment will be doubled.
After the use of this command, there is no need to wait the dou-ble time to make the reestablishment, but the double time is stillrecorded. If this command is invalid, the router will attempt toreestablish the link with the recorded double time.
Example This example describes how to disable the function of immediatelyresetting the BGP sessions of any directly adjacent external peersif the link used to reach them goes down.ZXR10(config)#router bgp 1ZXR10(config-router)#no bgp fast-external-fallover
bgp frrPurpose Use this command to configure BGP FRR function. When the num-
ber of backup route is not specified, the value is 2 by default.
Command Modes Router configuration
Syntax bgp frr [<number>]
no bgp frr
SyntaxDescription
<number> The number of backup route which value islimited by FRR route table. The value rangeis 2~8
Defaults Invalid.bgo
Example This example shows how to configure BGP FRR function.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp frr
bgp graceful-restartPurpose Use this command to activate graceful restart capability of BGP
instances and set restart time and stale time. Disable the functionwith the no form of this command.
Command Modes Router configuration
Syntax bgp graceful-restart [stale-time <seconds>][restart-time<seconds>]
no bgp graceful-restart [stale-time <seconds>][restart-time<seconds>]
Confidential and Proprietary Information of ZTE CORPORATION 21
ZXR10 8900 Series Command Reference (IP Routing Volume II)
SyntaxDescription
stale-time<seconds>
Stale timer, unit: seconds, range: 1~3600,default: 360 seconds
restart-time<seconds>
Restart timer, unit: seconds, range: 1~1200,default: 360 seconds
Defaults Graceful restart capability is disabled by default.
Example This example describes how to activate graceful restart capability.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp graceful-restart
bgp router-idPurpose Use this command to configure a BGP router identifier. Disable this
function with the no form of this command.
Command Modes Router configuration
Syntax bgp router-id <ip-addr>
SyntaxDescription
<ip-addr> Router identifier in dotted decimal format
Defaults There is no router identifier by default.
Instructions Use this command to manually configure the BGP router identifier.
Example This example describes how to set the BGP router identifier as1.2.1.3.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp router-id 1.2.1.3
bgp update-delayPurpose Use this command to set the maximum initial delay for a BGP-
speaking networking device to send the first updates. Use theno form of this command to restore the initial delay to its defaultvalue.
Command Modes Router configuration
Syntax bgp update-delay <seconds>
no bgp update-delay <seconds>
SyntaxDescription
<seconds> Delay in seconds for the networking deviceto send the first updates, range: 1~3600,default: 120 seconds
Defaults This command is disabled by default.
22 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Example This example describes how to set the maximum initial delay for aBGP-speaking networking device to send the first updates as 300seconds.ZXR10(config)#router bgp 1ZXR10(config-router)#bgp update-delay 300
clear ip bgp dampeningPurpose Use this command to clear BGP route dampening information and
unsuppress the suppressed routes.
Command Modes Privileged EXEC mode
Syntax clear ip bgp dampening [<ip-address><net-mask>]
SyntaxDescription
<ip-address> IP address of the network about which toclear dampening information, in the dotteddecimal format.
<net-mask> Network mask applied to the IP address. inthe dotted decimal notation
Example This example describes how to clear BGP route dampening infor-mation and unsuppress the suppressed routes.ZXR10#clear ip bgp dampening
clear ip bgp flap-statisticsPurpose Use this command to clear BGP flap counts for a specified group
of routes.
Command Modes Privileged EXEC
Syntax clear ip bgp [<ip-address>] flap-statistics [<ip-address><net-mask>]
SyntaxDescription
<ip-address> IP address of the neighbor from which toreceive routes for which to clear BGP flapcounts, in the dotted decimal format
<ip-address><net-mask>
Network IP address related to clearingdampening information, in dotted decimalformat; Network mask in the dotted decimalformat
Instructions When the IP address of a neighbor is specified, the router willclear flap counts for a specified group of routes received from theneighbor.
When no parameter or keyword is specified, the router will clearflap counts for all routes.
Confidential and Proprietary Information of ZTE CORPORATION 23
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Example � This example describes how to clear flap counts for routes fromthe neighbor 1.1.1.1.ZXR10#clear ip bgp 1.1.1.1 flap-statistics
� This example describes how to clear flap counts for all routes.ZXR10#clear ip bgp flap-statistics
clear ip bgp vrfPurpose Use this command to soft reset a BGP connection related with VRF.
Command Modes Privileged EXEC
Syntax clear ip bgp vrf <vrf-name><ip-address>
SyntaxDescription
vrf <vrf-name> VRF name, 1~16 characters
<ip-address> IP address of the BGP neighbor, in the dotteddecimal format
Example This example describes how to soft reset the BGP neighbor 1.1.1.1under VPN1.ZXR10#clear ip bgp vrf vpn1 1.1.1.1
default-information originatePurpose Use this command to configure a BGP routing process to distribute
a default route. Use the no form of this command to disable theadvertisement of a default route.
Command Modes Router configuration and address family configuration
Syntax default-information originate
no default-information originate
Defaults The advertisement of a default route is disabled by default.
Instructions This command is used to distribute a default route to BGP routinginformation database and advertise the distributed default routeto all neighbors. A redistribution statement must be configured tocomplete this configuration, or the default route will not be adver-tised.
Example This example describes how to allow the distribution of defaultroutes.ZXR10(config)#router bgp 1ZXR10(config-router)#default-information originate
24 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
RelatedCommands
redistribute
default-metricPurpose Use this command to specify MED metric for BGP. when routes
are redistributed among multiple protocols, use this command tomake current routing protocol use the system metric value for allredistributed routes. Restore the default value with the no formof this command.
Command Modes Router configuration and address family configuration
Syntax default-metric <metric-value>
no default-metric
SyntaxDescription
<metric-value> Default metric applied to the specified routingprotocol, range: 0~4294967295
Defaults For BGP, the MED for redistributed connected routes is 0.
Example This example describes how to configure the default MED value forredistributed connected routes as 500.ZXR10(config)#router bgp 1ZXR10(config-router)#default-metric 500
disable ip bgpPurpose Use this command to break BGP sessions temporarily. Restart BGP
sessions with the enable form of this command.
Command Modes Global configuration
Syntax disable ip bgp
Example This example describes how to disable BGP sessions temporarily.ZXR10(config)#disable ip bgp
RelatedCommands
enable ip bgp
reset ip bgp
distance bgpPurpose Use this command to change the administrative distance of routes
advertised by external/internal neighbors. Remove the setting andreturn to the default value with the no form of this command.
Command Modes Router configuration and address family configuration
Confidential and Proprietary Information of ZTE CORPORATION 25
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Syntax distance bgp [external <external-distance>][internal <internal-distance>]
no distance bgp [external | internal]
SyntaxDescription
external Routes received form external neighbors
<external-distance> Administrative distance for BGP externalroutes, range: 1~255, default: 20
internal Routes received form internal neighbors
<internal-distance> Administrative distance for BGP externalroutes, range: 1~255, default: 200
Instructions The administrative instances of BGP external/internal routes canbe changed to select a better route.
Tip:
If there is a configured confederation, the administrative distancesof the external neighbors of the confederation peers will be re-ferred as that of the internal neighbor.
Example This example describes how to change the administrative distanceof routes advertised by external neighbors to 100.ZXR10(config)#router bgp 1ZXR10(config-router)#distance bgp external 100
enable ip bgpPurpose Use this command to recover BGP sessions. This command is inef-
fective in the neighbor which is already in the status of non-breakof BGP sessions. Break BGP sessions with the disable form of thiscommand.
Command Modes Global configuration
Syntax enable ip bgp
Example This example describes how to enable BGP sessions.ZXR10(config)#enable ip bgp
exit-address-familyPurpose Use this command to exit various address family mode of BGP.
Command Modes Address family configuration
Syntax exit-address-family
Example This example describes how to exit BGP VRF access mode.
26 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
ZXR10(config)#router bgp 1ZXR10(config-router)#address-family ipv4 vrf vpn1ZXR10(config-router-af)#exit-address-family
RelatedCommands
address-family
ip as-path access-listPurpose Use this command to define a BGP-related access list. Disable the
access list with the no form of this command.
Command Modes Global configuration
Syntax ip as-path access-list <access-list-number>{permit |deny}<as-regular-expression>
no ip as-path access-list <access-list-number>
SyntaxDescription
<access-list-number> Access list number, range: 1~199
permit Permits the update
deny Deny the update
<as-regular-expression>
autonomous system regular expression
Defaults There is no definition of access list by default.
Instruction � BGP autonomous system access list can be used to filter bothinbound and outbound BGP routes. In addition, weight canbe allocated on the basis of a group of filters. Every filter isactually an access list based on the regular expression.
� If updates with path information match the regular expressionwhich is in ASCII format, the parameter permit or deny willbe used . Local autonomous system number is not included inautonomous system paths.
� To define a BGP access list, use the ip as-path access-listcommand in global configuration mode. To apply for a specialaccess list, use the neighbor route command in router con-figuration mode.
Example In this example, the BGP neighbor of the router with the IP address128.125.1.1 do not to send advertisements of any path from theadjacent autonomous system 123.ZXR10(config)#router bgp 1ZXR10(config-router)#network 131.108.0.0ZXR10(config-router)#neighbor 128.140.6.6 remote-as 123ZXR10(config-router)#neighbor 128.125.1.1 remote-as 47ZXR10(config-router)#neighbor 128.125.1.1 route-map test outZXR10(config-router)#exitZXR10(config)#route-map test permit 10ZXR10(config-route-map)#match as-path 1ZXR10(config-route-map)#exitZXR10(config)# ip as-path access-list 1 deny ^123$
Confidential and Proprietary Information of ZTE CORPORATION 27
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Related Command show ip as-path-access-list
ip community-listPurpose Use this command to create or configure a Border Gateway Pro-
tocol (BGP) community list and to control access to it,. Delete thecommunity list with the no form of this command.
Command Modes Global configuration
Syntax ip community-list <community-list-number>{permit |deny}[<community-number>]
no ip community-list <community-list-number>
SyntaxDescription
<community-list-number>
Specifies one or multiple allowed or deniedcommunity group(s), range: 1~99
permit Permits access for a matching condition
deny Denies access for a matching condition.
<community-number>
Community number configured by theset community command, range:1~4294967200, valid values are:1. A single community can be entered or
multiple communities can be entered,each separated by a space.
2. no-export: Does not advertise this routeto next autonomous system.
3. no-advertise: Does not advertise thisroute to any internal/external peer.
4. no-export-subconfed: Does not advertisethis route to any external peer
Defaults Once a community number value is allowed, it implies that thecommunity denies any other community values.
Example In this example, all routes are allowed except those of Community5 and 10 or those of Community 10 and 15.ZXR10(config)#ip community-list 1 deny 5 10ZXR10(config)#ip community-list 1 deny 10 5ZXR10(config)#ip community-list 1 permit any
RelatedCommands
set community
show ip community-list
28 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
ip extcommunity-listPurpose Use this command to create an extended community list for BGP
and control access to the extended community. Delete the ex-tended community with no form of this command.
Command Modes Global configuration
Syntax ip extcommunity-list <extcommunity-list-number>{permit |deny}{rt | soo}[<extcommunity-number>]
no ip extcommunity-list <extcommunity-list-number>
SyntaxDescription
<extcommunity-list-number>
Identifies one or more allowed or deniedextended community group(s), range: 1~500
rt Specifies the route target (RT) extendedcommunity attribute
soo Specifies the site of origin (SOO) extendedcommunity attribute
permit Permits access for a matching condition
deny Denies access for a matching condition
<extcommunity-number>
Community number configured by the setextcommunity command, valid values are:1. <1-65535>: < 0-4294967295>2. A.B.C.D : <0-65535>
Defaults Once a community number value is allowed, it implies that the ex-tended community denies everything else that has not been per-mitted.
Example This example shows how to configure an extended community-list.ZXR10(config)#ip extcommunity-list 1 permit rt 1:1ZXR10(config)#ip extcommunity-list 1 deny rt 1.1.1.1:10ZXR10(config)#ip extcommunity-list 1 permit soo 1:1ZXR10(config)#ip extcommunity-list 1 deny soo 1.1.1.1:10
RelatedCommands
set extcommunity
show ip extcommunity-list
ip prefix-listPurpose Use this command to create an entry in a prefix list and control
access to it. Delete the entry with the no form of this command.
Command Modes Global configuration
Syntax ip prefix-list <prefix-list name>[seq <seq>]{permit | deny |description}{<prefix><Length>|<description text>}[ge <value>][le <value>]
Confidential and Proprietary Information of ZTE CORPORATION 29
ZXR10 8900 Series Command Reference (IP Routing Volume II)
no ip prefix-list <prefix-list name>[seq <seq>]{permit | deny| description}{<prefix><Length>|<description text>}[ge <value>][le <value>]
SyntaxDescription
<prefix-list name> Identifies one prefix list, 1~16 characters
seq Applies the sequence number to the prefix listentry being created or deleted
<seq> Specifies the sequence number for the prefixlist entry, range: 0~4294967294
permit Permits access for a matching condition
deny Denies access for a matching condition
description Allows the description for the prefix list
<description text> Specifies the description for the prefix list
<prefix> Matched 32 bits prefix address
<length> Matched prefix mask range: 0~32
ge Allows the mask range to be larger or equalto some specified value
le Allows the mask range to be smaller or equalto one specified value
<value> Mask range: 0~32
Defaults There is no definition of prefix list by default.
Example This example describes how to designates the description of prefixlist test as “test” and allow the route whose ip address is 100.1.1.1and mask is 24 or the route whose mask range is larger than 25.ZXR10(config)#ip prefix-list test seq 0 permit 100.1.1.1 24 ge 25ZXR10(config)#ip prefix-list test description test
RelatedCommands
show nd6 cache
clear nd cache
nd6 add
maximum-pathsPurpose Use this command to set the maximum number of routes sup-
ported by load balancing of BGP. Restore the default value withthe no form of this command.
Command Modes Router configuration
Syntax maximum-paths [ibgp]<number>
no maximum-paths [ibgp]
30 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
SyntaxDescription
ibgp load balancing of internal neighbors
<number> Specifies the maximum number of routessupported by load balancing of BGP, range:1~8, default: 1
Instruction This command takes effect immediately and is in timesharingprocess. There is no need for users to take manual interference,but it needs a certain period of waiting time.
Example This example describes how to set the maximum number of routessupported by load balancing of BGP as 5.ZXR10(config)#router bgp 1ZXR10(config-router)#maximum-paths 5
neighbor activatePurpose Use this command to enable the address capability of a neighbor
or a neighbor peer group. Disable the attribute with the no formof this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] activate
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] activate
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor , in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Specifies the name for a peer group
Defaults The Vpnv4 address capability is disabled, and the Ipv4 addresscapability inherits the BGP entity when a neighbor or a neighborpeer is created.
Instructions The neighbor of IPv6 address only activates the IPv6 address ca-pability.
Example This example describes how to activate the VPNv4 capability of theBGP neighbor 1.1.1.1 in the VPNv4 address family mode.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family vpnv4ZXR10(config-router-af)#neighbor 1.1.1.1 activate
Confidential and Proprietary Information of ZTE CORPORATION 31
ZXR10 8900 Series Command Reference (IP Routing Volume II)
neighbor advertisement-interval
Purpose Use this command to configure the minimum time interval for ad-vertising the route change originated from non local autonomoussystem to a neighbor or a neighbor peer group. Restore the de-fault time interval with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] advertisement-interval <value>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] advertisement-interval
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor, in the dotteddecimal notation
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Specifies a name for a peer group
<value> Time interval in seconds, range: 1~600,default: 30 seconds
Example This example describes how to configure the minimum interval foradvertising route changes originated from non local autonomoussystem to the BGP neighbor 1.1.1.1 as 20 seconds.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 advertisement-interval 20
neighbor allowas-inPurpose It is generally considered that, if there is an autonomous system
number of its own in the path attribute when updates are received, the route will be invalid. The use of this command can makethe route still valid when there are multiple autonomous systemnumbers of its own in the path attribute. Restore default with theno form of this command.
Command Modes Router configuration and address family configuration modes
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] allowas-in [<value>]
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] allowas-in
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor, in thedotted decimal format
<ipv6-address> IPv6 address of the neighbor
32 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
<peer-group-name>] Specifies the name for a peer group
<value> Time interval in seconds, range: 1~600,default: 30 seconds
Defaults The path attribute with its own autonomous system number is notsupported by default.
Instructions To prevent the loopback of BGP routes, in general, the path at-tribute is used to record crossed autonomous systems. When thepath attribute has its own autonomous system number, it indicatesloopback appears and this route should be invalid.
However, as the application of the network becomes more andmore complex, especially the application of HUB-SPOKE model ofMPLS-VPN, it may appears that some autonomous system mustbe crossed to meet the user’s requirement.
Example This example describes how to allow the route to still be effectivewhen four autonomous system numbers of its own appears in thepath attribute in UPDATE packets received from the BGP neighbor1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 allow-as 4
neighbor as-overridePurpose Use this command to replace the AS number of each directly con-
nected CE device in the whole autonomous system path with theAS number of its own.
Command Modes IPv4 address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] as-override
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] as-override
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor , in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Specifies the name for a peer group
Example This example shows how to enable the function of as-override forthe routes transmitted by the neighbor.ZXR10(config)#router bgp 1ZXR10(config-router)#address-family ipv4 vrf vpn1ZXR10(config-router-af)#neighbor 1.1.1.1 as-override
Confidential and Proprietary Information of ZTE CORPORATION 33
ZXR10 8900 Series Command Reference (IP Routing Volume II)
neighbor default-originatePurpose Use this command to make default routes transmitted to a neigh-
bor or a neighbor peer group. Disable the attribute with the noform of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] default-originate
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] default-originate
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor , in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Specifies the name for a peer group
Defaults The behavior of this command is disabled by default.
Instructions This command makes default routes advertised to the specifiedneighbor no matter whether there is local default route.
Example This example describes how to send default routes to the BGPneighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 default-originate
neighbor descriptionPurpose Use this command to configure the description of a neighbor or a
neighbor peer group. Delete the description with the no form ofthis command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] description <line>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] description
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor, in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Specifies the name for a peer group
<line> String for describing the neighbor, 1~80characters
34 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Example This example describes how to set the description for the BGPneighbor 1.1.1.1 as ZTE.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 description ZTE
neighbor ebgp-multihopPurpose Use this command to enable the establishment of EBGP neighbors
on indirectly connected networks. This command only applies toEBGP. Disable the attribute with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] ebgp-multihop [ttl <value>]
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] ebgp-multihop
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor, in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Specifies the name for a peer group
ttl <value> time-to-live, range: 1~255 hops, default: 8
Defaults This command is disabled by default.
Example This example describes how to set the maximum hops for estab-lishing the EBGP neighbor 1.1.1.1 as 200.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 ebgp-multihop ttl 200
neighbor fall-over bfdPurpose Use this command to enable bfd link fall-over detection function.
Disable the function with no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] fall-over bfd
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] fall-over bfd
Confidential and Proprietary Information of ZTE CORPORATION 35
ZXR10 8900 Series Command Reference (IP Routing Volume II)
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults This command is disabled by default.
Example This example shows how to enable bfd link fall-over detection func-tion.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 fall-over bfd
neighbor maximum-prefixPurpose Use this command to configure the maximum number of routes
received from neighbors. Restore the default value with the noform of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] maximum-prefix <value>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] maximum-prefix
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor, in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
<value> Maximum number of routes received fromneighbors, range: 1~4294967295, default:4294967295
Instruction In practical running of networks, a large number of routes may beimported because of the breakdown of the neighbor , this causesthat the exhaustion of the memory of local router. To preventthis fault, this command can be used to control the number ofthe routes received from neighbors. When the number of routesexceeds the configurated value, the neighbor will breakdown andit needs manually interfering to recover.
Example This example describes how to set the maximum number of routesreceived from the BGP neighbor 1.1.1.1 as 20000.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 maximum-prefix 20000
36 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
neighbor next-hop-selfPurpose Use this command to force itself as the next-hop of the advertised
route. It is generally used in the NBMA network. Disable the at-tribute with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] next-hop-self
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] next-hop-self
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor, in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults This command is disabled by default.
Example This example describes how to force itself as the next-hop of theadvertised route when the route is advertised to the BGP neighbor1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 next-hop-self
neighbor originate-intervalPurpose Use this command to configure the minimum time interval for
transmitting the route change originated from local autonomoussystem to a neighbor or a neighbor peer group. Restore the de-fault value with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] originate-interval <value>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] originate-interval
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor , in the dotteddecimal format
<ipv4-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
<value> Time interval in seconds, range: 1~600,default: 15 seconds
Confidential and Proprietary Information of ZTE CORPORATION 37
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Example This example describes how to configure the minimum time inter-val for advertising route changes originated from local autonomoussystem to the BGP neighbor 1.1.1.1 as 5 seconds.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 originate-interval 5
neighbor passivePurpose Use this command to configure the neighbor to set links in passive
mode. Disable the function with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] passive
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] passive
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults This command is disabled by default.
Example This example describes how to configure BGP neighbor 1::1 to setlinks passively.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1::1 passive
neighbor passwordPurpose Use this command to configure authentication password to enable
the MD5 authentication of the TCP connection between two BGPpeers. Disable the authentication with the no form of this com-mand.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] password [<string 1>| encrypt < string 2>]
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] password
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
38 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
encrypt The password string is encrypted, and it willnot be displayed after the use of the showrun command
<string 1> Password string, 3~80 characters, casesensitive.
<string 2> Password string with 3~120 characters, casesensitive. However, at most 80 characterscan be input
Defaults This command is disabled by default.
Example This example describes how to set the authentication passwordfor establishing a BGP connection with the BGP neighbor 1.1.1.1as 3FE&@1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 password 3FE&@1
neighbor peer-groupPurpose Use this command to create a peer-group or configure neighbor
belong to a peer-group. Disable the function with the no com-mand.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] peer-group [<group-name>]
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] peer-group [<group-name>]
SyntaxDescription
<ipv4-address> Neighbor IPv4 address
<ipv6-address> Neighbor IPv6 address
<peer-group-name> Peer group name
<group-name> The name of peer-group which belong toneighbor
Defaults Invalid.
Instructions Use this command neighbor <peer-group-name> peer-group tocreate a peer-group firstly, and then use neighbor <ip-address>peer-group <group-name> to add the neighbor into this peer-group.
Example This example describes how to create a peer-group whose nameis zte and configure BGP neighbor 1:1 belong to this peer-group.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor zte peer-groupZXR10(config-router)#neighbor 1::1 peer-group zte
Confidential and Proprietary Information of ZTE CORPORATION 39
ZXR10 8900 Series Command Reference (IP Routing Volume II)
neighbor prefix-listPurpose Use this command to filter the route advertised from/to a neighbor
or a neighbor peer according to the specified IP prefix list. Use noform of this command to delete the set filtering condition.
Command Modes Router configuration and all route address modes except IPv6.
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] prefix-list <prefix-list name>{in | out}
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] prefix-list <prefix-list name>{in | out}
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
<prefix-list name> Prefix list name, 1~16 characters
in | out Used in input or output route
Defaults There is no filtering policy by default.
Instructions Prefix list filtering policy should be used with the command ip prefix-list.
Example In this example, only routes with the prefix 100.1.1.1/24 are trans-mitted when routes are advertised by BGP neighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config)#ip prefix-list test permit 100.1.1.1 24ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 prefix-list test out
neighbor remote-asPurpose This example describes how to configure a BGP neighbor or a
neighbor peer AS number. Delete a BGP neighbor or a neighborpeer group with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] remote-as <number>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] remote-as
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
40 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
<peer-group-name> Peer group name
<number> Number of autonomous system the neighborbelongs to, range: 1~65535
Defaults There is no BGP neighbor by default.
Example This example describes how to configurte a BGP neighbor 1.1.1.1which belongs to AS 8.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 remote-as 8
neighbor remove-private-asPurpose Use this command to filter the private autonomous system in the
routes advertised to the neighbors or the neighbor peer groups.Disable the attribute with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] remove-private-as
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] remove-private-as
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults Private AS number is filtered by default.
Instructions � Since the quantity of AS number is limited, the private AS num-ber can be used to divide a large AS into multiple areas con-nected by EBGP. The private autonomous system will be re-moved when the area accesses the Internet. In this way, theinside area is transparent for the Internet.
� The range of the private AS is from 64512 to 65535.
Tip:
When a confederation is configured, since the peers in the con-federation are identified with private autonomous system, it maycause the route loopback if the private AS is removed. As a result,this command is ineffective in EBGP peers inside the confedera-tion.
Example This example describes how to remove the private autonomoussystem when routes are advertised to the BGP neighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 remove-private-as
Confidential and Proprietary Information of ZTE CORPORATION 41
ZXR10 8900 Series Command Reference (IP Routing Volume II)
neighbor route-mapPurpose Use this command to filter the routes advertised to/from neighbors
or configure priorities for routes. Delete the filter policy with theno form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] route-map <map-tag>{in | out}
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] route-map <map-tag>{in | out}
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
<map-tag> The name of the route map, a string with1~16 characters
in | out Specifies whether it is applied to the outputroute or the input route
Defaults There is no filter policy by default.
Instructions It is the enhanced route filter policy. When working with the route-map command, it can implement the complicated route selection.
Example This example describes how to set the origin of output routes asEGP when routes are advertised to the BGP neighbor 1.1.1.1.ZXR10(config)#route-map setoriginZXR10(config-route-map)#set origin egpZXR10(config-route-map)#exitZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 route-map setorigin out
neighbor route-reflector-client
Purpose Use this command to configure a neighbor or a neighbor peergroup as route reflector client peer. Disable the function with theno form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] router-refletor-client
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] router-refletor-client
42 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Instructions � In some ISP networks, the interior BGP network is extremelylarge (each router has more than 100 internal BGP sessions).The route reflector is introduced to reduce the complexity, thatis, a central router is specified as the focus of internal BGP ses-sion. Multiple BGP routers can be equaled to the route reflectorand then the multiple route reflectors are equaled.
� If all the clients are invalid, local reflector will not be a routereflector.
� It is recommended to use this command only when there areover 100 BGP sessions in each router.
Example This example describes how to configure the BGP neighbor 1.1.1.1as route reflector client peer.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 router-reflector-client
RelatedCommands
bgp client-to-client reflection
bgp cluster-id
neighbor send-communityPurpose Use this command to send the community attribute when routes
are advertised to the neighbor or the neighbor peer group. Restoredefault with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] send-community
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] send-community
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults This command is disabled by default.
Example This example describes how to send the community attribute whenroutes are advertised to the BGP neighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 send-community
Confidential and Proprietary Information of ZTE CORPORATION 43
ZXR10 8900 Series Command Reference (IP Routing Volume II)
neighbor send-labelPurpose Use this command to configure 6PE ability of a neighbor or a neigh-
bor peer group. Disable this function with the no form of this com-mand.
Command Modes IPv6 address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] send-label
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] send-label
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults This command is disabled by default.
Example This example describes how to make BGP neighbor 3ffe:1::1 havethe ability of 6PE.ZXR10(config)#router bgp 1ZXR10(config-router)#address ipv6ZXR10(config-router-af)#neighbor 3ffe:1::1 send-label
neighbor send-medPurpose Use this command to send the MED attribute when routes are ad-
vertised to the neighbor. Restore default with the no form of thiscommand.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] send-med
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] send-med
SyntaxDescription
<ipv4-address> IPv4 address of the Neighbor
<ipv6-address> IPv6 address of the Neighbor
<peer-group-name> Peer group name
Defaults This command is disabled by default.
Example This example describes how to send the MED attribute when routesare advertised to the BGP neighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 send-med
44 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
neighbor shut-downPurpose Use this command to make the neighbor or the neighbor peer
group in the status of management shut-down . Restore defaultwith the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] shut-down
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] shut-down
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults The neighbor is in the status of management startup .
Instructions Many configuration commands of neighbor attribute may cause in-consistency of the route handlings or neighbor reset. To minimizethe network oscillation, it is recommended to make the neighborenter the management shut-down status before the configurationis completed.
Example This example describes how to configure the BGP neighbor 1.1.1.1enter the management shut-down status.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 shut-down
neighbor soft-reconfigurationPurpose Use this command to make the neighbor or the neighbor peer
group support soft reconfiguration. Restore default with the noform of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] soft-reconfiguration
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] soft-reconfiguration
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
Defaults The behavior of this command is disabled by default.
Confidential and Proprietary Information of ZTE CORPORATION 45
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Instructions When the local BGP policy is adjusted, the routes that were deniedbefore may be enabled now. If this command is not configured,the neighbor must retransmit routes and it must be reset. Afterthe use of this command, the routes that are denied before can beenabled again without resetting the neighbor.
However, the use of this command may cause that local routerstores large number of denied routes and this will use plenty ofmemory. As a result, it is recommended to use the commandunder the guide of network expert.
If the neighbor supports route refreshing capability, this commandis unnecessary. Even though this command is configured, it equalsto the case in which there is no such configuration.
Example This example describes how to make the BGP neighbor 1.1.1.1support soft reconfiguration.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 soft-reconfiguration
neighbor timersPurpose Use this command to configure the holdtime and keepalive timers
of the neighbors. Return to restore the inherited BGP timers withthe no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] timers <keepalive><holdtime>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] timers
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
<keepalive> Time of the keepalive timer in seconds,range: 0~65535
<holdtime> Time of the holdtime timer in seconds, range:0 or 3~65535
Defaults The neighbor inherits the timer of BGP by default.
Example This example describes how to set the holdtime timer, thekeepalive timer of the BGP neighbor 1.1.1.1 respectively as 180seconds, 60 seconds.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 timers 60 180
46 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
neighbor update-sourcePurpose Use this command to make the BGP session use any operable TCP
connected interface. Restore the latest interface (that is, the bestlocal address) with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] update-source <interface-name>
no neighbor [<ipv4-address>|<ipv6-address>|<peer-group-name>] update-source
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
<interface-name> Specifies the name of the interface the TCPconnection of the BGP sessions uses as thesource address
Defaults This command is disabled and the best local interface address isused by default.
Example This example describes how to configure the loopback1 interfacefor establishing a BGP connection with the neighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#neighbor 1.1.1.1 update-source loopback1
networkPurpose Use this command to specify a network table for some BGP rout-
ing process. And the network of these types can be learned fromthe connected routes, dynamic routing and static routing sources.Delete a record with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax network <ipv4-address><net-mask>
network <ipv6-address>{<mask>}
no network <ipv4-address><net-mask>
no network <ipv6-address>{<mask>}
SyntaxDescription
<ipv4-address> IPv4 address of the network to be announcedby BGPin the dotted decimal format
<ipv6-address> IPv6 address advertising routes
Confidential and Proprietary Information of ZTE CORPORATION 47
ZXR10 8900 Series Command Reference (IP Routing Volume II)
<mask> Mask advertising IPv6 address routes
<net-mask> Network mask address, in the dotted decimalformat
Defaults There is no network specified by default.
Example This example describes how to advertise local route 2.2.2.2/32 toneighbors.ZXR10(config)#router bgp 1ZXR10(config-router)#network 2.2.2.2 255.255.255.255
redistributePurpose Use this command to redistribute routes obtained from other rout-
ing protocols into the BGP routing table. Remove the route redis-tribution with the no form of this command.
Command Modes Router configuration and address family configuration
Syntax redistribute <protocol>[metric <metric-value>][route-map<map-tag>]
no redistribute <protocol>[metric][route-map]
SyntaxDescription
<protocol> Other protocol name: connected, static, RIP,OSPF-int, OSPF-ext, ISIS-1, ISIS-2, andISIS-1-2
metric <metric-value>
Metric value for redistributing routes. If notspecified, the default will be used. range:0~4294967295
route-map<map-tag>
The name of the route map for redistributingroutes, 1~16 characters
Defaults The behavior of this command is disabled by default.
Example This example describes how to redistribute routes obtained fromRIP into the BGP routing table.ZXR10(config)#router bgp 1ZXR10(config-router)#redistribute rip
reset ip bgpPurpose Use this command to soft reset BGP sessions.
Command Modes Global configuration
Syntax reset ip bgp [vrf <vrf-name>][<ipv4-address>|<ipv6-address>|<peer-group-name>]
48 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
SyntaxDescription
<ipv4-address> IPv4 address of the neighbor
<ipv6-address> IPv6 address of the neighbor
<peer-group-name> Peer group name
vrf <vrf-name> VRF name, 1~16 characters
Instructions For the neighbor in the termination status of non-BGP session, thiscommand acts as the function of “enable”. For the neighbor in thestatus of “activate”, this command will first execute the “disable”operation and then execute the operation of “disable”.
Example This example describes how to soft reset established BGP sessionswith the neighbor 1.1.1.1.ZXR10(config)#router bgp 1ZXR10(config-router)#reset ip bgp 1.1.1.1
router bgpPurpose Use this command to configure the BGP module on the router.
Remove it with the no form of this command.
Command Modes Global configuration
Syntax router bgp <as-number>
no router bgp [<as-number>]
SyntaxDescription
<as-number> Number of the autonomous system where therouter is located, range: 1~65535
Defaults This command is disabled by default.
Example This example describes how to configure the BGP module with AS1 on the router.ZXR10(config)#router bgp 1
show bgp all neighborPurpose Use this command to display information related with BGP neigh-
bor .
Command Modes All modes
Syntax show bgp all neighbor [<ip-address>]
SyntaxDescription
<ip-address> Neighbor IP address in the dotted decimalformat
Confidential and Proprietary Information of ZTE CORPORATION 49
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Example This example describes how to display neighbor information.ZXR10#show bgp all neighbor 168.1.70.111BGP neighbor is 168.1.70.111, remote AS 200, external linkBGP version 4, remote router ID 168.1.70.111BGP state = Established, up for 1d21hLast read update 1d21h, hold time is 90 seconds, keepalive
interval is 30 secondsNeighbor capabilities:Route refresh: advertisedAddress family IPv4 Unicast: advertised
All received 5281 messages1 updates, 0 errs1 opens, 0 errs5279 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 errs0 notifications, 0 other errsAfter last established received 5279 messages1 updates, 0 errs0 opens, 0 errs5278 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 errs0 notifications, 0 other errsAll sent 5280 messages0 updates, 1 opens, 5279 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 notificationsAfter last established sent 5278 messages0 updates, 0 opens, 5278 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 notifications
For address family: IPv4 UnicastAll received nlri 100, unnlri 0, 100 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295Minimum time between advertisement runs is 30 secondsMinimum time between origin runs is 15 seconds
For address family: IPv4 Multicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: VPNv4 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: IPv6 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
Connections established 1Local host: 168.1.70.4, Local port: 179Foreign host: 168.1.70.111, Foreign port: 1530
50 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Tip:
Most of the content can be understood literally. Related informa-tion refers to the show ip bgp neighbor command.
show bgp all protocolPurpose Use this command to display configuration information of BGP pro-
tocol module.
Command Modes All modes
Syntax show bgp all protocol
SyntaxDescription
<ip-address> Neighbor IP address in the dotted decimalformat
Example This example describes how to display BGP configuration informa-tion.ZXR10#show bgp all protocolBGP router ID is 1.2.3.4, Local as is 100Administratively shut downHold time is 30 seconds, KeepAlive time is 90 secondsDefault local preference is 100Default export metric is 200IGP synchronization is disabledDefault information advertise is enabledAlways compare med is enabledFast fallover is disabledClient-to-client reflection is disabledBGP cluster-id: 1.2.3.4Ipv4 unicast client-number: 10Vpnv4 unicast client-number: 2Ipv4 unicast is activatedRouter target if not filteredBGP confederation id: 10Route dampening enabled, route-map: ddDistance : external 20 internal 200
The instructions of the displayed information are as followed:
Router ID is selected when BGP is established and enabled. It isprior to select Loopback address, and then the smallest address.
Other displayed information is related to the corresponding config-uration commands. Some information is not displayed under thedefault configuration.
show bgp all summaryPurpose Use this command to display the connection status of all BGP
neighbors.
Command Modes All modes
Confidential and Proprietary Information of ZTE CORPORATION 51
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Syntax show bgp all summary
Example This example describes how to display the connection status of alladdress family BGP neighbors.ZXR10#show bgp all summaryNeighbor Ver As MsgRcvd MsgSend Up/Down(s) State10.1.1.1 4 100 10 2 01:01:00 Connect10.1.1.2 4 200 200 199 01:00:02 Established
Descriptions of the displayed areas are shown below.
Field Description
Neighbor Neighbor address
Ver Version of the BGP neighbor, currentlysupports version 4
AS Neighbor AS number
MsgRcvd Number of total messages that the neighborreceives, becomes 0 every time the neighborenters the Established status
MsgSend Number of total messages that neighborsends, becomes 0 every time the neighborenters the Established status
Up/Down Time the neighbor when it is in the Establishedstatus or time after its last leave from theEstablished status last time. If the neighbornever reaches the Established status , thetime will be 0
State Neighbor BGP status
show bgp ipv4 multicastPurpose Use this command to display the entry in routing table of BGP Ipv4
multicast address family.
Command Modes All modes
Syntax show bgp ipv4 multicast
show bgp ipv4 multicast detail <ip-address><net-mask>
SyntaxDescription
<ip-address> Network number, in the dotted decimal format
<net-mask> Network mask, in the dotted decimal format
Instruction If there is no parameter in this command, all BGP legal routeswill be displayed. If the network parameter is entered then thenetwork of the routing table which matches the parameter will bedisplayed. If the network number and network mask parametersare entered then all BGP routes which match the address/mask willbe displayed. Use show bgp ipv4 multicast detail command todisplay detailed information about all routes.
52 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Example � This example describes how to display legal routes of BGP Ipv4multicast address family.ZXR10#show bgp ipv4 multicastRoutes of bgp:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Network NextHop Metric LocPrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 200 ?*>i 111.1.1.3/32 2.2.2.1 0 12345678 200 ?
Description of the displayed areas are shown below.
� For BGP route
Field Description
Dest Specific routes
Nexthop Next hop attribute of Update packets
Mertic Multi-exit discriminator attribute ofUpdate packets
LocPref Local priority attribute designated by theimported policy
MsgSend Adds Origin attribute to As-pathsequence in Update packets
� For other leading protocol route
Field Description
Dest Specific routes
Nexthop Route next hop
Mertic Multi-exit discriminator attribute set bythe imported policy
LocPref Local priority attribute set by theimported policy
Path Adds the imported as-path sequenceto Origin attribute set by the importedpolicy
� This example describes how to display detailed route informa-tion.ZXR10#show bgp ipv4 multicast detail10:00:01 received from 100.1.1.1 (1.1.1.1)origin i,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)invalid due to import policy deniedLocalorigin ?,nexthop 10.1.1.1,10:04:00 advertised to 200.1.1.1 (2.2.2.2)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1
Confidential and Proprietary Information of ZTE CORPORATION 53
ZXR10 8900 Series Command Reference (IP Routing Volume II)
unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)10:04:01 advertised to 201.1.1.1 (2.2.2.1)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)
Description of the displayed information are shown below.
It is shown in segment that which neighbors routes learn fromand which neighbors routes are advertised to. For BGP routes,all attributes in Update packets will be displayed. For routesimported by other routes, only origin and nexthop attributesare displayed, and the displayed content is the same as thethat of previous ordinary BGP routes.
Most of information can be understood literally.
Tip:
� (1.1.1.1), (2.2.2.2), (2.2.2.3) are route identifiers of theneighbor .
� as path [100 200]<10>{65543} 65542 65544 : <>represents that AS-PATH attribute is AS-SET type [] rep-resents that AS-PATH attribute is AS-SQUENCE type,represents that AS-PATH attribute is AS_CONFED_SE-QUENCE type {} represents that AS-PATH attribute isAS_CONFED_SET type.
� Unknown attribute type 11 flag ff len 20: flag field is dis-played in the HEX format, the other are usually displayedin the dotted decimal format.
show bgp ipv4 multicastneighbor
Purpose Use this command to display information about BGP IPv4 multicastaddress family neighbors.
Command Modes Global configuration
Syntax show bgp ipv4 multicast neighbor [<ip-address>]
show bgp ipv4 multicast neighbor [in | out]<ip-address>
54 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
SyntaxDescription
<ip-address> IP address of the neighbor in the dotteddecimal format
in Display all routes receive from the specifiedordinary neighbor
out Display all routes advertised to the specifiedordinary neighbor
Example 1. This example describes how to display information about theneighbor.Zxr10#show bgp ipv4 multicast neighbor 3.3.3.3BGP neighbor is 3.3.3.3, remote AS 100, internal linkBGP version 4, remote router ID 0.0.0.0BGP state = Connecthold time is 0 seconds, keepalive interval is 0 secondsAll received 0 messages0 updates, 0 errs0 opens, 0 errs0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 errs0 notifications, 0 other errsAfter last established received 0 messages0 updates, 0 errs0 opens, 0 errs0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 errs0 notifications, 0 other errsAll sent 0 messages0 updates, 0 opens, 0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 notificationsAfter last established sent 0 messages0 updates, 0 opens, 0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 notifications
For address family: IPv4 UnicastAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295Minimum time between advertisement runs is 30 secondsMinimum time between origin runs is 15 seconds
For address family: IPv4 MulticastAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: VPNv4 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
All received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: IPv6 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
Connections established 0No tcp connection
Confidential and Proprietary Information of ZTE CORPORATION 55
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Information description: Most of the content can be under-stood literally.
Tip:
The related information refers to the show ip bgp neighborcommand.
2. This example describes how to display information aboutroutes received by the neighbor .ZXR10#show bgp ipv4 multicast neighbor in 2.2.2.1Routes Learned From This neighbor:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Dest NextHop Metric LocPrf RoutePrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 200 100?*>i 111.1.1.3/32 2.2.2.1 0 12345678 200 100?
Description of the displayed shown is shown below.
Field Description
Dest Specific route
Nexthop Next hop attribute in Update message
Mertic Multi-exit discriminator attribute in Updatemessage
LocPref Local priority attribute in Update message
RoutePref Local management distance of the route
Path Adds Origin attribute to As-path sequencein Update message
3. This example describes how to display information aboutroutes transmit to the neighbor.ZXR10#show bgp ipv4 multicast neighbor out 2.2.2.1Routes Sent to This neighbor:
Dest NextHop Metric LocPrf RoutePrf Path111.1.1.2/32 2.2.2.1 0 12345678 200 100?111.1.1.3/32 2.2.2.1 0 12345678 200 100?
Description of the displayed areas are shown below.
Field Description
Dest Specific route
Nexthop Next hop attribute in Update message
Mertic Multi-exit discriminator attribute in Updatemessage
LocPref Local priority attribute in Update message
56 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Field Description
RoutePref Local management distance of the route
Path Adds Origin attribute to As-path sequencein Update message
Tip:
Time displayed by the show command of BGP“100001” usuallyindicates the time after system is power-on.
show bgp ipv4 multicastsummary
Purpose Use this command to display the connection status of BGP neigh-bors of IPv4 multicast address family .
Command Modes All modes
Syntax show bgp ipv4 multicast summary
Example This example describes how to display the connection status ofBGP neighbor of ipv4 multicast addresses group.ZXR10#show bgp ipv4 multicast summaryNeighbor Ver As MsgRcvd MsgSend Up/Down(s) State10.1.1.1 4 100 10 2 01:01:00 Connect10.1.1.2 4 200 200 199 01:00:02 Established
Description of the displayed areas are shown below.
Field Description
Neighbor Address of the neighbor
Ver BGP neighbor version number, currentlysupports version 4
AS Neighbor AS number
MsgRcvd Total number of packets received by theneighborclears every time the neighbor enterthe Established state
MsgSend Total number of packets sent by theneighborclear every time the neighbor enterthe Established state
Confidential and Proprietary Information of ZTE CORPORATION 57
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Field Description
Up/Down The time when the neighbor is in Establishedstate or the time since the neighbor leavesfrom the Established state the time willalways be 0 if neighbor never reaches theEstablished state.
State Neighbor BGP state
show bgp ipv4 unicastPurpose Use this command to display the entry in routing table of BGP IPv4
unicast address family.
Command Modes All modes
Syntax show bgp ipv4 unicast detail <ip-address><net-mask>
SyntaxDescription
<ip-address> Network number in the dotted decimal format
<net-mask> Network mask in the dotted decimal format
Instructions If there is no parameter in this command, all BGP legal routes willbe displayed. If the network parameter is entered then the net-work of the routing table which best matches the parameter will bedisplayed. If the network number and network mask parametersare entered then all BGP routes which match the address/maskwill be detailedly displayed.
Example 1. This example describes how to display legal routes of BGP ipv4unicast address family.ZXR10#show bgp ipv4 unicastRoutes of bgp:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Dest NextHop Metric LocPrf RtPrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 150 200 ?*>i 111.1.1.3/32 2.2.2.1 0 12345678 150 200 ?
Description of the displayed areas are shown below.
For BGP route
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated byimported policy
58 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Field Description
RoutePref Local management distance of the route
Path Adds origin attribute to As-path sequencein Update message
For other leading protocol route
Field Description
Dest Specific route
Nexthop Route next hop
Mertic Multi-exit discriminator attribute set by theimported policy
LocPref Local priority attribute set by the importedpolicy
RoutePref Local management distance of the route
Path Adds the leading As-path sequence toOrigin attribute set be the imported policy
2. This example describes how to display detailed route informa-tion.ZXR10#show bgp ipv4 unicast 1.1.1.1 255.255.255.25510:00:01 received from 100.1.1.1 (1.1.1.1)origin i,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)invalid due to import policy deniedLocalorigin ?,nexthop 10.1.1.1,10:04:00 advertised to 200.1.1.1 (2.2.2.2)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)10:04:01 advertised to 201.1.1.1 (2.2.2.1)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)
Description of the displayed information are shown below.
It is shown in segment that which neighbors routes learn fromand which neighbors routes are advertised to. For BGP routes,all attributes in Update packets will be displayed. For routesimported by other routes, only origin and nexthop attributesare displayed, and the displayed content is the same as thethat of previous ordinary BGP routes.
Most of information can be understood literally.
Confidential and Proprietary Information of ZTE CORPORATION 59
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Tip:
� (1.1.1.1), (2.2.2.2), (2.2.2.3) are route identifiers of theneighbor .
� as path [100 200]<10>{65543} 65542 65544 : <>represents that AS-PATH attribute is AS-SET type [] rep-resents that AS-PATH attribute is AS-SQUENCE type,represents that AS-PATH attribute is AS_CONFED_SE-QUENCE type {} represents that AS-PATH attribute isAS_CONFED_SET type.
� Unknown attribute type 11 flag ff len 20: flag field is dis-played in the HEX format, the other are usually displayedin the dotted decimal format.
show bgp ipv4 unicastcommunity-list
Purpose Use this command to display BGP routes with the correspondingcommunity attribute.
Command Modes Global configuration
Syntax show bgp ipv4 unicast community-list <list-number>
SyntaxDescription
<list-number> Specifies the number of community, range:1~499
Example This example shows how to display route information with com-munity attribute 200:1.ZXR10(config)#ip community-list 499 permit 200:1ZXR10(config)#show bgp ipv4 unicast community-list 499
show bgp ipv4 unicastdampening dampened-paths
Purpose Use this command to display damped routes in BGP flappingroutes.
Command Modes All modes
Syntax show bgp ipv4 unicast dampening dampened-paths
Instructions This command displays all damped routes.
Example This example describes how to display damped routes in all flap-ping routes.
60 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
ZXR10#show bgp ipv4 unicast dampening dampened-paths
show bgp ipv4 unicastdampening flap-statistics
Purpose Use this command to display bgp flap statistics.
Command Modes All modes
Syntax show bgp ipv4 unicast dampening flap-statistics [<ip-address><net-mask>][longer-prefix]
SyntaxDescription
<ip-address> Network IP address about displayingdampening informationin the dotted decimalformat
<net-mask> Network mask address, in the dotted decimalformat
longer-prefix Key word, fuzzy match
Instructions If there is no parameter or key word specified, local router willdisplay information about all flap statistics; if only the first twoparameters are entered, local router will act the exact match anddisplay the flap routes totally consistent with the network decidedby the two parameters. If longer-prefix is entered, the input maskdoes the fuzzy match and the router will display all flap routes ofthe network decided by the first two parameters.
Example This example describes how to display bgp flap statistics.ZXR10#show bgp ipv4 unicast dampening flap-statistics
show bgp ipv4 unicastneighbor
Purpose Use this command to display information about BGP IPv4 unicastaddress family neighbors.
Command Modes All modes
Syntax show bgp ipv4 unicast neighbor [<ip-address>]
show bgp ipv4 unicast neighbor [in | out]<ip-address>
Confidential and Proprietary Information of ZTE CORPORATION 61
ZXR10 8900 Series Command Reference (IP Routing Volume II)
SyntaxDescription
<ip-address> Network IP addressin the dotted decimalformat
in Display all routes received from ordinaryneighbors
out Display all routes advertised to ordinaryneighbors
Example 1. This example describes how to display information about theneighbor.Zxr10#show bgp ipv4 unicast neighbor 168.1.70.111BGP neighbor is 168.1.70.111, remote AS 200, external linkBGP version 4, remote router ID 168.1.70.111BGP state = Established, up for 1d20hLast read update 1d20h, hold time is 90 seconds, keepalive
interval is 30 secondsNeighbor capabilities:Route refresh: advertisedAddress family IPv4 Unicast: advertised
All received 5254 messages1 updates, 0 errs1 opens, 0 errs5252 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 errs0 notifications, 0 other errsAfter last established received 5252 messages1 updates, 0 errs0 opens, 0 errs5251 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 errs0 notifications, 0 other errsAll sent 5253 messages0 updates, 1 opens, 5252 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 notificationsAfter last established sent 5251 messages0 updates, 0 opens, 5251 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs, 0 notifications
For address family: IPv4 UnicastAll received nlri 100, unnlri 0, 100 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295Minimum time between advertisement runs is 30 secondsMinimum time between origin runs is 15 seconds
For address family: IPv4 Multicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: VPNv4 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: IPv6 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
Connections established 1Local host: 168.1.70.4, Local port: 179Foreign host: 168.1.70.111, Foreign port: 1530
62 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Information description: Most of the content can be under-stood literally.
Tip:
The related information refers to the show ip bgp neighborcommand
2. This example describes how to display information received bythe neighbor .ZXR10#show ip bgp neighbor in 2.2.2.1Routes Learned From This neighbor:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Dest NextHop Metric LocPrf RoutePrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 200 100?*>i 111.1.1.3/32 2.2.2.1 0 12345678 200 100?
Description of the displayed information are shown below.
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated by theimported policy
RoutePref Local management distance of the route
Path Adds origin attribute to As-path sequencein Update message
3. This example describes how to display route information sendto the neighbor.ZXR10#show bgp ipv4 unicast neighbor out 2.2.2.1Routes Sent to This neighbor:
Dest NextHop Metric LocPrf RoutePrf Path111.1.1.2/32 2.2.2.1 0 12345678 200 100?111.1.1.3/32 2.2.2.1 0 12345678 200 100?
Description of the displayed areas are shown below.
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated by theimported policy
Confidential and Proprietary Information of ZTE CORPORATION 63
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Field Description
RoutePref Local management distance of the route
Path Adds origin attribute to As-path sequencein Update message
Note:
The time 10:00:01 displayed by BGP commands generallyrefers to the time after the system is powered and operating.
show bgp ipv4 unicastregexp
Purpose Use this command to display information about BGP routes withas-path attribute.
Command Modes All modes
Syntax show bgp ipv4 unicast regexp <number>
SyntaxDescription
<number> As-path-number, range: 1~ 65535
Example This example shows how to display information about BGP routeswith as-path 200.ZXR10(config)#show bgp ipv4 unicast regexp 200
show bgp ipv4 unicastsummary
Purpose Use this command to display the connection status of BGP neigh-bors of ipv4 unicast address family.
Command Modes All modes
Syntax show bgp ipv4 unicast summary
Example This example describes how to display the connection status ofBGP neighbors of ipv4 unicast address family.ZXR10#show bgp ipv4 unicast summaryNeighbor Ver As MsgRcvd MsgSend Up/Down(s) State10.1.1.1 4 100 10 2 01:01:00 Connect10.1.1.2 4 200 200 199 01:00:02 Established
Description of the displayed areas are shown below.
64 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Field Description
Neighbor Neighbor address
Ver BGP neighbor version number, currentlysupports version 4
AS Neighbor AS number
MsgRcvd Total number of packets received by theneighbor, it is reset each time the neighborenters the Established status
MsgSend Total number of packets sent by the neighbor,it is reset each time the neighbor enters theEstablished status
Up/Down Time when the neighbor is in the Establishedstatus or Time since it leaves from theEstablished status. If the neighbor neverenters the Established status, this time willalways be 0
State Neighbor BGP state
show bgp ipv6 unicastPurpose Use this command to display entries in routing table of BGP IPv6
unicast address family.
Command Modes All modes
Syntax show bgp ipv6 unicast
show bgp ipv6 unicast detail <ipv6-prefix><prefix-length>
SyntaxDescription
<ipv6-prefix> IPv6 address in the hexadecimal formatseparated by colons
<prefix-length> Prefix length of the IPv6 address in the dotteddecimal format, indicating the number of bitsof the prefix
Instructions If there is no parameter in this command, all BGP legal routeswill be displayed. If the network parameter is entered then thenetwork of the routing table which matches the parameter will bedisplayed. If the network number and network mask parametersare entered then all BGP routes which match the address/mask willbe displayed. Use show bgp ipv6 multicast detail command todisplay detailed information about all routes.
Example 1. This example describes how to display legal routes of BGP IPv6unicast address family.ZXR10#show bgp ipv6 unicastRoutes of bgp:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Network NextHop Metric LocPrf Path*>i 3ffe:1::1/64 2.2.2.1 0 12345678 200 ?
Confidential and Proprietary Information of ZTE CORPORATION 65
ZXR10 8900 Series Command Reference (IP Routing Volume II)
*>i 4ffe:4::2/64 2.2.2.1 0 12345678 200 ?
Description of the displayed areas is shown as follows:
The description is for BGP routes:
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated byimported policy
Path Adds origin attribute to As-path sequencein Update message
The description is for other imported protocol routes:
Field Description
Dest Specific route
Nexthop Route next hop
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute set by the importedpolicy
Path Adds the As-path sequence to Originattribute set by the imported policy
2. This example describes how to display detailed route informa-tion.ZXR10#show bgp ipv4 unicast detail10:00:01 received from 100.1.1.1 (1.1.1.1)origin i,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)invalid due to import policy deniedLocalorigin ?,nexthop 10.1.1.1,10:04:00 advertised to 200.1.1.1 (2.2.2.2)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)10:04:01 advertised to 201.1.1.1 (2.2.2.1)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)
66 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Description of the displayed information are shown below.
It is shown in segment that which neighbors routes learn fromand which neighbors routes are advertised to. For BGP routes,all attributes in Update packets will be displayed. For routesimported by other routes, only origin and nexthop attributesare displayed, and the displayed content is the same as thethat of previous ordinary BGP routes.
Most of information can be understood literally.
Most of the content can be understood literally.
Note:
� (1.1.1.1), (2.2.2.2) and (2.2.2.3) are neighbor Route-ID.
� As path [100 200]<10>{65543} 65542 65544 <> rep-resents that AS-PATH attribute is AS-SET type[] representsthat AS-PATH attribute is AS-SQUENCE typerepresents thatAS-PATH attribute is AS_CONFED_SEQUENCE type{} rep-resents that AS-PATH attribute is AS_CONFED_SET type.
� Unknown attribute type 11 flag ff len 20: flag in hexusuallyother are in the dotted decimal notation.
show bgp ipv6 unicast labelsPurpose Use this command to display the label entry in route table of IPv6
unicast address family.
Command Modes All modes
Syntax show bgp ipv6 unicast labels
Example This example describes how to display the label information inroute table of IPv6 unicast address family.ZXR10#show bgp ipv6 unicast labelsNetwork Next Hop In Label Out Label100:1::1 3ffe:1::1 17 20200:1::2 3ffe:1::1 18 21
show bgp ipv6 unicastneighbor
Purpose Use this command to display information about the neighbor ofBGP ipv6 unicast address family.
Command Modes All modes
Syntax show bgp ipv6 unicast neighbor [<ip-address>|<ipv6-address>]
Confidential and Proprietary Information of ZTE CORPORATION 67
ZXR10 8900 Series Command Reference (IP Routing Volume II)
show bgp ipv6 unicast neighbor [in | out]<ip-address>
SyntaxDescription
<ip-address> IPv4 address of the neighbor in the dotteddecimal format
<ipv6-address> IPv6 address of the neighbor in the format ofhexadecimal separated by colons
in Display all the routes received from thespecific ordinary neighbor
out Display all the routes advertised to thespecific ordinary neighbor
Example 1. This example describes how to display information about theneighbor.Zxr10#show bgp ipv6 unicast neighbor 3ffe:1::1BGP neighbor is 3ffe:1::1, remote AS 100, internal linkBGP version 4, remote router ID 0.0.0.0BGP state = Connecthold time is 0 seconds, keepalive interval is 0 secondsAll received 0 messages0 updates, 0 errs0 opens, 0 errs0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 errs0 notifications, 0 other errsAfter last established received 0 messages0 updates, 0 errs0 opens, 0 errs0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 errs0 notifications, 0 other errsAll sent 0 messages0 updates, 0 opens, 0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 notificationsAfter last established sent 0 messages0 updates, 0 opens, 0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 notificationsFor address family: IPv4 Unicast no activate
All received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295Minimum time between advertisement runs is 30 secondsMinimum time between origin runs is 15 seconds
For address family: IPv4 Multicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: VPNv4 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: IPv6 UnicastAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
Connections established 0
68 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
No tcp connection
Information description: Most of the content can be under-stood literally.
Tip:
Related information refers to the show ip bgp neighbor com-mand.
2. This example describes how to display information aboutroutes received by the neighbor .ZXR10#show bgp ipv6 unicast neighbor in 2.2.2.1Routes Learned From This neighbor:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Dest NextHop Metric LocPrf Path*>i 3ffe:1::3/64 2.2.2.1 0 12345678 100?*>i 4ffe:2::1/64 2.2.2.1 0 12345678 100?
Description of the displayed areas is shown as follows:
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated by theimported policy
Path Adds origin attribute to As-path sequencein Update message
3. This example describes how to display information aboutroutes sent to the neighbor.ZXR10#show bgp ipv6 unicast neighbor out 2.2.2.1Routes Sent to This neighbor:
Dest NextHop Metric LocPrf Path3ffe:1::3/64 2.2.2.1 0 12345678 100?4ffe:4::1/64 2.2.2.1 0 12345678 100?
Description of the displayed areas is shown as follows:
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
Confidential and Proprietary Information of ZTE CORPORATION 69
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Field Description
LocPref Local priority attribute designated byimported policy
Path Adds origin attribute to As-path sequencein Update message
Note:
The time 10:00:01 displayed by BGP commands generally refersto the time since the system is powered and operating.
show bgp ipv6 unicastsummary
Purpose Use this command to display the connection status of the BGPneighbor of IPv6 unicast address family.
Command Modes All modes
Example This example describes how to display the connection status of allneighbors of BGP IPv6 unicast address family.ZXR10#show bgp ipv6 unicast summaryNeighbor Ver As MsgRcvd MsgSend Up/Down(s) State10.1.1.1 4 100 10 2 01:01:00 Connect10.1.1.2 4 200 200 199 01:00:02 Established
Description of the displayed areas is shown as follows:
Field Description
Neighbor IP address of the neighbor
Ver BGP neighbor version number, version 4 issupported at present
AS AS number of the neighbor
MsgRcvd Total messages received by the neighbor, itis reset every time the neighbor enters theEstablished status
MsgSend Total messages sent by the neighbor, it isreset every time the neighbor enters theEstablished status
70 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Field Description
Up/Down Time when the neighbor is in the Establishedstatus or time since it transits from theEstablished status. If the neighbor neverenters the Established status, this time isalways 0
State State in the BGP state-machine of theneighbor
show bgp vpnv4 unicastPurpose Use this command to display the entry of the routing table of BGP
vpnv4 unicast address family.
Command Modes All modes
Syntax show bgp vpnv4 unicast
show bgp vpnv4 unicast detail <rd><ip-address><net-mask>
SyntaxDescription
<rd> Router identifier, in the format of ASN: NNor IP address: NN. ASN is the autonomoussystem number, and NN is the number thatthe service provider uniquely assigns to theVRF
<ip-address> IP address, in the dotted decimal format
<net-mask> Network mask, in the dotted decimal format
Instructions � If there is no parameter after the show bgp vpnv4 unicastcommand, all legal BGP routes will be displayed.
� The show bgp vpnv4 unicast detail command displays de-tailed information of the specified of route .
Example � This example shows how to display information about legalroutes of BGP vpnv4 unicast address family.ZXR10#show bgp vpnv4 unicaststatus codes: *valid, >best,i-internal, s-staleOrigin codes: i-IGP, e-EGP, ?-incomplete
Network Next Hop Metric Locprf PatRoute Distinguisher: 100:1*>i 15.1.1.0/24 11.11.11.11 100 iRoute Distinguisher: 200:1 (default for vrf vpn1)*> 23.1.1.0/24 0.0.0.0 ?
Description of the displayed areas are shown below.
� For BGP route
network prefix
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute ofUpdate message
Confidential and Proprietary Information of ZTE CORPORATION 71
ZXR10 8900 Series Command Reference (IP Routing Volume II)
LocPref Local priority attribute designated byimported policy
Path Adds origin attribute to As-pathsequence in Update message
� For other leading protocol route
network prefix
Nexthop Route next hop
Mertic Multi-exit discriminator attribute ofUpdate message
LocPref Local priority attribute set by importedpolicy
RoutePref Local management distance of the route
Path Adds the imported As-path sequenceto the Origin attribute set by importedpolicy
� This example shows how to display the detailed route informa-tion.ZXR10#show bgp vpnv4 unicast detail 200:1 23.1.1.0255.255.255.0BGP routing table entry for 200:1:23.1.1.0/24 Local
origin ?,nexthop 0.0.0.0,as pathextended Community:RT:100:2received label notag00:08:01 advertised to 11.11.11.11 (11.11.11.11)origin ?,nexthop 22.22.22.22,localpref 100,as pathextended Community:RT:100:2sent label 17
ZXR10#show bgp vpnv4 unicast detail 100:1 15.1.1.0 255.255.255.0BGP routing table entry for 100:1:15.1.1.0/2400:05:17 received from 11.11.11.11 (11.11.11.11)origin i,nexthop 11.11.11.11,localpref 100,as pathextended Community:RT:100:2 100:14received label 19
Information description:It is shown in segment that whichneighbors routes learn from and which neighbors routes areadvertised to. For BGP routes, all attributes in Update packetswill be displayed. For routes imported by other routes, onlyorigin and nexthop attributes are displayed, and the displayedcontent is the same as the that of previous ordinary BGProutes.
72 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
show bgp vpnv4 unicastlabels
Purpose Use this command to display the label information of the routingtable learned by vpnv4 unicast address family.
Command Modes All modes
Syntax show bgp vpnv4 unicast labels
Example This example shows how to display the label information of therouting table learned by vpnv4 unicast address family.ZXR10#show bgp vpnv4 unicast labelsNetwork Next Hop In label/Out label
Route Distinguisher: 100:115.1.1.0/24 11.11.11.11 18/19Route Distinguisher: 200:1 (default for vrf vpn1)23.1.1.0/24 23.1.1.1 17/notag
show bgp vpnv4 unicastneighbor
Purpose Use this command to show information about the neighbor of BGPVPNV4 address family.
Command Modes All modes
Syntax show bgp vpnv4 unicast neighbor [<ip-address>]
show bgp vpnv4 unicast neighbor [in | out]<ip-address>
SyntaxDescription
<ip-address> Neighbor IP address, in the dotted decimalformat
in Displays all the routes received from thespecific ordinary neighbor
out Displays all the routes advertised to thespecific ordinary neighbor
Example 1. This example describes how to display the neighbor informa-tion.ZXR10#show bgp vpnv4 unicast neighbor 3.3.3.3BGP neighbor is 3.3.3.3, remote AS 100, internal linkBGP version 4, remote router ID 0.0.0.0BGP state = Connecthold time is 0 seconds, keepalive interval is 0 secondsAll received 0 messages0 updates, 0 errs0 opens, 0 errs0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,0 ipv6 refreshs,0 errs0 notifications, 0 other errs
After last established received 0 messages
Confidential and Proprietary Information of ZTE CORPORATION 73
ZXR10 8900 Series Command Reference (IP Routing Volume II)
0 updates, 0 errs0 opens, 0 errs0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 errs0 notifications, 0 other errsAll sent 0 messages0 updates, 0 opens, 0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 notificationsAfter last established sent 0 messages0 updates, 0 opens, 0 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs,
0 ipv6 refreshs,0 notifications
For address family: IPv4 UnicastAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295Minimum time between advertisement runs is 30 secondsMinimum time between origin runs is 15 seconds
For address family: IPv4 Multicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: VPNv4 UnicastAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
For address family: IPv6 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295
Connections established 0No tcp connection
For address family: IPv6 Unicast no activateAll received nlri 0, unnlri 0, 0 accepted prefixesAll sent nlri 0, unnlri 0, 0 advertised prefixesmaximum limit 4294967295Connections established 0No tcp connection
Information description: Most of the content can be under-stood literally.
Tip:
You may refers to the show ip bgp neighbor command.
2. This example describes how to display information aboutroutes received by the neighbor .ZXR10#show bgp vpnv4 unicast neighbor in 2.2.2.1Routes Learned From This neighbor:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Dest NextHop Metric LocPrf Intag Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 10 100?*>i 111.1.1.3/32 2.2.2.1 0 12345678 11 100
Description of the displayed areas is displayed as follows:
74 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discrminator attribute of Updatemessage
LocPref Local priority attribute designated by theimported policy
Intag Label
Path Adds origin attribute to As-path sequencein Update message
3. This example describes how to display information aboutroutes transmit to the neighbor.ZXR10#show bgp vpnv4 unicast neighbor out 2.2.2.1Routes Sent to This neighbor:
Dest NextHop Metric LocPrf tag Path111.1.1.2/32 2.2.2.1 0 12345678 32 100?111.1.1.3/32 2.2.2.1 0 12345678 33 100
Description of the displayed areas is displayed as follows:
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated by theimported policy
Tag Label
Path Adds origin attribute to As-path sequencein Update message
Tip:
The time 10:00:01 displayed by BGP commands generally refersto the time since the system is powered.
Confidential and Proprietary Information of ZTE CORPORATION 75
ZXR10 8900 Series Command Reference (IP Routing Volume II)
show bgp vpnv4 unicastsummary
Purpose Use this command to display the connection state of the BGPneighbor of vpnv4 unicast address family.
Command Modes All modes
Syntax show bgp vpnv4 unicast summary
Example This example describes how to display the connection state of allBGP neighbors of vpnv4 unicast address family.ZXR10#show bgp vpnv4 unicast summaryNeighbor Ver As MsgRcvd MsgSend Up/Down(s) State10.1.1.1 4 100 10 2 01:01:00 Connect10.1.1.2 4 200 200 199 01:00:02 Established
Description of the displayed areas is displayed as follows:
Field Description
Neighbor Neighbor IP address
Ver BGP neighbor version number, version 4 issupported at present
AS Neighbor AS number
MsgRcvd Total messages received by the neighbor, itis reset every time the neighbor enters theEstablished status
MsgSend Total messages sent by the neighbor, it isreset every time the neighbor enters theEstablished status
Up/Down Time when the neighbor is in the Establishedstatus or time since it leaves from theEstablished status. If the neighbor neverenters the Established status, this time isalways 0
State State in the BGP state-machine of theneighbor
show bgp vpnv4 unicast vrfPurpose Use this command to display the route information of VRF.
Command Modes All modes
Syntax show bgp vpnv4 unicast vrf <vrf-name>
Example This example describes how to display the route information of vrfvpn1.ZXR10#show bgp vpnv4 unicast vrf vpn1Status codes: *valid, >best, i-internal, s-staleOrigin codes: i - IGP, E -EGP, ? - incomplete
Network Next Hop Metric LocPrf Pat
76 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Route Distinguisher: 200:1 (default for vrf vpn1)*>i 15.1.1.0/24 11.11.11.11 100 i*> 23.1.1.0/24 23.1.1.1 ?
show ip as-path-access-listPurpose Use this command to display the contents of all or specified regular
expression access list(s).
Command Modes All modes
Syntax show ip as-path-access-list [<access-list-number>]
SyntaxDescription
<access-list-number> Number of the regular expression access list,range: 1~199
Instruction When this command is used without parameter, all the regularexpression access lists will be displayed. If there is parameterafter the command, the specified number of the regular expressionaccess list will be displayed.
Example This example describes how to display the contents of all or spec-ified regular expression access list(s).ZXR10#show ip as-path-access-list 1
Related Command ip as-path access-list
show ip bgpPurpose Use this command to display the BGP routing table.
Command Modes All modes
Syntax show ip bgp [<ip-address>[<net-mask>]]
SyntaxDescription
<ip-address> Network number, in the dotted decimal format
<net-mask> Network mask, in the dotted decimal format
Instructions � If there is no parameter after this command, all BGP legalroutes will be displayed.
� If the network parameter is entered then the network of therouting table which matches the parameter will be displayed.
� If the network number and network mask parameters are en-tered then all BGP routes which match the address/mask willbe displayed.
Example 1. This example describes how to display legal routes.ZXR10#show ip bgpRoutes of bgp:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Confidential and Proprietary Information of ZTE CORPORATION 77
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Dest NextHop Metric LocPrf RtPrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 150 200 ?*>i 111.1.1.3/32 2.2.2.1 0 12345678 150 200 ?
Description of the displayed areas is displayed as follows:
The description is for BGP routes:
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic Multi-exit discriminator attribute of Updatemessage
LocPref Local priority attribute designated by theimported policy
MsgSend Adds origin attribute to As-path sequencein Update message
The description is for other imported protocol routes:
Field Description
Dest Specific route
Nexthop Route next hop
Mertic Multi-exit discriminator attribute thatleading policy set
LocPref Local priority attribute designated by theimported policy
MsgSend Adds the imported As-path sequence to theOrigin attribute set by imported policy
2. This example describes how to display detailed route informa-tion.ZXR10#show ip bgp 1.1.1.1 255.255.255.25510:00:01 received from 100.1.1.1 (1.1.1.1)origin i,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)invalid due to import policy deniedLocalorigin ?,nexthop 10.1.1.1,10:04:00 advertised to 200.1.1.1 (2.2.2.2)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)10:04:01 advertised to 201.1.1.1 (2.2.2.1)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665
78 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)
Description of the displayed information are shown below.
It is shown in segment that which neighbors routes learn fromand which neighbors routes are advertised to. For BGP routes,all attributes in Update packets will be displayed. For routesimported by other routes, only origin and nexthop attributesare displayed, and the displayed content is the same as thethat of previous ordinary BGP routes.
Most of information can be understood literally.
Tip:
� (1.1.1.1), (2.2.2.2), (2.2.2.3) are route identifiers of theneighbor .
� as path [100 200]<10>{65543} 65542 65544 : <>represents that AS-PATH attribute is AS-SET type [] rep-resents that AS-PATH attribute is AS-SQUENCE type,represents that AS-PATH attribute is AS_CONFED_SE-QUENCE type {} represents that AS-PATH attribute isAS_CONFED_SET type.
� Unknown attribute type 11 flag ff len 20: flag field is dis-played in the HEX format, the other are usually displayedin the dotted decimal format.
show ip bgp community-listPurpose Use this command to display the corresponding BGP route of the
specified community attribute.
Command Modes All modes
Syntax show ip bgp community-list <list-number>
SyntaxDescription
<list-number> Identifies the number of the community list,range: 1~499
Example This example shows how to display the BGP route with the com-munity attribute 200:1.ZXR10(config)#ip community-list 499 permit 200:1ZXR10(config)#show ip bgp community-list 499
Confidential and Proprietary Information of ZTE CORPORATION 79
ZXR10 8900 Series Command Reference (IP Routing Volume II)
show ip bgp dampened-paths
Purpose Use this command to display the damped routes in BGP flappingroutes.
Command Modes All modes
Syntax show ip bgp dampened-paths
Instructions All the damped routes will be displayed by this command.
Example This example describes how to display the damped routes in theBGP flapping routes.ZXR10#show ip bgp dampened-paths
show ip bgp flap-statisticsPurpose Use this command to display information about the BGP flap sta-
tistics.
Command Modes All modes
Syntax show ip bgp flap-statistics [<ip-address><net-mask>][longer-prefix]
SyntaxDescription
<ip-address> IP address of the network showing dampeninginformation, in dotted decimal format
<net-mask> Network mask in the dotted decimal format
longer-prefix Keyword, fuzzy match
Instructions If there is no specification of parameter or keyword, informationabout all flap statistics will be displayed by the router. If onlythe first two parameters are enteredthen only the flap routes intotal accordance with the network decided by the two parameterswill be displayed. If not only the first two parameters but alsothe keyword longer-prefix are enteredthen there will be a fuzzymatch with the input mask and all the flap routes in the networkdecided by the two parameters will be displayed.
Example This example describes how to display information about the BGPflap statistics.ZXR10#show ip bgp flap-statistics
show ip bgp neighborPurpose Use this command to display the relevant information of the BGP
neighbor.
80 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Command Modes All modes
Syntax show ip bgp neighbor [[vrf <vrf-name>]<ip-address>]
show ip bgp neighbor [in | out]<ip-address>
show ip bgp neighbor [vrf-in | vrf-out]<ip-address><vrf-name>
show ip bgp neighbor [vpnv4-in | vpnv4-out]<ip-address>
SyntaxDescription
<ip-address> IP address of the neighbor, in the dotteddecimal format
<vrf-name> VRF name, 1~16 characters
in Shows all the routes received from thespecified neighbor
out Shows all the routes advertised to thespecified neighbor
vrf-in Shows all the routes received from thespecified neighbor in the VRF address mode
vrf-out Shows all the routes received from thespecified neighbor in the VRF address mode
vpnv4-in Shows all the vpnv4 routes received from thespecified neighbor
vpnv4-out Show all the vpnv4 routes advertised to thespecified neighbor
Example 1. This example describes how to display the neighbor informa-tion.ZXR10#show ip bgp neighbor vrf vpn1 100.1.1.1BGP neighbor is 100.1.1.1, vrf vpn1, remote AS 20, externel linkDescription: dffghgfghjgjAdministratively shut downBGP version 4, remote router ID 100.1.1.1BGP state = Established, up for 00:12:12Last read update 00:10:22, hold time is 90, keepalive interval
is 30 secondsConfigured hold time is 120, keepalive interval is 40 secondsNeighbor capabilities:Route refresh: advertised and receivedAddress family IPv4 Unicast: advertised and received
Address family VPNv4 Unicast: advertised and receivedAll received 100 messages11 updates, 0 errs1 opens, 0 errs88 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 errs0 notifications, 0 other errs
After last established received 100 messages11 updates, 0 errs1 opens, 0 errs88 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 errs0 notifications, 0 other errsAll sent 100 messages11 updates, 1 opens, 88 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 notifications
After last established sent 100 messages11 updates, 1 opens, 8 keepalives0 vpnv4 refreshs, 0 ipv4 refreshs, 0 notifications
For address family: IPv4 Unicast
Confidential and Proprietary Information of ZTE CORPORATION 81
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Route-Reflector ClientInbound soft reconfiguration allowedPrivate AS number not removed from updates to this neighborMed attribute sent to this neighborMy AS number is allowed for 2 number of timesNEXT_HOP is always this routerCommunity attribute sent to this neighborDefault information originateRoute map for incoming advertisements is aassaRoute map for outgoing advertisements is gghfggh
All received nlri 40, unnlri 20, 20 accepted prefixesAll sent nlri 40, unnlri 20, 20 advertised prefixes,maximum limit 1000Minimum time between advertisement runs is 600 secondsMinimum time between origin runs is 300 seconds
For address family: VPNv4 UnicastRoute-Reflector ClientPrivate AS number not removed from updates to this neighborMed attribute sent to this neighborMy AS number is allowed for 4 number of timesNEXT_HOP is always this routerCommunity attribute sent to this neighborRoute map for incoming advertisements is sdddgRoute map for outgoing advertisements is sdassd
All received nlri 13, unnlri 0, 13 accepted prefixesAll sent nlri 10, unnlri 9, 1 advertised prefixesmaximum limit 1223Connections established 1last error code is 4, last error subcode is 4Last reset 10:00:12, reset due to Peer timeoutLocal host: 100.1.1.2, Local port: 179Foreign host: 100.1.1.1, Foreign port: 1023
Tip:
Most of information can be understood literally, there are someinstructions as follows:
i. After last established: The displayed information will be re-set whenever the neighbor shifts into the Established sta-tus. If the neighbor has never entered the Established sta-tus, information will be displayed as if the neighbor were inthe Established status when it is created.
ii. Last reset 10:00:12, reset due to Peer timeout: indicatesthe reason of the neighbor’s last shift from the Establishedstatus.
2. This example describes how to display information aboutroutes received by the neighbor.ZXR10#show ip bgp neighbor in 2.2.2.1Routes Learned From This neighbor:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Dest NextHop Metric LocPrf RoutePrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 200 100?*>i 111.1.1.3/32 2.2.2.1 0 12345678 200 100?
Description of the displayed areas are shown below.
Field Description
Dest Specific route
Nexthop Next-hop attribute in the Update message
82 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Field Description
Mertic MED attribute in the Update message
LocPref Local priority attribute in the Updatemessage
RoutePref Local management distance of the route
Path Adds As-path sequence to the Originattribute in the Update message
3. This example describes how to display information aboutroutes sent by the neighbor.ZXR10#show ip bgp neighbor outRoutes Sent to This neighbor:
Dest NextHop Metric LocPrf RoutePrf Path111.1.1.2/32 2.2.2.1 0 12345678 200 100?111.1.1.3/32 2.2.2.1 0 12345678 200 100?
Description of the displayed areas are shown below.
Field Description
Dest Specific route
Nexthop Next-hop attribute in the Update message
Mertic MED attribute in the Update message
LocPref Local priority attribute in the Updatemessage
RoutePref Local management distance of the route
Path Adds the original As-path attributesequence of this route to the Originattribute of the Update message
Information description: Most of the contents can be under-stood literally.
Tip: ]
The time 10:00:01 displayed by BGP commands generallyrefers to the time since the system is powered.
show ip bgp peer-groupPurpose Use this command to display information about the BGP neighbor
peer-group.
Command Modes All modes
Confidential and Proprietary Information of ZTE CORPORATION 83
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Syntax show ip bgp peer-group [<peer-group-name>]
SyntaxDescription <peer-group-name> Peer group name
Instructions When there is no specification of a peer-group, information aboutall peer-groups will be shown.
Example This example describes how to display information about neighborpeer group.ZXR10#show ip bgp peer-groupBGP peer-group is www remote AS 100, internal linkMEMBERS:
4.4.4.4
For address family: IPv4 Unicastmaximum limit 4294967295Minimum time between advertisement runs is 30 secondsMinimum time between origin runs is 15 seconds
For address family: IPv4 Multicast no activatemaximum limit 4294967295
For address family: VPNv4 Unicast no activatemaximum limit 4294967295
For address family: IPv6 Unicast no activatemaximum limit 4294967295
Information description: Most of the content can be understoodliterally. You can also refer to the description of displayed infor-mation of the show ip bgp neighbor command.
show ip bgp protocolPurpose Use this command to display the configuration information of the
BGP protocol module.
Command Modes All modes
Syntax show ip bgp protocol
Example This example describes how to display the BGP instance configu-ration information.ZXR10#show ip bgp protocolBGP router ID is 1.2.3.4, Local as is 100Administratively shut downHold time is 30 seconds, KeepAlive time is 90 secondsDefault local preference is 100Default export metric is 200IGP synchronization is disabledDefault information advertise is enabledAlways compare med is enabledFast fallover is disabledClient-to-client reflection is disabledBGP cluster-id: 1.2.3.4Ipv4 unicast client-number: 10Vpnv4 unicast client-number: 2Ipv4 unicast is activatedRouter target if not filteredBGP confederation id: 10Route dampening enabled, route-map: ddDistance : external 20 internal 200
84 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
Descriptions of the displayed information is displayed as follows:
� The router ID is selected when the BGP is created and enabled.It is prior to select the Loopback address, and then select theminimum address.
� The remaining displayed information is related with the con-figuration commands. Some information is not displayed indefault configuration.
show ip bgp routePurpose Use this command to display entries in the BGP routing table.
Command Modes All modes
Syntax show ip bgp route [network <ip-address>[mask <net-mask>]]
show ip bgp route detail <ip-address><net-mask>
show ip bgp route community-list <list-number>
show ip bgp route regexp <LINE>
SyntaxDescription
network<ip-address>
Network number in the dotted decimal format
mask<net-mask> Network mask in the dotted decimal format
community-list<list-number>
Community-list number, range: 1~499
regexp <LINE> as-path regular expression
Instructions When this command is used without parameters, all BGP legalroutes will be displayed.
When this command is used with network parameter, the entrywhich matches the network in the routing table will be displayed.
When this command is used with network number and networkmask parameters, all BGP routes matching address/mask will bedisplayed.
The show ip bgp route detail command is used to display allroute information in detail.
The show ip bgp route community-list <list-number> com-mand is used to filter the route whose community attributematches the value of <list-number>.
The show ip bgp route regexp <LINE> command is used to filterthe route whose as-path attribute matches the regular expressionLINE.
Example 1. This example describes how to show BGP legal routes.ZXR10#show ip bgp routeRoutes of bgp:status codes: *valid, >best,i-internalOrigin codes: i-IGP, e-EGP, ?-incomplete
Confidential and Proprietary Information of ZTE CORPORATION 85
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Dest NextHop Metric LocPrf RtPrf Path*>i 111.1.1.2/32 2.2.2.1 0 12345678 150 200 ?*>i 111.1.1.3/32 2.2.2.1 0 12345678 150 200 ?
Description of the displayed areas is displayed as follows:
The description is for BGP routes:
Field Description
Dest Specific route
Nexthop Next hop attribute of Update message
Mertic MED attribute in the Update message
LocPref Local priority attribute in the Updatemessage
RoutePref Local management distance of the route
Path Adds as-path sequence to the Originattribute in the Update message
The description is for routes of the other imported protocol:
Field Description
Dest Specific route
Nexthop Next-hop of the route
Mertic MED attribute set by the imported policy
LocPref Local priority attribute set by the importedpolicy
RoutePref Local management distance of the route
Path Adds the imported as-path sequence to theOrigin attribute set by the imported policy
2. This example describes how to display the detailed routes.ZXR10#show ip bgp route detail10:00:01 received from 100.1.1.1 (1.1.1.1)origin i,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)invalid due to import policy deniedLocalorigin ?,nexthop 10.1.1.1,10:04:00 advertised to 200.1.1.1 (2.2.2.2)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)10:04:01 advertised to 201.1.1.1 (2.2.2.1)origin ?,nexthop 10.1.1.1,metric 100,localpref 200,atomic,
aggr 200 10.1.1.1,originator_id 123455,community 1123464 2355 35665
86 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
cluster_id 10.1.1.1 100.1.1.1unknown attribute type 11 flag ff len 20 type 12 flag fe len 20as path [100 200] <10> {65543} (65542 65544)
Description of the displayed information are shown below.
It is shown in segment that which neighbors routes learn fromand which neighbors routes are advertised to. For BGP routes,all attributes in Update packets will be displayed. For routesimported by other routes, only origin and nexthop attributesare displayed, and the displayed content is the same as thethat of previous ordinary BGP routes.
Most of information can be understood literally.
Tip:
� (1.1.1.1), (2.2.2.2), (2.2.2.3) are route identifiers of theneighbor .
� as path [100 200]<10>{65543} 65542 65544 : <>represents that AS-PATH attribute is AS-SET type [] rep-resents that AS-PATH attribute is AS-SQUENCE type,represents that AS-PATH attribute is AS_CONFED_SE-QUENCE type {} represents that AS-PATH attribute isAS_CONFED_SET type.
� Unknown attribute type 11 flag ff len 20: flag field is dis-played in the HEX format, the other are usually displayedin the dotted decimal format.
show ip bgp regexpPurpose Use this command to display the corresponding BGP route of the
as-path attribute.
Command Modes All modes
Syntax show ip bgp regexp <number>
SyntaxDescription
<number> as-path-number, range: 1~65535
Example This example describes how to display all the BGP routes contain-ing as path 200.ZXR10(config)#show ip bgp regexp 200
show ip bgp summaryPurpose Use this command to display the connection state of all BGP neigh-
bors.
Command Modes All modes
Confidential and Proprietary Information of ZTE CORPORATION 87
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Syntax show ip bgp summary
Example This example describes how to display the connection status of allBGP neighbors.ZXR10#show ip bgp summaryNeighbor Ver As MsgRcvd MsgSend Up/Down(s) State10.1.1.1 4 100 10 2 01:01:00 Connect10.1.1.2 4 200 200 199 01:00:02 Established
Description of the displayed areas is displayed as folloes:
Field Description
Neighbor Neighbor IP address
Ver BGP neighbor version number, version 4 issupported at present
AS Neighbor AS number
MsgRcvd Total messages received by the neighbor, itis reset whenever the neighbor enters theEstablished status
MsgSend Total messages sent by the neighbor, it isreset whenever the neighbor enters theEstablished status
Up/Down Time when the neighbor is in the Establishedstatus or time since it shifts from theEstablished status. If the neighbor neverenters the Established status, this time isalways 0
State Status in the BGP state-machine of theneighbor
show ip community-listPurpose Use this command to display the contents of all or specified com-
munity list(s).
Command Modes All modes
Syntax show ip community-list [<community-list-number>]
SyntaxDescription
<community-list-number>
Number of the community list, range: 1~99
Instruction � When this command is used without parameter, all the com-munity lists will be displayed.
� When the command is used with parameter, the specified num-ber of the community list will be displayed.
Example This example describes how to displ all the community lists.ZXR10#show ip community-list
Related Command ip community-list
88 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
show ip extcommunity-listPurpose Use this command to display the contents of all or specified ex-
tended community list(s).
Command Modes All modes
Syntax show ip community-list [<extcommunity-list-number>]
SyntaxDescription
<extcommunity-list-number>
Number of the extended community list,1~500
Instructions � When this command is used without parameter, all the ex-tended community lists will be displayed.
� When the command is used with parameter, the extended com-munity list of the specified number will be displayed.
Example This example describes how to display all the extended communitylists.ZXR10#show ip extcommunity -list
RelatedCommands
ip extcommunity-list
show ip prefix-listPurpose Use this command to display the content of all or specific prefix-
list.
Command Modes All modes
Syntax show ip prefix-list [summary][detail][<prefix-list-name>]
SyntaxDescription
<prefix-list-name> The name of the prefix-list, 1~16 characters
summary Displays statistics information
detail Displays detailed information
Instructions � When this command is used without parameter, all the prefixlists will be displayed.
� When the command is used with parameter, prefix-list with thespecified name will be displayed.
Example This example describes how to display all the content of the prefixlist.ZXR10#show ip prefix-list
Confidential and Proprietary Information of ZTE CORPORATION 89
ZXR10 8900 Series Command Reference (IP Routing Volume II)
RelatedCommands
ip prefix-list
synchronizationPurpose Use this command to synchronize BGP with IGP. Use the no form
of this command to enable BGP to advertise routes of a networkwithout the need to wait for IGP.
Command Modes Router configuration
Syntax synchronization
no synchronization
Defaults Synchronization is enabled by default.
Example This example describes how to disable the synchronization be-tween BGP and IGP.ZXR10(config)#router bgp 1ZXR10(config-router)#no synchronization
table-mapPurpose Use this command to set QoS parameter ip-precedence and qos-
group-id in route-map. Disable it with the no command.
Command Modes Router configuration, BGP VRF mode
Syntax table-map < map-tag >
no table-map
SyntaxDescription < map-tag > route-map name: 1~16 characters
Example This example describes how to set QoS parameter ip-precedenceand qos-group-id in route-map.ZXR10(config)#route-map abcZXR10(config-route-map)#set ip precedence 6ZXR10(config-route-map)#set ip qos-group 2ZXR10(config)#router bgp 1ZXR10(config-router)#table-map abc
timers bgpPurpose Use this command to adjust the BGP network timer. Restore the
default value with the no form of this command.
Command Modes Router configuration
Syntax timers bgp <keepalive><holdtime>
90 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 2 BGP Protocol
no timers bgp
SyntaxDescription
<keepalive> Time of keepalive timer in seconds, range:0~65535, default: 30 seconds
<holdtime> Time of holdtime timer in seconds, range: 0or 3~65535, default: 90 seconds
Example This example describes how to set the holdtime timer, thekeepalive timer of BGP network timers respectively as 180 sec-onds, 60 seconds.ZXR10(config)#router bgp 1ZXR10(config-router)#timers bgp 60 180
Confidential and Proprietary Information of ZTE CORPORATION 91
ZXR10 8900 Series Command Reference (IP Routing Volume II)
This page is intentionally blank.
92 Confidential and Proprietary Information of ZTE CORPORATION
C h a p t e r 3
Route Mapping andRouting Policy
Table of Contentsip prefix-list ......................................................................94ip prefix-list description......................................................95match as-path ..................................................................95match community-list ........................................................96match extcommunity-list ....................................................96match ip address...............................................................96match ip next-hop .............................................................98match ipv6 address ...........................................................98match ipv6 next-hop..........................................................99match metric ....................................................................99match route-type ............................................................ 100match tag....................................................................... 100route-map ...................................................................... 101set as-path..................................................................... 101set community ................................................................ 102set dampening ................................................................ 102set default interface......................................................... 103set interface ................................................................... 104set ip default next-hop ..................................................... 104set extcommunity rt ........................................................ 105set extcommunity soo ...................................................... 106set ip next-hop................................................................ 106set ip precedence ............................................................ 107set ip qos-group.............................................................. 107set ip tos........................................................................ 108set ipv6 next-hop ............................................................ 108set level ......................................................................... 109set local-preference ......................................................... 109set metric....................................................................... 110set metric-type ............................................................... 110set mpls-label ................................................................. 111set next-hop ................................................................... 111set origin........................................................................ 112set tag ........................................................................... 112show ip prefix-list ............................................................ 113show route-map.............................................................. 113
Confidential and Proprietary Information of ZTE CORPORATION 93
ZXR10 8900 Series Command Reference (IP Routing Volume II)
ip prefix-listPurpose Use this command to configure an ip prefix list. It is mainly used
to filter advertisements of the routing protocol . Delete the settingwith the no form of this command.
Command Modes Global configuration
Syntax ip prefix-list <prefix-list-name>[seq <seq-number>]{permit |deny}<network-num><len>[ge <value>| le <value>]
no ip prefix-list <prefix-list-name>[[seq <seq-number>]{permit | deny}<network-num><len>[ge <value>| le <value>]]
SyntaxDescription
<prefix-list-name> Prefix-list name, 1~16 characters
seq <seq-number> Value of entry index of the prefix list, range:0~4294967294, the smaller one is prior tobe matched.
permit If an IP address to be filtered is within theprefix range, it is permitted and the followingmatch will stop; otherwise, continue thematch of the following entry
deny If an IP address to be filtered is within theprefix range, it is denied and the followingmatch will stop; otherwise, continue thematch of the following entry
<network-num> IP address prefix range
<len> Length of IP address mask , 0~32 characters
ge <value> Specifies the length of prefix still neededmatching after the match range of the IPaddress prefix larger than this value, range:0~32
le <value> Specifies the length of prefix still neededmatching after the match range of the IPaddress prefix smaller than this value, range:0~32
Example This example describes how to configure an IP address prefix listwith the name as test, IP address as 122.1.0.0, and prefix lengthas 16.ZXR10(config)#ip prefix-list test per 122.1.0.0 16ZXR10(config)#
94 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
RelatedCommands
show ip prefix-list
ip prefix-list descriptionPurpose Use this command to configure the description of an IP address
prefix list. Delete the description with the no form of this com-mand.
Command Modes Global configuration
Syntax ip prefix-list <prefix-list-name> description <LINE>
no ip prefix-list <prefix-list-name> description <LINE>
SyntaxDescription
<LINE> Prefix-list description, at most 80 characters
<prefix-list-name> Prefix-list name, 1~16 characters
Example This example describes how to configure the description of the IPaddress prefix list named test as zxr10 test.ZXR10(config)#ip prefix-list test description zxr10 testZXR10(config)#
Related Command show ip prefix-list
match as-pathPurpose Use this command to match the path access list of a BGP au-
tonomous system. Delete the record of a path access list withthe no form of this command.
Command Modes Router map configuration
Syntax match as-path <path-list-number>[<path-list-number>]
no match as-path <path-list-number>[<path-list-number>]
SyntaxDescription
<path-list-number> AS path access list number, range: 1~199
Defaults There is no definition of the match of BGP AS path access list bydefault.
Instructions One route map is divided into several parts. The routes that doesnot match at least onematch option (this option is related with theroute-map command) will be ignored. That is to say, routes arenot advertised to the output route map, and input route map doesnot accept routes. If only some data is expected to be modified,the second route map area must be configured with explicit match.
Example This example describes how to make autonomous system pathmatched with BGP AS path access list 20.ZXR10(config)#route-map nameZXR10(config-route-map)#match as-path 20
Confidential and Proprietary Information of ZTE CORPORATION 95
ZXR10 8900 Series Command Reference (IP Routing Volume II)
RelatedCommands
route-map
match community-listPurpose Use this command to configure BGP match community list. Delete
the community list record with the no form of this command.
Command Modes Router map configuration
Syntax match community-list <community-list-number>[<community-list-number>]
no match community-list <community-list-number>[<community-list-number>]
SyntaxDescription
<community-list-number>
Community list number, range: 1~499 (forrouter) , 1~99 (for switch)
Defaults There is no definition of the BGP match community list by default.
RelatedCommands
route-map
match extcommunity-listPurpose Use this command to configure the match of BGP extended com-
munity list. Delete the community list record with the no form ofthis command.
Command Modes Router map configuration
Syntax match extcommunity-list <extcommunity-list-number>[<extcommunity-list-number>]
no match extcommunity-list <extcommunity-list-number>[<extcommunity-list-number>]
SyntaxDescription
<extcommunity-list-number>
Extended community number, range: 1~500
Defaults There is no definition of the match of BGP extended communitylist.
RelatedCommands
route-map
match ip addressPurpose Use this command to redistribute any route which contains desti-
nation network addresses granted by the standard access list or
96 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
perform policy routing for packets. Cancel the settings with theno form of this command.
Command Modes Router map configuration
Syntax match ip address {<access-list-number>[<access-list-number>]| prefix-list <prefix-list-name>[<prefix-list-name>]}
no match ip address {<access-list-number>[<access-list-number>]| prefix-list <prefix-list-name>[<prefix-list-name>]}
SyntaxDescription
<access-list-number> Access list number, range: 1~199 or1000~1999
<prefix-list-name> Prefix-list name, 1~16 characters (for router)
Defaults The route is distributed freely, and it is not required to match theaddress specified by the access list by default.
Instructions � Redistributing route
Use the route-map command in global configuration modeand the match and set commands in route map configurationmode to define the conditions for redistributing routes from onerouting protocol to another. Each route-map command has aseries of associated match and set commands. The matchcommand specifies the match indices, that is, the condition toallow the redistribution. The set command specifies the pre-served operation, that is, it conducts the specific redistributionwhen the match indices specified by the match command aremet.
� Thematch command has many types that can be presented inany order, but all the “match” commands should be permittedso that routes can be redistributed by the preserved operationset by the set command. The no form of thematch commandcancels the specified match index.
� When the route is delivered through a route map which canbe divided into several parts. Compared with the match itemrelated with the route-map command, the route without anymatched item will be discarded. That is to say, the route can-not be advertised to the output route map, and it cannot bereceived by the input route map. If only some data are to bemodified, the second route map part with detailed match itemmust be configured.
� Policy route
Use the route-map command in global configuration modeand the match and set commands to make packets corre-sponding to this match condition forwarded along the specifiedpath.
Example In this example, the routes whose address is specified by the ac-cess list 5 or 80 satisfy the match condition.ZXR10(config)#route-map nameZXR10(config-route-map)#match ip address 5 80
Confidential and Proprietary Information of ZTE CORPORATION 97
ZXR10 8900 Series Command Reference (IP Routing Volume II)
RelatedCommands
route-map
match ip next-hopPurpose Use this command to redistribute the routes passed by one of the
specified standard access list and which have the router addressof next-hop . Delete the match item with the no form of thiscommand.
Command Modes Router map configuration
Syntax match ip next-hop <access-list-number>[<access-list-number>]
no match ip next-hop <access-list-number>[<access-list-number>]
SyntaxDescription
<access-list-number> Standard access list number, range: 1~199and 1000~1999
Defaults The route is allocated freely and it is not required to match thenext-hop address by default.
Example This example describes how to redistribute the routes passed byaccess list 5 or 80 and which have next-hop router address.ZXR10(config)#route-map nameZXR10(config-route-map)#match ip next-hop 5 80
RelatedCommands
route-map
match ipv6 addressPurpose Use this command to redistribute the routes that include the des-
tination IPv6 network address permitted by standard IPv6 accesslist, or conduct IPv6 policy routing. Delete the settings with theno form of this command.
Command Modes Router map configuration
Syntax match ipv6 address {<access-list-number>[<access-list-number>]| prefix-list <prefix-list-name>[<prefix-list-name>]}
no match ipv6 address {<access-list-number>[<access-list-number>]| prefix-list <prefix-list-name>[<prefix-list-name>]}
SyntaxDescription
<access-list-number> Standard access list number, range: 2000~2999
<prefix-list-name> Prefix list name, 1~16 characters
Defaults The route is allocated freely and it is not required to match thenext-hop address by default.
98 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
Instructions This command is the same as the match ip address commandexcept the specified ACL list number is outside the IPv6 numberrange .
Example This example describes how to redistribute the routes passedby access list 2200 or 2400 and which have next-hop routeraddresses.ZXR10(config)#route-map nameZXR10(config-route-map)#match ipv6 address 2200 2400
RelatedCommands
route-map
match ipv6 next-hopPurpose Use this command to redistribute the routes passed by one of the
specified standard access list and have next-hop router address.Delete the match item with the no form of this command.
Command Modes Router map configuration
Syntax match ipv6 next-hop <access-list-number>[<access-list-number>]
no match ipv6 next-hop [<access-list-number>[<access-list-number>]]
SyntaxDescription
<access-list-number> Standard access list number in the range of2000~2999
Defaults The route is allocated freely and it is not required to match thenext-hop Ipv6 address by default.
Example This example describes how to redistribute the routes passed byaccess list 2200 or 2400 and have the next-hop router Ipv6 ad-dress.ZXR10(config)#route-map nameZXR10(config-route-map)#match ipv6 next-hop 2200 2400
RelatedCommands
route-map
match metricPurpose Use this command to redistribute the route with the metric speci-
fied. Delete the match item with the no form of this command.
Command Modes Router map configuration
Syntax match metric <metric-value>[<metric-value>]
no match metric <metric-value>[<metric-value>]
SyntaxDescription
<metric-value> Route metric, range: 0~4294967295
Confidential and Proprietary Information of ZTE CORPORATION 99
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Defaults The filtering is conducted not according to the metric value.
Example This example describes how to redistribute the route with metric5.ZXR10(config)#route-map nameZXR10(config-route-map)#match metric 5
RelatedCommands
route-map
match route-typePurpose Use this command to configure the matching route types. Delete
the match item with the no form of this command.
Command Modes Router map configuration
Syntax match route-type {<route-type>| external [<external-type>]}[{<route-type>| external [<external-type>]}]
no match route-type {<route-type>| external [<external-type>]}[{<route-type>| external [<external-type>]}]
SyntaxDescription <route-type> Route type, local, internal, level-1 or level-2
external [<external-type>]
OSPF external route type, type-1 or type-2
Defaults There is no definition of the matching route type by default.
RelatedCommands
route-map
match tagPurpose Use this command to redistribute the routes that match the spec-
ified tag in the routing table. Delete the tag match item with theno command.
Command Modes Router map configuration
Syntax match tag <tag-value>[<tag-value>]
no match tag <tag-value>[<tag-value>]
SyntaxDescription
<tag-value> Route tag value in the range of 0~4294967295
Defaults There is no definition of matching tag value by default.
Example This example describes how to redistribute the routes with tag 5in the routing table.ZXR10(config)#route-map nameZXR10(config-route-map)#match tag 5
100 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
RelatedCommands
route-map
route-mapPurpose Use this command to define the conditions for redistributing routes
from one routing protocol to another. Delete the condition for re-distribution with the no form of this command.
Command Modes Global configuration
Syntax route-map <map-tag>[permit | deny][<sequence-number>]
no route-map <map-tag>[<sequence-number>]
SyntaxDescription <map-tag> Name of the route map, a string with 1~16
characters
permit Permits redistribution or policy routing tag ifthe route map meets the match condition
deny Denies redistribution or policy routing tag ifthe route map meets the match condition
<sequence-number> Sequence number in the range of 0~65535
Defaults There is no definition of route map by default.
Example This example describes how to redistribute the RIP route with met-ric 1 to OSPF and set the metric after redistribution as 5.ZXR10(config)#router ospf 1ZXR10(config-router)#redistribute rip route-map rip-to-ospfZXR10(config-router)#exitZXR10(config)#route-map rip-to-ospf permit 10ZXR10(config-route-map)#match metric 1ZXR10(config-route-map)#set metric 5
RelatedCommands
show route-map
set as-pathPurpose Use this command to modify the path of the BGP autonomous sys-
tem. Cancel the modification with the no form of this command.
Command Modes Router map configuration
Syntax set as-path prepend <as-path-number>[<as-path-number>]
no set as-path <as-path-number>[<as-path-number>]
SyntaxDescription
<as-path-number> Attaches the value to the autonomoussystem path matching the route map, range:1~65535
Defaults Autonomous system path is not modified by default.
Confidential and Proprietary Information of ZTE CORPORATION 101
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Example This example describes how to redistribute OSPF routes with met-ric 1 to BGP, and attach autonomous system paths 100 200 to theredistributed route.ZXR10(config)#router bgp 100ZXR10(config-router)#redistribute ospf_int route-map set-aspathZXR10(config)#route-map set-aspath permit 10ZXR10(config-route-map)#match metric 1ZXR10(config-route-map)#set as-path prepend 100 200
RelatedCommands
route-map
set communityPurpose Use this command to set the community attribute of a BGP route.
Delete the attribute with the no form of this command.
Command Modes Router map configuration
Syntax set community {none |[additive]{no-advertise | no-export |no-export-subconfed |<aa:nn>|<nn>}[{no-advertise | no-export | no-export-subconfed |<aa:nn>|<nn>}]}
no set community [{no-advertise | no-export | no-export-subconfed |<aa:nn>|<nn>}]
SyntaxDescription none No community (for router)
additive Additional community (for router)
no-advertise Special community value 0xffffff02
no-export Special community value 0xffffff01
no-export-subconfed
Special community value 0xffffff03
<aa:nn> Community value in the aa:nn format
<nn> Community value in common format
Defaults There is no community attribute of a BGP route by default.
Example This example describes how to set the community attribute of theroute passing the AS path access list 100 as no-export.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#match as-path 100ZXR10(config-route-map)#set community no-export
Related Command route-map
set dampeningPurpose Use this command to configure the BGP route dampening factors.
Disable this feature with the no form of this command.
102 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
Command Modes Router map configuration
Syntax set dampening <half-life><reuse><suppress><max-suppress-time>
no set dampening
SyntaxDescription
<half-life> Changes the half life of the route dampeningfactor, unit: minute, range: 1~45
<reuse> Changes the reuse value of the routedampening factor, range: 1~20000
<suppress> Changes the route suppression value of theroute dampening factor, range: 1~20000
<max-suppress-time>
Changes the maximum suppression time ofthe route dampening factor. When the routesuppression time reaches this value, thepenalty will never be exceeded. unit: minute,range: 1~255
Defaults The BGP route dampening factors are not configured by default.
Example This example describes how to configure the BGP route dampeningfactors.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set dampening 20 1500 10000 120
RelatedCommands
route-map
set default interfacePurpose If some packet can be routed by policy because it matches an item
of the route map, but there is no definite route to the destination,use this command to route the packet to the specified interface.
Command Modes Router map configuration
Syntax set default interface <interface-name>[<interface-name>]
no set default interface <interface-name>[<interface-name>]
SyntaxDescription
<interface-name> Interface name
Defaults There is no specification of default interface for packets’ policyroutes.
Instructions � This command is applied to routers.
� If the first interface specified by the set default interfacecommand is enabled, then this interface will be adopted. Ifmultiple interfaces are input, then they will be used in turn.
Example This example describes how to make packets without a definiteroute to the destination, with metric 5, output to the interfacefei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip policy route-map aaa
Confidential and Proprietary Information of ZTE CORPORATION 103
ZXR10 8900 Series Command Reference (IP Routing Volume II)
ZXR10(config-if)#exitZXR10(config)#route-map aaaZXR10(config-route-map)#match metric 5ZXR10(config-route-map)#set default interface fei_1/1
RelatedCommands
route-map
set interfacePurpose If some packet matches an item of the route map for policy rout-
ing, use this command to make the packet’s route to the specifiedinterface.
Command Modes Router map configuration
Syntax set interface <interface-name>[<interface-name>]
no set interface <interface-name>[<interface-name>]
SyntaxDescription
<interface-name> Interface name
Defaults There is no specification of the interface for a packet’s policy rout-ing.
Instructions � It is applicable to routers.
� If the first interface specified by the set interface commandis enabled, it will be adopted. If multiple next-hop addressesare input, they will be used in turn.
Example This example describes how to make the packet with metric 5 out-put to the interface fei_1/1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip policy route-map aaaZXR10(config-if)#exitZXR10(config)#route-map aaaZXR10(config-route-map)#match metric 5ZXR10(config-route-map)#set interface fei_1/1
RelatedCommands
route-map
set ip default next-hopPurpose If the packet matching an item of the route map for policy routing
does not have a definite route to the destination, use this com-mand to route a packet to the specified next hop.
Command Modes Router map configuration
Syntax set ip default next-hop <ip-address>[<ip-address>]
no set ip default next-hop <ip-address>[<ip-address>]
SyntaxDescription
<ip-address> IP address of the next-hop in the dotteddecimal format
104 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
Defaults The default next-hop of the packet’s policy route is not specified.
Instructions � It is applicable to routers.
� If multiple next-hop addresses are input, they will be used inturn.
Example In this example, if there in no definite route to the destinationwhen packets from 10.1.1.1 arrives at the interface fei_1/2, pack-ets will be transmit to the router 11.1.1.1.ZXR10(config)#access-list 1 permit ip 10.1.1.1 0.0.0.0ZXR10(config)#interface fei_1/2ZXR10(config-if)#ip policy route-map aaaZXR10(config-if)#exitZXR10(config)#route-map aaaZXR10(config-route-map)#match ip address 1ZXR10(config-route-map)#set ip default next-hop 11.1.1.1
RelatedCommands
route-map
set extcommunity rtPurpose Use this command to configure the extended community attribute
rt of BGP route. Delete the attribute with no form of this com-mand.
Command Modes Router map configuration
Syntax set extcommunity {rt <extended-extcommunity-value>[additive]}
no set extcommunity {rt <extended-extcommunity-value>[additive]}
SyntaxDescription
rt Extended community attribute: route target
additive Additional extended community value
<extended-extcommunity-value>
Extended community value in aa:nn format(<1~65535>:<0~65535>) or in ip-ad-dress:nn format (<A.B.C.D>:<0~65535>)
Defaults There is no extended community attribute of BGP route by default.
Example This example shows how to set the BGP extended community at-tribute rt as 1:1.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#match as-path 100ZXR10(config-route-map)#set extcommunity rt 1:1
Confidential and Proprietary Information of ZTE CORPORATION 105
ZXR10 8900 Series Command Reference (IP Routing Volume II)
RelatedCommands
route-map
set extcommunity sooPurpose Use this command to configure the extended community attribute
soo of BGP route. Delete the attribute with no form of this com-mand.
Command Modes Router map configuration
Syntax set extcommunity {soo <extended-extcommunity-value>}
no set extcommunity {soo <extended-extcommunity-value>}
SyntaxDescription soo Extended community attribute: self-of-origin
<extended-extcommunity-value>
extended community value in aa:nn format(<1~65535>:<0~65535>) or in ip-ad-dress:nn format (<A.B.C.D>:<0~65535>)
Defaults There is no extended community attribute of BGP route by default.
Example This example shows how to configure the extended communityattribute soo of BGP route as 1.1.1.120.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#match as-path 100ZXR10(config-route-map)#set extcommunity soo 1.1.1.1:20
RelatedCommands
route-map
set ip next-hopPurpose Use this command to route a packet to the specified next hop when
it matches an item of the route map for policy routing .
Command Modes Router map configuration
Syntax set ip next-hop <ip-address>[<ip-address>]
no set ip next-hop <ip-address>[<ip-address>]
SyntaxDescription
<ip-address> IP address of the next-hop in the dotteddecimal format
Defaults The next hop for policy routing is not specified by default.
Instructions If multiple next-hop addresses are input, they will be used in turn.
Example This example describes how to make the packet with metric 5 out-put to 168.1.12.1.ZXR10(config)#interface fei_1/1ZXR10(config-if)#ip policy route-map aaaZXR10(config-if)#exitZXR10(config)#route-map aaa
106 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
ZXR10(config-route-map)#match ip address 5ZXR10(config-route-map)#set ip next-hop 168.1.12.1
RelatedCommands
route-map
set ip precedencePurpose Use this command to configure the precedence of IP header.
Command Modes Router map configuration
Syntax set ip precedence <value>
no set ip precedence
SyntaxDescription
<value> IP header precedence in the range of 0~7
Defaults There is no precedence value by default.
Instructions � It is applicable to routers.
� The name and number of precedence in IP header are listed asfollows:
routine 0; priority 1; immediate 2; flash 3;
flash-override 4; critical 5; internet 6; network 7
Example This example describes how to configure the IP header precedenceas 5.ZXR10(config)#route-map aaaZXR10(config-route-map)#set ip precedence critical
RelatedCommands
route-map
set ip qos-groupPurpose Use this command to set ip packet QoS group number.
Command Modes Route-map configuration
Syntax set ip qos-group <value>
no set ip qos-group
SyntaxDescription <map-tag> route-map name: 1~16 characters
Defaults QoS group number is not specified.
Instructions This command is applied for routers.
Example This example describes how to set ip packet QoS group number to99.ZXR10(config)#route-map testZXR10(config-route-map)#set ip qos-group 99
Confidential and Proprietary Information of ZTE CORPORATION 107
ZXR10 8900 Series Command Reference (IP Routing Volume II)
RelatedCommands
route-map
set ip tosPurpose Use this command to configure the type of service (TOS) value of
IP header.
Command Modes Router map configuration
Syntax set ip tos <tos-value>
no set ip tos
SyntaxDescription
<tos-value> TOS value in the range of 0~15
Defaults There is no TOS value set for IP header by default.
Instructions � It is applicable to routers.
� The name and number of some special TOS fields in IP headerare listed as follows:
normal 0; min-monetary-cost 1; max-reliability 2;
max-throughput 4; min-delay 8;
Example This example describes how to configure the IP header TOS valueas 5.ZXR10(config)#route-map aaaZXR10(config-route-map)#set ip tos 5
RelatedCommands
route-map
set ipv6 next-hopPurpose f some packet matching a match item of the route map can be
used for policy routing, use this command to route the packet tothe specified IPv6 next hop .
Command Modes Router map configuration
Syntax set ipv6 next-hop <ipv6-address>[<ipv6-address>]
no set ipv6 next-hop <ipv6-address>[<ipv6-address>]
SyntaxDescription
<ipv6-address> Ipv6 address of the next hop
Defaults There is no specification of IPv6 address of next-hop by default.
Instructions � It is applicable to routers.
� If multiple next hop IPv6 addresses are input, they will be usedin turn.
108 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
Example This example describes how to make packets with metric 6 outputto 4:2::2:3.ZXR10(config)#interface fei_2/1ZXR10(config-if)#ip policy route-map bbbZXR10(config-if)#exitZXR10(config)#route-map bbbZXR10(config-route-map)#match metric 6ZXR10(config-route-map)#set ipv6 next-hop 4:2::2:3
RelatedCommands
route-map
set levelPurpose Use this command to set the range of redistribution of routing pro-
tocol IS-IS. Cancel the settings with the no form of this command.
Command Modes Router map configuration
Syntax set level {level-1 | level-2 | level-1-2}
no set level
SyntaxDescription
level-1 Imports routes to the area of level 1
level-2 Imports routes to the area of level 2
level-1–2 Imports routes to areas of level 1 and level 2
Defaults There is no specification of the redistribution range of the routingprotocol IS-IS by default.
Example This example describes how to configure the redistribution rangeof routing protocol as level-2.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set level level-2
RelatedCommands
route-map
set local-preferencePurpose Use this command to specify the priority value for autonomous
system path. Restore the default value with the no form of thiscommand.
Command Modes Router map configuration
Syntax set local-preference <value>
no set local-preference
SyntaxDescription
<value> Priority value, range: 0~4294967295,default: 100
Confidential and Proprietary Information of ZTE CORPORATION 109
ZXR10 8900 Series Command Reference (IP Routing Volume II)
Defaults Priority value is not configured for autonomous system path bydefault.
Example This example describes how to configure the priority of au-tonomous system path as 100.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set local-preference 100
RelatedCommands
route-map
set metricPurpose Use this command to configure the metric value of the routing
protocol. Restore default with the no form of this command.
Command Modes Router map configuration
Syntax set metric [+|-]<metric-value>
no set metric
SyntaxDescription + Plus
-- Minus
<metric-value> Metric value in the range of 0~4294967295
Defaults The metric value is acquired dynamically by default.
Example This example describes how to add 100 to the metric value of therouting protocol.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set metric + 100
RelatedCommands
route-map
set metric-typePurpose Use this command to configure the metric type of the routing pro-
tocol. Cancel the settings with the no form of this command.
Command Modes Router map configuration
Syntax set metric-type {internal | external | type-1 | type-2}
no set metric-type
SyntaxDescription
internal IS-IS internal metric
external IS-IS external metric
type-1 OSPF external metric of type 1
type-2 OSPF external metric of type 2
110 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
Defaults There is no configuration of metric type of the routing protocol bydefault.
Example This example describes how to configure the metric type of therouting protocol as type 1.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set metric-type type-1
RelatedCommands
route-map
set mpls-labelPurpose Use this command to set the MPLS label of routing protocol. Cancel
the settings with the no form of this command.
Command Modes Router map configuration
Syntax set mpls-label
no set mpls-label
Defaults There is no configuration of metric type of routing protocol by de-fault
Example This example describes how to configure the MPLS label of routingprotocol.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set mpls-label
Related Command route-map
set next-hopPurpose Use this command to specify the next-hop address. Cancel the
settings with the no form of this command.
Command Modes Router map configuration
Syntax set next-hop <ip-address>
no set next-hop <ip-address>[<ip-address>]
SyntaxDescription
<ip-address> Next-hop IP address in the dotted decimalformat
Defaults The next-hop address is not configured by default.
Example This example describes how to configure the next-hop address as168.1.1.1.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set next-hop 168.1.1.1
Related Command route-map
Confidential and Proprietary Information of ZTE CORPORATION 111
ZXR10 8900 Series Command Reference (IP Routing Volume II)
set originPurpose Use this command to set the BGP origin code. Cancel the settings
with the no form of this command.
Command Modes Router map configuration
Syntax set origin {igp | egp | incomplete}
no set origin
SyntaxDescription
igp Local Interior Gateway Protocol (IGP) system
egp Remote Exterior Gateway Protocol (EGP)system
incomplete Unknown heritage
Defaults BGP origin code is not configured by default.
Example This example describes how to configure the BGP origin code aslocal IGP.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set origin igp
RelatedCommands
route-map
set tagPurpose Use this command to set a tag value of the destination routing
protocol. Cancel the settings with the no form of this command.
Command Modes Router map configuration
Syntax set tag <tag-value>
no set tag
SyntaxDescription
<tag-value> Tag value in the range of 0~4294967295
Defaults If not specified, the default action is to forward the tag in thesource routing protocol onto the new destination protocol.
Example This example describes how to configure the tag value of the des-tination routing protocol as 100.ZXR10(config)#route-map aaa permit 10ZXR10(config-route-map)#set tag 1000
112 Confidential and Proprietary Information of ZTE CORPORATION
Chapter 3 Route Mapping and Routing Policy
RelatedCommands
route-map
show ip prefix-listPurpose Use this command to show information about the configured IP
address prefix list.
Command Modes All modes
Syntax show ip prefix-list [detail][summary][<prefix-list-name>]
SyntaxDescription
detail Shows detail information about an IP addressprefix list
summary Shows statistics information about an IPaddress prefix list
<prefix-list-name> Shows information about the IP address prefixlist specified
Example This example describes how to show information about the cur-rently configured IP address prefix list.ZXR10(config)#show ip prefix-listPrefix-list with the last deletion/insertion: testip prefix-list test 1 entriesDescription: this is a testeq 5 permit 122.1.0.0/16ZXR10(config)#
RelatedCommands
ip prefix-list
show route-mapPurpose Use this command to show the route map configured.
Command Modes All modes
Syntax show route-map [<map-tag>]
SyntaxDescription <map-tag> Name of the specified route map, a string
with 1~16 characters
RelatedCommands
route-map
Confidential and Proprietary Information of ZTE CORPORATION 113