Page 2
ZTE CORPORATION is prohibited. Additionally, the contents of this document are protected by contractual confidentiality obligations. All company, brand and product names are trade or service marks, or registered trade or service marks, of ZTE CORPORATION or of their respective owners.
About This Manual Purpose This manual is the ZXR10 5900E Series (V3.00.11) Easy-Maintenance MPLS Routing Switch Configuration Guide (IPv4 Routing), which is applicable to the ZXR10 5900E (V3.00.11) series switches. Intended Audience This manual is intended for: Network planning engineers...
Page 6
Caution: indicates a potentially hazardous situation. Failure to comply can result in moderate injury, equipment damage, or interruption of minor services. Note: provides additional information about a certain topic. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) 1.2 Configuring a Static Route Next hop addresses must be specified for all routing items. When a packet is sent, the system queries the matched route in the routing table according to the destination address.
ZXR10 5900E Series Configuration Guide (IPv4 Routing) 255.255.255.255/32 255.255.255.255 NULL Descriptions of command output are shown below. Show Command Outout Description Dest Destination IP address Gateway Interface Outgoing interface Owner Route type Route priority Metric Route metric 1.4 Static Route Configuration Examples 1.4.1 Basic Static Route Configuration Example...
Page 13
Use show command to view on S1: S1(config)#show ip protocol routing network 140.1.1.0 Protocol routes: status codes: *valid, >best, i-internal, s-stale Dest NextHop RoutePrf RouteMetric Protocol SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) *> 140.1.1.0/24 10.6.1.18 static 140.1.1.0/24 10.6.1.1 static 1.4.2 Static Route Summary Configuration Example Configuration Description A summary static route is a special kind of static routes, which can summarize two or more special route expressions into one expression. In this way, entries of routing table is reduced but all of original links is reserved.
0.0.0.0. Configuration Process Configuration on S1: S1(config)#ip route 0.0.0.0 0.0.0.0 10.6.1.18 Configuration Check Use show to view S1 routing table. S1#show ip protocol routing Protocol routes: status codes: *valid, >best, i-internal, s-stale SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 16
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Dest NextHop RoutePrf RouteMetric Protocol *> 0.0.0.0/0 10.6.1.18 static Here, if the next hop is configured as null interface, the route is black hole route. Configuration on S1: S1(config)#ip route 0.0.0.0 0.0.0.0 null1...
Page 17
Default Administrative Distance (AD) value of RIP is 120. As for AD, the lower the value, the higher the reliability of routing source. Compared to other routing protocols, RIP is not quite reliable. RIP Timers SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 18
ZXR10 5900E Series Configuration Guide (IPv4 Routing) RIP provides the following four types of timers: Update timer à Switch running RIP transmits route update message at a certain interval (30s by default), which reflects all the routing information of the switch. This process is called routing information advertisement.
This adjusts RIP network ZXR10(config-rip)# timer. ddown>< flush> output-delay < packets>< delay> This sets the delay time for ZXR10(config-rip)# sending RIP update packets. Descriptions of the parameters used by step 2 are shown below. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 20
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Parameter Description <update> The interval for sending update, the unit is second, the range is 1-65535, and the default value is 30 seconds. <invalid> Period before route invalidity in seconds, 1-65535. This value shall be at least 3 times of update, 180 seconds by default.
Page 21
This enters RIP configuration router rip ZXR10(config)# mode. interface <interface-name> This enters interface ZXR10(config)# configuration mode. This specifies the interface to ip rip authentication mode text ZXR10(config-if)# authenticate RIP packets by plain text mode. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 22
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function ip rip authentication key <key> This sets the key for interface ZXR10(config-if)# plain text authentication. The length of key is 1-16 characters. To configure RIP packet MD5 authentication mode, perform the following steps.
Page 23
The name of the route map for redistribution, 1-31 characters. Configuring RIP Version ZXR10 5900E supports RIPv1 and RIPv2, and it uses RIPv2 by default. To specify RIP version for router receiving or sending packets, use the following commands. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function This enters RIP configuration router rip ZXR10(config)# mode. version {1|2} This configures RIPv1 or RIPv2. ZXR10(config-rip)# The default setting is RIPv2. To specify the RIP version of packets to be sent or received by an interface, perform the following commands.
Page 25
ZXR10#show ip rip router rip auto-summary default-metric 1 distance 120 validate-update-source version 2 flash-update-threshold 5 maximum-paths 1 output-delay 5 100 timers basic 30 180 180 240 network 10.0.0.0 0.255.255.255 Descriptions of command output are shown below. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 26
ZXR10 5900E Series Configuration Guide (IPv4 Routing) show Command Output Description auto-summary This shows that only the summarized routes of natural network and suppernetting can be sent (for RIPv2). Use no to sent all RIP routes. Be noted that the following policy is still available even if auto-summary is used.
Page 27
Descriptions of command output are shown below. 2-11 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 28
ZXR10 5900E Series Configuration Guide (IPv4 Routing) show Command Output Description send subnet only This shows that after this command is used, the interface only sends the information of the route which belongs to the same sub network with itself, and it blocks the information of the route which belongs to other sub network.
Page 30
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-if)#ip address 10.2.0.1 255.255.0.0 S2(config-if)#exit S2(config)#router rip S2(config-rip)#network 192.168.1.2 0.0.0.255 S2(config-rip)#network 10.2.0.1 0.0.255.255 S2(config-rip)#end Configuration Check After the configuration is finished, the following information needs to be displayed, that indicates the neighborhood is established between S1 and S2, and they can learn routes between each other.
Page 31
: out holddown time before flush Dest Metric RtPrf Time From *> 10.0.0.0/8 00:00:03 0.0.0.0 *> 10.2.0.0/16 00:00:00 0.0.0.0 *> 192.168.1.0/24 00:00:00 0.0.0.0 S2(config)#show ip rip neighbors neighbor address interface 192.168.1.1 vlan10 2-15 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 32
ZXR10 5900E Series Configuration Guide (IPv4 Routing) This page intentionally left blank. 2-16 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 33
Link State Advertisements (LSAs) which are generated by all switchs and spread over the whole OSPF network. There are many types of LSAs, and a complete LSA set shows an accurate distribution diagram over the whole network. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 34
ZXR10 5900E Series Configuration Guide (IPv4 Routing) OSPF Algorithm OSPF uses cost as the metric. The cost is distributed to each port of a switch. A port calculates the cost based on 100 M benchmark by default. The path cost to a particular destination is the total cost of all links between the switch and the destination.
The two routers (neither DR nor BDR) do not establish an adjacency between each other and neither will they exchange routing information. If the DR stops working, the BDR will become a DR. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Router Priority and DR Election Every interface has its own priority on router, which affects the capability of the router to become a DR or BDR on the network. The priority of router interface is expressed by an eight-bit unsigned integer, ranging from 0 to 255 (the default value is "1").
Page 37
Network summary LSAs are generated by ABRs. When a ABR finishes routing calculation in the area at where it locates, it enquires the routing table and encapsulates each OSPF route into a Network Summary LSA. The Network SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 38
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Summary LSAs are sent out area, which describe some information of a route, such as the destination address, mask and cost. A Network summary LSA is transmitted to all areas except the area which generates the LSA.
Page 39
When Multiprotocol BGP (MP-BGP) routes are redistributed to OSPF vrf instance to generate LSAs, the option fields of type-3 and type-5 LSAs must be marked as down bit. The LSAs are displayed as Downward. This is a method to prevent routing loopback. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) When a router detects that a LSA is already marked as down bit, the PE will not participate in the OSPF route calculation. When OSPF routes are redistributed to BGP, the LSAs with down bit are not redistributed to be BGP route.
Run the following command to check the OSPF information: S1(config)#show ip ospf OSPF 10 Router ID 30.0.0.1 enable Enabled for 00:00:21,Debug on Number of areas 1, Stub 0, Transit 0 Number of interfaces 1 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) ..Area 0.0.0.0 enable Enabled for 00:00:05 Area has no authentication Times spf has been run 1 Number of interfaces 1. Up 1 The OSPF protocol is enabled and configured on S1. The router ID is the IP address of interface vlan1.
Page 43
Range: 1-65535, default: 1. cost <cost> Sets the interface cost. ZXR10(config-ospfv2-if)# Range: 1-65535, default: 100 M/interface bandwidth. priority <priority> Sets the interface priority. ZXR10(config-ospfv2-if)# Range: 0-255, default: 1. Configuration Example 3-11 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Modify the OSPF parameters on interfaces that run the OSPF protocol, see Figure 3-3. Router IDs are listed below: Device Router ID 1.1.1.2 1.1.1.3 Figure 3-3 OSPF Interface Attribute Configuration Enable the OSPF protocol on S1 and S2, and advertise the network segment.
Sets a key ID or an ZXR10(config-ospfv2-if)# md5 {<word>| encrypted <encrypted_password>[delay authentication password <time>]} for the interface that uses MD5 authentication mode. For a description of the parameters in Step 1, refer to the following table: 3-13 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Parameter Description <keyid> Key ID. Integer type, range: 1-255. md5 <password> Authentication password. Length: 1-16 characters (without space). delay <time> Time delay (minute). Range: 0-100000. Used to encrypt the password. encypt Configuration Example...
Page 47
S3(config-ospf-10)#ospf-id 1.1.1.4 S3(config-ospf-10)#network 30.0.1.0 0.0.0.3 area 1 S3(config-ospf-10)#exit Enable the plain text authentication function on interfaces that belong to area 0, and set the authentication password to zte. Run the following commands on S1: S1(config)#router ospf 10 S1(config-ospf-10)#area 0 authentication...
Page 48
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-ospf-1)#exit S2(config-ospf-1)#interface vlan20 S2(config-ospf-1-if-vlan20)#authentication S2(config-ospf-1-if-vlan20)#authentication-key zte S2(config-ospf-1-if-vlan20)#exit To check whether the authentication function is effective in area 0, run the show ip ospf command. S2(config)#show ip ospf OSPF 10 Router ID 1.1.1.2 enable...
Page 49
Cost of the default route advertised to a stub area. Range: 0-65535. Configuration Example Set area 1 to a stub area, see Figure 3-5. Router IDs are listed below. Device Router ID 1.1.1.2 1.1.1.3 1.1.1.4 3-17 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 3-5 OSPF Stub Area Configuration Example Run the following commands on S1: S1(config)#interface loopback1 S1(config-if-loopback1)#ip adderss 1.1.1.2 255.255.255.255 S1(config-if-loopback1)#exit S1(config)#interface vlan10 S1(config-if-vlan10)#ip address 30.0.0.1 255.255.255.252 S1(config-if-vlan10)#exit S1(config)#interface vlan20 S1(config-if-vlan20)#ip address 30.0.2.1 255.255.255.252...
Page 51
NSSA area are not required to support the NSSA configuration. To configure an NSSA area on the ZXR10 5900E, perform the following steps: Step Command Function router ospf <process-id>[vrf <vrf-name>] Enters OSPF routing mode. ZXR10(config)# 3-19 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 52
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function area <area-id> nssa Configures an area to an NSSA ZXR10(config-ospfv2)# [no-redistribution][default-information-originate [metric area and specifies whether to <metric-value>][metric-type <type>]][no-summary][ forbid ABR to send summary trans-type7-suppress-fa ][ translator-role { always | candidate route information to the NSSA }][ translator-stab-intv<stab-intv>]...
Page 57
OSPF. Cost range: 1-16777214. Configuration Example Configure the OSPF on S1, S2 and S3. Advertise external routes of S1, and configure ASBR route aggregation on S1, see Figure 3-8. 3-25 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Router IDs are listed below. Device Router ID 1.1.1.2 1.1.1.3 1.1.1.4 Figure 3-8 Route Aggregation with Route Redistribution Configuration Example Run the following commands on S1: S1(config)#interface loopback1 S1(config-if-loopback1)#ip adderss 1.1.1.2 255.255.255.255 S1(config-if-loopback1)#exit S1(config)#interface vlan10 S1(config-if-vlan10)#ip address 30.0.0.2 255.255.255.252...
Page 59
To configure load balancing on traffic when many paths exist in an OSPF routing table with the same lowest metric values, perform the following steps. Step Command Function router ospf <process-id>[vrf <vrf-name>] Enters OSPF routing mode. ZXR10(config)# 3-27 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function maximum-paths <number> Sets the path. The switch ZXR10(config-ospfv2)# supports up to 32 paths that have the same cost. Configuration Example Enable OSPF on S1 and S2, enable route load balancing between S1 and S2, and configure the maximum number of routes that can be supported by OSPF when the load is shared in balanced mode to two.
The similar route entries can be viewed on S2. Configuring OSPF Route Redistribution By means of advertising routing information of other route protocols to OSPF routers, different dynamic route protocols can share the routing information. 3-29 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 62
ZXR10 5900E Series Configuration Guide (IPv4 Routing) To configure route redistribution, perform the following steps: Step Command Function router ospf <process-id>[vrf <vrf-name>] Enters OSPF routing mode. ZXR10(config)# Controls the redistribution of redistribute<protocol>[as ZXR10(config-ospfv2)# <as-number>][peer <peer-address>][tag <tag-value>][metric routes (these routes meet <metric-value>][metric-type <type>][route-map <map-tag>]...
2. Run the RIP protocol on S1 and S3. Run the following commands on S1: S1(config)#interface vlan20 S1(config-if-vlan20)#ip address 30.0.1.1 255.255.255.252 S1(config-if-vlan20)#exit S1(config)#router rip S1(config-rip)#network 30.0.1.0 0.0.0.255 S1(config-rip)#exit Run the following commands on S3: S3(config)#interface vlan10 S3(config-if-vlan10)#ip address 30.0.1.2 255.255.255.252 S3(config-if-vlan10)#exit 3-31 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 64
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S3(config)#interface vlan20 S3(config-if-vlan20)#ip address 30.0.2.1 255.255.255.252 S3(config-if-vlan20)#exit S3(config)#interface loopback1 S3(config-if-loopback1)#ip address 2.2.2.1 255.255.255.0 S3(config-if-loopback1)#exit S3(config)#router rip S3(config-rip)#network 30.0.1.0 0.0.0.3 S3(config-rip)#network 30.0.2.0 0.0.0.3 S3(config-rip)#network 2.2.2.0 0.0.0.255 S3(config-rip)#exit The information related to S3 cannot be displayed in the OSPF area.
Page 65
To configure an OSPF virtual link, perform the following steps: Step Command Function router ospf <process-id>[vrf <vrf-name>] Enters OSPF routing mode. ZXR10(config)# 3-33 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 66
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function area <area-id> virtual-link Defines an OSPF virtual link. ZXR10(config-ospfv2)# <router-id>[hello-interval <seconds>][retransmit-interval If the designated area does <seconds>][transmit-delay <seconds>][dead-interval <sec not exist, an area is created onds>][authentication-key <key>][message-digest-key automatically. <keyid> md5 <cryptkey>[delay <time>]][authentication...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S3(config-ospf-1)#network 2.2.2.4 0.0.0.3 area 0.0.0.2 S3(config-ospf-1)#area 1 virtual-link 1.1.1.3 S3(config-ospf-1)#exit Configuring Sham-link Because the priority of an OSPF route is higher than that of a BGP route, an OSPF private route is usually the first choice if both a public network route and an OSPF private network route are available.
Page 69
Range: 5-86400. Configuring the OSPF Graceful Restart To configure the OSPF graceful restart, perform the flowing steps: Step Command Function router ospf <process-id>[vrf <vrf-name>] Enters OSPF configuration ZXR10(config)# mode. 3-37 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function Runs the nsf command on the ZXR10(config-ospf-process-id)# help party. When the OSPF GR is enabled, there are two roles: the restart party and the help party. The restart party restarts a router and the help party helps to complete the GR operation.
Page 71
Number of interfaces 1. Up 1 Number of ASBR local to this area 1 Number of ABR local to this area 2 Total number of intra/inter entries in LSDB 5. Checksum Sum 0x00025888 Area-filter out not set 3-39 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 72
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Area-filter in not set Area ranges count 0 For a description of the parameters in the execution result, refer to the following table: Parameter Description OSPF 1 Router ID 100.100.100.14 This OSPF instance is available.
Page 73
For a description of the parameters in the execution result, refer to the following table: Parameter Description Link ID LSA ID ADV Router Advertising router Aging time Seq# Sequence number of LSA Checksum Link count Number of connections 3-41 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 74
ZXR10 5900E Series Configuration Guide (IPv4 Routing) The following is sample output from the show ip ospf database router command: ZXR10#show ip ospf database router OSPF Router with ID (110.1.1.1) (Process ID 1) Router Link States (Area 0.0.0.1) Routing Bit Set on this LSA...
Page 75
For a description of the parameters in the execution result, refer to the following table: Parameter Description LS age LSA aging time LS Type LSA type Link State ID Advertising Router LS Seq Number LSA sequence number Checksum Length 3-43 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 76
ZXR10 5900E Series Configuration Guide (IPv4 Routing) The following is sample output from the show ip ospf database external command: ZXR10#show ip ospf database external OSPF Router with ID (110.1.1.1) (Process ID 1) Type-5 AS External Link States LS age: 18...
3. Configure load balancing on both S1 and S2. S1 and S2 can learn the loopback address route advertised by the peer through two links. Configuration Process Configuration on S1: S1(config)#interface vlan30 S1(config-if-vlan30)#ip address 11.22.1.1 255.255.255.0 S1(config-if-vlan30)#exit S1(config)#interface vlan40 S1(config-if-vlan40)#ip address 11.22.10.1 255.255.255.0 S1(config-if-vlan40)#exit S1(config)#interface loopback1 3-45 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 78
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S1(config-if-loopback1)#ip address 1.1.1.11 255.255.255.255 S1(config-if-loopback1)#exit S1(config)#router ospf 1 S1(config-ospf-1)#network 11.22.1.0 0.0.0.255 area 0 S1(config-ospf-1)#network 11.22.10.0 0.0.0.255 area 0 S1(config-ospf-1)#network 1.1.1.11 0.0.0.0 area 0 S1(config-ospf-1)#maximum-paths 2 S1(config-ospf-1)#exit Configuration on S2: S2(config)#interface vlan10 S2(config-if-vlan10)#ip address 11.22.1.2 255.255.255.0...
4. As a result, S1 can not learn the detailed route of S3 address, but there is a default route pointing to S2. S3 can learn the direct-connected route redistributed by S1. Configuration Process Configuration on S1: S1(config)#interface vlan10 S1(config-if-vlan10)#ip address 11.22.1.1 255.255.255.0 S1(config-if-vlan10)#exit S1(config)#interface loopback1 S1(config-if-loopback1)#ip address 1.1.1.11 255.255.255.255 S1(config-if-loopback1)#exit 3-47 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Configuration Thought 1. PE1 and CE1 establish OSPF neighbor relationship. 2. PE2 and CE1 establish OSPF neighbor relationship. 3. PE2 should not learn the link-state information related to vpn1. Configuration Process Configuration on PE1: 3-49 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 83
PE2#show ip forwarding route vrf vpn2 IPv4 Routing Table: Dest Interface Owner Metric 2.2.2.18/32 100.102.102.18 vlan3 ospf PE1#show ip forwarding route vrf vpn1 IPv4 Routing Table: Dest Interface Owner Metric 1.1.1.18/32 100.101.102.18 vlan1 ospf 3-51 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 84
ZXR10 5900E Series Configuration Guide (IPv4 Routing) This page intentionally left blank. 3-52 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 85
SNP is used to ensure that LSPs can be transmitted reliably. SNP contains the summary information of every LSP on the network. When a router receives a SNP, it compares the SNP with its link state database. If the router loses a SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) LSP existing in the SNP, it will send a SNP in multicast mode to ask for the required LSP from other routers on the network. By using LSPs in conjunction with SNPs, IS-IS protocol can interact routes reliably on a large network.
8 bytes. The system ID identifies a unique host or a router in an area. Its length is 48 bit (6 bytes) invariably. The SEL (NSAP Selector, sometimes it is SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) shorted to N-SEL) is similar to the protocol ID in an IP address. Different transmission protocols have different SELs. In an IP address, the SEL is 00. IS-IS neighbor establishment The IS-IS distinguishes networks as point-to-point networks and broadcast networks. The neighbor establish processes are different on these two types of networks.
Page 89
INIT. The intermediate system queries its MAC address in the IIH PDU packet and sets the state to UP. For the process, see Figure 4-4. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 4-4 Neighbor Establishment on a Broadcast Network DIS election on a broadcast link The IS-IS protocol selects a specified Designate IS (DIS) to reduce the neighbor information carried in the LSP sent on the broadcast network and simplify the network architecture.
Page 91
The TLV is carried in the PDU of the IS-IS, and is used to describe the extendable fields. The CSNP and PSNP have the same package format, and carry the LSP abstract information respectively. The difference between them is that the CSNP advertised SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) by a router carries all LSP abstract information that is available in the router link state database. But the PSNP only carries a subset of the information. The SRM and the SSN are mainly used for router selection information diffusion and database synchronization.
Page 93
RTA.00-00 on interface 4. Clears the SSN on interface 4. Receives the PSNP acknowledge packet for the RTA.00-00 on interface 3. Clears the SRM for the RTA.00-00 on interface 3. Broadcast links SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) On broadcast links, LSP is diffused to adjacent routers on layer 1 and layer 2 through broadcast addresses ALL L1S and ALL L2S. The diffusion on broadcast links does not require reliable transmission.
ID is assumed to be 0 and VLAN100 is used as the interface. Enabling the IS-IS Protocol To enable the IS-IS protocol on the ZXR10 5900E, perform the following steps: 4-11 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 96
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function router isis<process-id>[vrf <vrf-name>] Enables the IS-IS protocol. ZXR10(config)# area <area-address> Configures an IS-IS area in ZXR10(config-isis-0)# IS-IS routing mode and set the router to this area. The area address is a hex character string with 1-13 bytes.
Page 97
Configures the IS-IS protocol summary-address ZXR10(config-isis-0)# <ip-address><net-mask>[metric <metric-value>][level-1 | to aggregate routes. level-1-2 | level-2] The IS-IS protocol can aggregate multiple route entries to one aggregated route and advertise this route instead of advertising all routes. 4-13 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 98
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function hello padding {multi-point | Configures the IS-IS protocol ZXR10(config-isis-0)# point-to-point } to pad hello packets to the maximum length. Configures the system to drop ignore-lsp-errors ZXR10(config-isis-0)# the incorrect checksum LSPs received by the IS-IS router.
Page 99
Interval for calculating the SPF on router level-1. level-2 Interval for calculating the SPF on router level-2. Configuring IS-IS Interface Parameters To configure IS-IS interface parameters on the ZXR10 5900E, perform the following steps: 4-15 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 100
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function Enters IS-IS configuration router isis ZXR10(config)# mode. interface <interface-name> Enters IS-IS interface ZXR10(config-isis-0)# configuration mode. circuit-type Configures an interface ZXR10(config-isis-0-if-vlan100)# {level-1|level-1-2|level-2-only} operation type. Default: level-1-2. The configuration must be consistent with the IS-IS global operation type.
Page 101
Enables the BFD function for bfd-enable ZXR10(config-isis-0-if-vlan100)# the IS-IS protocol. Sets the maximum number of max-burst ZXR10(config-isis-0-if-vlan100)# <number> LSPs that can be sent each time. Range: 1-50. 4-17 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 102
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function mtu <512-4096> Sets the maximum length ZXR10(config-isis-0-if-vlan100)# (byte) of hello packets sent by the IS-IS interface. Ignores the checking of IS-IS ignore-mtu ZXR10(config-isis-0-if-vlan100)# packets if they can be received when they exceed the MTU of the corresponding interface.
Page 103
ZXR10(config-isis-0-if-vlan100)# [encrypt]<key>[level-1 | level-2] mode for Hello packets. Password range: 1-100 characters. If optional parameters are not set, the authentication mode is effective for Hello packets of both level-1 and level-2 operation types. 4-19 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 104
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function router isis [process-id][vrf <vrf-name>] Enters IS-IS route configuration ZXR10(config)# mode. Enables SNP authentication. enable-snp-authentication ZXR10(config-isis-0)# disable-snp-authentication Disables the authentication for ZXR10(config-isis-0)# SNP packets. Configuring an IS-IS Hostname To configure an IS-IS hostname on the ZXR10 5900E, perform the following steps:...
Page 105
Configures load balancing in ZXR10(config-isis-0)# IS-IS route configuration mode. The parameter < 1-32> indicates the load balancing entries supported by the system. Configuring Traffic Engineering The ZXR10 5900E IS-IS IPv4 supports the public network TE function. 4-21 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 106
ZXR10 5900E Series Configuration Guide (IPv4 Routing) To configure IS-IS traffic engineering on the ZXR10 5900E, perform the following steps: Step Command Function router isis [process-id][vrf <vrf-name>] Enters IS-IS route configuration ZXR10(config)# mode. metric-style wide In IS-IS routing mode, configure ZXR10(config-isis-0)# the wide metric.
[detail][process-id]show isis circuits Displays the information about the ZXR10# [detail][process-id<process-id>] IS-IS interface. show isis database [LSP-ID][level-1| level-2][verbose][de Displays the information about an ZXR10# IS-IS neighbor. tail][process-id<process-id>] 4-23 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 108
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Command Function show isis topology [level-1|level-2][process-id<process-id Displays the IS-IS topology. ZXR10# >][vrf < vrf-name>] show isis mpls traffic-eng tunnel [process-id<process-id>] Displays the usage of the IS-IS ZXR10# tunnel. show isis fast-reroute-topology [ level-1|level-2][process-id]...
Page 109
LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL 0000.2222.7878-00-00* 0x13 0xfb1a 1034 0/0/0 NLPID: 0xcc NLPID: 0x8e Area Address: IP Address: 111.11.2.0 IPv6 Address: Metric: 10 IS neighbor 0000.2222.6666-02 Metric: 10 IP-Internal 1.1.1.0 255.255.255.0 4-25 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 111
The metric to the destination IS. Mode Metric mode of an automatic tunnel. State Usage state of an automatic tunnel in espf calculation. The following is sample output from the show isis fast-reroute-topology command: 4-27 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) ZXR10(config-isis-0-if-vlan10)#show isis fast-reroute-topology Process ID: 0 IS-IS ipfrr paths to Level-1 routers System id Interface Ipfrr interface Ipfrr type metric 1111.1111.1111 vlan10 vlan20 Link IS-IS ipfrr paths to Level-2 routers System id Interface Ipfrr interface Ipfrr type metric 1111.1111.1111 vlan10...
Page 114
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Configuration Check After finishing the configuration above, the following content can be viewed on both S1 and S2. It means that S1 and S2 can set up neighborhood and calculate topology. Ping the loopback address of the peer on S1 and S2 respectively.
ZXR10 5900E Series Configuration Guide (IPv4 Routing) 4.4.2 Multiple Area IS-IS Configuration Example Configuration Description For a larger size network, use multiple IS-IS areas. According to the geographic locations and the functions of routers, partition the close routers to an area. Area division helps to lighten the demands for memory.
Page 124
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-isis-200)#area 10 S2(config-isis-200)#interface vlan20 S2(config-isis-200-if-vlan20)#ip router isis S2(config-isis-200-if-vlan20)#exit S2(config-isis-200)#exit Configuration Check S1#show isis adjacency Process ID: 100 Interface System id State Holds SNPA(802.2) gei-0/1/1/1 UP/UP L1L2 26/26 0021.8844.5541 64/64 Process ID: 200 Interface...
Page 125
The AS indicator is a value of 16-bit, ranging from 1 to 65535, where, 1–32767 are assignable, 32768–64511 are reserved, and 64512–65534 are used for private ASs (similar to private network addresses). When 16–bit AS number SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 126
ZXR10 5900E Series Configuration Guide (IPv4 Routing) is used, the AS number range is 1–65535. Current version also supports 32–bit AS which is in the range of 1-4294967295. BGP Working Principle BGP Attribute The router sends BGP update messages related to the destination network to its peer router.
2. Connect state The BGP starts TCP connection and waits for the message of TCP successful connection. If the connection is successful, then the BGP enters OpenSent state. Otherwise, the BGP enters Active state. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) 3. Active state: The BGP always tries to establish TCP connection. If the connection timer times out, then the BGP returns to Connect state. If TCP connection is successful, then BGP enters OpenSent state.
Therefore, even if TCP connection is set up, OPEN packets still can not be sent to the CPU of the peer. In this way, BGP connection can not enter Established state. To establish EBGP neighborhood, perform the following steps. SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 130
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function router bgp <as-number> This starts BGP routing ZXR10(config)# process and specifies the AS number of router. <as-number>is the AS system ID of router, the range is 1-65535. 1-64511 is the global common AS number.
Page 132
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-if-vlan10)#exit S2(config)#router bgp 65001 S2(config-bgp)#neighbor 129.213.1.1 remote-as 65000 S2(config-bgp)#exit View configuration result. To view the established BGP neighborhood, use show ip bgp neighbor on S1. S1#show ip bgp neighbor BGP neighbor is 129.213.1.2, remote AS 65001, external link BGP version 4, remote router ID 129.213.1.2...
Page 134
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-bgp)#neighbor 1.1.1.1 update-source loopback1 S2(config-bgp)#exit S2(config)#ip route 1.1.1.1 255.255.255.255 192.168.1.1 Note that if the number of hops is not designated behind ebgp-mulitihop, the system will set TTL value as 1 by default. To view the established BGP neighborhood, use the show ip bgp neighbor command on S1.
Page 135
The interface to be specified as source address to set up TCP connection in BGP session Descriptions of the parameters used by step 4 are shown below. Parameter Description <ipv4-address> IPv4 address of neighbor, in dotted decimal notation 5-11 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 136
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Parameter Description <peer-group-name> peer-group name In step 4, NEXT_HOP is a BGP well-known mandatory attribute. It shows the IP address of the next-hop to destination address. There are three kinds of conditions, If the advertising and receiving routers belong to different ASs, the next-hop is à...
Page 138
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S3(config-if-loopback1)#ip address 1.1.1.3 255.255.255.255 S3(config-if-loopback1)#exit S3(config)#router bgp 65001 S3(config-bgp)#neighbor 1.1.1.2 remote-as 65001 S3(config-bgp)#neighbor 1.1.1.2 update-source loopback1 S3(config-bgp)#neighbor 1.1.1.2 next-hop-self S3(config-bgp)#no synchronization S3(config-bgp)#exit S3(config)#router ospf 1 S3(config-ospfv2)#network 192.168.2.0 0.0.0.3 area 0 S3(config-ospfv2)#network 1.1.1.3 0.0.0.0 area 0 S3(config-ospfv2)#exit Use show ip bgp neighbor to view the established BGP neighborhood on S2.
Page 139
ZXR10(config)# >|<peer-group-name>] peer or a pair of peers. Descriptions of the parameters used by command are shown below. Parameter Description <vrf-name> VRF name, the length is 1-32 characters. <ipv4-address> IPv4 address of neighbor 5-15 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 140
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Parameter Description <peer-group-name> Name of the peer group Configuring BGP Route Advertisement BGP Route Advertisement Rules The routes to be advertised by BGP have to exist in IGP routing table already. The source of BGP route updating is that inject IGP routing information to BGP. It has an influence on the stability of Internet routes directly.
As shown in Figure 5-6, S2 runs OSPF as IGP protocol. S2 requires that advertise the network segment 18.0.0.0/8 advertised by OSPF to BGP. Figure 5-6 Use network Command to Advertise BGP Route 5-17 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 143
The name of route mapping of the redistributed route, the length is 1-31 characters. Configuration Example As shown in Figure 5-7, S2 runs OSPF as IGP protocol. It is required that redistribute all OSPF routing information of S2 to BGP. 5-19 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-7 Redistribute OSPF Routes by Using redistribute Command Configuration on S2: S2#config terminal S2(config)#interface vlan10 S2(config-if-vlan10)#ip address 192.168.2.1 255.255.255.252 S2(config-if-vlan10)#exit S2(config)#router ospf 1 S2(config-ospfv2)#network 18.0.0.0 0.0.0.255 area 0 S2(config)#exit S2(config)#router bgp 65001 S2(config-bgp)#neighbor 192.168.2.2 remote-as 65000...
Page 145
According to RFC1771, only the routes which the attributes of MED and NEXT_HOP are the same respecivetily can be aggregated. If the command is used without strict, do not consider MED and NEXT_HOP attributes. Configuration Example 1. Route Aggregation Configuration 5-21 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) As shown in Figure 5-8, S1 advertises the network segments 192.168.0.0/24, 192.168.1.0/24 and 192.168.2.0/24, 192.168.3.0/24 to S2 belonging to AS300. Run OSPF routing protocol between S1 and S3. Figure 5-8 Route Aggregation Configuration Example...
Page 147
The above command means that the routing information can be aggregated and advertised only when the specified subnetwork routing information appears in IGP routing table and the route number satisfies the defined count number. 2. Aggregate Routes using the Parameter count and subnet 5-23 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 148
ZXR10 5900E Series Configuration Guide (IPv4 Routing) When IGP ran by S1 confirms that the three routes 192.168.1.0/24, 192.168.2.0/24 and 192.168.3.0/24 exist in the routing table, it will send the aggregated route 192.168.0.0/22 to S2. Configuration on S1: S1(config)#interface vlan10 S1(config-if-vlan10)#ip address 2.2.2.2 255.255.255.0...
Page 149
Route map is used to control routing information, which redistributes routes between routing areas by defining rules. The route map usually cooperates with the route attributes to decide route. To filter routes by route map, perform the following steps. 5-25 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 150
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function route-map <map-tag>[permit | This defines a route map. ZXR10(config)# deny][<sequence-number>] ipv4-access-list { name <acl-name>} This configures serial number, ZXR10(config)# name or alias to an ACL in standard ACL configuration mode.
S1(config-bgp)#network 172.7.0.0 255.255.0.0 S1(config-bgp)#neighbor 182.17.20.1 route-map MAP1 out S1(config-bgp)#neighbor 182.17.20.1 send-med S1(config-bgp)#exit S1(config)#route-map MAP1 permit 10 S1(config-route-map)#match ip address 1 S1(config-route-map)#set ip metric 5 S1(config-route-map)#exit S1(config)#ipv4-access-list 1 S1(config-ipv4-acl)#rule 10 permit 172.3.0.0 0.0.255.255 S1(config-ipv4-acl)#exit 5-27 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 152
ZXR10 5900E Series Configuration Guide (IPv4 Routing) When filtering route through route map, the match and set commands are usually used together with route map. The match command defines the matching standard. The set command defines the action satisfying matching standard.
Page 153
IPv4 address of neighbor, in dotted decimal notation <peer-group-name> peer-group name <map-tag> The name of route mapping, the length is 1-31 characters in | out It applies to in or out Configuration Example 5-29 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) As shown in Figure 5-10, S1 and S2 are a pair of IBGP peers, S1 and S3 are a pair of EBGP peers, S2 and S4 are a pair of EBGP peers, S2 and S4 are a pair of EBGP peers.
Page 155
10 routes are received. S2 can receive 20 routes advertised by S1, and neighborhood will be disconnected and set up again after 10 minutes if more than 20 routes advertised by S1. 5-31 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-11 Restrict the Number of Route Advertisements Received by Neighbor Configuration on S1: S1(config)#router bgp 100 S1(config-bgp)#neighbor 10.1.1.1 remote-as 200 S1(config-bgp)#neighbor 10.1.1.1 maximum-prefix 10 drop-routes Configuration on S2: S2(config)#router bgp 200 S2(config-bgp)#neighbor 10.1.1.2 remote-as 100 S2(config-bgp)#neighbor 10.1.1.2 maximum-prefix 20 restart 1...
Page 157
Use AS represented as regular express in access list Configuration Example As shown in Figure 5-12, in Internet, the route to 10.10.0.0/24 of AS 100 is the optimum path, and the path must be AS500→AS300→AS200→AS100. 5-33 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 158
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-12 Filtering Routes by Using AS_PATH Egress router of AS100 configuration: ZXR10_AS100(config)#router bgp 100 ZXR10_AS100(config-bgp)#network 10.0.1.0 255.255.255.0 ZXR10_AS100(config-bgp)#network 10.1.0.0 255.255.255.0 ZXR10_AS100(config-bgp)#neighbor 192.168.1.2 remote-as 400 ZXR10_AS100(config-bgp)#neighbor 192.168.1.2 activate ZXR10_AS100(config-bgp)#neighbor 192.168.1.2 route_map PATH out ZXR10_AS100(config-bgp)#neighbor 192.168.1.6 remote-as 200...
Page 159
ZXR10(config-ipv4-acl)# deny}{<source>[<source-wildcard>]| any} standard ACL. route-map <map-tag>[permit | This enters route mapping ZXR10(config)# configuration mode. deny][<sequence-number>] This specifies priority value set local-preference ZXR10(config-route-map)# <value> for AS. 0-4294967295, and the default value is 100. 5-35 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 160
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Descriptions of the parameters used by step 1 are shown below. Parameter Description <map-tag> The name of route mapping, the length is 1-31 characters. Permit redistribution if the route mapping matches permit condition...
Page 162
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-bgp)#neighbor 192.168.1.1 activate S2(config-bgp)#neighbor 192.168.1.1 next-hop-self S2(config-bgp)#neighbor 192.168.1.10 remote-as 600 S2(config-bgp)#neighbor 192.168.1.10 activate S2(config-bgp)#neighbor 192.168.1.10 next-hop-self S2(config-bgp)#neighbor 172.16.0.2 route-map Local_Pref in S2(config)#ipv4-access-list 1 S2(config-ipv4-acl)#rule 1 permit any S2(config)#route-map Local_Pref permit 10 S2(config-route-map)#match ip address 1 S2(config-route-map)#set local-preference 100 Use show ip bgp route to view BGP routing table on S3.
Page 163
Wild mask of source IP address Any source IP address Descriptions of the parameters used by step 3 are shown below. Parameter Description Add MED value Decrease MED value <metric-value> MED value, the range is 0-4294967295 5-39 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Configuration Example As shown in Figure 5-14, AS 100 and AS 400 are interconnected by two links. Configure AS100 to make AS400 select link 1 to route to AS100 preferably. Figure 5-14 Select Route by Using MED...
Page 165
Forbid to advertise the route with this attribute to à confederation outside. local-AS: Advertise the route with this attribute to BGP neighbor routers in AS. à Internet: Advertise the route with this attribute to all other routers. à 5-41 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 166
ZXR10 5900E Series Configuration Guide (IPv4 Routing) To configure BGP community string attributes, perform the following steps. Step Command Function route-map <map-tag>[permit | This defines a route map. ZXR10(config)# deny][<sequence-number>] ip prefix-list <prefix-list-name>[seq This configures a list of ZXR10(config)# <seq-number>]{permit | deny}<network-num><len>[ge address prefixes.
Page 167
1. Marking the Routes with Community As shown in Figure 5-15, AS600 configures attribute values for the route coming from different ASs. The attribute of AS300 is 300:1, and attribute of AS400 is 400:1. 5-43 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-15 Use Community to Control Routes AS300 router (The following content omits configuration of port and IGP) configuration: ZXR10_AS300(config)#router bgp 300 ZXR10_AS300(config-bgp)#network 10.0.4.0 255.255.255.0 ZXR10_AS300(config-bgp)#neighbor 192.168.1.9 remote-as 200 ZXR10_AS300(config-bgp)#neighbor 192.168.1.9 activate ZXR10_AS300(config-bgp)#neighbor 192.168.1.18 remote-as 600 ZXR10_AS300(config-bgp)#neighbor 192.168.1.18 activate...
Page 169
2. Filter Routes by Using Community Configuration requirements: According to Community attribute of AS600, select route by configuring Local_Pref. AS600 router (The following content omits configuration of port and IGP) configuration: ZXR10_AS600(config)#router bgp 600 5-45 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 170
ZXR10 5900E Series Configuration Guide (IPv4 Routing) ZXR10_AS600(config-bgp)#neighbor 192.168.1.13 remote-as 400 ZXR10_AS600(config-bgp)#neighbor 192.168.1.13 activate ZXR10_AS600(config-bgp)#neighbor 192.168.1.13 route-map Local_Pref in ZXR10_AS600(config-bgp)#neighbor 192.168.1.17 remote-as 300 ZXR10_AS600(config-bgp)#neighbor 192.168.1.173 activate ZXR10_AS600(config-bgp)#exit ZXR10_AS600(config)#route-map Local_Pref permit 10 ZXR10_AS600(config-route-map)#match community-list 1 ZXR10_AS600(config-route-map)#set local-preference 200 ZXR10_AS600(config-route-map)#exit ZXR10_AS600(config)#ip community-list 1 permit 400:1 Use show ip bgp route to view BGP routing table of AS600.
Page 171
Configure a router reflector to make S3 forward the routes received by an IBGP neighbor to another IBGP neighbor. Considering IBGP neighbors are not fully interconnected in AS600, configure router reflector to avoid full interconnection. 5-47 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
AS into many sub-ASs, and the IBGP routers in the AS belong to different sub-ASs. IBGP is established inside each sub-AS, and EBGP is established among sub-ASs. Sub-ASs are invisible to the external AS. To configure BGP Confederation, perform the following steps. 5-49 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Step Command Function router bgp <as-number> This starts BGP process and ZXR10(config)# specifies the AS number of router. This sets confederation ID, bgp confederation identifier ZXR10(config-bgp)# <value> the range is 1-65535. This configures the AS...
EBGP. Each AS acts as an independent BGP AS to run IBGP. A complete AS only runs an IGP protocol, and every sub-AS has IGP routing information of all other sub-ASs. Configuring BGP Route Dampening 5-51 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 176
ZXR10 5900E Series Configuration Guide (IPv4 Routing) BGP provides a mechanism called Route Dampening to reduce the network instability caused by route flapping. Since the update and cancellation messages are transmitted in network continually when route flapping occurs, the bandwidth and router processing resource are used a lot.
120 minutes. Configuring BGP Peer Group BGP peer group is to implement cluster management to BGP peer, which adds peers into the uniform peer group and configure them. In this way, reduce the work 5-53 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 178
Name of peergroup, the length is 1-16 characters Configuration Example Create a BGP peer group. The name of the group is zte. In the AS100, add neighbors 192.168.0.2 and 192.168.0.3 to the group. Run the following command: ZXR10(config)#router bgp 100...
BGP IPv6 frr is disabled Router target is filtered Graceful restart is disabled As-path ignore is disabled Router-id ignore is disabled BGP advertise-active-only is disabled BGP VPNv4 advertise-active-only is disabled BGP IPv4 rib-only is disabled 5-55 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 180
ZXR10 5900E Series Configuration Guide (IPv4 Routing) BGP IPv6 rib-only is disabled Route dampening is disabled Distance : external 20 internal 200 For a description of the parameters in the execution result, refer to the following table: Parameter Description Hold time is 90 seconds, KeepAlive...
Page 181
There is no IPv4 route 9 keepalives update message, Notification message, and error message. 0 vpnv4 refreshs, 0 ipv4 refreshs, 0 ipv4 multicast refreshs, 0 ipv6 refreshs, 0 errs 0 notifications, 0 other errs 5-57 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 182
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Parameter Description After last established received 8 Eight messages have been received since the neighborhood messages is established for the last time. They are all keepalive 0 updates, 0 errs messages. 0 opens, 0 errs...
Page 183
The following is sample output from the show ip bgp summary command: ZXR10#show ip bgp summary Neighbor Ver MsgRcvd MsgSend Up/Down(s) State/PfxRcd 1.1.1.1 00:06:06 1.1.1.3 00:02:33 For a description of the parameters in the execution result, refer to the following table: 5-59 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Parameter Description Neighbor BGP neighbor. BGP version. AS number of a neighbor. MsgRcvd Number of messages received by BGP. MsgSend Number of messages sent by BGP. Up/Down(s) The time for setting up a connection.
30 bits. Configuration Flow 1. Configure a static route. 2. Configure an IGP (OSPF). 3. Enable BGP. 4. Configure a neighbor. 5. Modify a source address. 6. Configure route aggregation. 5-61 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 186
ZXR10 5900E Series Configuration Guide (IPv4 Routing) 7. Configure multi-hops. 8. Cancel synchronization. 9. Configure a route-map to filter out specified routes. 10. Modify the metric value of the route to be advertised. Configuration Commands Run the following commands on S1: S1(config)#interface loopback1 S1(config-if-loopback1)#ip address 1.1.1.2 255.255.255.255...
Page 187
S3(config-ospfv2)#network 14.1.1.0 0.0.0.3 area 0.0.0.0 Run the following commands on S4: S4(config)#interface loopback1 S4(config-if-loopback1)#ip address 1.1.1.1 255.255.255.255 S4(config-if-loopback1)#exit S4(config)#interface vlan1 S4(config-if-vlan1)#ip address 11.1.1.1 255.255.255.252 S4(config-if-vlan1)#negotiation auto S4(config-if-vlan1)#exit S4(config)#interface vlan2 S4(config-if-vlan2)#ip address 10.1.1.1 255.255.255.0 5-63 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 189
20.1.1.0 13.1.1.2 vlan2 192.168.0.0 11.1.1.1 vlan1 192.168.0.0 11.1.1.1 vlan1 192.168.1.0 11.1.1.1 vlan1 192.168.2.0 11.1.1.1 vlan1 192.168.3.0 11.1.1.1 vlan1 Run the following command to check the BGP routing table and route forwarding table on 5-65 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 190
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2#show ip bgp route Status codes: *-valid, >-best, i-internal,s-stale Origin codes: i-IGP, e-EGP, ?-incomplete Network Next Hop Metric LocPrf RtPrf Path *>1.1.1.3/32 1.1.1.3 *>i 10.1.1.0/24 1.1.1.2 *>i 11.1.1.0/30 1.1.1.2 *> 12.1.1.0/30 12.1.1.2 * 12.1.1.0/30 1.1.1.4...
Page 191
Run the following command to check the BGP routing table and route forwarding table on S4#show ip bgp route Status codes: *-valid, >-best, i-internal,s-stale Origin codes: i-IGP, e-EGP, ?-incomplete Network Next Hop Metric LocPrf RtPrf Path *>1.1.1.1/32 1.1.1.1 5-67 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
The test results above show that AS2 can communicate with AS3 normally. 5.4.2 BGP Configuration Example Two Scenario Description The following describes a BGP instance. In this instance, the application of route aggregation and static route redistribution are described. 5-69 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) S4 and S1 establish an EBGP neighborhood, S1 and S2 establish an IBGP neighborhood, S2 and S5 establish multi-hops EBGP neighborhood, see Figure 5-19. Assume that four static routes exist on S4. S4 only advertises the network segment 192.16.0.0/16 by aggregation, and it uses a route map to forbid BGP to advertise network segment 170.16.10.0/24.
Page 195
*> 192.16.21.0/24 10.9.1.39 *> 192.16.22.0/24 10.9.1.39 *> 170.16.10.0/24 10.9.1.39 Run the show ip bgp summary command to check the neighborhood on S1. S1(config)#show ip bgp summary Neighbor MsgRcvd MsgSend Up/Down(s) State/PfxRcd 172.16.20.1 00:22:35 5-71 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) 172.16.1.2 00:22:35 Run the following command to check the BGP routing table on S1: S1(config)#show ip bgp route Status codes: *-valid, >-best, i-internal, s-stale Origin codes: i-IGP, e-EGP, ?-incomplete Network NextHop Metric LocPrf...
Run the following commands on S2: S2(config)#router bgp 2 S2(config-bgp)#neighbor 172.16.1.1 remote-as 1 S2(config-bgp)#neighbor 183.16.20.2 remote-as 3 S2(config-bgp)#exit Run the following commands on S3: S3(config)#router bgp 3 S3(config-bgp)#neighbor 171.16.20.1 remote-as 1 S3(config-bgp)#neighbor 183.16.20.1 remote-as 2 S3(config-bgp)#exit 5-73 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Configuration Verification Run the show ip forwarding backup route command to check whether the configuration can enable the FRR function: Run the following command to check whether the BGP FRR function is enabled on S1:...
BGP (IBGP, EBGP, MP-IBGP, and MP-EBGP), see Figure 5-22. To guarantee that the uplink and downlink traffic are the same, the VRRP BGP route from which master packets are sent must be set as the optimized route. 5-75 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-22 BGP and VRRP Linkage Configuration Example Configuration Flow 1. Establish BGP relations between S1 and S3, and between S2 and S3. 2. Check active and standby routers status when S1 and S2 operate as VRRPs.
ZXR10 5900E Series Configuration Guide (IPv4 Routing) routes are limited, you can use the default configuration. If S1 or S2 is restarted, packets forwarding is not interrupted. Figure 5-23 BGP Graceful Restart Configuration Example Configuration Flow 1. Establish a BGP neighbor relation between S1 and S2.
Figure 4-7 Diffusion and Database Synchronization on a Broadcast Link ....4-10 Figure 4-8 Route-leaking ..................4-11 Figure 4-9 Single Area IS-IS Configuration Example..........4-28 Figure 4-10 Multiple Area IS-IS Configuration Example........... 4-32 Figure 4-11 IS-IS Multi-Instance Configuration Example ......... 4-39 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 204
ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-1 BGP Working Process ................5-3 Figure 5-2 IBGP and EBGP ..................5-5 Figure 5-3 EBGP Physical Direct-Connected Configuration Topology ....... 5-7 Figure 5-4 EBGP Configuration through Loopback Address........5-9 Figure 5-5 IBGP Configuration ................5-13 Figure 5-6 Use network Command to Advertise BGP Route ........
- External Border Gateway Protocol IBGP - Interior Border Gateway Protocol - Interior Gateway Protocol - Intelligent Peripheral IS-IS - Intermediate System-to-Intermediate System - International Organization for Standardization - Link State Advertisement LSDB - Link-state Database SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
Page 206
ZXR10 5900E Series Configuration Guide (IPv4 Routing) - Link State Packet - Link State Update - Media Access Control - MULTI_EXIT_DISC MP-BGP - Multiprotocol BGP NBMA - Non-Broadcast Multiple Access NSAP - Network Service Access Point NSSA - Not-So-Stubby Area...