Zte ZXR10 5900E Series Configuration Manual

Zte ZXR10 5900E Series Configuration Manual

Easy-maintenance mpls routing switch (ipv4 routing)
Hide thumbs Also See for ZXR10 5900E Series:
Table of Contents

Advertisement

ZXR10 5900E Series
Easy-Maintenance MPLS Routing Switch
Configuration Guide (IPv4 Routing)
Version: 3.00.11
ZTE CORPORATION
No. 55, Hi-tech Road South, ShenZhen, P.R.China
Postcode: 518057
Tel: +86-755-26771900
Fax: +86-755-26770801
URL: http://support.zte.com.cn
E-mail: support@zte.com.cn

Advertisement

Table of Contents
loading

Summary of Contents for Zte ZXR10 5900E Series

  • Page 1 ZXR10 5900E Series Easy-Maintenance MPLS Routing Switch Configuration Guide (IPv4 Routing) Version: 3.00.11 ZTE CORPORATION No. 55, Hi-tech Road South, ShenZhen, P.R.China Postcode: 518057 Tel: +86-755-26771900 Fax: +86-755-26770801 URL: http://support.zte.com.cn E-mail: support@zte.com.cn...
  • 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.
  • Page 3: Table Of Contents

    4.4.1 Single Area IS-IS Configuration Example ..........4-28 4.4.2 Multiple Area IS-IS Configuration Example..........4-32 4.4.3 IS-IS Multi-Instance Configuration Example ..........4-38 Chapter 5 BGP Configuration..............5-1 5.1 BGP Overview ....................5-1 5.2 Configuring BGP ....................5-4 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 4 5.4.3 BGP FRR Configuration Example............5-72 5.4.4 BGP Route Reflector Configuration Example ........... 5-74 5.4.5 BGP and VRRP Linkage Configuration Example ........5-75 5.4.6 BGP Graceful Restart Configuration Example .......... 5-77 Figures......................I Glossary ......................III SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 5: About This Manual

    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...
  • Page 7: Static Route Overview

    ZXR10#show ip protocol routing Protocol routes: status codes:*valid, >best, i-internal, s-stale Dest NextHop RoutePrf RouteMetric Protocol *> 0.0.0.0/0 0.0.0.0 special *> 2.2.2.2/32 2.2.2.2 connected *> 120.2.2.0/24 120.2.2.2 static *> 120.2.2.2/32 120.2.2.2 connected *> 255.255.255.255/32 0.0.0.0 special SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 8: Configuring A Static Route

    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.
  • Page 9: Figure 1-1 Indirect Static Route Next Hop Configuration Example

    ZXR10(config)#show ip protocol routing Protocol routes: status codes: *valid, >best, i-internal, s-stale Dest NextHop RoutePrf RouteMetric Protocol *> 10.10.10.0/24 10.10.10.1 connected * 10.10.10.0/24 10.10.10.0 ospf *> 10.10.10.1/32 10.10.10.1 connected *> 20.20.20.0/24 10.10.10.2 ospf *> 30.2.0.0/16 10.10.10.2 static SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 10: Maintaining Static Route

    ZXR10 5900E Series Configuration Guide (IPv4 Routing) View forwarding table on S1: ZXR10(config)#show ip forwarding route IPv4 Routing Table: Dest Interface Owner Pri Metric 10.10.10.0/24 10.10.10.1 vlan1 direct 10.10.10.1/32 10.10.10.1 vlan1 address 20.20.20.0/24 10.10.10.2 vlan1 ospf 110 2 30.2.0.0/16 10.10.10.2 vlan1 static 224.0.0.0/4...
  • Page 11 Status codes: *valid, >best, M: Master, S: Slave; IPv4 Routing Table: Dest Interface Owner Metric 10.10.10.0/24 10.10.10.1 vlan1 STAT 10.10.10.1/32 10.10.10.1 vlan1 ADDR 20.20.20.0/24 10.10.10.2 vlan1 ADDR 30.2.0.0/16 10.10.10.2 vlan1 DIRECT 224.0.0.0/4 224.0.0.0 NULL 224.0.0.0/24 224.0.0.0 NULL DIRECT SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 12: Static Route Configuration Examples

    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...
  • Page 14: Static Route Summary Configuration Example

    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.
  • Page 15: Default Route Configuration Example

    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.
  • Page 19: Chapter 2 Rip Configuration

    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...
  • Page 24: Rip Maintenance

    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 29: Rip Configuration Example

    S1(config-if)#ip address 192.168.1.1 255.255.255.0 S1(config-if)#exit S1(config)#interface vlan20 S1(config-if)#ip address 10.1.0.1 255.255.0.0 S1(config-if)#exit S1(config)#router rip S1(config-rip)#network 192.168.1.1 0.0.0.255 S1(config-rip)#network 10.1.0.1 0.0.255.255 S1(config-rip)#exit Configuration on S2: S2(config)#interface vlan10 S2(config-if)#ip address 192.168.1.2 255.255.255.0 S2(config-if)#exit S2(config)#interface vlan20 2-13 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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.
  • Page 35: Chapter 3 Ospf Configuration

    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...
  • Page 36: Figure 3-1 Ospf Router Type

    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...
  • Page 40: Configuring The Ospf Protocol

    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.
  • Page 41: Figure 3-2 Ospf Basic Configuration Example

    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...
  • Page 42: Interface Vlan

    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...
  • Page 44: Figure 3-3 Ospf Interface Attribute Configuration

    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.
  • Page 45: Configuring Ospf Authentication

    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...
  • Page 46: Figure 3-4 Ospf Authentication Configuration Example

    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...
  • Page 50: Figure 3-5 Ospf Stub Area Configuration Example

    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 53: Figure 3-6 Nssa Area Configuration Example

    S2(config)#interface vlan20 S2(config-if-vlan20)#ip address 30.0.1.1 255.255.255.252 S2(config-if-vlan20)#exit S2(config)#router ospf 10 S2(config-ospf-10)#router-id 1.1.1.3 S2(config-ospf-10)#network 30.0.0.0 0.0.0.3 area 0 S2(config-ospf-10)#network 30.0.1.0 0.0.0.3 area 1 S2(config-ospf-10)#area 1 nssa default-information-originate S2(config-ospf-10)#exit Run the following commands on S3: 3-21 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 54 ZXR10 5900E Series Configuration Guide (IPv4 Routing) S3(config)#interface loopback1 S3(config-if-loopback1)#ip adderss 1.1.1.4 255.255.255.255 S3(config-if-loopback1)#exit S3(config)#interface vlan10 S3(config-if-vlan10)#ip address 30.0.1.2 255.255.255.252 S3(config-if-vlan10)#exit S3(config)#router ospf 10 S3(config-ospf-10)#router-id 1.1.1.4 S3(config-ospf-10)#network 30.0.1.0 0.0.0.3 area 1 S3(config-ospf-10)#redistribute connected S3(config-ospf-10)#area 1 nssa S3(config-ospf-10)#exit To prevent routing messages of type 3 from being advertised to the NSSA area, run the...
  • Page 55: Figure 3-7 Ospf Inter-Area Route Aggregation Configuration Example

    S1(config)#interface vlan30 S1(config-if-vlan30)#ip address 2.2.2.1 255.255.255.252 S1(config-if-vlan30)#exit S1(config)#router ospf 1 S1(config-ospf-1)#router-id 1.1.1.2 S1(config-ospf-1)#network 30.0.0.0 0.0.0.3 area 1 S1(config-ospf-1)#network 2.2.2.0 0.0.0.3 area 1 S1(config-ospf-1)#network 2.2.2.4 0.0.0.3 area 1 S1(config-ospf-1)#exit Run the following commands on S2: 3-23 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 56 ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config)#interface loopback1 S2(config-if-loopback1)#ip adderss 1.1.1.3 255.255.255.255 S2(config-if-loopback1)#exit S2(config)#interface vlan10 S2(config-if-vlan10)#ip address 30.0.0.1 255.255.255.252 S2(config-if-vlan10)#exit S2(config)#interface vlan20 S2(config-if-vlan20)#ip address 30.0.1.1 255.255.255.252 S2(config-if-vlan20)#exit S2(config)#router ospf 1 S2(config-ospf-1)#router-id 1.1.1.3 S2(config-ospf-1)#network 30.0.0.0 0.0.0.3 area 1 S2(config-ospf-1)#network 30.0.1.0 0.0.0.3 area 0...
  • 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...
  • Page 58: Figure 3-8 Route Aggregation With Route Redistribution Configuration Example

    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...
  • Page 60: Figure 3-9 Ospf Route Load Balancing Configuration Example

    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.
  • Page 61: Configuring Ospf Route Redistribution

    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>]...
  • Page 63: Figure 3-10 Ospf Redistribution Route Configuration Example

    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...
  • Page 67: Figure 3-11 Ospf Virtual Link Configuration Example

    Run the following commands on S3: S3(config)#interface loopback1 S3(config-if-loopback1)#ip address 1.1.1.4 255.255.255.255 S3(config-if-loopback1)#exit S3(config)#interface vlan10 S3(config-if-vlan10)#ip address 10.0.1.2 255.255.255.252 S3(config-if-vlan10)#exit S3(config)#interface vlan20 S3(config-if-vlan20)#ip address 2.2.2.6 255.255.255.252 S3(config-if-vlan20)#exit S3(config)#router ospf 1 S3(config-ospf-1)#network 10.0.1.0 0.0.0.3 area 0.0.0.1 3-35 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 68: Figure 3-12 Sham-Link

    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...
  • Page 70: Maintaining The Ospf Protocol

    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...
  • Page 77: Ospf Configuration Examples

    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...
  • Page 79: Ospf Configuration Example Two

    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...
  • Page 80 ZXR10 5900E Series Configuration Guide (IPv4 Routing) S1(config)#router ospf 1 S1(config-ospf-1)#network 11.22.1.0 0.0.0.255 area 255 S1(config-ospf-1)#area 255 nssa S1(config-ospf-1)#redistribute connected S1(config-ospf-1)#exit Configuration on S2: S2(config)#interface vlan20 S2(config-if-vlan20)#ip address 11.22.1.2 255.255.255.0 S2(config-if-vlan20)#exit S2(config)#interface vlan40 S2(config-if-vlan40)#ip address 33.22.1.2 255.255.255.0 S2(config-if-vlan40)#exit S2(config)#router ospf 1 S2(config-ospf-1)#network 11.22.1.0 0.0.0.255 area 255...
  • Page 81: Ospf Multi-Instance Configuration Example

    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 82 ZXR10 5900E Series Configuration Guide (IPv4 Routing) PE1(config)#interface loopback1 PE1(config-if-loopback1)#ip vrf forwarding vpn1 PE1(config-if-loopback1)#ip address 1.1.1.17 255.255.255.255 PE1(config-if-loopback1)#exit PE1(config)#interface vlan1 PE1(config-if-vlan1)#ip vrf forwarding vpn1 PE1(config-if-vlan1)#ip address 100.101.102.17 255.255.255.0 PE1(config-if-vlan1)#exit PE1(config)#router ospf 1 vrf vpn1 PE1(config-ospf-1)#network 1.1.1.17 0.0.0.0 area 0 PE1(config-ospf-1)#network 100.101.102.0 0.0.0.255 area 0...
  • 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...
  • Page 86: Figure 4-1 Is-Is Architecture

    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.
  • Page 87: Chapter 4 Is-Is Configuration

    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...
  • Page 88: Figure 4-3 Three Times Of Handshaking

    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...
  • Page 90: Figure 4-4 Neighbor Establishment On A Broadcast Network

    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...
  • Page 92: Figure 4-6 Point-To-Point Diffusion And Database Synchronization

    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...
  • Page 94: Figure 4-7 Diffusion And Database Synchronization On A Broadcast Link

    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.
  • Page 95: Configuring The Is-Is Protocol

    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.
  • Page 107: Maintaining The Is-Is Protocol

    [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 110 ZXR10 5900E Series Configuration Guide (IPv4 Routing) Metric: 10 IP-Internal 2.2.2.0 255.255.254.0 Metric: 10 IP-Internal 111.11.0.0 255.255.0.0 Metric: 10 IPv6 1::/64 IS-IS Level-2 Link State Database: LSPID LSP Seq Num LSP Checksum LSP Holdtime ATT/P/OL 0000.2222.6666-00-00 0xaf92 1151 0/0/0 NLPID:...
  • 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...
  • Page 112: Is-Is Configuration Examples

    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 113 Configuration ON S2: S2(config)#interface vlan10 S2(config-if-vlan10)#ip address 192.168.2.2 255.255.255.0 S2(config-if-vlan10)#exit S2(config)#interface loopback1 S2(config-if-loopback1)#ip address 192.168.6.1 255.255.255.0 S2(config-if-loopback1)#exit S2(config)#router isis S2(config-isis-0)#area 01 S2(config-isis-0)#system-id 00D0.D0C7.53E0 S2(config-isis-0)#interface vlan10 S2(config-isis-0-if-vlan10)#ip router isis S2(config-isis-0-if-vlan10)#exit S2(config-isis-0)#interface loopback1 S2(config-isis-0-if-loopback1)#ip router isis S2(config-isis-0-if-loopback1)#end 4-29 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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.
  • Page 115: Zte Proprietary And Confidential

    System id Metric Next-Hop Interface SNPA 00D0.D0C7.53E0 -- 00D0.D0C7.5460 10 00D0.D0C7.5460 vlan10 0030.3144.5560 S2#ping 192.168.3.1 sending 5,100-byte ICMP echoes to 192.168.3.1,timeout is 2 seconds. !!!!! Success rate is 100 percent(5/5),round-trip min/avg/max= 10/20/52 ms. 4-31 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 116: Multiple Area Is-Is Configuration Example

    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 117 S2(config-if-vlan10)#ip address 192.168.15.2 255.255.255.0 S2(config-if-vlan10)#exit S2(config)#interface vlan20 S2(config-if-vlan20)#ip address 192.168.14.1 255.255.255.0 S2(config-if-vlan20)#exit S2(config)#router isis S2(config-isis-0)#area 00 S2(config-isis-0)#system-id 00D0.D0C7.53E0 S2(config-isis-0)#is-type level-1-2 S2(config-isis-0)#interface vlan10 S2(config-isis-0-if-vlan10)#ip router isis S2(config-isis-0-if-vlan10)#circuit-type level-2 S2(config-isis-0-if-vlan10)#exit S2(config-isis-0)#interface vlan20 S2(config-isis-0-if-vlan20)#ip router isis S2(config-isis-0-if-vlan20)#circuit-type level-2 4-33 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 118 ZXR10 5900E Series Configuration Guide (IPv4 Routing) S2(config-isis-0-if-vlan20)#exit Configuration on S3: S3(config)#interface vlan10 S3(config-if-vlan10)#ip address 192.168.14.2 255.255.255.0 S3(config-if-vlan10)#exit S3(config)#interface vlan20 S3(config-if-vlan20)#ip address 192.168.13.1 255.255.255.0 S3(config-if-vlan20)#exit S3(config)#router isis S3(config-isis-0)#area 02 S3(config-isis-0)#system-id EF00.AB00.DF12 S3(config-isis-0)#is-type level-1-2 S3(config-isis-0)#interface vlan10 S3(config-isis-0-if-vlan10)#ip router isis S3(config-isis-0-if-vlan10)#circuit-type level-2...
  • Page 119 00D0.D0C7.5460 -- IS-IS paths to Level-2 routers System id Metric Next-Hop Interface SNPA 00D0.D0C7.53E0 10 00D0.D0C7.53E0 gei-0/1/1/3 0030.3144.5566 00D0.D0C7.5460 -- Router 00D0.D0C7.53E0 gei-0/1/1/3 0030.3144.5566 Router 00D0.D0C7.53E0 gei-0/1/1/3 0030.3144.5566 S1(config)#show ip protocol routing Protocol routes: 4-35 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 120 ZXR10 5900E Series Configuration Guide (IPv4 Routing) status codes: *valid, >best, i-internal, s-stale Dest NextHop RoutePrf RouteMetric Protocol *> 0.0.0.0/0 192.168.15.2 isis-l2 0.0.0.0/0 0.0.0.0 special View S2 configuration: S2(config)#show running-config isis router isis area 00 system-id 00D0.D0C7.53E0 is-type level-2-only interface vlan20...
  • Page 121 192.168.13.2 Router.01 S3(config)#show ip protocol routing Protocol routes: status codes: *valid, >best, i-internal, s-stale Dest NextHop RoutePrf RouteMetric Protocol *> 0.0.0.0/0 192.168.13.2 isis-l2 0.0.0.0/0 0.0.0.0 special *> 192.168.100.0/22 192.168.14.1 isis-l2 View S4 configuration: 4-37 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • Page 122: Is-Is Multi-Instance Configuration Example

    ZXR10 5900E Series Configuration Guide (IPv4 Routing) S4(config)#show running-config router isis area 02 system-id 00de.fb11.ad00 is-type LEVEL-1 redistribute static ip metric 10 default-information originate interface vlan10 ip router isis circuit-type level-1 ip route 0.0.0.0 0.0.0.0 192.168.13.1 S4(config)#show isis topology IS-IS paths to level-1 routers...
  • Page 123: Figure 4-11 Is-Is Multi-Instance Configuration Example

    S1(config-isis-200)#area 10 S1(config-isis-200)#redistribute connected S1(config-isis-200)#interface vlan20 S1(config-isis-200-if-vlan20)#ip router isis S1(config-isis-200-if-vlan20)#exit S1(config-isis-200)#exit Configuration on S2: S2(config)#router isis 100 S2(config-isis-100)#system-id 2222.0100.0000 S2(config-isis-100)#area 10 S2(config-isis-100)#interface vlan10 S2(config-isis-100-if-vlan10)#ip router isis S2(config-isis-100-if-vlan10)#exit S2(config-isis-100)#exit S2(config)#router isis 200 S2(config-isis-200)#system-id 2222.0200.0000 4-39 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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.
  • Page 127: Chapter 5 Bgp Configuration

    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...
  • Page 128: Configuring Bgp

    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.
  • Page 129: Figure 5-2 Ibgp And Ebgp

    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 131: Figure 5-3 Ebgp Physical Direct-Connected Configuration Topology

    Figure 5-3 EBGP Physical Direct-Connected Configuration Topology Configuration on S1: S1#config terminal S1(config)#interface vlan10 S1(config-if-vlan10)#ip address 129.213.1.1 255.255.255.252 S1(config-if-vlan10)#exit S1(config)#router bgp 65000 S1(config-bgp)#neighbor 129.213.1.2 remote-as 65001 S1(config-bgp)#exit Configuration on S2: S2#config terminal S2(config)#interface vlan10 S2(config-if-vlan10)#ip address 129.213.1.2 255.255.255.252 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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 133: Figure 5-4 Ebgp Configuration Through Loopback Address

    S1(config)#ip route 1.1.1.2 255.255.255.255 192.168.1.2 Configuration on S2: S2#config terminal S2(config)#interface vlan10 S2(config-if-vlan10)#ip address 192.168.1.2 255.255.255.252 S2(config-if-vlan10)#exit S2(config)#interface Loopback1 S2(config-if-loopback1)#ip address 1.1.1.2 255.255.255.255 S2(config-if-loopback1)#exit S2(config)#router bgp 65001 S2(config-bgp)#neighbor 1.1.1.1 remote-as 65000 S2(config-bgp)#neighbor 1.1.1.1 ebgp-multihop ttl 5 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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 137: Figure 5-5 Ibgp Configuration

    S2(config-bgp)#neighbor 1.1.1.3 next-hop-self S2(config-bgp)#no synchronization S2(config-bgp)#exit S2(config)#router ospf 1 S2(config-ospfv2)#network 192.168.2.0 0.0.0.3 area 0 S2(config-ospfv2)#network 1.1.1.2 0.0.0.0 area 0 S2(config-ospfv2)#exit Configuration on S3: S3#config terminal S3(config)#interface vlan10 S3(config-if-vlan10)#ip address 192.168.2.2 255.255.255.252 S3(config-if-vlan10)#exit S3(config)#interface Loopback1 5-13 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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.
  • Page 141: Figure 5-6 Use Network Command To Advertise Bgp Route

    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 142 ZXR10 5900E Series Configuration Guide (IPv4 Routing) 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 bgp 65001 S2(config-bgp)#neighbor 192.168.2.2 remote-as 65000 S2(config-bgp)#network 18.0.0.0 255.255.255.0 S2(config-bgp)#exit S2(config)#router ospf 1 S2(config-ospf)#network 18.0.0.0 0.255.255.255 area 0 S2(config-ospf)#exit Configuration on S1:...
  • 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...
  • Page 144: Figure 5-7 Redistribute Ospf Routes By Using Redistribute Command

    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...
  • Page 146: Figure 5-8 Route Aggregation Configuration Example

    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.
  • Page 151: Figure 5-9 Filter Routes By Using Route-Map

    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...
  • Page 154: Figure 5-10 Filtering Route By Using Nlri

    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...
  • Page 156: Figure 5-11 Restrict The Number Of Route Advertisements Received By Neighbor

    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 161: Figure 5-13 Select Route By Using Local_Pref Attribute

    S1(config)#ipv4-access-list 1 S1(config-ipv4-acl)#permit any S1(config)#route-map Local_Pref permit 10 S1(config-route-map)#match ip address 1 S1(config-route-map)#set local-preference 200 Configuration on S2: S2(config)#router bgp 600 S2(config-bgp)#no synchronization S2(config-bgp)#neighbor 172.16.0.2 remote-as 300 S2(config-bgp)#neighbor 172.16.0.2 activate S2(config-bgp)#neighbor 192.168.1.1 remote-as 600 5-37 SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...
  • 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...
  • Page 164: Figure 5-14 Select Route By Using Med

    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...
  • Page 168: Figure 5-15 Use Community To Control Routes

    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...
  • Page 172: Figure 5-16 Bgp Route Reflector Configuration Example

    ZXR10 5900E Series Configuration Guide (IPv4 Routing) Figure 5-16 BGP Route Reflector Configuration Example Configuration on S1 (The following content omits the configuration of port and IGP): S1(config)#router bgp 600 S1(config-bgp)#no synchronization S1(config-bgp)#neighbor 172.16.1.2 remote-as 300 S1(config-bgp)#neighbor 172.16.1.2 activate S1(config-bgp)#neighbor 192.168.1.5 remote-as 600 S1(config-bgp)#neighbor 192.168.1.5 activate...
  • Page 173: Configuring Bgp Confederation

    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...
  • Page 174: Figure 5-17 Bgp Confederation Configuration Example

    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...
  • Page 175: Configuring Bgp Route Dampening

    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.
  • Page 177: Configuring Bgp Peer Group

    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...
  • Page 179: Maintaining Bgp

    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...
  • Page 184: Bgp Configuration Examples

    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.
  • Page 185: Figure 5-18 Bgp Configuration Example One

    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 188 ZXR10 5900E Series Configuration Guide (IPv4 Routing) S4(config-if-vlan2)#exit S4(config)#router bgp 2 S4(config-bgp)#redistribute connected S4(config-bgp)#redistribute static S4(config-bgp)#network 10.1.1.0 255.255.255.0 S4(config-bgp)#aggregate-address 192.168.0.0 255.255.252.0 count 0 as-set S4(config-bgp)#neighbor 1.1.1.2 remote-as 1 S4(config-bgp)#neighbor 1.1.1.2 activate S4(config-bgp)#neighbor 1.1.1.2 ebgp-multihop ttl 5 S4(config-bgp)#neighbor 1.1.1.2 route-map test-static out S4(config-bgp)#neighbor 1.1.1.2 send-med...
  • 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...
  • Page 192 ZXR10 5900E Series Configuration Guide (IPv4 Routing) *>1.1.1.2/32 11.1.1.2 *>10.1.1.0/24 10.1.1.1 *>11.1.1.0/30 11.1.1.1 *11.1.1.0/30 1.1.1.2 *>12.1.1.0/30 1.1.1.2 *>13.1.1.0/30 1.1.1.2 *>14.1.1.0/30 1.1.1.2 1 3 ? *>20.1.1.0/24 1.1.1.2 1 3 ? *>192.168.0.0/22 0.0.0.0 *>192.168.0.0/24 10.1.1.2 *>192.168.1.0/24 10.1.1.2 *>192.168.2.0/24 10.1.1.2 *>192.168.3.0/24 10.1.1.2 *>192.168.100.0/24 10.1.1.2...
  • Page 193: Bgp Configuration Example Two

    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...
  • Page 194: Figure 5-19 Bgp Configuration Example

    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...
  • Page 196: Bgp Frr Configuration Example

    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...
  • Page 197: Figure 5-20 Bgp Frr Configuration Example

    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...
  • Page 198: Bgp Route Reflector Configuration Example

    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:...
  • Page 199: Bgp And Vrrp Linkage Configuration Example

    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...
  • Page 200: Figure 5-22 Bgp And Vrrp Linkage Configuration Example

    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.
  • Page 201: Bgp Graceful Restart Configuration Example

    Chapter 5 BGP Configuration S1(config-vrrp-if-gei-0/1/1/1)#exit S1(config-vrrp)#exit /*Configure the track VRRP object in samgr mode*/ S1(config)#samgr S1(config-samgr)#track zte vrrp interface gei-0/1/1/1 vrid 66 /*Configure the track samgr object in BGP address family mode*/ S1(config-samgr)#exit S1(config)#router bgp 66.66 S1(config-bgp)#track zte adjust-priority 67...
  • Page 202: Figure 5-23 Bgp Graceful Restart Configuration Example

    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.
  • Page 203: Figures

    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 ........
  • Page 205: Glossary

    - 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...
  • Page 207 Glossary - User Datagram Protocol VLSM - Variable Length Subnet Mask - Virtual Private Network - Virtual Route Forwarding VRRP - Virtual Router Redundancy Protocol SJ-20150114102049-003|2015-01-15 (R1.0) ZTE Proprietary and Confidential...

Table of Contents